From be8472e309d40c7dbb9ca21ee8798aec908a921a Mon Sep 17 00:00:00 2001 From: mohammad mirdar Date: Mon, 13 Feb 2023 15:09:06 +0330 Subject: [PATCH] proto gradle version increased and proto files compiled with new version of protobuf compiler --- build.gradle | 7 +- .../net/iGap/proto/ProtoBillInquiryMci.java | 2920 +- .../iGap/proto/ProtoBillInquiryTelecom.java | 2756 +- .../java/net/iGap/proto/ProtoCallInfo.java | 1881 +- .../java/net/iGap/proto/ProtoCallRequest.java | 2612 +- .../iGap/proto/ProtoChangePhoneNumber.java | 1545 +- .../net/iGap/proto/ProtoChannelAddAdmin.java | 3269 +- .../net/iGap/proto/ProtoChannelAddMember.java | 2344 +- .../proto/ProtoChannelAddMessageReaction.java | 1799 +- .../iGap/proto/ProtoChannelAddModerator.java | 1588 +- .../net/iGap/proto/ProtoChannelAvatarAdd.java | 1833 +- .../iGap/proto/ProtoChannelAvatarDelete.java | 1588 +- .../iGap/proto/ProtoChannelAvatarGetList.java | 1749 +- .../iGap/proto/ProtoChannelCheckUsername.java | 1704 +- .../net/iGap/proto/ProtoChannelCreate.java | 1876 +- .../net/iGap/proto/ProtoChannelDelete.java | 1451 +- .../iGap/proto/ProtoChannelDeleteMessage.java | 1796 +- .../java/net/iGap/proto/ProtoChannelEdit.java | 2108 +- .../iGap/proto/ProtoChannelEditMessage.java | 2664 +- .../net/iGap/proto/ProtoChannelGetDraft.java | 1598 +- .../iGap/proto/ProtoChannelGetMemberList.java | 3161 +- .../proto/ProtoChannelGetMessagesStats.java | 3933 +- .../net/iGap/proto/ProtoChannelKickAdmin.java | 1588 +- .../iGap/proto/ProtoChannelKickMember.java | 1588 +- .../iGap/proto/ProtoChannelKickModerator.java | 1588 +- .../java/net/iGap/proto/ProtoChannelLeft.java | 1519 +- .../iGap/proto/ProtoChannelPinMessage.java | 1804 +- .../proto/ProtoChannelRemoveUsername.java | 1452 +- .../iGap/proto/ProtoChannelRevokeLink.java | 1780 +- .../iGap/proto/ProtoChannelSendMessage.java | 4139 +- .../net/iGap/proto/ProtoChannelSetAction.java | 1811 +- .../iGap/proto/ProtoChannelUpdateDraft.java | 1879 +- .../ProtoChannelUpdateReactionStatus.java | 1589 +- .../proto/ProtoChannelUpdateSignature.java | 1589 +- .../proto/ProtoChannelUpdateUsername.java | 1780 +- .../net/iGap/proto/ProtoChatClearMessage.java | 1726 +- .../iGap/proto/ProtoChatConvertToGroup.java | 2224 +- .../java/net/iGap/proto/ProtoChatDelete.java | 1450 +- .../iGap/proto/ProtoChatDeleteMessage.java | 1864 +- .../net/iGap/proto/ProtoChatEditMessage.java | 2664 +- .../net/iGap/proto/ProtoChatGetDraft.java | 1597 +- .../java/net/iGap/proto/ProtoChatGetRoom.java | 1597 +- .../net/iGap/proto/ProtoChatSendMessage.java | 4598 +- .../net/iGap/proto/ProtoChatSetAction.java | 1811 +- .../net/iGap/proto/ProtoChatUpdateDraft.java | 1879 +- .../net/iGap/proto/ProtoChatUpdateStatus.java | 2254 +- .../proto/ProtoClientCheckInviteLink.java | 1694 +- .../net/iGap/proto/ProtoClientCondition.java | 5811 +- .../proto/ProtoClientCountRoomHistory.java | 1924 +- .../iGap/proto/ProtoClientGetDifference.java | 1667 +- .../iGap/proto/ProtoClientGetDiscovery.java | 2047 +- .../proto/ProtoClientGetFavoriteMenu.java | 1679 +- .../net/iGap/proto/ProtoClientGetPoll.java | 1979 +- .../net/iGap/proto/ProtoClientGetPromote.java | 2340 +- .../net/iGap/proto/ProtoClientGetRoom.java | 1597 +- .../iGap/proto/ProtoClientGetRoomHistory.java | 2111 +- .../iGap/proto/ProtoClientGetRoomList.java | 1893 +- .../iGap/proto/ProtoClientGetRoomMessage.java | 1735 +- .../net/iGap/proto/ProtoClientGetState.java | 1381 +- .../proto/ProtoClientJoinByInviteLink.java | 1616 +- .../iGap/proto/ProtoClientJoinByUsername.java | 1616 +- .../net/iGap/proto/ProtoClientMuteRoom.java | 1675 +- .../net/iGap/proto/ProtoClientPinRoom.java | 1803 +- .../iGap/proto/ProtoClientRegisterDevice.java | 1797 +- .../proto/ProtoClientResolveUsername.java | 2066 +- .../proto/ProtoClientRoomChangeOwner.java | 1874 +- .../proto/ProtoClientRoomMemberSearch.java | 3124 +- .../net/iGap/proto/ProtoClientRoomReport.java | 1840 +- .../net/iGap/proto/ProtoClientSearch.java | 3227 +- .../iGap/proto/ProtoClientSearchMessage.java | 3190 +- .../proto/ProtoClientSearchRoomHistory.java | 2256 +- .../iGap/proto/ProtoClientSearchUsername.java | 2928 +- .../ProtoClientSetDiscoveryItemAgreement.java | 1381 +- .../ProtoClientSetDiscoveryItemClick.java | 1381 +- .../proto/ProtoClientSetPollItemClick.java | 1380 +- .../proto/ProtoClientSubscribeToRoom.java | 1381 +- .../proto/ProtoClientUnsubscribeFromRoom.java | 1381 +- .../net/iGap/proto/ProtoClientUpdate.java | 729 +- .../net/iGap/proto/ProtoClientUpdates.java | 1089 +- .../iGap/proto/ProtoClientUpdatesTooLong.java | 519 +- .../iGap/proto/ProtoConnectionSecuring.java | 3099 +- src/main/java/net/iGap/proto/ProtoError.java | 1102 +- .../net/iGap/proto/ProtoFileDownload.java | 1846 +- .../java/net/iGap/proto/ProtoFileInfo.java | 1693 +- .../java/net/iGap/proto/ProtoFileUpload.java | 1825 +- .../net/iGap/proto/ProtoFileUploadInit.java | 2139 +- .../net/iGap/proto/ProtoFileUploadOption.java | 1585 +- .../net/iGap/proto/ProtoFileUploadStatus.java | 1774 +- .../net/iGap/proto/ProtoGeoGetComment.java | 1547 +- .../iGap/proto/ProtoGeoGetConfiguration.java | 2441 +- .../proto/ProtoGeoGetNearbyCoordinate.java | 2525 +- .../iGap/proto/ProtoGeoGetNearbyDistance.java | 2453 +- .../iGap/proto/ProtoGeoGetRegisterStatus.java | 1381 +- .../java/net/iGap/proto/ProtoGeoRegister.java | 1450 +- .../net/iGap/proto/ProtoGeoUpdateComment.java | 1643 +- .../iGap/proto/ProtoGeoUpdatePosition.java | 1451 +- src/main/java/net/iGap/proto/ProtoGlobal.java | 76218 +++++++++++----- .../net/iGap/proto/ProtoGroupAddAdmin.java | 2925 +- .../net/iGap/proto/ProtoGroupAddMember.java | 2522 +- .../iGap/proto/ProtoGroupAddModerator.java | 1588 +- .../net/iGap/proto/ProtoGroupAvatarAdd.java | 1832 +- .../iGap/proto/ProtoGroupAvatarDelete.java | 1588 +- .../iGap/proto/ProtoGroupAvatarGetList.java | 1749 +- .../proto/ProtoGroupChangeMemberRights.java | 2995 +- .../iGap/proto/ProtoGroupCheckUsername.java | 1704 +- .../iGap/proto/ProtoGroupClearMessage.java | 1726 +- .../java/net/iGap/proto/ProtoGroupCreate.java | 1875 +- .../java/net/iGap/proto/ProtoGroupDelete.java | 1451 +- .../iGap/proto/ProtoGroupDeleteMessage.java | 1796 +- .../java/net/iGap/proto/ProtoGroupEdit.java | 2108 +- .../net/iGap/proto/ProtoGroupEditMessage.java | 3100 +- .../net/iGap/proto/ProtoGroupGetDraft.java | 1597 +- .../iGap/proto/ProtoGroupGetMemberList.java | 3389 +- .../net/iGap/proto/ProtoGroupKickAdmin.java | 1804 +- .../net/iGap/proto/ProtoGroupKickMember.java | 1588 +- .../iGap/proto/ProtoGroupKickModerator.java | 1588 +- .../java/net/iGap/proto/ProtoGroupLeft.java | 1519 +- .../net/iGap/proto/ProtoGroupPinMessage.java | 1803 +- .../iGap/proto/ProtoGroupRemoveUsername.java | 1451 +- .../net/iGap/proto/ProtoGroupRevokeLink.java | 1780 +- .../proto/ProtoGroupRoomMemberMention.java | 1982 +- .../net/iGap/proto/ProtoGroupSendMessage.java | 4807 +- .../net/iGap/proto/ProtoGroupSetAction.java | 1811 +- .../net/iGap/proto/ProtoGroupUpdateDraft.java | 1879 +- .../iGap/proto/ProtoGroupUpdateStatus.java | 2254 +- .../iGap/proto/ProtoGroupUpdateUsername.java | 1780 +- .../java/net/iGap/proto/ProtoHeartbeat.java | 1309 +- .../java/net/iGap/proto/ProtoInfoConfig.java | 3523 +- .../java/net/iGap/proto/ProtoInfoCountry.java | 2039 +- .../net/iGap/proto/ProtoInfoLocation.java | 2037 +- .../java/net/iGap/proto/ProtoInfoPage.java | 1642 +- .../java/net/iGap/proto/ProtoInfoTime.java | 1379 +- .../java/net/iGap/proto/ProtoInfoUpdate.java | 1681 +- .../net/iGap/proto/ProtoInfoWallpaper.java | 1993 +- .../net/iGap/proto/ProtoMessageContainer.java | 824 +- .../net/iGap/proto/ProtoMplGetBillToken.java | 2439 +- .../proto/ProtoMplGetCardToCardToken.java | 1847 +- .../net/iGap/proto/ProtoMplGetSalesToken.java | 2218 +- .../net/iGap/proto/ProtoMplGetTopupToken.java | 2074 +- .../net/iGap/proto/ProtoMplSalesConfirm.java | 1753 +- .../net/iGap/proto/ProtoMplSalesList.java | 2004 +- .../proto/ProtoMplSetCardToCardResult.java | 1546 +- .../iGap/proto/ProtoMplSetSalesResult.java | 1477 +- .../iGap/proto/ProtoMplTransactionInfo.java | 1928 +- .../iGap/proto/ProtoMplTransactionList.java | 2005 +- .../java/net/iGap/proto/ProtoMxbSearch.java | 3099 +- .../java/net/iGap/proto/ProtoMxbUser.java | 1000 - .../iGap/proto/ProtoMxbUserActivation.java | 1634 + .../net/iGap/proto/ProtoMxbUserInsertion.java | 1673 +- .../java/net/iGap/proto/ProtoPinMessage.java | 1803 +- .../net/iGap/proto/ProtoPushLoginToken.java | 1229 +- .../iGap/proto/ProtoPushRateSignaling.java | 736 +- .../proto/ProtoPushTwoStepVerification.java | 1065 +- .../iGap/proto/ProtoPushUserInfoExpired.java | 736 +- .../proto/ProtoPushWalletPaymentVerified.java | 833 +- .../net/iGap/proto/ProtoQrCodeAddContact.java | 1881 +- .../java/net/iGap/proto/ProtoQrCodeAddMe.java | 1385 +- .../java/net/iGap/proto/ProtoQrCodeJoin.java | 1552 +- .../net/iGap/proto/ProtoQrCodeNewDevice.java | 2474 +- .../net/iGap/proto/ProtoQrCodeResolve.java | 1620 +- .../java/net/iGap/proto/ProtoRequest.java | 778 +- .../java/net/iGap/proto/ProtoResponse.java | 681 +- .../net/iGap/proto/ProtoSignalingAccept.java | 1643 +- .../iGap/proto/ProtoSignalingCandidate.java | 2108 +- .../iGap/proto/ProtoSignalingClearLog.java | 1816 +- .../proto/ProtoSignalingGetConfiguration.java | 2885 +- .../net/iGap/proto/ProtoSignalingGetLog.java | 3258 +- .../net/iGap/proto/ProtoSignalingLeave.java | 1469 +- .../net/iGap/proto/ProtoSignalingOffer.java | 2049 +- .../net/iGap/proto/ProtoSignalingRate.java | 1612 +- .../net/iGap/proto/ProtoSignalingRinging.java | 1310 +- .../iGap/proto/ProtoSignalingSessionHold.java | 1451 +- .../net/iGap/proto/ProtoStoryAddView.java | 1752 +- .../net/iGap/proto/ProtoStoryDeleteStory.java | 1519 +- .../proto/ProtoStoryGetOwnStoryViews.java | 3421 +- .../net/iGap/proto/ProtoStoryGetStories.java | 3289 +- .../net/iGap/proto/ProtoStoryRoomAddNew.java | 2115 +- .../net/iGap/proto/ProtoStoryUserAddNew.java | 2813 +- .../net/iGap/proto/ProtoUserAvatarAdd.java | 1693 +- .../net/iGap/proto/ProtoUserAvatarDelete.java | 1451 +- .../iGap/proto/ProtoUserAvatarGetList.java | 1749 +- .../java/net/iGap/proto/ProtoUserBan.java | 670 - .../iGap/proto/ProtoUserContactsBlock.java | 1451 +- .../iGap/proto/ProtoUserContactsDelete.java | 1451 +- .../net/iGap/proto/ProtoUserContactsEdit.java | 2275 +- .../ProtoUserContactsGetBlockedList.java | 2340 +- .../iGap/proto/ProtoUserContactsGetList.java | 1679 +- .../iGap/proto/ProtoUserContactsImport.java | 4064 +- .../iGap/proto/ProtoUserContactsUnblock.java | 1451 +- .../java/net/iGap/proto/ProtoUserDelete.java | 1631 +- .../iGap/proto/ProtoUserGetDeleteToken.java | 1961 +- .../proto/ProtoUserIVandGetActivities.java | 1894 +- .../iGap/proto/ProtoUserIVandGetScore.java | 2784 +- .../iGap/proto/ProtoUserIVandSetActivity.java | 1780 +- .../java/net/iGap/proto/ProtoUserInfo.java | 1597 +- .../java/net/iGap/proto/ProtoUserLogin.java | 3729 +- .../iGap/proto/ProtoUserPrivacyGetRule.java | 1538 +- .../iGap/proto/ProtoUserPrivacySetRule.java | 1760 +- .../net/iGap/proto/ProtoUserProfileBio.java | 1643 +- .../proto/ProtoUserProfileCheckUsername.java | 1635 +- .../net/iGap/proto/ProtoUserProfileEmail.java | 1643 +- .../iGap/proto/ProtoUserProfileGender.java | 1538 +- .../iGap/proto/ProtoUserProfileGetBio.java | 1477 +- .../iGap/proto/ProtoUserProfileGetEmail.java | 1477 +- .../iGap/proto/ProtoUserProfileGetGender.java | 1426 +- .../ProtoUserProfileGetNationalCode.java | 1478 +- .../proto/ProtoUserProfileGetNickname.java | 1477 +- .../ProtoUserProfileGetRepresentative.java | 1478 +- .../proto/ProtoUserProfileGetSelfRemove.java | 1380 +- .../iGap/proto/ProtoUserProfileNickname.java | 1808 +- .../proto/ProtoUserProfileRepresentative.java | 1644 +- .../ProtoUserProfileSetNationalCode.java | 1644 +- .../proto/ProtoUserProfileSetSelfRemove.java | 1450 +- .../proto/ProtoUserProfileUpdateUsername.java | 1644 +- .../net/iGap/proto/ProtoUserRefreshToken.java | 1477 +- .../net/iGap/proto/ProtoUserRegister.java | 2951 +- .../java/net/iGap/proto/ProtoUserReport.java | 1700 +- .../proto/ProtoUserSessionGetActiveList.java | 3838 +- .../iGap/proto/ProtoUserSessionLogout.java | 1310 +- .../iGap/proto/ProtoUserSessionTerminate.java | 1381 +- .../java/net/iGap/proto/ProtoUserSetBot.java | 1450 +- ...rotoUserTwoStepVerificationChangeHint.java | 1643 +- ...woStepVerificationChangeRecoveryEmail.java | 1810 +- ...tepVerificationChangeRecoveryQuestion.java | 2138 +- ...oUserTwoStepVerificationCheckPassword.java | 1479 +- ...rTwoStepVerificationGetPasswordDetail.java | 2042 +- ...pVerificationRecoverPasswordByAnswers.java | 1811 +- ...tepVerificationRecoverPasswordByToken.java | 1646 +- ...oStepVerificationRequestRecoveryToken.java | 1479 +- ...rTwoStepVerificationResendVerifyEmail.java | 1479 +- ...otoUserTwoStepVerificationSetPassword.java | 2799 +- ...oUserTwoStepVerificationUnsetPassword.java | 1479 +- ...UserTwoStepVerificationVerifyPassword.java | 1645 +- ...woStepVerificationVerifyRecoveryEmail.java | 1479 +- .../net/iGap/proto/ProtoUserUpdateStatus.java | 1649 +- .../net/iGap/proto/ProtoUserUsernameToId.java | 1547 +- .../java/net/iGap/proto/ProtoUserVerify.java | 1943 +- .../iGap/proto/ProtoUserVerifyNewDevice.java | 2567 +- .../iGap/proto/ProtoVerifyNewPhoneNumber.java | 1477 +- .../iGap/proto/ProtoWalletGetAccessToken.java | 1700 +- .../net/iGap/proto/ProtoWalletIdMapping.java | 1547 +- .../iGap/proto/ProtoWalletPaymentInit.java | 2224 +- .../net/iGap/proto/ProtoWalletRegister.java | 1310 +- .../updateQueue/core/ProtoInternalUpdate.java | 1607 +- .../core/ProtoInternalUpdateRoom.java | 1292 +- 245 files changed, 376978 insertions(+), 163344 deletions(-) delete mode 100644 src/main/java/net/iGap/proto/ProtoMxbUser.java create mode 100644 src/main/java/net/iGap/proto/ProtoMxbUserActivation.java delete mode 100644 src/main/java/net/iGap/proto/ProtoUserBan.java diff --git a/build.gradle b/build.gradle index b1a7732..f977cdf 100644 --- a/build.gradle +++ b/build.gradle @@ -24,12 +24,12 @@ allprojects { } android { - compileSdkVersion 26 + compileSdkVersion 30 buildToolsVersion '29.0.3' defaultConfig { minSdkVersion 14 - targetSdkVersion 26 + targetSdkVersion 30 versionCode 2 versionName "1.0" @@ -49,7 +49,6 @@ dependencies { androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) - implementation 'com.android.support:appcompat-v7:26.1.0' testImplementation 'junit:junit:4.12' - implementation 'com.google.protobuf:protobuf-java:3.10.0' + implementation 'com.google.protobuf:protobuf-java:3.18.0' } diff --git a/src/main/java/net/iGap/proto/ProtoBillInquiryMci.java b/src/main/java/net/iGap/proto/ProtoBillInquiryMci.java index 25c99b9..33621c5 100644 --- a/src/main/java/net/iGap/proto/ProtoBillInquiryMci.java +++ b/src/main/java/net/iGap/proto/ProtoBillInquiryMci.java @@ -8,109 +8,181 @@ private ProtoBillInquiryMci() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface BillInquiryMciOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BillInquiryMci) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 mobile_number = 2; + * uint64 mobile_number = 2; + * @return The mobileNumber. */ long getMobileNumber(); } /** * Protobuf type {@code proto.BillInquiryMci} */ - public static final class BillInquiryMci extends - com.google.protobuf.GeneratedMessageLite< - BillInquiryMci, BillInquiryMci.Builder> implements + public static final class BillInquiryMci extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BillInquiryMci) BillInquiryMciOrBuilder { + private static final long serialVersionUID = 0L; + // Use BillInquiryMci.newBuilder() to construct. + private BillInquiryMci(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BillInquiryMci() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BillInquiryMci(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BillInquiryMci( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + mobileNumber_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMci_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMci_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.class, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int MOBILE_NUMBER_FIELD_NUMBER = 2; private long mobileNumber_; /** - * optional uint64 mobile_number = 2; + * uint64 mobile_number = 2; + * @return The mobileNumber. */ + @java.lang.Override public long getMobileNumber() { return mobileNumber_; } - /** - * optional uint64 mobile_number = 2; - */ - private void setMobileNumber(long value) { - - mobileNumber_ = value; - } - /** - * optional uint64 mobile_number = 2; - */ - private void clearMobileNumber() { - - mobileNumber_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (mobileNumber_ != 0L) { output.writeUInt64(2, mobileNumber_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,359 +208,735 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, mobileNumber_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci)) { + return super.equals(obj); + } + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci other = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getMobileNumber() + != other.getMobileNumber()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + MOBILE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMobileNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BillInquiryMci} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BillInquiryMci) net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMci_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMci_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.class, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.Builder.class); + } + // Construct using net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + mobileNumber_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMci_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci getDefaultInstanceForType() { + return net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci build() { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci buildPartial() { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci result = new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.mobileNumber_ = mobileNumber_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci) { + return mergeFrom((net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci other) { + if (other == net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getMobileNumber() != 0L) { + setMobileNumber(other.getMobileNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long mobileNumber_ ; /** - * optional uint64 mobile_number = 2; + * uint64 mobile_number = 2; + * @return The mobileNumber. */ + @java.lang.Override public long getMobileNumber() { - return instance.getMobileNumber(); + return mobileNumber_; } /** - * optional uint64 mobile_number = 2; + * uint64 mobile_number = 2; + * @param value The mobileNumber to set. + * @return This builder for chaining. */ public Builder setMobileNumber(long value) { - copyOnWrite(); - instance.setMobileNumber(value); + + mobileNumber_ = value; + onChanged(); return this; } /** - * optional uint64 mobile_number = 2; + * uint64 mobile_number = 2; + * @return This builder for chaining. */ public Builder clearMobileNumber() { - copyOnWrite(); - instance.clearMobileNumber(); + + mobileNumber_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.BillInquiryMci) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci other = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci) arg1; - request_ = visitor.visitMessage(request_, other.request_); - mobileNumber_ = visitor.visitLong(mobileNumber_ != 0L, mobileNumber_, - other.mobileNumber_ != 0L, other.mobileNumber_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - mobileNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.BillInquiryMci) + } + // @@protoc_insertion_point(class_scope:proto.BillInquiryMci) private static final net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BillInquiryMci(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci(); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillInquiryMci parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BillInquiryMci(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMci getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface BillInquiryMciResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BillInquiryMciResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ int getStatus(); /** - * optional string message = 3; + * string message = 3; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * @return Whether the midTerm field is set. */ boolean hasMidTerm(); /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * @return The midTerm. */ net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getMidTerm(); + /** + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + */ + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder getMidTermOrBuilder(); /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * @return Whether the lastTerm field is set. */ boolean hasLastTerm(); /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * @return The lastTerm. */ net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getLastTerm(); + /** + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + */ + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder getLastTermOrBuilder(); } /** * Protobuf type {@code proto.BillInquiryMciResponse} */ - public static final class BillInquiryMciResponse extends - com.google.protobuf.GeneratedMessageLite< - BillInquiryMciResponse, BillInquiryMciResponse.Builder> implements + public static final class BillInquiryMciResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BillInquiryMciResponse) BillInquiryMciResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BillInquiryMciResponse.newBuilder() to construct. + private BillInquiryMciResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BillInquiryMciResponse() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BillInquiryMciResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BillInquiryMciResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 34: { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder subBuilder = null; + if (midTerm_ != null) { + subBuilder = midTerm_.toBuilder(); + } + midTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(midTerm_); + midTerm_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder subBuilder = null; + if (lastTerm_ != null) { + subBuilder = lastTerm_.toBuilder(); + } + lastTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTerm_); + lastTerm_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.class, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.Builder.class); + } + public interface BillInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BillInquiryMciResponse.BillInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint32 status = 1; + * uint32 status = 1; + * @return The status. */ int getStatus(); /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return The billId. */ long getBillId(); /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return The payId. */ long getPayId(); /** - * optional uint64 amount = 4; + * uint64 amount = 4; + * @return The amount. */ long getAmount(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); @@ -494,152 +944,201 @@ public interface BillInfoOrBuilder extends /** * Protobuf type {@code proto.BillInquiryMciResponse.BillInfo} */ - public static final class BillInfo extends - com.google.protobuf.GeneratedMessageLite< - BillInfo, BillInfo.Builder> implements + public static final class BillInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BillInquiryMciResponse.BillInfo) BillInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use BillInfo.newBuilder() to construct. + private BillInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BillInfo() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BillInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BillInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + status_ = input.readUInt32(); + break; + } + case 16: { + + billId_ = input.readUInt64(); + break; + } + case 24: { + + payId_ = input.readUInt64(); + break; + } + case 32: { + + amount_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_BillInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_BillInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.class, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder.class); + } + public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** - * optional uint32 status = 1; + * uint32 status = 1; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 status = 1; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 status = 1; - */ - private void clearStatus() { - - status_ = 0; - } public static final int BILL_ID_FIELD_NUMBER = 2; private long billId_; /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return The billId. */ + @java.lang.Override public long getBillId() { return billId_; } - /** - * optional uint64 bill_id = 2; - */ - private void setBillId(long value) { - - billId_ = value; - } - /** - * optional uint64 bill_id = 2; - */ - private void clearBillId() { - - billId_ = 0L; - } public static final int PAY_ID_FIELD_NUMBER = 3; private long payId_; /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return The payId. */ + @java.lang.Override public long getPayId() { return payId_; } - /** - * optional uint64 pay_id = 3; - */ - private void setPayId(long value) { - - payId_ = value; - } - /** - * optional uint64 pay_id = 3; - */ - private void clearPayId() { - - payId_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 4; private long amount_; /** - * optional uint64 amount = 4; + * uint64 amount = 4; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 4; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 4; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != 0) { @@ -654,13 +1153,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(4, amount_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -680,580 +1181,716 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, amount_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo other = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo) obj; + + if (getStatus() + != other.getStatus()) return false; + if (getBillId() + != other.getBillId()) return false; + if (getPayId() + != other.getPayId()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + BILL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBillId()); + hash = (37 * hash) + PAY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPayId()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BillInquiryMciResponse.BillInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BillInquiryMciResponse.BillInfo) net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_BillInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_BillInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.class, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + status_ = 0; + + billId_ = 0L; + + payId_ = 0L; + + amount_ = 0L; + + message_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_BillInfo_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo build() { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo buildPartial() { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo result = new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo(this); + result.status_ = status_; + result.billId_ = billId_; + result.payId_ = payId_; + result.amount_ = amount_; + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo) { + return mergeFrom((net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo other) { + if (other == net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance()) return this; + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getBillId() != 0L) { + setBillId(other.getBillId()); + } + if (other.getPayId() != 0L) { + setPayId(other.getPayId()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int status_ ; /** - * optional uint32 status = 1; + * uint32 status = 1; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 1; + * uint32 status = 1; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 1; + * uint32 status = 1; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long billId_ ; /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return The billId. */ + @java.lang.Override public long getBillId() { - return instance.getBillId(); + return billId_; } /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @param value The billId to set. + * @return This builder for chaining. */ public Builder setBillId(long value) { - copyOnWrite(); - instance.setBillId(value); + + billId_ = value; + onChanged(); return this; } /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return This builder for chaining. */ public Builder clearBillId() { - copyOnWrite(); - instance.clearBillId(); + + billId_ = 0L; + onChanged(); return this; } + private long payId_ ; /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return The payId. */ + @java.lang.Override public long getPayId() { - return instance.getPayId(); + return payId_; } /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @param value The payId to set. + * @return This builder for chaining. */ public Builder setPayId(long value) { - copyOnWrite(); - instance.setPayId(value); + + payId_ = value; + onChanged(); return this; } /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return This builder for chaining. */ public Builder clearPayId() { - copyOnWrite(); - instance.clearPayId(); + + payId_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 4; + * uint64 amount = 4; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 4; + * uint64 amount = 4; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 4; + * uint64 amount = 4; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.BillInquiryMciResponse.BillInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo other = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo) arg1; - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - billId_ = visitor.visitLong(billId_ != 0L, billId_, - other.billId_ != 0L, other.billId_); - payId_ = visitor.visitLong(payId_ != 0L, payId_, - other.payId_ != 0L, other.payId_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - status_ = input.readUInt32(); - break; - } - case 16: { - - billId_ = input.readUInt64(); - break; - } - case 24: { - - payId_ = input.readUInt64(); - break; - } - case 32: { - - amount_ = input.readUInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.BillInquiryMciResponse.BillInfo) + } + // @@protoc_insertion_point(class_scope:proto.BillInquiryMciResponse.BillInfo) private static final net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BillInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo(); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BillInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - * optional uint32 status = 2; - */ - public int getStatus() { - return status_; - } - /** - * optional uint32 status = 2; - */ - private void setStatus(int value) { - - status_ = value; - } + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ - private void clearStatus() { - - status_ = 0; + @java.lang.Override + public int getStatus() { + return status_; } public static final int MESSAGE_FIELD_NUMBER = 3; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 3; + * string message = 3; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 3; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 3; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 3; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MID_TERM_FIELD_NUMBER = 4; private net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo midTerm_; /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * @return Whether the midTerm field is set. */ + @java.lang.Override public boolean hasMidTerm() { return midTerm_ != null; } /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * @return The midTerm. */ + @java.lang.Override public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getMidTerm() { return midTerm_ == null ? net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance() : midTerm_; } /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; - */ - private void setMidTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - if (value == null) { - throw new NullPointerException(); - } - midTerm_ = value; - - } - /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; - */ - private void setMidTerm( - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder builderForValue) { - midTerm_ = builderForValue.build(); - - } - /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; - */ - private void mergeMidTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - if (midTerm_ != null && - midTerm_ != net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance()) { - midTerm_ = - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.newBuilder(midTerm_).mergeFrom(value).buildPartial(); - } else { - midTerm_ = value; - } - - } - /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; */ - private void clearMidTerm() { midTerm_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder getMidTermOrBuilder() { + return getMidTerm(); } public static final int LAST_TERM_FIELD_NUMBER = 5; private net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo lastTerm_; /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * @return Whether the lastTerm field is set. */ + @java.lang.Override public boolean hasLastTerm() { return lastTerm_ != null; } /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * @return The lastTerm. */ + @java.lang.Override public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getLastTerm() { return lastTerm_ == null ? net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance() : lastTerm_; } /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; - */ - private void setLastTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - if (value == null) { - throw new NullPointerException(); - } - lastTerm_ = value; - - } - /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; - */ - private void setLastTerm( - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder builderForValue) { - lastTerm_ = builderForValue.build(); - - } - /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; */ - private void mergeLastTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - if (lastTerm_ != null && - lastTerm_ != net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance()) { - lastTerm_ = - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.newBuilder(lastTerm_).mergeFrom(value).buildPartial(); - } else { - lastTerm_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder getLastTermOrBuilder() { + return getLastTerm(); } - /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; - */ - private void clearLastTerm() { lastTerm_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1262,8 +1899,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != 0) { output.writeUInt32(2, status_); } - if (!message_.isEmpty()) { - output.writeString(3, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (midTerm_ != null) { output.writeMessage(4, getMidTerm()); @@ -1271,10 +1908,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lastTerm_ != null) { output.writeMessage(5, getLastTerm()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1286,9 +1925,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, status_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (midTerm_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1298,440 +1936,938 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLastTerm()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse other = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (hasMidTerm() != other.hasMidTerm()) return false; + if (hasMidTerm()) { + if (!getMidTerm() + .equals(other.getMidTerm())) return false; + } + if (hasLastTerm() != other.hasLastTerm()) return false; + if (hasLastTerm()) { + if (!getLastTerm() + .equals(other.getLastTerm())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (hasMidTerm()) { + hash = (37 * hash) + MID_TERM_FIELD_NUMBER; + hash = (53 * hash) + getMidTerm().hashCode(); + } + if (hasLastTerm()) { + hash = (37 * hash) + LAST_TERM_FIELD_NUMBER; + hash = (53 * hash) + getLastTerm().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BillInquiryMciResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BillInquiryMciResponse) net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.class, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + message_ = ""; + + if (midTermBuilder_ == null) { + midTerm_ = null; + } else { + midTerm_ = null; + midTermBuilder_ = null; + } + if (lastTermBuilder_ == null) { + lastTerm_ = null; + } else { + lastTerm_ = null; + lastTermBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoBillInquiryMci.internal_static_proto_BillInquiryMciResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse build() { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse buildPartial() { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse result = new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.message_ = message_; + if (midTermBuilder_ == null) { + result.midTerm_ = midTerm_; + } else { + result.midTerm_ = midTermBuilder_.build(); + } + if (lastTermBuilder_ == null) { + result.lastTerm_ = lastTerm_; + } else { + result.lastTerm_ = lastTermBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse) { + return mergeFrom((net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse other) { + if (other == net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.hasMidTerm()) { + mergeMidTerm(other.getMidTerm()); + } + if (other.hasLastTerm()) { + mergeLastTerm(other.getLastTerm()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ ; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 3; + * string message = 3; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 3; + * string message = 3; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 3; + * string message = 3; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 3; + * string message = 3; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo midTerm_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder> midTermBuilder_; /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * @return Whether the midTerm field is set. */ public boolean hasMidTerm() { - return instance.hasMidTerm(); + return midTermBuilder_ != null || midTerm_ != null; } /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * @return The midTerm. */ public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getMidTerm() { - return instance.getMidTerm(); + if (midTermBuilder_ == null) { + return midTerm_ == null ? net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance() : midTerm_; + } else { + return midTermBuilder_.getMessage(); + } } /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; */ public Builder setMidTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - copyOnWrite(); - instance.setMidTerm(value); - return this; + if (midTermBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + midTerm_ = value; + onChanged(); + } else { + midTermBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; */ public Builder setMidTerm( net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder builderForValue) { - copyOnWrite(); - instance.setMidTerm(builderForValue); + if (midTermBuilder_ == null) { + midTerm_ = builderForValue.build(); + onChanged(); + } else { + midTermBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; */ public Builder mergeMidTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - copyOnWrite(); - instance.mergeMidTerm(value); + if (midTermBuilder_ == null) { + if (midTerm_ != null) { + midTerm_ = + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.newBuilder(midTerm_).mergeFrom(value).buildPartial(); + } else { + midTerm_ = value; + } + onChanged(); + } else { + midTermBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; */ - public Builder clearMidTerm() { copyOnWrite(); - instance.clearMidTerm(); + public Builder clearMidTerm() { + if (midTermBuilder_ == null) { + midTerm_ = null; + onChanged(); + } else { + midTerm_ = null; + midTermBuilder_ = null; + } + return this; } + /** + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + */ + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder getMidTermBuilder() { + + onChanged(); + return getMidTermFieldBuilder().getBuilder(); + } + /** + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + */ + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder getMidTermOrBuilder() { + if (midTermBuilder_ != null) { + return midTermBuilder_.getMessageOrBuilder(); + } else { + return midTerm_ == null ? + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance() : midTerm_; + } + } + /** + * .proto.BillInquiryMciResponse.BillInfo mid_term = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder> + getMidTermFieldBuilder() { + if (midTermBuilder_ == null) { + midTermBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder>( + getMidTerm(), + getParentForChildren(), + isClean()); + midTerm_ = null; + } + return midTermBuilder_; + } + private net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo lastTerm_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder> lastTermBuilder_; /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * @return Whether the lastTerm field is set. */ public boolean hasLastTerm() { - return instance.hasLastTerm(); + return lastTermBuilder_ != null || lastTerm_ != null; } /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * @return The lastTerm. */ public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo getLastTerm() { - return instance.getLastTerm(); + if (lastTermBuilder_ == null) { + return lastTerm_ == null ? net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance() : lastTerm_; + } else { + return lastTermBuilder_.getMessage(); + } } /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; */ public Builder setLastTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - copyOnWrite(); - instance.setLastTerm(value); - return this; + if (lastTermBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTerm_ = value; + onChanged(); + } else { + lastTermBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; */ public Builder setLastTerm( net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder builderForValue) { - copyOnWrite(); - instance.setLastTerm(builderForValue); + if (lastTermBuilder_ == null) { + lastTerm_ = builderForValue.build(); + onChanged(); + } else { + lastTermBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; */ public Builder mergeLastTerm(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo value) { - copyOnWrite(); - instance.mergeLastTerm(value); + if (lastTermBuilder_ == null) { + if (lastTerm_ != null) { + lastTerm_ = + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.newBuilder(lastTerm_).mergeFrom(value).buildPartial(); + } else { + lastTerm_ = value; + } + onChanged(); + } else { + lastTermBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.BillInquiryMciResponse.BillInfo last_term = 5; + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; */ - public Builder clearLastTerm() { copyOnWrite(); - instance.clearLastTerm(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.BillInquiryMciResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse other = (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - midTerm_ = visitor.visitMessage(midTerm_, other.midTerm_); - lastTerm_ = visitor.visitMessage(lastTerm_, other.lastTerm_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearLastTerm() { + if (lastTermBuilder_ == null) { + lastTerm_ = null; + onChanged(); + } else { + lastTerm_ = null; + lastTermBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - status_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 34: { - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder subBuilder = null; - if (midTerm_ != null) { - subBuilder = midTerm_.toBuilder(); - } - midTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(midTerm_); - midTerm_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder subBuilder = null; - if (lastTerm_ != null) { - subBuilder = lastTerm_.toBuilder(); - } - lastTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastTerm_); - lastTerm_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + */ + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder getLastTermBuilder() { + + onChanged(); + return getLastTermFieldBuilder().getBuilder(); + } + /** + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + */ + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder getLastTermOrBuilder() { + if (lastTermBuilder_ != null) { + return lastTermBuilder_.getMessageOrBuilder(); + } else { + return lastTerm_ == null ? + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.getDefaultInstance() : lastTerm_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.BillInquiryMciResponse.BillInfo last_term = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder> + getLastTermFieldBuilder() { + if (lastTermBuilder_ == null) { + lastTermBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse.BillInfoOrBuilder>( + getLastTerm(), + getParentForChildren(), + isClean()); + lastTerm_ = null; } + return lastTermBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.BillInquiryMciResponse) + } // @@protoc_insertion_point(class_scope:proto.BillInquiryMciResponse) private static final net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BillInquiryMciResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse(); } public static net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillInquiryMciResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BillInquiryMciResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryMci.BillInquiryMciResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BillInquiryMci_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BillInquiryMci_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BillInquiryMciResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BillInquiryMciResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BillInquiryMciResponse_BillInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BillInquiryMciResponse_BillInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024BillInquiryMci.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\"H\n\016BillInquiryMci\022\037" + + "\n\007request\030\001 \001(\0132\016.proto.Request\022\025\n\rmobil" + + "e_number\030\002 \001(\004\"\257\002\n\026BillInquiryMciRespons" + + "e\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\016\n\006" + + "status\030\002 \001(\r\022\017\n\007message\030\003 \001(\t\0228\n\010mid_ter" + + "m\030\004 \001(\0132&.proto.BillInquiryMciResponse.B" + + "illInfo\0229\n\tlast_term\030\005 \001(\0132&.proto.BillI" + + "nquiryMciResponse.BillInfo\032\\\n\010BillInfo\022\016" + + "\n\006status\030\001 \001(\r\022\017\n\007bill_id\030\002 \001(\004\022\016\n\006pay_i" + + "d\030\003 \001(\004\022\016\n\006amount\030\004 \001(\004\022\017\n\007message\030\005 \001(\t" + + "B%\n\016net.iGap.protoB\023ProtoBillInquiryMcib" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_BillInquiryMci_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_BillInquiryMci_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BillInquiryMci_descriptor, + new java.lang.String[] { "Request", "MobileNumber", }); + internal_static_proto_BillInquiryMciResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_BillInquiryMciResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BillInquiryMciResponse_descriptor, + new java.lang.String[] { "Response", "Status", "Message", "MidTerm", "LastTerm", }); + internal_static_proto_BillInquiryMciResponse_BillInfo_descriptor = + internal_static_proto_BillInquiryMciResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_BillInquiryMciResponse_BillInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BillInquiryMciResponse_BillInfo_descriptor, + new java.lang.String[] { "Status", "BillId", "PayId", "Amount", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoBillInquiryTelecom.java b/src/main/java/net/iGap/proto/ProtoBillInquiryTelecom.java index 2c3856c..76352b7 100644 --- a/src/main/java/net/iGap/proto/ProtoBillInquiryTelecom.java +++ b/src/main/java/net/iGap/proto/ProtoBillInquiryTelecom.java @@ -8,137 +8,203 @@ private ProtoBillInquiryTelecom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface BillInquiryTelecomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BillInquiryTelecom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 province_code = 2; + * uint32 province_code = 2; + * @return The provinceCode. */ int getProvinceCode(); /** - * optional uint64 telephone_number = 3; + * uint64 telephone_number = 3; + * @return The telephoneNumber. */ long getTelephoneNumber(); } /** * Protobuf type {@code proto.BillInquiryTelecom} */ - public static final class BillInquiryTelecom extends - com.google.protobuf.GeneratedMessageLite< - BillInquiryTelecom, BillInquiryTelecom.Builder> implements + public static final class BillInquiryTelecom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BillInquiryTelecom) BillInquiryTelecomOrBuilder { + private static final long serialVersionUID = 0L; + // Use BillInquiryTelecom.newBuilder() to construct. + private BillInquiryTelecom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BillInquiryTelecom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BillInquiryTelecom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BillInquiryTelecom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + provinceCode_ = input.readUInt32(); + break; + } + case 24: { + + telephoneNumber_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.class, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PROVINCE_CODE_FIELD_NUMBER = 2; private int provinceCode_; /** - * optional uint32 province_code = 2; + * uint32 province_code = 2; + * @return The provinceCode. */ + @java.lang.Override public int getProvinceCode() { return provinceCode_; } - /** - * optional uint32 province_code = 2; - */ - private void setProvinceCode(int value) { - - provinceCode_ = value; - } - /** - * optional uint32 province_code = 2; - */ - private void clearProvinceCode() { - - provinceCode_ = 0; - } public static final int TELEPHONE_NUMBER_FIELD_NUMBER = 3; private long telephoneNumber_; /** - * optional uint64 telephone_number = 3; + * uint64 telephone_number = 3; + * @return The telephoneNumber. */ + @java.lang.Override public long getTelephoneNumber() { return telephoneNumber_; } - /** - * optional uint64 telephone_number = 3; - */ - private void setTelephoneNumber(long value) { - - telephoneNumber_ = value; - } - /** - * optional uint64 telephone_number = 3; - */ - private void clearTelephoneNumber() { - - telephoneNumber_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (telephoneNumber_ != 0L) { output.writeUInt64(3, telephoneNumber_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,457 +237,899 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, telephoneNumber_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom other = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getProvinceCode() + != other.getProvinceCode()) return false; + if (getTelephoneNumber() + != other.getTelephoneNumber()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PROVINCE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getProvinceCode(); + hash = (37 * hash) + TELEPHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTelephoneNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BillInquiryTelecom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BillInquiryTelecom) net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.class, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.Builder.class); + } + // Construct using net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + provinceCode_ = 0; + + telephoneNumber_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom getDefaultInstanceForType() { + return net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom build() { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom buildPartial() { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom result = new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.provinceCode_ = provinceCode_; + result.telephoneNumber_ = telephoneNumber_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom) { + return mergeFrom((net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom other) { + if (other == net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getProvinceCode() != 0) { + setProvinceCode(other.getProvinceCode()); + } + if (other.getTelephoneNumber() != 0L) { + setTelephoneNumber(other.getTelephoneNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int provinceCode_ ; /** - * optional uint32 province_code = 2; + * uint32 province_code = 2; + * @return The provinceCode. */ + @java.lang.Override public int getProvinceCode() { - return instance.getProvinceCode(); + return provinceCode_; } /** - * optional uint32 province_code = 2; + * uint32 province_code = 2; + * @param value The provinceCode to set. + * @return This builder for chaining. */ public Builder setProvinceCode(int value) { - copyOnWrite(); - instance.setProvinceCode(value); + + provinceCode_ = value; + onChanged(); return this; } /** - * optional uint32 province_code = 2; + * uint32 province_code = 2; + * @return This builder for chaining. */ public Builder clearProvinceCode() { - copyOnWrite(); - instance.clearProvinceCode(); + + provinceCode_ = 0; + onChanged(); return this; } + private long telephoneNumber_ ; /** - * optional uint64 telephone_number = 3; + * uint64 telephone_number = 3; + * @return The telephoneNumber. */ + @java.lang.Override public long getTelephoneNumber() { - return instance.getTelephoneNumber(); + return telephoneNumber_; } /** - * optional uint64 telephone_number = 3; + * uint64 telephone_number = 3; + * @param value The telephoneNumber to set. + * @return This builder for chaining. */ public Builder setTelephoneNumber(long value) { - copyOnWrite(); - instance.setTelephoneNumber(value); + + telephoneNumber_ = value; + onChanged(); return this; } /** - * optional uint64 telephone_number = 3; + * uint64 telephone_number = 3; + * @return This builder for chaining. */ public Builder clearTelephoneNumber() { - copyOnWrite(); - instance.clearTelephoneNumber(); + + telephoneNumber_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.BillInquiryTelecom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom other = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom) arg1; - request_ = visitor.visitMessage(request_, other.request_); - provinceCode_ = visitor.visitInt(provinceCode_ != 0, provinceCode_, - other.provinceCode_ != 0, other.provinceCode_); - telephoneNumber_ = visitor.visitLong(telephoneNumber_ != 0L, telephoneNumber_, - other.telephoneNumber_ != 0L, other.telephoneNumber_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - provinceCode_ = input.readUInt32(); - break; - } - case 24: { - telephoneNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.BillInquiryTelecom) } - // @@protoc_insertion_point(class_scope:proto.BillInquiryTelecom) private static final net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BillInquiryTelecom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom(); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillInquiryTelecom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BillInquiryTelecom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface BillInquiryTelecomResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BillInquiryTelecomResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ int getStatus(); /** - * optional string message = 3; + * string message = 3; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * @return Whether the midTerm field is set. */ boolean hasMidTerm(); /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * @return The midTerm. */ net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getMidTerm(); + /** + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + */ + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder getMidTermOrBuilder(); /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * @return Whether the lastTerm field is set. */ boolean hasLastTerm(); /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * @return The lastTerm. */ net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getLastTerm(); + /** + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + */ + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder getLastTermOrBuilder(); } /** * Protobuf type {@code proto.BillInquiryTelecomResponse} */ - public static final class BillInquiryTelecomResponse extends - com.google.protobuf.GeneratedMessageLite< - BillInquiryTelecomResponse, BillInquiryTelecomResponse.Builder> implements + public static final class BillInquiryTelecomResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BillInquiryTelecomResponse) BillInquiryTelecomResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BillInquiryTelecomResponse.newBuilder() to construct. + private BillInquiryTelecomResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BillInquiryTelecomResponse() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BillInquiryTelecomResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BillInquiryTelecomResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 34: { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder subBuilder = null; + if (midTerm_ != null) { + subBuilder = midTerm_.toBuilder(); + } + midTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(midTerm_); + midTerm_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder subBuilder = null; + if (lastTerm_ != null) { + subBuilder = lastTerm_.toBuilder(); + } + lastTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTerm_); + lastTerm_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.class, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.Builder.class); + } + public interface BillInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BillInquiryTelecomResponse.BillInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 bill_id = 1; + * uint64 bill_id = 1; + * @return The billId. */ long getBillId(); /** - * optional uint64 pay_id = 2; + * uint64 pay_id = 2; + * @return The payId. */ long getPayId(); /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return The amount. */ long getAmount(); } /** * Protobuf type {@code proto.BillInquiryTelecomResponse.BillInfo} */ - public static final class BillInfo extends - com.google.protobuf.GeneratedMessageLite< - BillInfo, BillInfo.Builder> implements + public static final class BillInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BillInquiryTelecomResponse.BillInfo) BillInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use BillInfo.newBuilder() to construct. + private BillInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BillInfo() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BillInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BillInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + billId_ = input.readUInt64(); + break; + } + case 16: { + + payId_ = input.readUInt64(); + break; + } + case 24: { + + amount_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_BillInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_BillInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.class, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder.class); + } + public static final int BILL_ID_FIELD_NUMBER = 1; private long billId_; /** - * optional uint64 bill_id = 1; + * uint64 bill_id = 1; + * @return The billId. */ + @java.lang.Override public long getBillId() { return billId_; } - /** - * optional uint64 bill_id = 1; - */ - private void setBillId(long value) { - - billId_ = value; - } - /** - * optional uint64 bill_id = 1; - */ - private void clearBillId() { - - billId_ = 0L; - } public static final int PAY_ID_FIELD_NUMBER = 2; private long payId_; /** - * optional uint64 pay_id = 2; + * uint64 pay_id = 2; + * @return The payId. */ + @java.lang.Override public long getPayId() { return payId_; } - /** - * optional uint64 pay_id = 2; - */ - private void setPayId(long value) { - - payId_ = value; - } - /** - * optional uint64 pay_id = 2; - */ - private void clearPayId() { - - payId_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_; /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 3; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 3; - */ - private void clearAmount() { - - amount_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (billId_ != 0L) { @@ -631,10 +1141,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(3, amount_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -650,498 +1162,585 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, amount_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo other = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo) obj; + + if (getBillId() + != other.getBillId()) return false; + if (getPayId() + != other.getPayId()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BILL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBillId()); + hash = (37 * hash) + PAY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPayId()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BillInquiryTelecomResponse.BillInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BillInquiryTelecomResponse.BillInfo) net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_BillInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_BillInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.class, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + billId_ = 0L; + + payId_ = 0L; + + amount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_BillInfo_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo build() { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo buildPartial() { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo result = new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo(this); + result.billId_ = billId_; + result.payId_ = payId_; + result.amount_ = amount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo) { + return mergeFrom((net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo other) { + if (other == net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance()) return this; + if (other.getBillId() != 0L) { + setBillId(other.getBillId()); + } + if (other.getPayId() != 0L) { + setPayId(other.getPayId()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long billId_ ; /** - * optional uint64 bill_id = 1; + * uint64 bill_id = 1; + * @return The billId. */ + @java.lang.Override public long getBillId() { - return instance.getBillId(); + return billId_; } /** - * optional uint64 bill_id = 1; + * uint64 bill_id = 1; + * @param value The billId to set. + * @return This builder for chaining. */ public Builder setBillId(long value) { - copyOnWrite(); - instance.setBillId(value); + + billId_ = value; + onChanged(); return this; } /** - * optional uint64 bill_id = 1; + * uint64 bill_id = 1; + * @return This builder for chaining. */ public Builder clearBillId() { - copyOnWrite(); - instance.clearBillId(); + + billId_ = 0L; + onChanged(); return this; } + private long payId_ ; /** - * optional uint64 pay_id = 2; + * uint64 pay_id = 2; + * @return The payId. */ + @java.lang.Override public long getPayId() { - return instance.getPayId(); + return payId_; } /** - * optional uint64 pay_id = 2; + * uint64 pay_id = 2; + * @param value The payId to set. + * @return This builder for chaining. */ public Builder setPayId(long value) { - copyOnWrite(); - instance.setPayId(value); + + payId_ = value; + onChanged(); return this; } /** - * optional uint64 pay_id = 2; + * uint64 pay_id = 2; + * @return This builder for chaining. */ public Builder clearPayId() { - copyOnWrite(); - instance.clearPayId(); + + payId_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.BillInquiryTelecomResponse.BillInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo other = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo) arg1; - billId_ = visitor.visitLong(billId_ != 0L, billId_, - other.billId_ != 0L, other.billId_); - payId_ = visitor.visitLong(payId_ != 0L, payId_, - other.payId_ != 0L, other.payId_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - billId_ = input.readUInt64(); - break; - } - case 16: { - - payId_ = input.readUInt64(); - break; - } - case 24: { - - amount_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.BillInquiryTelecomResponse.BillInfo) + } + // @@protoc_insertion_point(class_scope:proto.BillInquiryTelecomResponse.BillInfo) private static final net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BillInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo(); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BillInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - response_ = value; - + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public boolean hasResponse() { + return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 status = 2; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 3; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 3; + * string message = 3; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 3; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 3; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 3; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MID_TERM_FIELD_NUMBER = 4; private net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo midTerm_; /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * @return Whether the midTerm field is set. */ + @java.lang.Override public boolean hasMidTerm() { return midTerm_ != null; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * @return The midTerm. */ + @java.lang.Override public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getMidTerm() { return midTerm_ == null ? net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance() : midTerm_; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; - */ - private void setMidTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - if (value == null) { - throw new NullPointerException(); - } - midTerm_ = value; - - } - /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; - */ - private void setMidTerm( - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder builderForValue) { - midTerm_ = builderForValue.build(); - - } - /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; */ - private void mergeMidTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - if (midTerm_ != null && - midTerm_ != net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance()) { - midTerm_ = - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.newBuilder(midTerm_).mergeFrom(value).buildPartial(); - } else { - midTerm_ = value; - } - - } - /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; - */ - private void clearMidTerm() { midTerm_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder getMidTermOrBuilder() { + return getMidTerm(); } public static final int LAST_TERM_FIELD_NUMBER = 5; private net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo lastTerm_; /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * @return Whether the lastTerm field is set. */ + @java.lang.Override public boolean hasLastTerm() { return lastTerm_ != null; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * @return The lastTerm. */ + @java.lang.Override public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getLastTerm() { return lastTerm_ == null ? net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance() : lastTerm_; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; - */ - private void setLastTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - if (value == null) { - throw new NullPointerException(); - } - lastTerm_ = value; - - } - /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; - */ - private void setLastTerm( - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder builderForValue) { - lastTerm_ = builderForValue.build(); - - } - /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; */ - private void mergeLastTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - if (lastTerm_ != null && - lastTerm_ != net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance()) { - lastTerm_ = - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.newBuilder(lastTerm_).mergeFrom(value).buildPartial(); - } else { - lastTerm_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder getLastTermOrBuilder() { + return getLastTerm(); } - /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; - */ - private void clearLastTerm() { lastTerm_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1150,8 +1749,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != 0) { output.writeUInt32(2, status_); } - if (!message_.isEmpty()) { - output.writeString(3, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (midTerm_ != null) { output.writeMessage(4, getMidTerm()); @@ -1159,10 +1758,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lastTerm_ != null) { output.writeMessage(5, getLastTerm()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1174,9 +1775,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, status_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (midTerm_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1186,440 +1786,938 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLastTerm()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse other = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (hasMidTerm() != other.hasMidTerm()) return false; + if (hasMidTerm()) { + if (!getMidTerm() + .equals(other.getMidTerm())) return false; + } + if (hasLastTerm() != other.hasLastTerm()) return false; + if (hasLastTerm()) { + if (!getLastTerm() + .equals(other.getLastTerm())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (hasMidTerm()) { + hash = (37 * hash) + MID_TERM_FIELD_NUMBER; + hash = (53 * hash) + getMidTerm().hashCode(); + } + if (hasLastTerm()) { + hash = (37 * hash) + LAST_TERM_FIELD_NUMBER; + hash = (53 * hash) + getLastTerm().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BillInquiryTelecomResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BillInquiryTelecomResponse) net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.class, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + message_ = ""; + + if (midTermBuilder_ == null) { + midTerm_ = null; + } else { + midTerm_ = null; + midTermBuilder_ = null; + } + if (lastTermBuilder_ == null) { + lastTerm_ = null; + } else { + lastTerm_ = null; + lastTermBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoBillInquiryTelecom.internal_static_proto_BillInquiryTelecomResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse build() { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse buildPartial() { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse result = new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.message_ = message_; + if (midTermBuilder_ == null) { + result.midTerm_ = midTerm_; + } else { + result.midTerm_ = midTermBuilder_.build(); + } + if (lastTermBuilder_ == null) { + result.lastTerm_ = lastTerm_; + } else { + result.lastTerm_ = lastTermBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse) { + return mergeFrom((net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse other) { + if (other == net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.hasMidTerm()) { + mergeMidTerm(other.getMidTerm()); + } + if (other.hasLastTerm()) { + mergeLastTerm(other.getLastTerm()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ ; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 3; + * string message = 3; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 3; + * string message = 3; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 3; + * string message = 3; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 3; + * string message = 3; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo midTerm_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder> midTermBuilder_; /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * @return Whether the midTerm field is set. */ public boolean hasMidTerm() { - return instance.hasMidTerm(); + return midTermBuilder_ != null || midTerm_ != null; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * @return The midTerm. */ public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getMidTerm() { - return instance.getMidTerm(); + if (midTermBuilder_ == null) { + return midTerm_ == null ? net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance() : midTerm_; + } else { + return midTermBuilder_.getMessage(); + } } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; */ public Builder setMidTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - copyOnWrite(); - instance.setMidTerm(value); - return this; + if (midTermBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + midTerm_ = value; + onChanged(); + } else { + midTermBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; */ public Builder setMidTerm( net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder builderForValue) { - copyOnWrite(); - instance.setMidTerm(builderForValue); + if (midTermBuilder_ == null) { + midTerm_ = builderForValue.build(); + onChanged(); + } else { + midTermBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; */ public Builder mergeMidTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - copyOnWrite(); - instance.mergeMidTerm(value); + if (midTermBuilder_ == null) { + if (midTerm_ != null) { + midTerm_ = + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.newBuilder(midTerm_).mergeFrom(value).buildPartial(); + } else { + midTerm_ = value; + } + onChanged(); + } else { + midTermBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; */ - public Builder clearMidTerm() { copyOnWrite(); - instance.clearMidTerm(); + public Builder clearMidTerm() { + if (midTermBuilder_ == null) { + midTerm_ = null; + onChanged(); + } else { + midTerm_ = null; + midTermBuilder_ = null; + } + return this; } + /** + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + */ + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder getMidTermBuilder() { + + onChanged(); + return getMidTermFieldBuilder().getBuilder(); + } + /** + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + */ + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder getMidTermOrBuilder() { + if (midTermBuilder_ != null) { + return midTermBuilder_.getMessageOrBuilder(); + } else { + return midTerm_ == null ? + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance() : midTerm_; + } + } + /** + * .proto.BillInquiryTelecomResponse.BillInfo mid_term = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder> + getMidTermFieldBuilder() { + if (midTermBuilder_ == null) { + midTermBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder>( + getMidTerm(), + getParentForChildren(), + isClean()); + midTerm_ = null; + } + return midTermBuilder_; + } + private net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo lastTerm_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder> lastTermBuilder_; /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * @return Whether the lastTerm field is set. */ public boolean hasLastTerm() { - return instance.hasLastTerm(); + return lastTermBuilder_ != null || lastTerm_ != null; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * @return The lastTerm. */ public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo getLastTerm() { - return instance.getLastTerm(); + if (lastTermBuilder_ == null) { + return lastTerm_ == null ? net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance() : lastTerm_; + } else { + return lastTermBuilder_.getMessage(); + } } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; */ public Builder setLastTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - copyOnWrite(); - instance.setLastTerm(value); - return this; + if (lastTermBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTerm_ = value; + onChanged(); + } else { + lastTermBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; */ public Builder setLastTerm( net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder builderForValue) { - copyOnWrite(); - instance.setLastTerm(builderForValue); + if (lastTermBuilder_ == null) { + lastTerm_ = builderForValue.build(); + onChanged(); + } else { + lastTermBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; */ public Builder mergeLastTerm(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo value) { - copyOnWrite(); - instance.mergeLastTerm(value); + if (lastTermBuilder_ == null) { + if (lastTerm_ != null) { + lastTerm_ = + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.newBuilder(lastTerm_).mergeFrom(value).buildPartial(); + } else { + lastTerm_ = value; + } + onChanged(); + } else { + lastTermBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; */ - public Builder clearLastTerm() { copyOnWrite(); - instance.clearLastTerm(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.BillInquiryTelecomResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse other = (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - midTerm_ = visitor.visitMessage(midTerm_, other.midTerm_); - lastTerm_ = visitor.visitMessage(lastTerm_, other.lastTerm_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearLastTerm() { + if (lastTermBuilder_ == null) { + lastTerm_ = null; + onChanged(); + } else { + lastTerm_ = null; + lastTermBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - status_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 34: { - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder subBuilder = null; - if (midTerm_ != null) { - subBuilder = midTerm_.toBuilder(); - } - midTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(midTerm_); - midTerm_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder subBuilder = null; - if (lastTerm_ != null) { - subBuilder = lastTerm_.toBuilder(); - } - lastTerm_ = input.readMessage(net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastTerm_); - lastTerm_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + */ + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder getLastTermBuilder() { + + onChanged(); + return getLastTermFieldBuilder().getBuilder(); + } + /** + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + */ + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder getLastTermOrBuilder() { + if (lastTermBuilder_ != null) { + return lastTermBuilder_.getMessageOrBuilder(); + } else { + return lastTerm_ == null ? + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.getDefaultInstance() : lastTerm_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.BillInquiryTelecomResponse.BillInfo last_term = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder> + getLastTermFieldBuilder() { + if (lastTermBuilder_ == null) { + lastTermBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfo.Builder, net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse.BillInfoOrBuilder>( + getLastTerm(), + getParentForChildren(), + isClean()); + lastTerm_ = null; } + return lastTermBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.BillInquiryTelecomResponse) + } // @@protoc_insertion_point(class_scope:proto.BillInquiryTelecomResponse) private static final net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BillInquiryTelecomResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse(); } public static net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillInquiryTelecomResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BillInquiryTelecomResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoBillInquiryTelecom.BillInquiryTelecomResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BillInquiryTelecom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BillInquiryTelecom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BillInquiryTelecomResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BillInquiryTelecomResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BillInquiryTelecomResponse_BillInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BillInquiryTelecomResponse_BillInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030BillInquiryTelecom.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"f\n\022BillInquiryT" + + "elecom\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\025\n\rprovince_code\030\002 \001(\r\022\030\n\020telephone_numb" + + "er\030\003 \001(\004\"\232\002\n\032BillInquiryTelecomResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\022\016\n\006st" + + "atus\030\002 \001(\r\022\017\n\007message\030\003 \001(\t\022<\n\010mid_term\030" + + "\004 \001(\0132*.proto.BillInquiryTelecomResponse" + + ".BillInfo\022=\n\tlast_term\030\005 \001(\0132*.proto.Bil" + + "lInquiryTelecomResponse.BillInfo\032;\n\010Bill" + + "Info\022\017\n\007bill_id\030\001 \001(\004\022\016\n\006pay_id\030\002 \001(\004\022\016\n" + + "\006amount\030\003 \001(\004B)\n\016net.iGap.protoB\027ProtoBi" + + "llInquiryTelecomb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_BillInquiryTelecom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_BillInquiryTelecom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BillInquiryTelecom_descriptor, + new java.lang.String[] { "Request", "ProvinceCode", "TelephoneNumber", }); + internal_static_proto_BillInquiryTelecomResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_BillInquiryTelecomResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BillInquiryTelecomResponse_descriptor, + new java.lang.String[] { "Response", "Status", "Message", "MidTerm", "LastTerm", }); + internal_static_proto_BillInquiryTelecomResponse_BillInfo_descriptor = + internal_static_proto_BillInquiryTelecomResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_BillInquiryTelecomResponse_BillInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BillInquiryTelecomResponse_BillInfo_descriptor, + new java.lang.String[] { "BillId", "PayId", "Amount", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoCallInfo.java b/src/main/java/net/iGap/proto/ProtoCallInfo.java index 0eac5ee..60c3062 100644 --- a/src/main/java/net/iGap/proto/ProtoCallInfo.java +++ b/src/main/java/net/iGap/proto/ProtoCallInfo.java @@ -8,109 +8,181 @@ private ProtoCallInfo() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface CallInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.CallInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional int64 call_id = 2; + * int64 call_id = 2; + * @return The callId. */ long getCallId(); } /** * Protobuf type {@code proto.CallInfo} */ - public static final class CallInfo extends - com.google.protobuf.GeneratedMessageLite< - CallInfo, CallInfo.Builder> implements + public static final class CallInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.CallInfo) CallInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CallInfo.newBuilder() to construct. + private CallInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private CallInfo() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CallInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CallInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + callId_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfo.class, net.iGap.proto.ProtoCallInfo.CallInfo.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CALL_ID_FIELD_NUMBER = 2; private long callId_; /** - * optional int64 call_id = 2; + * int64 call_id = 2; + * @return The callId. */ + @java.lang.Override public long getCallId() { return callId_; } - /** - * optional int64 call_id = 2; - */ - private void setCallId(long value) { - - callId_ = value; - } - /** - * optional int64 call_id = 2; - */ - private void clearCallId() { - - callId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (callId_ != 0L) { output.writeInt64(2, callId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,334 +208,691 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, callId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoCallInfo.CallInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallInfo.CallInfo other = (net.iGap.proto.ProtoCallInfo.CallInfo) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getCallId() + != other.getCallId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CALL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCallId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoCallInfo.CallInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.CallInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoCallInfo.CallInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.CallInfo) net.iGap.proto.ProtoCallInfo.CallInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfo.class, net.iGap.proto.ProtoCallInfo.CallInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoCallInfo.CallInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + callId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallInfo.CallInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfo build() { + net.iGap.proto.ProtoCallInfo.CallInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfo buildPartial() { + net.iGap.proto.ProtoCallInfo.CallInfo result = new net.iGap.proto.ProtoCallInfo.CallInfo(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.callId_ = callId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoCallInfo.CallInfo) { + return mergeFrom((net.iGap.proto.ProtoCallInfo.CallInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoCallInfo.CallInfo other) { + if (other == net.iGap.proto.ProtoCallInfo.CallInfo.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getCallId() != 0L) { + setCallId(other.getCallId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoCallInfo.CallInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallInfo.CallInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long callId_ ; /** - * optional int64 call_id = 2; + * int64 call_id = 2; + * @return The callId. */ + @java.lang.Override public long getCallId() { - return instance.getCallId(); + return callId_; } /** - * optional int64 call_id = 2; + * int64 call_id = 2; + * @param value The callId to set. + * @return This builder for chaining. */ public Builder setCallId(long value) { - copyOnWrite(); - instance.setCallId(value); + + callId_ = value; + onChanged(); return this; } /** - * optional int64 call_id = 2; + * int64 call_id = 2; + * @return This builder for chaining. */ public Builder clearCallId() { - copyOnWrite(); - instance.clearCallId(); + + callId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.CallInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoCallInfo.CallInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoCallInfo.CallInfo other = (net.iGap.proto.ProtoCallInfo.CallInfo) arg1; - request_ = visitor.visitMessage(request_, other.request_); - callId_ = visitor.visitLong(callId_ != 0L, callId_, - other.callId_ != 0L, other.callId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - callId_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoCallInfo.CallInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.CallInfo) + } + // @@protoc_insertion_point(class_scope:proto.CallInfo) private static final net.iGap.proto.ProtoCallInfo.CallInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new CallInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallInfo.CallInfo(); } public static net.iGap.proto.ProtoCallInfo.CallInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface CallInfoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.CallInfoResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional int64 create_at = 2; + * int64 create_at = 2; + * @return The createAt. */ long getCreateAt(); /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return The callId. */ long getCallId(); /** - * optional int64 phone_number = 4; + * int64 phone_number = 4; + * @return The phoneNumber. */ long getPhoneNumber(); /** - * optional uint32 duration = 5; + * uint32 duration = 5; + * @return The duration. */ int getDuration(); /** - * optional uint32 price = 6; + * uint32 price = 6; + * @return The price. */ int getPrice(); /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @return The enum numeric value on the wire for finalState. */ int getFinalStateValue(); /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @return The finalState. */ net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum getFinalState(); } /** * Protobuf type {@code proto.CallInfoResponse} */ - public static final class CallInfoResponse extends - com.google.protobuf.GeneratedMessageLite< - CallInfoResponse, CallInfoResponse.Builder> implements + public static final class CallInfoResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.CallInfoResponse) CallInfoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CallInfoResponse.newBuilder() to construct. + private CallInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private CallInfoResponse() { + finalState_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CallInfoResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CallInfoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + createAt_ = input.readInt64(); + break; + } + case 24: { + + callId_ = input.readInt64(); + break; + } + case 32: { + + phoneNumber_ = input.readInt64(); + break; + } + case 40: { + + duration_ = input.readUInt32(); + break; + } + case 48: { + + price_ = input.readUInt32(); + break; + } + case 56: { + int rawValue = input.readEnum(); + + finalState_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfoResponse.class, net.iGap.proto.ProtoCallInfo.CallInfoResponse.Builder.class); + } + /** * Protobuf enum {@code proto.CallInfoResponse.FinalStateEnum} */ public enum FinalStateEnum - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ @@ -508,10 +939,16 @@ public enum FinalStateEnum public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -519,6 +956,10 @@ public static FinalStateEnum valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static FinalStateEnum forNumber(int value) { switch (value) { case 0: return UNKNOWN; @@ -542,6 +983,37 @@ public FinalStateEnum findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.CallInfoResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final FinalStateEnum[] VALUES = values(); + + public static FinalStateEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private FinalStateEnum(int value) { @@ -554,209 +1026,115 @@ private FinalStateEnum(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int CREATE_AT_FIELD_NUMBER = 2; private long createAt_; /** - * optional int64 create_at = 2; + * int64 create_at = 2; + * @return The createAt. */ + @java.lang.Override public long getCreateAt() { return createAt_; } - /** - * optional int64 create_at = 2; - */ - private void setCreateAt(long value) { - - createAt_ = value; - } - /** - * optional int64 create_at = 2; - */ - private void clearCreateAt() { - - createAt_ = 0L; - } public static final int CALL_ID_FIELD_NUMBER = 3; private long callId_; /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return The callId. */ + @java.lang.Override public long getCallId() { return callId_; } - /** - * optional int64 call_id = 3; - */ - private void setCallId(long value) { - - callId_ = value; - } - /** - * optional int64 call_id = 3; - */ - private void clearCallId() { - - callId_ = 0L; - } public static final int PHONE_NUMBER_FIELD_NUMBER = 4; private long phoneNumber_; /** - * optional int64 phone_number = 4; + * int64 phone_number = 4; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { return phoneNumber_; } - /** - * optional int64 phone_number = 4; - */ - private void setPhoneNumber(long value) { - - phoneNumber_ = value; - } - /** - * optional int64 phone_number = 4; - */ - private void clearPhoneNumber() { - - phoneNumber_ = 0L; - } public static final int DURATION_FIELD_NUMBER = 5; private int duration_; /** - * optional uint32 duration = 5; + * uint32 duration = 5; + * @return The duration. */ + @java.lang.Override public int getDuration() { return duration_; } - /** - * optional uint32 duration = 5; - */ - private void setDuration(int value) { - - duration_ = value; - } - /** - * optional uint32 duration = 5; - */ - private void clearDuration() { - - duration_ = 0; - } public static final int PRICE_FIELD_NUMBER = 6; private int price_; /** - * optional uint32 price = 6; + * uint32 price = 6; + * @return The price. */ + @java.lang.Override public int getPrice() { return price_; } - /** - * optional uint32 price = 6; - */ - private void setPrice(int value) { - - price_ = value; - } - /** - * optional uint32 price = 6; - */ - private void clearPrice() { - - price_ = 0; - } public static final int FINALSTATE_FIELD_NUMBER = 7; private int finalState_; /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @return The enum numeric value on the wire for finalState. */ - public int getFinalStateValue() { + @java.lang.Override public int getFinalStateValue() { return finalState_; } /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @return The finalState. */ - public net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum getFinalState() { - net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum result = net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.forNumber(finalState_); + @java.lang.Override public net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum getFinalState() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum result = net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.valueOf(finalState_); return result == null ? net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.UNRECOGNIZED : result; } - /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; - */ - private void setFinalStateValue(int value) { - finalState_ = value; - } - /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; - */ - private void setFinalState(net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum value) { - if (value == null) { - throw new NullPointerException(); - } - - finalState_ = value.getNumber(); - } - /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; - */ - private void clearFinalState() { - - finalState_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -780,10 +1158,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (finalState_ != net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.UNKNOWN.getNumber()) { output.writeEnum(7, finalState_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -815,438 +1195,785 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, finalState_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoCallInfo.CallInfoResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallInfo.CallInfoResponse other = (net.iGap.proto.ProtoCallInfo.CallInfoResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getCreateAt() + != other.getCreateAt()) return false; + if (getCallId() + != other.getCallId()) return false; + if (getPhoneNumber() + != other.getPhoneNumber()) return false; + if (getDuration() + != other.getDuration()) return false; + if (getPrice() + != other.getPrice()) return false; + if (finalState_ != other.finalState_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CREATE_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreateAt()); + hash = (37 * hash) + CALL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCallId()); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhoneNumber()); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice(); + hash = (37 * hash) + FINALSTATE_FIELD_NUMBER; + hash = (53 * hash) + finalState_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoCallInfo.CallInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.CallInfoResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoCallInfo.CallInfoResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.CallInfoResponse) net.iGap.proto.ProtoCallInfo.CallInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfoResponse.class, net.iGap.proto.ProtoCallInfo.CallInfoResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoCallInfo.CallInfoResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + createAt_ = 0L; + + callId_ = 0L; + + phoneNumber_ = 0L; + + duration_ = 0; + + price_ = 0; + + finalState_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfoResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallInfo.CallInfoResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfoResponse build() { + net.iGap.proto.ProtoCallInfo.CallInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfoResponse buildPartial() { + net.iGap.proto.ProtoCallInfo.CallInfoResponse result = new net.iGap.proto.ProtoCallInfo.CallInfoResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.createAt_ = createAt_; + result.callId_ = callId_; + result.phoneNumber_ = phoneNumber_; + result.duration_ = duration_; + result.price_ = price_; + result.finalState_ = finalState_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoCallInfo.CallInfoResponse) { + return mergeFrom((net.iGap.proto.ProtoCallInfo.CallInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoCallInfo.CallInfoResponse other) { + if (other == net.iGap.proto.ProtoCallInfo.CallInfoResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getCreateAt() != 0L) { + setCreateAt(other.getCreateAt()); + } + if (other.getCallId() != 0L) { + setCallId(other.getCallId()); + } + if (other.getPhoneNumber() != 0L) { + setPhoneNumber(other.getPhoneNumber()); + } + if (other.getDuration() != 0) { + setDuration(other.getDuration()); + } + if (other.getPrice() != 0) { + setPrice(other.getPrice()); + } + if (other.finalState_ != 0) { + setFinalStateValue(other.getFinalStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoCallInfo.CallInfoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallInfo.CallInfoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long createAt_ ; /** - * optional int64 create_at = 2; + * int64 create_at = 2; + * @return The createAt. */ + @java.lang.Override public long getCreateAt() { - return instance.getCreateAt(); + return createAt_; } /** - * optional int64 create_at = 2; + * int64 create_at = 2; + * @param value The createAt to set. + * @return This builder for chaining. */ public Builder setCreateAt(long value) { - copyOnWrite(); - instance.setCreateAt(value); + + createAt_ = value; + onChanged(); return this; } /** - * optional int64 create_at = 2; + * int64 create_at = 2; + * @return This builder for chaining. */ public Builder clearCreateAt() { - copyOnWrite(); - instance.clearCreateAt(); + + createAt_ = 0L; + onChanged(); return this; } + private long callId_ ; /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return The callId. */ + @java.lang.Override public long getCallId() { - return instance.getCallId(); + return callId_; } /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @param value The callId to set. + * @return This builder for chaining. */ public Builder setCallId(long value) { - copyOnWrite(); - instance.setCallId(value); + + callId_ = value; + onChanged(); return this; } /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return This builder for chaining. */ public Builder clearCallId() { - copyOnWrite(); - instance.clearCallId(); + + callId_ = 0L; + onChanged(); return this; } + private long phoneNumber_ ; /** - * optional int64 phone_number = 4; + * int64 phone_number = 4; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { - return instance.getPhoneNumber(); + return phoneNumber_; } /** - * optional int64 phone_number = 4; + * int64 phone_number = 4; + * @param value The phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumber(long value) { - copyOnWrite(); - instance.setPhoneNumber(value); + + phoneNumber_ = value; + onChanged(); return this; } /** - * optional int64 phone_number = 4; + * int64 phone_number = 4; + * @return This builder for chaining. */ public Builder clearPhoneNumber() { - copyOnWrite(); - instance.clearPhoneNumber(); + + phoneNumber_ = 0L; + onChanged(); return this; } + private int duration_ ; /** - * optional uint32 duration = 5; + * uint32 duration = 5; + * @return The duration. */ + @java.lang.Override public int getDuration() { - return instance.getDuration(); + return duration_; } /** - * optional uint32 duration = 5; + * uint32 duration = 5; + * @param value The duration to set. + * @return This builder for chaining. */ public Builder setDuration(int value) { - copyOnWrite(); - instance.setDuration(value); + + duration_ = value; + onChanged(); return this; } /** - * optional uint32 duration = 5; + * uint32 duration = 5; + * @return This builder for chaining. */ public Builder clearDuration() { - copyOnWrite(); - instance.clearDuration(); + + duration_ = 0; + onChanged(); return this; } + private int price_ ; /** - * optional uint32 price = 6; + * uint32 price = 6; + * @return The price. */ + @java.lang.Override public int getPrice() { - return instance.getPrice(); + return price_; } /** - * optional uint32 price = 6; + * uint32 price = 6; + * @param value The price to set. + * @return This builder for chaining. */ public Builder setPrice(int value) { - copyOnWrite(); - instance.setPrice(value); + + price_ = value; + onChanged(); return this; } /** - * optional uint32 price = 6; + * uint32 price = 6; + * @return This builder for chaining. */ public Builder clearPrice() { - copyOnWrite(); - instance.clearPrice(); + + price_ = 0; + onChanged(); return this; } + private int finalState_ = 0; /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @return The enum numeric value on the wire for finalState. */ - public int getFinalStateValue() { - return instance.getFinalStateValue(); + @java.lang.Override public int getFinalStateValue() { + return finalState_; } /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @param value The enum numeric value on the wire for finalState to set. + * @return This builder for chaining. */ public Builder setFinalStateValue(int value) { - copyOnWrite(); - instance.setFinalStateValue(value); + + finalState_ = value; + onChanged(); return this; } /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @return The finalState. */ + @java.lang.Override public net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum getFinalState() { - return instance.getFinalState(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum result = net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.valueOf(finalState_); + return result == null ? net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.UNRECOGNIZED : result; } /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @param value The finalState to set. + * @return This builder for chaining. */ public Builder setFinalState(net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum value) { - copyOnWrite(); - instance.setFinalState(value); + if (value == null) { + throw new NullPointerException(); + } + + finalState_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * .proto.CallInfoResponse.FinalStateEnum finalState = 7; + * @return This builder for chaining. */ public Builder clearFinalState() { - copyOnWrite(); - instance.clearFinalState(); + + finalState_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.CallInfoResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoCallInfo.CallInfoResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoCallInfo.CallInfoResponse other = (net.iGap.proto.ProtoCallInfo.CallInfoResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - createAt_ = visitor.visitLong(createAt_ != 0L, createAt_, - other.createAt_ != 0L, other.createAt_); - callId_ = visitor.visitLong(callId_ != 0L, callId_, - other.callId_ != 0L, other.callId_); - phoneNumber_ = visitor.visitLong(phoneNumber_ != 0L, phoneNumber_, - other.phoneNumber_ != 0L, other.phoneNumber_); - duration_ = visitor.visitInt(duration_ != 0, duration_, - other.duration_ != 0, other.duration_); - price_ = visitor.visitInt(price_ != 0, price_, - other.price_ != 0, other.price_); - finalState_ = visitor.visitInt(finalState_ != 0, finalState_, other.finalState_ != 0, other.finalState_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - createAt_ = input.readInt64(); - break; - } - case 24: { - - callId_ = input.readInt64(); - break; - } - case 32: { - - phoneNumber_ = input.readInt64(); - break; - } - case 40: { - - duration_ = input.readUInt32(); - break; - } - case 48: { - - price_ = input.readUInt32(); - break; - } - case 56: { - int rawValue = input.readEnum(); - - finalState_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoCallInfo.CallInfoResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.CallInfoResponse) + } + // @@protoc_insertion_point(class_scope:proto.CallInfoResponse) private static final net.iGap.proto.ProtoCallInfo.CallInfoResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new CallInfoResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallInfo.CallInfoResponse(); } public static net.iGap.proto.ProtoCallInfo.CallInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallInfoResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoCallInfo.CallInfoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallInfoResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallInfoResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\016CallInfo.proto\022\005proto\032\rRequest.proto\032\016" + + "Response.proto\"<\n\010CallInfo\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022\017\n\007call_id\030\002 \001(\003\"\234\002\n" + + "\020CallInfoResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\021\n\tcreate_at\030\002 \001(\003\022\017\n\007call_" + + "id\030\003 \001(\003\022\024\n\014phone_number\030\004 \001(\003\022\020\n\010durati" + + "on\030\005 \001(\r\022\r\n\005price\030\006 \001(\r\022:\n\nfinalState\030\007 " + + "\001(\0162&.proto.CallInfoResponse.FinalStateE" + + "num\"N\n\016FinalStateEnum\022\013\n\007UNKNOWN\020\000\022\010\n\004DO" + + "NE\020\001\022\010\n\004BUSY\020\002\022\017\n\013ROUTE_ERROR\020\003\022\n\n\006REJEC" + + "T\020\004B\037\n\016net.iGap.protoB\rProtoCallInfob\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_CallInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_CallInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallInfo_descriptor, + new java.lang.String[] { "Request", "CallId", }); + internal_static_proto_CallInfoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_CallInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallInfoResponse_descriptor, + new java.lang.String[] { "Response", "CreateAt", "CallId", "PhoneNumber", "Duration", "Price", "FinalState", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoCallRequest.java b/src/main/java/net/iGap/proto/ProtoCallRequest.java index e389b0f..9727961 100644 --- a/src/main/java/net/iGap/proto/ProtoCallRequest.java +++ b/src/main/java/net/iGap/proto/ProtoCallRequest.java @@ -8,165 +8,225 @@ private ProtoCallRequest() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface CallRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.CallRequest) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional int64 phone_number = 2; + * int64 phone_number = 2; + * @return The phoneNumber. */ long getPhoneNumber(); /** - * optional double lat = 3; + * double lat = 3; + * @return The lat. */ double getLat(); /** - * optional double lon = 4; + * double lon = 4; + * @return The lon. */ double getLon(); } /** * Protobuf type {@code proto.CallRequest} */ - public static final class CallRequest extends - com.google.protobuf.GeneratedMessageLite< - CallRequest, CallRequest.Builder> implements + public static final class CallRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.CallRequest) CallRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CallRequest.newBuilder() to construct. + private CallRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private CallRequest() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CallRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CallRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phoneNumber_ = input.readInt64(); + break; + } + case 25: { + + lat_ = input.readDouble(); + break; + } + case 33: { + + lon_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequest.class, net.iGap.proto.ProtoCallRequest.CallRequest.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; private long phoneNumber_; /** - * optional int64 phone_number = 2; + * int64 phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { return phoneNumber_; } - /** - * optional int64 phone_number = 2; - */ - private void setPhoneNumber(long value) { - - phoneNumber_ = value; - } - /** - * optional int64 phone_number = 2; - */ - private void clearPhoneNumber() { - - phoneNumber_ = 0L; - } public static final int LAT_FIELD_NUMBER = 3; private double lat_; /** - * optional double lat = 3; + * double lat = 3; + * @return The lat. */ + @java.lang.Override public double getLat() { return lat_; } - /** - * optional double lat = 3; - */ - private void setLat(double value) { - - lat_ = value; - } - /** - * optional double lat = 3; - */ - private void clearLat() { - - lat_ = 0D; - } public static final int LON_FIELD_NUMBER = 4; private double lon_; /** - * optional double lon = 4; + * double lon = 4; + * @return The lon. */ + @java.lang.Override public double getLon() { return lon_; } - /** - * optional double lon = 4; - */ - private void setLon(double value) { - - lon_ = value; - } - /** - * optional double lon = 4; - */ - private void clearLon() { - - lon_ = 0D; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lon_ != 0D) { output.writeDouble(4, lon_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,410 +266,688 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, lon_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoCallRequest.CallRequest)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallRequest.CallRequest other = (net.iGap.proto.ProtoCallRequest.CallRequest) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPhoneNumber() + != other.getPhoneNumber()) return false; + if (java.lang.Double.doubleToLongBits(getLat()) + != java.lang.Double.doubleToLongBits( + other.getLat())) return false; + if (java.lang.Double.doubleToLongBits(getLon()) + != java.lang.Double.doubleToLongBits( + other.getLon())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhoneNumber()); + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLat())); + hash = (37 * hash) + LON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLon())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoCallRequest.CallRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.CallRequest} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoCallRequest.CallRequest, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.CallRequest) net.iGap.proto.ProtoCallRequest.CallRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequest.class, net.iGap.proto.ProtoCallRequest.CallRequest.Builder.class); + } + // Construct using net.iGap.proto.ProtoCallRequest.CallRequest.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phoneNumber_ = 0L; + + lat_ = 0D; + + lon_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequest getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallRequest.CallRequest.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequest build() { + net.iGap.proto.ProtoCallRequest.CallRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequest buildPartial() { + net.iGap.proto.ProtoCallRequest.CallRequest result = new net.iGap.proto.ProtoCallRequest.CallRequest(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + result.lat_ = lat_; + result.lon_ = lon_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoCallRequest.CallRequest) { + return mergeFrom((net.iGap.proto.ProtoCallRequest.CallRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoCallRequest.CallRequest other) { + if (other == net.iGap.proto.ProtoCallRequest.CallRequest.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPhoneNumber() != 0L) { + setPhoneNumber(other.getPhoneNumber()); + } + if (other.getLat() != 0D) { + setLat(other.getLat()); + } + if (other.getLon() != 0D) { + setLon(other.getLon()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoCallRequest.CallRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallRequest.CallRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long phoneNumber_ ; /** - * optional int64 phone_number = 2; + * int64 phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { - return instance.getPhoneNumber(); + return phoneNumber_; } /** - * optional int64 phone_number = 2; + * int64 phone_number = 2; + * @param value The phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumber(long value) { - copyOnWrite(); - instance.setPhoneNumber(value); + + phoneNumber_ = value; + onChanged(); return this; } /** - * optional int64 phone_number = 2; + * int64 phone_number = 2; + * @return This builder for chaining. */ public Builder clearPhoneNumber() { - copyOnWrite(); - instance.clearPhoneNumber(); + + phoneNumber_ = 0L; + onChanged(); return this; } + private double lat_ ; /** - * optional double lat = 3; + * double lat = 3; + * @return The lat. */ + @java.lang.Override public double getLat() { - return instance.getLat(); + return lat_; } /** - * optional double lat = 3; + * double lat = 3; + * @param value The lat to set. + * @return This builder for chaining. */ public Builder setLat(double value) { - copyOnWrite(); - instance.setLat(value); + + lat_ = value; + onChanged(); return this; } /** - * optional double lat = 3; + * double lat = 3; + * @return This builder for chaining. */ public Builder clearLat() { - copyOnWrite(); - instance.clearLat(); + + lat_ = 0D; + onChanged(); return this; } + private double lon_ ; /** - * optional double lon = 4; + * double lon = 4; + * @return The lon. */ + @java.lang.Override public double getLon() { - return instance.getLon(); + return lon_; } /** - * optional double lon = 4; + * double lon = 4; + * @param value The lon to set. + * @return This builder for chaining. */ public Builder setLon(double value) { - copyOnWrite(); - instance.setLon(value); + + lon_ = value; + onChanged(); return this; } /** - * optional double lon = 4; + * double lon = 4; + * @return This builder for chaining. */ public Builder clearLon() { - copyOnWrite(); - instance.clearLon(); + + lon_ = 0D; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.CallRequest) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoCallRequest.CallRequest(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoCallRequest.CallRequest other = (net.iGap.proto.ProtoCallRequest.CallRequest) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phoneNumber_ = visitor.visitLong(phoneNumber_ != 0L, phoneNumber_, - other.phoneNumber_ != 0L, other.phoneNumber_); - lat_ = visitor.visitDouble(lat_ != 0D, lat_, - other.lat_ != 0D, other.lat_); - lon_ = visitor.visitDouble(lon_ != 0D, lon_, - other.lon_ != 0D, other.lon_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - phoneNumber_ = input.readInt64(); - break; - } - case 25: { - - lat_ = input.readDouble(); - break; - } - case 33: { - - lon_ = input.readDouble(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoCallRequest.CallRequest.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.CallRequest) + } + // @@protoc_insertion_point(class_scope:proto.CallRequest) private static final net.iGap.proto.ProtoCallRequest.CallRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new CallRequest(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallRequest.CallRequest(); } public static net.iGap.proto.ProtoCallRequest.CallRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface CallRequestResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.CallRequestResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional int64 created_at = 2; + * int64 created_at = 2; + * @return The createdAt. */ long getCreatedAt(); /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return The callId. */ long getCallId(); /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @return The switchIp. */ java.lang.String getSwitchIp(); /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @return The bytes for switchIp. */ com.google.protobuf.ByteString getSwitchIpBytes(); /** - * optional uint32 switch_port = 5; + * uint32 switch_port = 5; + * @return The switchPort. */ int getSwitchPort(); /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @return The enum numeric value on the wire for switchProtocol. */ int getSwitchProtocolValue(); /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @return The switchProtocol. */ net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum getSwitchProtocol(); /** - * optional string tvt = 7; + * string tvt = 7; + * @return The tvt. */ java.lang.String getTvt(); /** - * optional string tvt = 7; + * string tvt = 7; + * @return The bytes for tvt. */ com.google.protobuf.ByteString getTvtBytes(); /** - * optional double price_per_minute = 8; + * double price_per_minute = 8; + * @return The pricePerMinute. */ double getPricePerMinute(); /** - * optional string source_operator = 9; + * string source_operator = 9; + * @return The sourceOperator. */ java.lang.String getSourceOperator(); /** - * optional string source_operator = 9; + * string source_operator = 9; + * @return The bytes for sourceOperator. */ com.google.protobuf.ByteString getSourceOperatorBytes(); /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @return The destinationOperator. */ java.lang.String getDestinationOperator(); /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @return The bytes for destinationOperator. */ com.google.protobuf.ByteString getDestinationOperatorBytes(); @@ -615,22 +955,153 @@ public interface CallRequestResponseOrBuilder extends /** * Protobuf type {@code proto.CallRequestResponse} */ - public static final class CallRequestResponse extends - com.google.protobuf.GeneratedMessageLite< - CallRequestResponse, CallRequestResponse.Builder> implements + public static final class CallRequestResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.CallRequestResponse) CallRequestResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CallRequestResponse.newBuilder() to construct. + private CallRequestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private CallRequestResponse() { switchIp_ = ""; + switchProtocol_ = 0; tvt_ = ""; sourceOperator_ = ""; destinationOperator_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CallRequestResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CallRequestResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + createdAt_ = input.readInt64(); + break; + } + case 24: { + + callId_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + switchIp_ = s; + break; + } + case 40: { + + switchPort_ = input.readUInt32(); + break; + } + case 48: { + int rawValue = input.readEnum(); + + switchProtocol_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + tvt_ = s; + break; + } + case 65: { + + pricePerMinute_ = input.readDouble(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceOperator_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + destinationOperator_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequestResponse.class, net.iGap.proto.ProtoCallRequest.CallRequestResponse.Builder.class); + } + /** * Protobuf enum {@code proto.CallRequestResponse.SwitchTransportProtocolEnum} */ public enum SwitchTransportProtocolEnum - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * TCP = 0; */ @@ -661,10 +1132,16 @@ public enum SwitchTransportProtocolEnum public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -672,6 +1149,10 @@ public static SwitchTransportProtocolEnum valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static SwitchTransportProtocolEnum forNumber(int value) { switch (value) { case 0: return TCP; @@ -693,6 +1174,37 @@ public SwitchTransportProtocolEnum findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.CallRequestResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final SwitchTransportProtocolEnum[] VALUES = values(); + + public static SwitchTransportProtocolEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private SwitchTransportProtocolEnum(int value) { @@ -705,370 +1217,256 @@ private SwitchTransportProtocolEnum(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int CREATED_AT_FIELD_NUMBER = 2; private long createdAt_; /** - * optional int64 created_at = 2; + * int64 created_at = 2; + * @return The createdAt. */ + @java.lang.Override public long getCreatedAt() { return createdAt_; } - /** - * optional int64 created_at = 2; - */ - private void setCreatedAt(long value) { - - createdAt_ = value; - } - /** - * optional int64 created_at = 2; - */ - private void clearCreatedAt() { - - createdAt_ = 0L; - } public static final int CALL_ID_FIELD_NUMBER = 3; private long callId_; /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return The callId. */ + @java.lang.Override public long getCallId() { return callId_; } - /** - * optional int64 call_id = 3; - */ - private void setCallId(long value) { - - callId_ = value; - } - /** - * optional int64 call_id = 3; - */ - private void clearCallId() { - - callId_ = 0L; - } public static final int SWITCH_IP_FIELD_NUMBER = 4; - private java.lang.String switchIp_; + private volatile java.lang.Object switchIp_; /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @return The switchIp. */ + @java.lang.Override public java.lang.String getSwitchIp() { - return switchIp_; + java.lang.Object ref = switchIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + switchIp_ = s; + return s; + } } /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @return The bytes for switchIp. */ + @java.lang.Override public com.google.protobuf.ByteString getSwitchIpBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(switchIp_); - } - /** - * optional string switch_ip = 4; - */ - private void setSwitchIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - switchIp_ = value; - } - /** - * optional string switch_ip = 4; - */ - private void clearSwitchIp() { - - switchIp_ = getDefaultInstance().getSwitchIp(); - } - /** - * optional string switch_ip = 4; - */ - private void setSwitchIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - switchIp_ = value.toStringUtf8(); + java.lang.Object ref = switchIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + switchIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SWITCH_PORT_FIELD_NUMBER = 5; private int switchPort_; /** - * optional uint32 switch_port = 5; + * uint32 switch_port = 5; + * @return The switchPort. */ + @java.lang.Override public int getSwitchPort() { return switchPort_; } - /** - * optional uint32 switch_port = 5; - */ - private void setSwitchPort(int value) { - - switchPort_ = value; - } - /** - * optional uint32 switch_port = 5; - */ - private void clearSwitchPort() { - - switchPort_ = 0; - } public static final int SWITCH_PROTOCOL_FIELD_NUMBER = 6; private int switchProtocol_; /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @return The enum numeric value on the wire for switchProtocol. */ - public int getSwitchProtocolValue() { + @java.lang.Override public int getSwitchProtocolValue() { return switchProtocol_; } /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @return The switchProtocol. */ - public net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum getSwitchProtocol() { - net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum result = net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.forNumber(switchProtocol_); + @java.lang.Override public net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum getSwitchProtocol() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum result = net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.valueOf(switchProtocol_); return result == null ? net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.UNRECOGNIZED : result; } - /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; - */ - private void setSwitchProtocolValue(int value) { - switchProtocol_ = value; - } - /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; - */ - private void setSwitchProtocol(net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum value) { - if (value == null) { - throw new NullPointerException(); - } - - switchProtocol_ = value.getNumber(); - } - /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; - */ - private void clearSwitchProtocol() { - - switchProtocol_ = 0; - } public static final int TVT_FIELD_NUMBER = 7; - private java.lang.String tvt_; + private volatile java.lang.Object tvt_; /** - * optional string tvt = 7; + * string tvt = 7; + * @return The tvt. */ + @java.lang.Override public java.lang.String getTvt() { - return tvt_; + java.lang.Object ref = tvt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tvt_ = s; + return s; + } } /** - * optional string tvt = 7; + * string tvt = 7; + * @return The bytes for tvt. */ + @java.lang.Override public com.google.protobuf.ByteString getTvtBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(tvt_); - } - /** - * optional string tvt = 7; - */ - private void setTvt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tvt_ = value; - } - /** - * optional string tvt = 7; - */ - private void clearTvt() { - - tvt_ = getDefaultInstance().getTvt(); - } - /** - * optional string tvt = 7; - */ - private void setTvtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tvt_ = value.toStringUtf8(); + java.lang.Object ref = tvt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tvt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PRICE_PER_MINUTE_FIELD_NUMBER = 8; private double pricePerMinute_; /** - * optional double price_per_minute = 8; + * double price_per_minute = 8; + * @return The pricePerMinute. */ + @java.lang.Override public double getPricePerMinute() { return pricePerMinute_; } - /** - * optional double price_per_minute = 8; - */ - private void setPricePerMinute(double value) { - - pricePerMinute_ = value; - } - /** - * optional double price_per_minute = 8; - */ - private void clearPricePerMinute() { - - pricePerMinute_ = 0D; - } public static final int SOURCE_OPERATOR_FIELD_NUMBER = 9; - private java.lang.String sourceOperator_; + private volatile java.lang.Object sourceOperator_; /** - * optional string source_operator = 9; + * string source_operator = 9; + * @return The sourceOperator. */ + @java.lang.Override public java.lang.String getSourceOperator() { - return sourceOperator_; + java.lang.Object ref = sourceOperator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceOperator_ = s; + return s; + } } /** - * optional string source_operator = 9; + * string source_operator = 9; + * @return The bytes for sourceOperator. */ + @java.lang.Override public com.google.protobuf.ByteString getSourceOperatorBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(sourceOperator_); - } - /** - * optional string source_operator = 9; - */ - private void setSourceOperator( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceOperator_ = value; - } - /** - * optional string source_operator = 9; - */ - private void clearSourceOperator() { - - sourceOperator_ = getDefaultInstance().getSourceOperator(); - } - /** - * optional string source_operator = 9; - */ - private void setSourceOperatorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceOperator_ = value.toStringUtf8(); + java.lang.Object ref = sourceOperator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESTINATION_OPERATOR_FIELD_NUMBER = 10; - private java.lang.String destinationOperator_; + private volatile java.lang.Object destinationOperator_; /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @return The destinationOperator. */ + @java.lang.Override public java.lang.String getDestinationOperator() { - return destinationOperator_; + java.lang.Object ref = destinationOperator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationOperator_ = s; + return s; + } } /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @return The bytes for destinationOperator. */ + @java.lang.Override public com.google.protobuf.ByteString getDestinationOperatorBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(destinationOperator_); - } - /** - * optional string destination_operator = 10; - */ - private void setDestinationOperator( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destinationOperator_ = value; - } - /** - * optional string destination_operator = 10; - */ - private void clearDestinationOperator() { - - destinationOperator_ = getDefaultInstance().getDestinationOperator(); + java.lang.Object ref = destinationOperator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destinationOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string destination_operator = 10; - */ - private void setDestinationOperatorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destinationOperator_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1080,8 +1478,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (callId_ != 0L) { output.writeInt64(3, callId_); } - if (!switchIp_.isEmpty()) { - output.writeString(4, getSwitchIp()); + if (!getSwitchIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, switchIp_); } if (switchPort_ != 0) { output.writeUInt32(5, switchPort_); @@ -1089,22 +1487,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (switchProtocol_ != net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.TCP.getNumber()) { output.writeEnum(6, switchProtocol_); } - if (!tvt_.isEmpty()) { - output.writeString(7, getTvt()); + if (!getTvtBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tvt_); } if (pricePerMinute_ != 0D) { output.writeDouble(8, pricePerMinute_); } - if (!sourceOperator_.isEmpty()) { - output.writeString(9, getSourceOperator()); + if (!getSourceOperatorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceOperator_); } - if (!destinationOperator_.isEmpty()) { - output.writeString(10, getDestinationOperator()); + if (!getDestinationOperatorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, destinationOperator_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1120,9 +1520,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, callId_); } - if (!switchIp_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getSwitchIp()); + if (!getSwitchIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, switchIp_); } if (switchPort_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1132,616 +1531,1109 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, switchProtocol_); } - if (!tvt_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getTvt()); + if (!getTvtBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tvt_); } if (pricePerMinute_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, pricePerMinute_); } - if (!sourceOperator_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getSourceOperator()); + if (!getSourceOperatorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceOperator_); } - if (!destinationOperator_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getDestinationOperator()); + if (!getDestinationOperatorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, destinationOperator_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoCallRequest.CallRequestResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallRequest.CallRequestResponse other = (net.iGap.proto.ProtoCallRequest.CallRequestResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getCreatedAt() + != other.getCreatedAt()) return false; + if (getCallId() + != other.getCallId()) return false; + if (!getSwitchIp() + .equals(other.getSwitchIp())) return false; + if (getSwitchPort() + != other.getSwitchPort()) return false; + if (switchProtocol_ != other.switchProtocol_) return false; + if (!getTvt() + .equals(other.getTvt())) return false; + if (java.lang.Double.doubleToLongBits(getPricePerMinute()) + != java.lang.Double.doubleToLongBits( + other.getPricePerMinute())) return false; + if (!getSourceOperator() + .equals(other.getSourceOperator())) return false; + if (!getDestinationOperator() + .equals(other.getDestinationOperator())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreatedAt()); + hash = (37 * hash) + CALL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCallId()); + hash = (37 * hash) + SWITCH_IP_FIELD_NUMBER; + hash = (53 * hash) + getSwitchIp().hashCode(); + hash = (37 * hash) + SWITCH_PORT_FIELD_NUMBER; + hash = (53 * hash) + getSwitchPort(); + hash = (37 * hash) + SWITCH_PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + switchProtocol_; + hash = (37 * hash) + TVT_FIELD_NUMBER; + hash = (53 * hash) + getTvt().hashCode(); + hash = (37 * hash) + PRICE_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPricePerMinute())); + hash = (37 * hash) + SOURCE_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getSourceOperator().hashCode(); + hash = (37 * hash) + DESTINATION_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getDestinationOperator().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoCallRequest.CallRequestResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.CallRequestResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoCallRequest.CallRequestResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.CallRequestResponse) net.iGap.proto.ProtoCallRequest.CallRequestResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequestResponse.class, net.iGap.proto.ProtoCallRequest.CallRequestResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoCallRequest.CallRequestResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + createdAt_ = 0L; + + callId_ = 0L; + + switchIp_ = ""; + + switchPort_ = 0; + + switchProtocol_ = 0; + + tvt_ = ""; + + pricePerMinute_ = 0D; + + sourceOperator_ = ""; + + destinationOperator_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequestResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallRequest.CallRequestResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequestResponse build() { + net.iGap.proto.ProtoCallRequest.CallRequestResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequestResponse buildPartial() { + net.iGap.proto.ProtoCallRequest.CallRequestResponse result = new net.iGap.proto.ProtoCallRequest.CallRequestResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.createdAt_ = createdAt_; + result.callId_ = callId_; + result.switchIp_ = switchIp_; + result.switchPort_ = switchPort_; + result.switchProtocol_ = switchProtocol_; + result.tvt_ = tvt_; + result.pricePerMinute_ = pricePerMinute_; + result.sourceOperator_ = sourceOperator_; + result.destinationOperator_ = destinationOperator_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoCallRequest.CallRequestResponse) { + return mergeFrom((net.iGap.proto.ProtoCallRequest.CallRequestResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoCallRequest.CallRequestResponse other) { + if (other == net.iGap.proto.ProtoCallRequest.CallRequestResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getCreatedAt() != 0L) { + setCreatedAt(other.getCreatedAt()); + } + if (other.getCallId() != 0L) { + setCallId(other.getCallId()); + } + if (!other.getSwitchIp().isEmpty()) { + switchIp_ = other.switchIp_; + onChanged(); + } + if (other.getSwitchPort() != 0) { + setSwitchPort(other.getSwitchPort()); + } + if (other.switchProtocol_ != 0) { + setSwitchProtocolValue(other.getSwitchProtocolValue()); + } + if (!other.getTvt().isEmpty()) { + tvt_ = other.tvt_; + onChanged(); + } + if (other.getPricePerMinute() != 0D) { + setPricePerMinute(other.getPricePerMinute()); + } + if (!other.getSourceOperator().isEmpty()) { + sourceOperator_ = other.sourceOperator_; + onChanged(); + } + if (!other.getDestinationOperator().isEmpty()) { + destinationOperator_ = other.destinationOperator_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoCallRequest.CallRequestResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallRequest.CallRequestResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long createdAt_ ; /** - * optional int64 created_at = 2; + * int64 created_at = 2; + * @return The createdAt. */ + @java.lang.Override public long getCreatedAt() { - return instance.getCreatedAt(); + return createdAt_; } /** - * optional int64 created_at = 2; + * int64 created_at = 2; + * @param value The createdAt to set. + * @return This builder for chaining. */ public Builder setCreatedAt(long value) { - copyOnWrite(); - instance.setCreatedAt(value); + + createdAt_ = value; + onChanged(); return this; } /** - * optional int64 created_at = 2; + * int64 created_at = 2; + * @return This builder for chaining. */ public Builder clearCreatedAt() { - copyOnWrite(); - instance.clearCreatedAt(); + + createdAt_ = 0L; + onChanged(); return this; } + private long callId_ ; /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return The callId. */ + @java.lang.Override public long getCallId() { - return instance.getCallId(); + return callId_; } /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @param value The callId to set. + * @return This builder for chaining. */ public Builder setCallId(long value) { - copyOnWrite(); - instance.setCallId(value); + + callId_ = value; + onChanged(); return this; } /** - * optional int64 call_id = 3; + * int64 call_id = 3; + * @return This builder for chaining. */ public Builder clearCallId() { - copyOnWrite(); - instance.clearCallId(); + + callId_ = 0L; + onChanged(); return this; } + private java.lang.Object switchIp_ = ""; /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @return The switchIp. */ public java.lang.String getSwitchIp() { - return instance.getSwitchIp(); + java.lang.Object ref = switchIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + switchIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @return The bytes for switchIp. */ public com.google.protobuf.ByteString getSwitchIpBytes() { - return instance.getSwitchIpBytes(); + java.lang.Object ref = switchIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + switchIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @param value The switchIp to set. + * @return This builder for chaining. */ public Builder setSwitchIp( java.lang.String value) { - copyOnWrite(); - instance.setSwitchIp(value); + if (value == null) { + throw new NullPointerException(); + } + + switchIp_ = value; + onChanged(); return this; } /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @return This builder for chaining. */ public Builder clearSwitchIp() { - copyOnWrite(); - instance.clearSwitchIp(); + + switchIp_ = getDefaultInstance().getSwitchIp(); + onChanged(); return this; } /** - * optional string switch_ip = 4; + * string switch_ip = 4; + * @param value The bytes for switchIp to set. + * @return This builder for chaining. */ public Builder setSwitchIpBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSwitchIpBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + switchIp_ = value; + onChanged(); return this; } + private int switchPort_ ; /** - * optional uint32 switch_port = 5; + * uint32 switch_port = 5; + * @return The switchPort. */ + @java.lang.Override public int getSwitchPort() { - return instance.getSwitchPort(); + return switchPort_; } /** - * optional uint32 switch_port = 5; + * uint32 switch_port = 5; + * @param value The switchPort to set. + * @return This builder for chaining. */ public Builder setSwitchPort(int value) { - copyOnWrite(); - instance.setSwitchPort(value); + + switchPort_ = value; + onChanged(); return this; } /** - * optional uint32 switch_port = 5; + * uint32 switch_port = 5; + * @return This builder for chaining. */ public Builder clearSwitchPort() { - copyOnWrite(); - instance.clearSwitchPort(); + + switchPort_ = 0; + onChanged(); return this; } + private int switchProtocol_ = 0; /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @return The enum numeric value on the wire for switchProtocol. */ - public int getSwitchProtocolValue() { - return instance.getSwitchProtocolValue(); + @java.lang.Override public int getSwitchProtocolValue() { + return switchProtocol_; } /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @param value The enum numeric value on the wire for switchProtocol to set. + * @return This builder for chaining. */ public Builder setSwitchProtocolValue(int value) { - copyOnWrite(); - instance.setSwitchProtocolValue(value); + + switchProtocol_ = value; + onChanged(); return this; } /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @return The switchProtocol. */ + @java.lang.Override public net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum getSwitchProtocol() { - return instance.getSwitchProtocol(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum result = net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.valueOf(switchProtocol_); + return result == null ? net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.UNRECOGNIZED : result; } /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @param value The switchProtocol to set. + * @return This builder for chaining. */ public Builder setSwitchProtocol(net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum value) { - copyOnWrite(); - instance.setSwitchProtocol(value); + if (value == null) { + throw new NullPointerException(); + } + + switchProtocol_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + * @return This builder for chaining. */ public Builder clearSwitchProtocol() { - copyOnWrite(); - instance.clearSwitchProtocol(); + + switchProtocol_ = 0; + onChanged(); return this; } + private java.lang.Object tvt_ = ""; /** - * optional string tvt = 7; + * string tvt = 7; + * @return The tvt. */ public java.lang.String getTvt() { - return instance.getTvt(); + java.lang.Object ref = tvt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tvt_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string tvt = 7; + * string tvt = 7; + * @return The bytes for tvt. */ public com.google.protobuf.ByteString getTvtBytes() { - return instance.getTvtBytes(); + java.lang.Object ref = tvt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tvt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string tvt = 7; + * string tvt = 7; + * @param value The tvt to set. + * @return This builder for chaining. */ public Builder setTvt( java.lang.String value) { - copyOnWrite(); - instance.setTvt(value); + if (value == null) { + throw new NullPointerException(); + } + + tvt_ = value; + onChanged(); return this; } /** - * optional string tvt = 7; + * string tvt = 7; + * @return This builder for chaining. */ public Builder clearTvt() { - copyOnWrite(); - instance.clearTvt(); + + tvt_ = getDefaultInstance().getTvt(); + onChanged(); return this; } /** - * optional string tvt = 7; + * string tvt = 7; + * @param value The bytes for tvt to set. + * @return This builder for chaining. */ public Builder setTvtBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTvtBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tvt_ = value; + onChanged(); return this; } + private double pricePerMinute_ ; /** - * optional double price_per_minute = 8; + * double price_per_minute = 8; + * @return The pricePerMinute. */ + @java.lang.Override public double getPricePerMinute() { - return instance.getPricePerMinute(); + return pricePerMinute_; } /** - * optional double price_per_minute = 8; + * double price_per_minute = 8; + * @param value The pricePerMinute to set. + * @return This builder for chaining. */ public Builder setPricePerMinute(double value) { - copyOnWrite(); - instance.setPricePerMinute(value); + + pricePerMinute_ = value; + onChanged(); return this; } /** - * optional double price_per_minute = 8; + * double price_per_minute = 8; + * @return This builder for chaining. */ public Builder clearPricePerMinute() { - copyOnWrite(); - instance.clearPricePerMinute(); + + pricePerMinute_ = 0D; + onChanged(); return this; } + private java.lang.Object sourceOperator_ = ""; /** - * optional string source_operator = 9; + * string source_operator = 9; + * @return The sourceOperator. */ public java.lang.String getSourceOperator() { - return instance.getSourceOperator(); + java.lang.Object ref = sourceOperator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceOperator_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string source_operator = 9; + * string source_operator = 9; + * @return The bytes for sourceOperator. */ public com.google.protobuf.ByteString getSourceOperatorBytes() { - return instance.getSourceOperatorBytes(); + java.lang.Object ref = sourceOperator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string source_operator = 9; + * string source_operator = 9; + * @param value The sourceOperator to set. + * @return This builder for chaining. */ public Builder setSourceOperator( java.lang.String value) { - copyOnWrite(); - instance.setSourceOperator(value); + if (value == null) { + throw new NullPointerException(); + } + + sourceOperator_ = value; + onChanged(); return this; } /** - * optional string source_operator = 9; + * string source_operator = 9; + * @return This builder for chaining. */ public Builder clearSourceOperator() { - copyOnWrite(); - instance.clearSourceOperator(); + + sourceOperator_ = getDefaultInstance().getSourceOperator(); + onChanged(); return this; } /** - * optional string source_operator = 9; + * string source_operator = 9; + * @param value The bytes for sourceOperator to set. + * @return This builder for chaining. */ public Builder setSourceOperatorBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSourceOperatorBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceOperator_ = value; + onChanged(); return this; } + private java.lang.Object destinationOperator_ = ""; /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @return The destinationOperator. */ public java.lang.String getDestinationOperator() { - return instance.getDestinationOperator(); + java.lang.Object ref = destinationOperator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationOperator_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @return The bytes for destinationOperator. */ public com.google.protobuf.ByteString getDestinationOperatorBytes() { - return instance.getDestinationOperatorBytes(); + java.lang.Object ref = destinationOperator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destinationOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @param value The destinationOperator to set. + * @return This builder for chaining. */ public Builder setDestinationOperator( java.lang.String value) { - copyOnWrite(); - instance.setDestinationOperator(value); + if (value == null) { + throw new NullPointerException(); + } + + destinationOperator_ = value; + onChanged(); return this; } /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @return This builder for chaining. */ public Builder clearDestinationOperator() { - copyOnWrite(); - instance.clearDestinationOperator(); + + destinationOperator_ = getDefaultInstance().getDestinationOperator(); + onChanged(); return this; } /** - * optional string destination_operator = 10; + * string destination_operator = 10; + * @param value The bytes for destinationOperator to set. + * @return This builder for chaining. */ public Builder setDestinationOperatorBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDestinationOperatorBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destinationOperator_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.CallRequestResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoCallRequest.CallRequestResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoCallRequest.CallRequestResponse other = (net.iGap.proto.ProtoCallRequest.CallRequestResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - createdAt_ = visitor.visitLong(createdAt_ != 0L, createdAt_, - other.createdAt_ != 0L, other.createdAt_); - callId_ = visitor.visitLong(callId_ != 0L, callId_, - other.callId_ != 0L, other.callId_); - switchIp_ = visitor.visitString(!switchIp_.isEmpty(), switchIp_, - !other.switchIp_.isEmpty(), other.switchIp_); - switchPort_ = visitor.visitInt(switchPort_ != 0, switchPort_, - other.switchPort_ != 0, other.switchPort_); - switchProtocol_ = visitor.visitInt(switchProtocol_ != 0, switchProtocol_, other.switchProtocol_ != 0, other.switchProtocol_); - tvt_ = visitor.visitString(!tvt_.isEmpty(), tvt_, - !other.tvt_.isEmpty(), other.tvt_); - pricePerMinute_ = visitor.visitDouble(pricePerMinute_ != 0D, pricePerMinute_, - other.pricePerMinute_ != 0D, other.pricePerMinute_); - sourceOperator_ = visitor.visitString(!sourceOperator_.isEmpty(), sourceOperator_, - !other.sourceOperator_.isEmpty(), other.sourceOperator_); - destinationOperator_ = visitor.visitString(!destinationOperator_.isEmpty(), destinationOperator_, - !other.destinationOperator_.isEmpty(), other.destinationOperator_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - createdAt_ = input.readInt64(); - break; - } - case 24: { - - callId_ = input.readInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - switchIp_ = s; - break; - } - case 40: { - - switchPort_ = input.readUInt32(); - break; - } - case 48: { - int rawValue = input.readEnum(); - - switchProtocol_ = rawValue; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - tvt_ = s; - break; - } - case 65: { - - pricePerMinute_ = input.readDouble(); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - sourceOperator_ = s; - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - destinationOperator_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoCallRequest.CallRequestResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.CallRequestResponse) + } + // @@protoc_insertion_point(class_scope:proto.CallRequestResponse) private static final net.iGap.proto.ProtoCallRequest.CallRequestResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new CallRequestResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallRequest.CallRequestResponse(); } public static net.iGap.proto.ProtoCallRequest.CallRequestResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallRequestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallRequestResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoCallRequest.CallRequestResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallRequestResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallRequestResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021CallRequest.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\"^\n\013CallRequest\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\024\n\014phone_numbe" + + "r\030\002 \001(\003\022\013\n\003lat\030\003 \001(\001\022\013\n\003lon\030\004 \001(\001\"\356\002\n\023Ca" + + "llRequestResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\022\n\ncreated_at\030\002 \001(\003\022\017\n\007call" + + "_id\030\003 \001(\003\022\021\n\tswitch_ip\030\004 \001(\t\022\023\n\013switch_p" + + "ort\030\005 \001(\r\022O\n\017switch_protocol\030\006 \001(\01626.pro" + + "to.CallRequestResponse.SwitchTransportPr" + + "otocolEnum\022\013\n\003tvt\030\007 \001(\t\022\030\n\020price_per_min" + + "ute\030\010 \001(\001\022\027\n\017source_operator\030\t \001(\t\022\034\n\024de" + + "stination_operator\030\n \001(\t\"8\n\033SwitchTransp" + + "ortProtocolEnum\022\007\n\003TCP\020\000\022\007\n\003UDP\020\001\022\007\n\003TLS" + + "\020\002B\"\n\016net.iGap.protoB\020ProtoCallRequestb\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_CallRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_CallRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallRequest_descriptor, + new java.lang.String[] { "Request", "PhoneNumber", "Lat", "Lon", }); + internal_static_proto_CallRequestResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_CallRequestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallRequestResponse_descriptor, + new java.lang.String[] { "Response", "CreatedAt", "CallId", "SwitchIp", "SwitchPort", "SwitchProtocol", "Tvt", "PricePerMinute", "SourceOperator", "DestinationOperator", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChangePhoneNumber.java b/src/main/java/net/iGap/proto/ProtoChangePhoneNumber.java index 48cc536..d4c6850 100644 --- a/src/main/java/net/iGap/proto/ProtoChangePhoneNumber.java +++ b/src/main/java/net/iGap/proto/ProtoChangePhoneNumber.java @@ -8,30 +8,45 @@ private ProtoChangePhoneNumber() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChangePhoneNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChangePhoneNumber) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return The phoneNumber. */ long getPhoneNumber(); /** - * optional string country_code = 3; + * string country_code = 3; + * @return The countryCode. */ java.lang.String getCountryCode(); /** - * optional string country_code = 3; + * string country_code = 3; + * @return The bytes for countryCode. */ com.google.protobuf.ByteString getCountryCodeBytes(); @@ -39,135 +54,192 @@ public interface ChangePhoneNumberOrBuilder extends /** * Protobuf type {@code proto.ChangePhoneNumber} */ - public static final class ChangePhoneNumber extends - com.google.protobuf.GeneratedMessageLite< - ChangePhoneNumber, ChangePhoneNumber.Builder> implements + public static final class ChangePhoneNumber extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChangePhoneNumber) ChangePhoneNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangePhoneNumber.newBuilder() to construct. + private ChangePhoneNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChangePhoneNumber() { countryCode_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChangePhoneNumber(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChangePhoneNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phoneNumber_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + countryCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumber_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.class, net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; private long phoneNumber_; /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { return phoneNumber_; } - /** - * optional uint64 phone_number = 2; - */ - private void setPhoneNumber(long value) { - - phoneNumber_ = value; - } - /** - * optional uint64 phone_number = 2; - */ - private void clearPhoneNumber() { - - phoneNumber_ = 0L; - } public static final int COUNTRY_CODE_FIELD_NUMBER = 3; - private java.lang.String countryCode_; + private volatile java.lang.Object countryCode_; /** - * optional string country_code = 3; + * string country_code = 3; + * @return The countryCode. */ + @java.lang.Override public java.lang.String getCountryCode() { - return countryCode_; + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } } /** - * optional string country_code = 3; + * string country_code = 3; + * @return The bytes for countryCode. */ + @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(countryCode_); - } - /** - * optional string country_code = 3; - */ - private void setCountryCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - countryCode_ = value; - } - /** - * optional string country_code = 3; - */ - private void clearCountryCode() { - - countryCode_ = getDefaultInstance().getCountryCode(); + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string country_code = 3; - */ - private void setCountryCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - countryCode_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -176,13 +248,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (phoneNumber_ != 0L) { output.writeUInt64(2, phoneNumber_); } - if (!countryCode_.isEmpty()) { - output.writeString(3, getCountryCode()); + if (!getCountryCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, countryCode_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -194,408 +268,752 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, phoneNumber_); } - if (!countryCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getCountryCode()); + if (!getCountryCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, countryCode_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber other = (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPhoneNumber() + != other.getPhoneNumber()) return false; + if (!getCountryCode() + .equals(other.getCountryCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhoneNumber()); + hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCountryCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChangePhoneNumber} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChangePhoneNumber) net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumber_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.class, net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.Builder.class); + } + // Construct using net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phoneNumber_ = 0L; + + countryCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumber_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber getDefaultInstanceForType() { + return net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber build() { + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber buildPartial() { + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber result = new net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + result.countryCode_ = countryCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber) { + return mergeFrom((net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber other) { + if (other == net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPhoneNumber() != 0L) { + setPhoneNumber(other.getPhoneNumber()); + } + if (!other.getCountryCode().isEmpty()) { + countryCode_ = other.countryCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long phoneNumber_ ; /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { - return instance.getPhoneNumber(); + return phoneNumber_; } /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @param value The phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumber(long value) { - copyOnWrite(); - instance.setPhoneNumber(value); + + phoneNumber_ = value; + onChanged(); return this; } /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return This builder for chaining. */ public Builder clearPhoneNumber() { - copyOnWrite(); - instance.clearPhoneNumber(); + + phoneNumber_ = 0L; + onChanged(); return this; } + private java.lang.Object countryCode_ = ""; /** - * optional string country_code = 3; + * string country_code = 3; + * @return The countryCode. */ public java.lang.String getCountryCode() { - return instance.getCountryCode(); + java.lang.Object ref = countryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string country_code = 3; + * string country_code = 3; + * @return The bytes for countryCode. */ public com.google.protobuf.ByteString getCountryCodeBytes() { - return instance.getCountryCodeBytes(); + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string country_code = 3; + * string country_code = 3; + * @param value The countryCode to set. + * @return This builder for chaining. */ public Builder setCountryCode( java.lang.String value) { - copyOnWrite(); - instance.setCountryCode(value); + if (value == null) { + throw new NullPointerException(); + } + + countryCode_ = value; + onChanged(); return this; } /** - * optional string country_code = 3; + * string country_code = 3; + * @return This builder for chaining. */ public Builder clearCountryCode() { - copyOnWrite(); - instance.clearCountryCode(); + + countryCode_ = getDefaultInstance().getCountryCode(); + onChanged(); return this; } /** - * optional string country_code = 3; + * string country_code = 3; + * @param value The bytes for countryCode to set. + * @return This builder for chaining. */ public Builder setCountryCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCountryCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + countryCode_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChangePhoneNumber) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber other = (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phoneNumber_ = visitor.visitLong(phoneNumber_ != 0L, phoneNumber_, - other.phoneNumber_ != 0L, other.phoneNumber_); - countryCode_ = visitor.visitString(!countryCode_.isEmpty(), countryCode_, - !other.countryCode_.isEmpty(), other.countryCode_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - phoneNumber_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - countryCode_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChangePhoneNumber) + } + // @@protoc_insertion_point(class_scope:proto.ChangePhoneNumber) private static final net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChangePhoneNumber(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber(); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangePhoneNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangePhoneNumber(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChangePhoneNumberResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChangePhoneNumberResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ChangePhoneNumberResponse} */ - public static final class ChangePhoneNumberResponse extends - com.google.protobuf.GeneratedMessageLite< - ChangePhoneNumberResponse, ChangePhoneNumberResponse.Builder> implements + public static final class ChangePhoneNumberResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChangePhoneNumberResponse) ChangePhoneNumberResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangePhoneNumberResponse.newBuilder() to construct. + private ChangePhoneNumberResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChangePhoneNumberResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChangePhoneNumberResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChangePhoneNumberResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.class, net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -603,244 +1021,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse other = (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChangePhoneNumberResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChangePhoneNumberResponse) net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.class, net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChangePhoneNumber.internal_static_proto_ChangePhoneNumberResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse build() { + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse buildPartial() { + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse result = new net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse) { + return mergeFrom((net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse other) { + if (other == net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChangePhoneNumberResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse other = (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChangePhoneNumberResponse) + } // @@protoc_insertion_point(class_scope:proto.ChangePhoneNumberResponse) private static final net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChangePhoneNumberResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse(); } public static net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangePhoneNumberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangePhoneNumberResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChangePhoneNumber.ChangePhoneNumberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChangePhoneNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChangePhoneNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChangePhoneNumberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChangePhoneNumberResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027ChangePhoneNumber.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"`\n\021ChangePhoneNu" + + "mber\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\024\n" + + "\014phone_number\030\002 \001(\004\022\024\n\014country_code\030\003 \001(" + + "\t\">\n\031ChangePhoneNumberResponse\022!\n\010respon" + + "se\030\001 \001(\0132\017.proto.ResponseB(\n\016net.iGap.pr" + + "otoB\026ProtoChangePhoneNumberb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChangePhoneNumber_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChangePhoneNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChangePhoneNumber_descriptor, + new java.lang.String[] { "Request", "PhoneNumber", "CountryCode", }); + internal_static_proto_ChangePhoneNumberResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChangePhoneNumberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChangePhoneNumberResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelAddAdmin.java b/src/main/java/net/iGap/proto/ProtoChannelAddAdmin.java index 60758e1..aedcfba 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelAddAdmin.java +++ b/src/main/java/net/iGap/proto/ProtoChannelAddAdmin.java @@ -8,398 +8,528 @@ private ProtoChannelAddAdmin() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelAddAdminOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddAdmin) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return The permission. */ net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getPermission(); + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.ChannelAddAdmin} */ - public static final class ChannelAddAdmin extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddAdmin, ChannelAddAdmin.Builder> implements + public static final class ChannelAddAdmin extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddAdmin) ChannelAddAdminOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddAdmin.newBuilder() to construct. + private ChannelAddAdmin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddAdmin() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddAdmin(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddAdmin( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.class, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.Builder.class); + } + public interface AdminRightsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddAdmin.AdminRights) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ boolean getModifyRoom(); /** - * optional bool post_message = 2; + * bool post_message = 2; + * @return The postMessage. */ boolean getPostMessage(); /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return The editMessage. */ boolean getEditMessage(); /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return The deleteMessage. */ boolean getDeleteMessage(); /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return The pinMessage. */ boolean getPinMessage(); /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return The addMember. */ boolean getAddMember(); /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return The banMember. */ boolean getBanMember(); /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return The getMember. */ boolean getGetMember(); /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return The addAdmin. */ boolean getAddAdmin(); /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return The addStory. */ boolean getAddStory(); /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return The deleteStory. */ boolean getDeleteStory(); /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return The showStoryViews. */ boolean getShowStoryViews(); } /** * Protobuf type {@code proto.ChannelAddAdmin.AdminRights} */ - public static final class AdminRights extends - com.google.protobuf.GeneratedMessageLite< - AdminRights, AdminRights.Builder> implements + public static final class AdminRights extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddAdmin.AdminRights) AdminRightsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdminRights.newBuilder() to construct. + private AdminRights(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private AdminRights() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdminRights(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AdminRights( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + modifyRoom_ = input.readBool(); + break; + } + case 16: { + + postMessage_ = input.readBool(); + break; + } + case 24: { + + editMessage_ = input.readBool(); + break; + } + case 32: { + + deleteMessage_ = input.readBool(); + break; + } + case 40: { + + pinMessage_ = input.readBool(); + break; + } + case 48: { + + addMember_ = input.readBool(); + break; + } + case 56: { + + banMember_ = input.readBool(); + break; + } + case 64: { + + getMember_ = input.readBool(); + break; + } + case 72: { + + addAdmin_ = input.readBool(); + break; + } + case 80: { + + addStory_ = input.readBool(); + break; + } + case 88: { + + deleteStory_ = input.readBool(); + break; + } + case 96: { + + showStoryViews_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_AdminRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_AdminRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.class, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder.class); + } + public static final int MODIFY_ROOM_FIELD_NUMBER = 1; private boolean modifyRoom_; /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ + @java.lang.Override public boolean getModifyRoom() { return modifyRoom_; } - /** - * optional bool modify_room = 1; - */ - private void setModifyRoom(boolean value) { - - modifyRoom_ = value; - } - /** - * optional bool modify_room = 1; - */ - private void clearModifyRoom() { - - modifyRoom_ = false; - } public static final int POST_MESSAGE_FIELD_NUMBER = 2; private boolean postMessage_; /** - * optional bool post_message = 2; + * bool post_message = 2; + * @return The postMessage. */ + @java.lang.Override public boolean getPostMessage() { return postMessage_; } - /** - * optional bool post_message = 2; - */ - private void setPostMessage(boolean value) { - - postMessage_ = value; - } - /** - * optional bool post_message = 2; - */ - private void clearPostMessage() { - - postMessage_ = false; - } public static final int EDIT_MESSAGE_FIELD_NUMBER = 3; private boolean editMessage_; /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return The editMessage. */ + @java.lang.Override public boolean getEditMessage() { return editMessage_; } - /** - * optional bool edit_message = 3; - */ - private void setEditMessage(boolean value) { - - editMessage_ = value; - } - /** - * optional bool edit_message = 3; - */ - private void clearEditMessage() { - - editMessage_ = false; - } public static final int DELETE_MESSAGE_FIELD_NUMBER = 4; private boolean deleteMessage_; /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return The deleteMessage. */ + @java.lang.Override public boolean getDeleteMessage() { return deleteMessage_; } - /** - * optional bool delete_message = 4; - */ - private void setDeleteMessage(boolean value) { - - deleteMessage_ = value; - } - /** - * optional bool delete_message = 4; - */ - private void clearDeleteMessage() { - - deleteMessage_ = false; - } public static final int PIN_MESSAGE_FIELD_NUMBER = 5; private boolean pinMessage_; /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { return pinMessage_; } - /** - * optional bool pin_message = 5; - */ - private void setPinMessage(boolean value) { - - pinMessage_ = value; - } - /** - * optional bool pin_message = 5; - */ - private void clearPinMessage() { - - pinMessage_ = false; - } public static final int ADD_MEMBER_FIELD_NUMBER = 6; private boolean addMember_; /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { return addMember_; } - /** - * optional bool add_member = 6; - */ - private void setAddMember(boolean value) { - - addMember_ = value; - } - /** - * optional bool add_member = 6; - */ - private void clearAddMember() { - - addMember_ = false; - } public static final int BAN_MEMBER_FIELD_NUMBER = 7; private boolean banMember_; /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return The banMember. */ + @java.lang.Override public boolean getBanMember() { return banMember_; } - /** - * optional bool ban_member = 7; - */ - private void setBanMember(boolean value) { - - banMember_ = value; - } - /** - * optional bool ban_member = 7; - */ - private void clearBanMember() { - - banMember_ = false; - } public static final int GET_MEMBER_FIELD_NUMBER = 8; private boolean getMember_; /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { return getMember_; } - /** - * optional bool get_member = 8; - */ - private void setGetMember(boolean value) { - - getMember_ = value; - } - /** - * optional bool get_member = 8; - */ - private void clearGetMember() { - - getMember_ = false; - } public static final int ADD_ADMIN_FIELD_NUMBER = 9; private boolean addAdmin_; /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return The addAdmin. */ + @java.lang.Override public boolean getAddAdmin() { return addAdmin_; } - /** - * optional bool add_admin = 9; - */ - private void setAddAdmin(boolean value) { - - addAdmin_ = value; - } - /** - * optional bool add_admin = 9; - */ - private void clearAddAdmin() { - - addAdmin_ = false; - } public static final int ADD_STORY_FIELD_NUMBER = 10; private boolean addStory_; /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return The addStory. */ + @java.lang.Override public boolean getAddStory() { return addStory_; } - /** - * optional bool add_story = 10; - */ - private void setAddStory(boolean value) { - - addStory_ = value; - } - /** - * optional bool add_story = 10; - */ - private void clearAddStory() { - - addStory_ = false; - } public static final int DELETE_STORY_FIELD_NUMBER = 11; private boolean deleteStory_; /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return The deleteStory. */ + @java.lang.Override public boolean getDeleteStory() { return deleteStory_; } - /** - * optional bool delete_story = 11; - */ - private void setDeleteStory(boolean value) { - - deleteStory_ = value; - } - /** - * optional bool delete_story = 11; - */ - private void clearDeleteStory() { - - deleteStory_ = false; - } public static final int SHOW_STORY_VIEWS_FIELD_NUMBER = 12; private boolean showStoryViews_; /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return The showStoryViews. */ + @java.lang.Override public boolean getShowStoryViews() { return showStoryViews_; } - /** - * optional bool show_story_views = 12; - */ - private void setShowStoryViews(boolean value) { - - showStoryViews_ = value; - } - /** - * optional bool show_story_views = 12; - */ - private void clearShowStoryViews() { - - showStoryViews_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (modifyRoom_ != false) { @@ -438,10 +568,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (showStoryViews_ != false) { output.writeBool(12, showStoryViews_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -493,693 +625,910 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, showStoryViews_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights other = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights) obj; + + if (getModifyRoom() + != other.getModifyRoom()) return false; + if (getPostMessage() + != other.getPostMessage()) return false; + if (getEditMessage() + != other.getEditMessage()) return false; + if (getDeleteMessage() + != other.getDeleteMessage()) return false; + if (getPinMessage() + != other.getPinMessage()) return false; + if (getAddMember() + != other.getAddMember()) return false; + if (getBanMember() + != other.getBanMember()) return false; + if (getGetMember() + != other.getGetMember()) return false; + if (getAddAdmin() + != other.getAddAdmin()) return false; + if (getAddStory() + != other.getAddStory()) return false; + if (getDeleteStory() + != other.getDeleteStory()) return false; + if (getShowStoryViews() + != other.getShowStoryViews()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODIFY_ROOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getModifyRoom()); + hash = (37 * hash) + POST_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPostMessage()); + hash = (37 * hash) + EDIT_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEditMessage()); + hash = (37 * hash) + DELETE_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleteMessage()); + hash = (37 * hash) + PIN_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinMessage()); + hash = (37 * hash) + ADD_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddMember()); + hash = (37 * hash) + BAN_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBanMember()); + hash = (37 * hash) + GET_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGetMember()); + hash = (37 * hash) + ADD_ADMIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddAdmin()); + hash = (37 * hash) + ADD_STORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddStory()); + hash = (37 * hash) + DELETE_STORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleteStory()); + hash = (37 * hash) + SHOW_STORY_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowStoryViews()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddAdmin.AdminRights} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddAdmin.AdminRights) net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_AdminRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_AdminRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.class, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + modifyRoom_ = false; + + postMessage_ = false; + + editMessage_ = false; + + deleteMessage_ = false; + + pinMessage_ = false; + + addMember_ = false; + + banMember_ = false; + + getMember_ = false; + + addAdmin_ = false; + + addStory_ = false; + + deleteStory_ = false; + + showStoryViews_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_AdminRights_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights build() { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights buildPartial() { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights result = new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights(this); + result.modifyRoom_ = modifyRoom_; + result.postMessage_ = postMessage_; + result.editMessage_ = editMessage_; + result.deleteMessage_ = deleteMessage_; + result.pinMessage_ = pinMessage_; + result.addMember_ = addMember_; + result.banMember_ = banMember_; + result.getMember_ = getMember_; + result.addAdmin_ = addAdmin_; + result.addStory_ = addStory_; + result.deleteStory_ = deleteStory_; + result.showStoryViews_ = showStoryViews_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights) { + return mergeFrom((net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights other) { + if (other == net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance()) return this; + if (other.getModifyRoom() != false) { + setModifyRoom(other.getModifyRoom()); + } + if (other.getPostMessage() != false) { + setPostMessage(other.getPostMessage()); + } + if (other.getEditMessage() != false) { + setEditMessage(other.getEditMessage()); + } + if (other.getDeleteMessage() != false) { + setDeleteMessage(other.getDeleteMessage()); + } + if (other.getPinMessage() != false) { + setPinMessage(other.getPinMessage()); + } + if (other.getAddMember() != false) { + setAddMember(other.getAddMember()); + } + if (other.getBanMember() != false) { + setBanMember(other.getBanMember()); + } + if (other.getGetMember() != false) { + setGetMember(other.getGetMember()); + } + if (other.getAddAdmin() != false) { + setAddAdmin(other.getAddAdmin()); + } + if (other.getAddStory() != false) { + setAddStory(other.getAddStory()); + } + if (other.getDeleteStory() != false) { + setDeleteStory(other.getDeleteStory()); + } + if (other.getShowStoryViews() != false) { + setShowStoryViews(other.getShowStoryViews()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private boolean modifyRoom_ ; /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ + @java.lang.Override public boolean getModifyRoom() { - return instance.getModifyRoom(); + return modifyRoom_; } /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @param value The modifyRoom to set. + * @return This builder for chaining. */ public Builder setModifyRoom(boolean value) { - copyOnWrite(); - instance.setModifyRoom(value); + + modifyRoom_ = value; + onChanged(); return this; } /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return This builder for chaining. */ public Builder clearModifyRoom() { - copyOnWrite(); - instance.clearModifyRoom(); + + modifyRoom_ = false; + onChanged(); return this; } + private boolean postMessage_ ; /** - * optional bool post_message = 2; + * bool post_message = 2; + * @return The postMessage. */ + @java.lang.Override public boolean getPostMessage() { - return instance.getPostMessage(); + return postMessage_; } /** - * optional bool post_message = 2; + * bool post_message = 2; + * @param value The postMessage to set. + * @return This builder for chaining. */ public Builder setPostMessage(boolean value) { - copyOnWrite(); - instance.setPostMessage(value); + + postMessage_ = value; + onChanged(); return this; } /** - * optional bool post_message = 2; + * bool post_message = 2; + * @return This builder for chaining. */ public Builder clearPostMessage() { - copyOnWrite(); - instance.clearPostMessage(); + + postMessage_ = false; + onChanged(); return this; } + private boolean editMessage_ ; /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return The editMessage. */ + @java.lang.Override public boolean getEditMessage() { - return instance.getEditMessage(); + return editMessage_; } /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @param value The editMessage to set. + * @return This builder for chaining. */ public Builder setEditMessage(boolean value) { - copyOnWrite(); - instance.setEditMessage(value); + + editMessage_ = value; + onChanged(); return this; } /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return This builder for chaining. */ public Builder clearEditMessage() { - copyOnWrite(); - instance.clearEditMessage(); + + editMessage_ = false; + onChanged(); return this; } + private boolean deleteMessage_ ; /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return The deleteMessage. */ + @java.lang.Override public boolean getDeleteMessage() { - return instance.getDeleteMessage(); + return deleteMessage_; } /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @param value The deleteMessage to set. + * @return This builder for chaining. */ public Builder setDeleteMessage(boolean value) { - copyOnWrite(); - instance.setDeleteMessage(value); + + deleteMessage_ = value; + onChanged(); return this; } /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return This builder for chaining. */ public Builder clearDeleteMessage() { - copyOnWrite(); - instance.clearDeleteMessage(); + + deleteMessage_ = false; + onChanged(); return this; } + private boolean pinMessage_ ; /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { - return instance.getPinMessage(); + return pinMessage_; } /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @param value The pinMessage to set. + * @return This builder for chaining. */ public Builder setPinMessage(boolean value) { - copyOnWrite(); - instance.setPinMessage(value); + + pinMessage_ = value; + onChanged(); return this; } /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return This builder for chaining. */ public Builder clearPinMessage() { - copyOnWrite(); - instance.clearPinMessage(); + + pinMessage_ = false; + onChanged(); return this; } + private boolean addMember_ ; /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { - return instance.getAddMember(); + return addMember_; } /** - * optional bool add_member = 6; + * bool add_member = 6; + * @param value The addMember to set. + * @return This builder for chaining. */ public Builder setAddMember(boolean value) { - copyOnWrite(); - instance.setAddMember(value); + + addMember_ = value; + onChanged(); return this; } /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return This builder for chaining. */ public Builder clearAddMember() { - copyOnWrite(); - instance.clearAddMember(); + + addMember_ = false; + onChanged(); return this; } + private boolean banMember_ ; /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return The banMember. */ + @java.lang.Override public boolean getBanMember() { - return instance.getBanMember(); + return banMember_; } /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @param value The banMember to set. + * @return This builder for chaining. */ public Builder setBanMember(boolean value) { - copyOnWrite(); - instance.setBanMember(value); + + banMember_ = value; + onChanged(); return this; } /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return This builder for chaining. */ public Builder clearBanMember() { - copyOnWrite(); - instance.clearBanMember(); + + banMember_ = false; + onChanged(); return this; } + private boolean getMember_ ; /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { - return instance.getGetMember(); + return getMember_; } /** - * optional bool get_member = 8; + * bool get_member = 8; + * @param value The getMember to set. + * @return This builder for chaining. */ public Builder setGetMember(boolean value) { - copyOnWrite(); - instance.setGetMember(value); + + getMember_ = value; + onChanged(); return this; } /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return This builder for chaining. */ public Builder clearGetMember() { - copyOnWrite(); - instance.clearGetMember(); + + getMember_ = false; + onChanged(); return this; } + private boolean addAdmin_ ; /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return The addAdmin. */ + @java.lang.Override public boolean getAddAdmin() { - return instance.getAddAdmin(); + return addAdmin_; } /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @param value The addAdmin to set. + * @return This builder for chaining. */ public Builder setAddAdmin(boolean value) { - copyOnWrite(); - instance.setAddAdmin(value); + + addAdmin_ = value; + onChanged(); return this; } /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return This builder for chaining. */ public Builder clearAddAdmin() { - copyOnWrite(); - instance.clearAddAdmin(); + + addAdmin_ = false; + onChanged(); return this; } + private boolean addStory_ ; /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return The addStory. */ + @java.lang.Override public boolean getAddStory() { - return instance.getAddStory(); + return addStory_; } /** - * optional bool add_story = 10; + * bool add_story = 10; + * @param value The addStory to set. + * @return This builder for chaining. */ public Builder setAddStory(boolean value) { - copyOnWrite(); - instance.setAddStory(value); + + addStory_ = value; + onChanged(); return this; } /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return This builder for chaining. */ public Builder clearAddStory() { - copyOnWrite(); - instance.clearAddStory(); + + addStory_ = false; + onChanged(); return this; } + private boolean deleteStory_ ; /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return The deleteStory. */ + @java.lang.Override public boolean getDeleteStory() { - return instance.getDeleteStory(); + return deleteStory_; } /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @param value The deleteStory to set. + * @return This builder for chaining. */ public Builder setDeleteStory(boolean value) { - copyOnWrite(); - instance.setDeleteStory(value); + + deleteStory_ = value; + onChanged(); return this; } /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return This builder for chaining. */ public Builder clearDeleteStory() { - copyOnWrite(); - instance.clearDeleteStory(); + + deleteStory_ = false; + onChanged(); return this; } + private boolean showStoryViews_ ; /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return The showStoryViews. */ + @java.lang.Override public boolean getShowStoryViews() { - return instance.getShowStoryViews(); + return showStoryViews_; } /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @param value The showStoryViews to set. + * @return This builder for chaining. */ public Builder setShowStoryViews(boolean value) { - copyOnWrite(); - instance.setShowStoryViews(value); + + showStoryViews_ = value; + onChanged(); return this; } /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return This builder for chaining. */ public Builder clearShowStoryViews() { - copyOnWrite(); - instance.clearShowStoryViews(); + + showStoryViews_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:proto.ChannelAddAdmin.AdminRights) } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights other = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights) arg1; - modifyRoom_ = visitor.visitBoolean(modifyRoom_ != false, modifyRoom_, - other.modifyRoom_ != false, other.modifyRoom_); - postMessage_ = visitor.visitBoolean(postMessage_ != false, postMessage_, - other.postMessage_ != false, other.postMessage_); - editMessage_ = visitor.visitBoolean(editMessage_ != false, editMessage_, - other.editMessage_ != false, other.editMessage_); - deleteMessage_ = visitor.visitBoolean(deleteMessage_ != false, deleteMessage_, - other.deleteMessage_ != false, other.deleteMessage_); - pinMessage_ = visitor.visitBoolean(pinMessage_ != false, pinMessage_, - other.pinMessage_ != false, other.pinMessage_); - addMember_ = visitor.visitBoolean(addMember_ != false, addMember_, - other.addMember_ != false, other.addMember_); - banMember_ = visitor.visitBoolean(banMember_ != false, banMember_, - other.banMember_ != false, other.banMember_); - getMember_ = visitor.visitBoolean(getMember_ != false, getMember_, - other.getMember_ != false, other.getMember_); - addAdmin_ = visitor.visitBoolean(addAdmin_ != false, addAdmin_, - other.addAdmin_ != false, other.addAdmin_); - addStory_ = visitor.visitBoolean(addStory_ != false, addStory_, - other.addStory_ != false, other.addStory_); - deleteStory_ = visitor.visitBoolean(deleteStory_ != false, deleteStory_, - other.deleteStory_ != false, other.deleteStory_); - showStoryViews_ = visitor.visitBoolean(showStoryViews_ != false, showStoryViews_, - other.showStoryViews_ != false, other.showStoryViews_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - modifyRoom_ = input.readBool(); - break; - } - case 16: { - - postMessage_ = input.readBool(); - break; - } - case 24: { - - editMessage_ = input.readBool(); - break; - } - case 32: { - - deleteMessage_ = input.readBool(); - break; - } - case 40: { - - pinMessage_ = input.readBool(); - break; - } - case 48: { - - addMember_ = input.readBool(); - break; - } - case 56: { - - banMember_ = input.readBool(); - break; - } - case 64: { - - getMember_ = input.readBool(); - break; - } - case 72: { - - addAdmin_ = input.readBool(); - break; - } - case 80: { - - addStory_ = input.readBool(); - break; - } - case 88: { - - deleteStory_ = input.readBool(); - break; - } - case 96: { - - showStoryViews_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - // @@protoc_insertion_point(class_scope:proto.ChannelAddAdmin.AdminRights) private static final net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new AdminRights(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights(); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdminRights parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdminRights(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights permission_; /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getPermission() { return permission_ == null ? net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : permission_; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; - */ - private void setPermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; - */ - private void setPermission( - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ - private void mergePermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -1194,10 +1543,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1217,553 +1568,933 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin other = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddAdmin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddAdmin) net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.class, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdmin_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin build() { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin buildPartial() { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin result = new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin) { + return mergeFrom((net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin other) { + if (other == net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder> permissionBuilder_; /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.ChannelAddAdmin) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin other = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - memberId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : permission_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; } + return permissionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelAddAdmin) + } // @@protoc_insertion_point(class_scope:proto.ChannelAddAdmin) private static final net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddAdmin(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin(); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddAdmin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddAdmin(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelAddAdminResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddAdminResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return The permission. */ net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getPermission(); + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.ChannelAddAdminResponse} */ - public static final class ChannelAddAdminResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddAdminResponse, ChannelAddAdminResponse.Builder> implements + public static final class ChannelAddAdminResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddAdminResponse) ChannelAddAdminResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddAdminResponse.newBuilder() to construct. + private ChannelAddAdminResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddAdminResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddAdminResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddAdminResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.class, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights permission_; /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getPermission() { return permission_ == null ? net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : permission_; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; - */ - private void setPermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; - */ - private void setPermission( - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ - private void mergePermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1778,10 +2509,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1801,363 +2534,757 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse other = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddAdminResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddAdminResponse) net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.class, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddAdmin.internal_static_proto_ChannelAddAdminResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse build() { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse buildPartial() { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse result = new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse other) { + if (other == net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder> permissionBuilder_; /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChannelAddAdmin.AdminRights permission = 4; + * .proto.ChannelAddAdmin.AdminRights permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.ChannelAddAdminResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse other = (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - memberId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : permission_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.ChannelAddAdmin.AdminRights permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; } + return permissionBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ChannelAddAdminResponse) + } // @@protoc_insertion_point(class_scope:proto.ChannelAddAdminResponse) private static final net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddAdminResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse(); } public static net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddAdminResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddAdminResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdminResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddAdmin_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddAdmin_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddAdmin_AdminRights_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddAdmin_AdminRights_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddAdminResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddAdminResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025ChannelAddAdmin.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\"\236\003\n\017ChannelAddAdmi" + + "n\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007ro" + + "om_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\0226\n\npermis" + + "sion\030\004 \001(\0132\".proto.ChannelAddAdmin.Admin" + + "Rights\032\215\002\n\013AdminRights\022\023\n\013modify_room\030\001 " + + "\001(\010\022\024\n\014post_message\030\002 \001(\010\022\024\n\014edit_messag" + + "e\030\003 \001(\010\022\026\n\016delete_message\030\004 \001(\010\022\023\n\013pin_m" + + "essage\030\005 \001(\010\022\022\n\nadd_member\030\006 \001(\010\022\022\n\nban_" + + "member\030\007 \001(\010\022\022\n\nget_member\030\010 \001(\010\022\021\n\tadd_" + + "admin\030\t \001(\010\022\021\n\tadd_story\030\n \001(\010\022\024\n\014delete" + + "_story\030\013 \001(\010\022\030\n\020show_story_views\030\014 \001(\010\"\230" + + "\001\n\027ChannelAddAdminResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\021" + + "\n\tmember_id\030\003 \001(\004\0226\n\npermission\030\004 \001(\0132\"." + + "proto.ChannelAddAdmin.AdminRightsB&\n\016net" + + ".iGap.protoB\024ProtoChannelAddAdminb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelAddAdmin_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelAddAdmin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddAdmin_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", "Permission", }); + internal_static_proto_ChannelAddAdmin_AdminRights_descriptor = + internal_static_proto_ChannelAddAdmin_descriptor.getNestedTypes().get(0); + internal_static_proto_ChannelAddAdmin_AdminRights_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddAdmin_AdminRights_descriptor, + new java.lang.String[] { "ModifyRoom", "PostMessage", "EditMessage", "DeleteMessage", "PinMessage", "AddMember", "BanMember", "GetMember", "AddAdmin", "AddStory", "DeleteStory", "ShowStoryViews", }); + internal_static_proto_ChannelAddAdminResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelAddAdminResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddAdminResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", "Permission", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelAddMember.java b/src/main/java/net/iGap/proto/ProtoChannelAddMember.java index 81f8b4b..c3c402e 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelAddMember.java +++ b/src/main/java/net/iGap/proto/ProtoChannelAddMember.java @@ -8,94 +8,286 @@ private ProtoChannelAddMember() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelAddMemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddMember) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; + * @return Whether the member field is set. */ boolean hasMember(); /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; + * @return The member. */ net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member getMember(); + /** + * .proto.ChannelAddMember.Member member = 3; + */ + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.MemberOrBuilder getMemberOrBuilder(); } /** * Protobuf type {@code proto.ChannelAddMember} */ - public static final class ChannelAddMember extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddMember, ChannelAddMember.Builder> implements + public static final class ChannelAddMember extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddMember) ChannelAddMemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddMember.newBuilder() to construct. + private ChannelAddMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddMember() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddMember(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddMember( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder subBuilder = null; + if (member_ != null) { + subBuilder = member_.toBuilder(); + } + member_ = input.readMessage(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(member_); + member_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.class, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Builder.class); + } + public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddMember.Member) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.ChannelAddMember.Member} */ - public static final class Member extends - com.google.protobuf.GeneratedMessageLite< - Member, Member.Builder> implements + public static final class Member extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddMember.Member) MemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use Member.newBuilder() to construct. + private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Member() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Member(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Member( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.class, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { output.writeUInt64(1, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -103,340 +295,437 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member other = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member) obj; + + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddMember.Member} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddMember.Member) net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.MemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.class, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_Member_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member build() { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member buildPartial() { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member result = new net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member(this); + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member) { + return mergeFrom((net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member other) { + if (other == net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long userId_ ; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAddMember.Member) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member other = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAddMember.Member) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAddMember.Member) private static final net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Member(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member(); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Member parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Member(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_FIELD_NUMBER = 3; private net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member member_; /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; + * @return Whether the member field is set. */ + @java.lang.Override public boolean hasMember() { return member_ != null; } /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; + * @return The member. */ + @java.lang.Override public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member getMember() { return member_ == null ? net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.getDefaultInstance() : member_; } /** - * optional .proto.ChannelAddMember.Member member = 3; - */ - private void setMember(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member value) { - if (value == null) { - throw new NullPointerException(); - } - member_ = value; - - } - /** - * optional .proto.ChannelAddMember.Member member = 3; - */ - private void setMember( - net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder builderForValue) { - member_ = builderForValue.build(); - - } - /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; */ - private void mergeMember(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member value) { - if (member_ != null && - member_ != net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.getDefaultInstance()) { - member_ = - net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.newBuilder(member_).mergeFrom(value).buildPartial(); - } else { - member_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.MemberOrBuilder getMemberOrBuilder() { + return getMember(); } - /** - * optional .proto.ChannelAddMember.Member member = 3; - */ - private void clearMember() { member_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -448,10 +737,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (member_ != null) { output.writeMessage(3, getMember()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -467,510 +758,874 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMember()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddMember.ChannelAddMember)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember other = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasMember() != other.hasMember()) return false; + if (hasMember()) { + if (!getMember() + .equals(other.getMember())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasMember()) { + hash = (37 * hash) + MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getMember().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddMember} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddMember.ChannelAddMember, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddMember) net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.class, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + if (memberBuilder_ == null) { + member_ = null; + } else { + member_ = null; + memberBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMember_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember build() { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember buildPartial() { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember result = new net.iGap.proto.ProtoChannelAddMember.ChannelAddMember(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + if (memberBuilder_ == null) { + result.member_ = member_; + } else { + result.member_ = memberBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddMember.ChannelAddMember) { + return mergeFrom((net.iGap.proto.ProtoChannelAddMember.ChannelAddMember)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember other) { + if (other == net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasMember()) { + mergeMember(other.getMember()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member member_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.MemberOrBuilder> memberBuilder_; /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; + * @return Whether the member field is set. */ public boolean hasMember() { - return instance.hasMember(); + return memberBuilder_ != null || member_ != null; } /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; + * @return The member. */ public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member getMember() { - return instance.getMember(); + if (memberBuilder_ == null) { + return member_ == null ? net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.getDefaultInstance() : member_; + } else { + return memberBuilder_.getMessage(); + } } /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; */ public Builder setMember(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member value) { - copyOnWrite(); - instance.setMember(value); - return this; + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + member_ = value; + onChanged(); + } else { + memberBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; */ public Builder setMember( net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder builderForValue) { - copyOnWrite(); - instance.setMember(builderForValue); + if (memberBuilder_ == null) { + member_ = builderForValue.build(); + onChanged(); + } else { + memberBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; */ public Builder mergeMember(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member value) { - copyOnWrite(); - instance.mergeMember(value); + if (memberBuilder_ == null) { + if (member_ != null) { + member_ = + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.newBuilder(member_).mergeFrom(value).buildPartial(); + } else { + member_ = value; + } + onChanged(); + } else { + memberBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChannelAddMember.Member member = 3; + * .proto.ChannelAddMember.Member member = 3; */ - public Builder clearMember() { copyOnWrite(); - instance.clearMember(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.ChannelAddMember) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddMember.ChannelAddMember(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddMember.ChannelAddMember other = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - member_ = visitor.visitMessage(member_, other.member_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearMember() { + if (memberBuilder_ == null) { + member_ = null; + onChanged(); + } else { + member_ = null; + memberBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder subBuilder = null; - if (member_ != null) { - subBuilder = member_.toBuilder(); - } - member_ = input.readMessage(net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(member_); - member_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.ChannelAddMember.Member member = 3; + */ + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder getMemberBuilder() { + + onChanged(); + return getMemberFieldBuilder().getBuilder(); + } + /** + * .proto.ChannelAddMember.Member member = 3; + */ + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.MemberOrBuilder getMemberOrBuilder() { + if (memberBuilder_ != null) { + return memberBuilder_.getMessageOrBuilder(); + } else { + return member_ == null ? + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.getDefaultInstance() : member_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.ChannelAddMember.Member member = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.MemberOrBuilder> + getMemberFieldBuilder() { + if (memberBuilder_ == null) { + memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.Member.Builder, net.iGap.proto.ProtoChannelAddMember.ChannelAddMember.MemberOrBuilder>( + getMember(), + getParentForChildren(), + isClean()); + member_ = null; } + return memberBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelAddMember) + } // @@protoc_insertion_point(class_scope:proto.ChannelAddMember) private static final net.iGap.proto.ProtoChannelAddMember.ChannelAddMember DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddMember(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddMember.ChannelAddMember(); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMember getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddMember(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelAddMemberResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddMemberResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @return The role. */ net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole(); } /** * Protobuf type {@code proto.ChannelAddMemberResponse} */ - public static final class ChannelAddMemberResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddMemberResponse, ChannelAddMemberResponse.Builder> implements + public static final class ChannelAddMemberResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddMemberResponse) ChannelAddMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddMemberResponse.newBuilder() to construct. + private ChannelAddMemberResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddMemberResponse() { + role_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddMemberResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddMemberResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMemberResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.class, net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int ROLE_FIELD_NUMBER = 4; private int role_; /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @return The role. */ - public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { - net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Role.UNRECOGNIZED : result; } - /** - * optional .proto.ChannelRoom.Role role = 4; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.ChannelRoom.Role role = 4; - */ - private void setRole(net.iGap.proto.ProtoGlobal.ChannelRoom.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.ChannelRoom.Role role = 4; - */ - private void clearRole() { - - role_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -985,10 +1640,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (role_ != net.iGap.proto.ProtoGlobal.ChannelRoom.Role.MEMBER.getNumber()) { output.writeEnum(4, role_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1008,348 +1665,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, role_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse other = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (role_ != other.role_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddMemberResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddMemberResponse) net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.class, net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + userId_ = 0L; + + role_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddMember.internal_static_proto_ChannelAddMemberResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse build() { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse buildPartial() { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse result = new net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.userId_ = userId_; + result.role_ = role_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse other) { + if (other == net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Role.UNRECOGNIZED : result; } /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoGlobal.ChannelRoom.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Role role = 4; + * .proto.ChannelRoom.Role role = 4; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAddMemberResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse other = (net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - userId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - role_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.ChannelAddMemberResponse) } - // @@protoc_insertion_point(class_scope:proto.ChannelAddMemberResponse) private static final net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddMemberResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse(); } public static net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddMemberResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMember.ChannelAddMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddMember_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddMember_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddMember_Member_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddMember_Member_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddMemberResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ChannelAddMember.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\032\014Global.proto\"\217\001\n" + + "\020ChannelAddMember\022\037\n\007request\030\001 \001(\0132\016.pro" + + "to.Request\022\017\n\007room_id\030\002 \001(\004\022.\n\006member\030\003 " + + "\001(\0132\036.proto.ChannelAddMember.Member\032\031\n\006M" + + "ember\022\017\n\007user_id\030\001 \001(\004\"\206\001\n\030ChannelAddMem" + + "berResponse\022!\n\010response\030\001 \001(\0132\017.proto.Re" + + "sponse\022\017\n\007room_id\030\002 \001(\004\022\017\n\007user_id\030\003 \001(\004" + + "\022%\n\004role\030\004 \001(\0162\027.proto.ChannelRoom.RoleB" + + "\'\n\016net.iGap.protoB\025ProtoChannelAddMember" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelAddMember_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelAddMember_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddMember_descriptor, + new java.lang.String[] { "Request", "RoomId", "Member", }); + internal_static_proto_ChannelAddMember_Member_descriptor = + internal_static_proto_ChannelAddMember_descriptor.getNestedTypes().get(0); + internal_static_proto_ChannelAddMember_Member_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddMember_Member_descriptor, + new java.lang.String[] { "UserId", }); + internal_static_proto_ChannelAddMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelAddMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddMemberResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "UserId", "Role", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelAddMessageReaction.java b/src/main/java/net/iGap/proto/ProtoChannelAddMessageReaction.java index 078dd4a..6d2d32c 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelAddMessageReaction.java +++ b/src/main/java/net/iGap/proto/ProtoChannelAddMessageReaction.java @@ -8,213 +8,262 @@ private ProtoChannelAddMessageReaction() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelAddMessageReactionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddMessageReaction) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @return The enum numeric value on the wire for reaction. */ int getReactionValue(); /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @return The reaction. */ net.iGap.proto.ProtoGlobal.RoomMessageReaction getReaction(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChannelAddMessageReaction} */ - public static final class ChannelAddMessageReaction extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddMessageReaction, ChannelAddMessageReaction.Builder> implements + public static final class ChannelAddMessageReaction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddMessageReaction) ChannelAddMessageReactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddMessageReaction.newBuilder() to construct. + private ChannelAddMessageReaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddMessageReaction() { + reaction_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddMessageReaction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddMessageReaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + reaction_ = rawValue; + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.class, net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int REACTION_FIELD_NUMBER = 4; private int reaction_; /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @return The enum numeric value on the wire for reaction. */ - public int getReactionValue() { + @java.lang.Override public int getReactionValue() { return reaction_; } /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @return The reaction. */ - public net.iGap.proto.ProtoGlobal.RoomMessageReaction getReaction() { - net.iGap.proto.ProtoGlobal.RoomMessageReaction result = net.iGap.proto.ProtoGlobal.RoomMessageReaction.forNumber(reaction_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageReaction getReaction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageReaction result = net.iGap.proto.ProtoGlobal.RoomMessageReaction.valueOf(reaction_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageReaction.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageReaction reaction = 4; - */ - private void setReactionValue(int value) { - reaction_ = value; - } - /** - * optional .proto.RoomMessageReaction reaction = 4; - */ - private void setReaction(net.iGap.proto.ProtoGlobal.RoomMessageReaction value) { - if (value == null) { - throw new NullPointerException(); - } - - reaction_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageReaction reaction = 4; - */ - private void clearReaction() { - - reaction_ = 0; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -232,10 +281,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -259,395 +310,678 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction other = (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (reaction_ != other.reaction_) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + REACTION_FIELD_NUMBER; + hash = (53 * hash) + reaction_; + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddMessageReaction} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddMessageReaction) net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.class, net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + reaction_ = 0; + + documentId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReaction_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction build() { + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction buildPartial() { + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction result = new net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.reaction_ = reaction_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction) { + return mergeFrom((net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction other) { + if (other == net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.reaction_ != 0) { + setReactionValue(other.getReactionValue()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private int reaction_ = 0; /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @return The enum numeric value on the wire for reaction. */ - public int getReactionValue() { - return instance.getReactionValue(); + @java.lang.Override public int getReactionValue() { + return reaction_; } /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @param value The enum numeric value on the wire for reaction to set. + * @return This builder for chaining. */ public Builder setReactionValue(int value) { - copyOnWrite(); - instance.setReactionValue(value); + + reaction_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @return The reaction. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageReaction getReaction() { - return instance.getReaction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageReaction result = net.iGap.proto.ProtoGlobal.RoomMessageReaction.valueOf(reaction_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageReaction.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @param value The reaction to set. + * @return This builder for chaining. */ public Builder setReaction(net.iGap.proto.ProtoGlobal.RoomMessageReaction value) { - copyOnWrite(); - instance.setReaction(value); + if (value == null) { + throw new NullPointerException(); + } + + reaction_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageReaction reaction = 4; + * .proto.RoomMessageReaction reaction = 4; + * @return This builder for chaining. */ public Builder clearReaction() { - copyOnWrite(); - instance.clearReaction(); + + reaction_ = 0; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAddMessageReaction) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction other = (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - reaction_ = visitor.visitInt(reaction_ != 0, reaction_, other.reaction_ != 0, other.reaction_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - reaction_ = rawValue; - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAddMessageReaction) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAddMessageReaction) private static final net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddMessageReaction(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction(); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddMessageReaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddMessageReaction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelAddMessageReactionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddMessageReactionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @return The reactionCounterLabel. */ java.lang.String getReactionCounterLabel(); /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @return The bytes for reactionCounterLabel. */ com.google.protobuf.ByteString getReactionCounterLabelBytes(); @@ -655,124 +989,190 @@ public interface ChannelAddMessageReactionResponseOrBuilder extends /** * Protobuf type {@code proto.ChannelAddMessageReactionResponse} */ - public static final class ChannelAddMessageReactionResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddMessageReactionResponse, ChannelAddMessageReactionResponse.Builder> implements + public static final class ChannelAddMessageReactionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddMessageReactionResponse) ChannelAddMessageReactionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddMessageReactionResponse.newBuilder() to construct. + private ChannelAddMessageReactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddMessageReactionResponse() { reactionCounterLabel_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddMessageReactionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddMessageReactionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + reactionCounterLabel_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReactionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.class, net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int REACTION_COUNTER_LABEL_FIELD_NUMBER = 2; - private java.lang.String reactionCounterLabel_; + private volatile java.lang.Object reactionCounterLabel_; /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @return The reactionCounterLabel. */ + @java.lang.Override public java.lang.String getReactionCounterLabel() { - return reactionCounterLabel_; + java.lang.Object ref = reactionCounterLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reactionCounterLabel_ = s; + return s; + } } /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @return The bytes for reactionCounterLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getReactionCounterLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(reactionCounterLabel_); - } - /** - * optional string reaction_counter_label = 2; - */ - private void setReactionCounterLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reactionCounterLabel_ = value; - } - /** - * optional string reaction_counter_label = 2; - */ - private void clearReactionCounterLabel() { - - reactionCounterLabel_ = getDefaultInstance().getReactionCounterLabel(); + java.lang.Object ref = reactionCounterLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reactionCounterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string reaction_counter_label = 2; - */ - private void setReactionCounterLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reactionCounterLabel_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!reactionCounterLabel_.isEmpty()) { - output.writeString(2, getReactionCounterLabel()); + if (!getReactionCounterLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reactionCounterLabel_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -780,296 +1180,605 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!reactionCounterLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getReactionCounterLabel()); + if (!getReactionCounterLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reactionCounterLabel_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse other = (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getReactionCounterLabel() + .equals(other.getReactionCounterLabel())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + REACTION_COUNTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getReactionCounterLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddMessageReactionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddMessageReactionResponse) net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReactionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.class, net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + reactionCounterLabel_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddMessageReaction.internal_static_proto_ChannelAddMessageReactionResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse build() { + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse buildPartial() { + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse result = new net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.reactionCounterLabel_ = reactionCounterLabel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse other) { + if (other == net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getReactionCounterLabel().isEmpty()) { + reactionCounterLabel_ = other.reactionCounterLabel_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object reactionCounterLabel_ = ""; /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @return The reactionCounterLabel. */ public java.lang.String getReactionCounterLabel() { - return instance.getReactionCounterLabel(); + java.lang.Object ref = reactionCounterLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reactionCounterLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @return The bytes for reactionCounterLabel. */ public com.google.protobuf.ByteString getReactionCounterLabelBytes() { - return instance.getReactionCounterLabelBytes(); + java.lang.Object ref = reactionCounterLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reactionCounterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @param value The reactionCounterLabel to set. + * @return This builder for chaining. */ public Builder setReactionCounterLabel( java.lang.String value) { - copyOnWrite(); - instance.setReactionCounterLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + reactionCounterLabel_ = value; + onChanged(); return this; } /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @return This builder for chaining. */ public Builder clearReactionCounterLabel() { - copyOnWrite(); - instance.clearReactionCounterLabel(); + + reactionCounterLabel_ = getDefaultInstance().getReactionCounterLabel(); + onChanged(); return this; } /** - * optional string reaction_counter_label = 2; + * string reaction_counter_label = 2; + * @param value The bytes for reactionCounterLabel to set. + * @return This builder for chaining. */ public Builder setReactionCounterLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setReactionCounterLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reactionCounterLabel_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAddMessageReactionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse other = (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - reactionCounterLabel_ = visitor.visitString(!reactionCounterLabel_.isEmpty(), reactionCounterLabel_, - !other.reactionCounterLabel_.isEmpty(), other.reactionCounterLabel_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - reactionCounterLabel_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAddMessageReactionResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAddMessageReactionResponse) private static final net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddMessageReactionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse(); } public static net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddMessageReactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddMessageReactionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddMessageReaction.ChannelAddMessageReactionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddMessageReaction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddMessageReaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddMessageReactionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddMessageReactionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\037ChannelAddMessageReaction.proto\022\005proto" + + "\032\rRequest.proto\032\016Response.proto\032\014Global." + + "proto\"\244\001\n\031ChannelAddMessageReaction\022\037\n\007r" + + "equest\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030" + + "\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022,\n\010reaction\030\004 " + + "\001(\0162\032.proto.RoomMessageReaction\022\023\n\013docum" + + "ent_id\030\005 \001(\004\"f\n!ChannelAddMessageReactio" + + "nResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\036\n\026reaction_counter_label\030\002 \001(\tB0\n\016" + + "net.iGap.protoB\036ProtoChannelAddMessageRe" + + "actionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelAddMessageReaction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelAddMessageReaction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddMessageReaction_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Reaction", "DocumentId", }); + internal_static_proto_ChannelAddMessageReactionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelAddMessageReactionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddMessageReactionResponse_descriptor, + new java.lang.String[] { "Response", "ReactionCounterLabel", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelAddModerator.java b/src/main/java/net/iGap/proto/ProtoChannelAddModerator.java index 5db282d..d4ddc87 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelAddModerator.java +++ b/src/main/java/net/iGap/proto/ProtoChannelAddModerator.java @@ -8,137 +8,203 @@ private ProtoChannelAddModerator() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelAddModeratorOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddModerator) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelAddModerator} */ - public static final class ChannelAddModerator extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddModerator, ChannelAddModerator.Builder> implements + public static final class ChannelAddModerator extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddModerator) ChannelAddModeratorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddModerator.newBuilder() to construct. + private ChannelAddModerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddModerator() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddModerator(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddModerator( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.class, net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator other = (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddModerator} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddModerator) net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.class, net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + memberId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModerator_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator build() { + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator buildPartial() { + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator result = new net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator) { + return mergeFrom((net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator other) { + if (other == net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAddModerator) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator other = (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAddModerator) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAddModerator) private static final net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddModerator(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator(); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddModerator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddModerator(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModerator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelAddModeratorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAddModeratorResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelAddModeratorResponse} */ - public static final class ChannelAddModeratorResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelAddModeratorResponse, ChannelAddModeratorResponse.Builder> implements + public static final class ChannelAddModeratorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAddModeratorResponse) ChannelAddModeratorResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAddModeratorResponse.newBuilder() to construct. + private ChannelAddModeratorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAddModeratorResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAddModeratorResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAddModeratorResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.class, net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse other = (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAddModeratorResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAddModeratorResponse) net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.class, net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAddModerator.internal_static_proto_ChannelAddModeratorResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse build() { + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse buildPartial() { + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse result = new net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse other) { + if (other == net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAddModeratorResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse other = (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAddModeratorResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAddModeratorResponse) private static final net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAddModeratorResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse(); } public static net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAddModeratorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAddModeratorResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAddModerator.ChannelAddModeratorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddModerator_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddModerator_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAddModeratorResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAddModeratorResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031ChannelAddModerator.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"Z\n\023ChannelAddM" + + "oderator\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\017\n\007room_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\"d\n" + + "\033ChannelAddModeratorResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004" + + "\022\021\n\tmember_id\030\003 \001(\004B*\n\016net.iGap.protoB\030P" + + "rotoChannelAddModeratorb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelAddModerator_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelAddModerator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddModerator_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_ChannelAddModeratorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelAddModeratorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAddModeratorResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelAvatarAdd.java b/src/main/java/net/iGap/proto/ProtoChannelAvatarAdd.java index 6c9b694..19f155d 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelAvatarAdd.java +++ b/src/main/java/net/iGap/proto/ProtoChannelAvatarAdd.java @@ -8,181 +8,255 @@ private ProtoChannelAvatarAdd() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelAvatarAddOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAvatarAdd) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ java.lang.String getAttachment(); /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ com.google.protobuf.ByteString getAttachmentBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelAvatarAdd} */ - public static final class ChannelAvatarAdd extends - com.google.protobuf.GeneratedMessageLite< - ChannelAvatarAdd, ChannelAvatarAdd.Builder> implements + public static final class ChannelAvatarAdd extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAvatarAdd) ChannelAvatarAddOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAvatarAdd.newBuilder() to construct. + private ChannelAvatarAdd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAvatarAdd() { attachment_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAvatarAdd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAvatarAdd( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + attachment_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAdd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.class, net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ATTACHMENT_FIELD_NUMBER = 2; - private java.lang.String attachment_; + private volatile java.lang.Object attachment_; /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ + @java.lang.Override public java.lang.String getAttachment() { - return attachment_; + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(attachment_); - } - /** - * optional string attachment = 2; - */ - private void setAttachment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attachment_ = value; - } - /** - * optional string attachment = 2; - */ - private void clearAttachment() { - - attachment_ = getDefaultInstance().getAttachment(); - } - /** - * optional string attachment = 2; - */ - private void setAttachmentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attachment_ = value.toStringUtf8(); + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!attachment_.isEmpty()) { - output.writeString(2, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attachment_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,492 +264,821 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!attachment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attachment_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd other = (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getAttachment() + .equals(other.getAttachment())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAvatarAdd} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAvatarAdd) net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAdd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.class, net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + attachment_ = ""; + + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAdd_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd build() { + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd buildPartial() { + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd result = new net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.attachment_ = attachment_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd) { + return mergeFrom((net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd other) { + if (other == net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getAttachment().isEmpty()) { + attachment_ = other.attachment_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object attachment_ = ""; /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ public java.lang.String getAttachment() { - return instance.getAttachment(); + java.lang.Object ref = attachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ public com.google.protobuf.ByteString getAttachmentBytes() { - return instance.getAttachmentBytes(); + java.lang.Object ref = attachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @param value The attachment to set. + * @return This builder for chaining. */ public Builder setAttachment( java.lang.String value) { - copyOnWrite(); - instance.setAttachment(value); + if (value == null) { + throw new NullPointerException(); + } + + attachment_ = value; + onChanged(); return this; } /** - * optional string attachment = 2; + * string attachment = 2; + * @return This builder for chaining. */ public Builder clearAttachment() { - copyOnWrite(); - instance.clearAttachment(); + + attachment_ = getDefaultInstance().getAttachment(); + onChanged(); return this; } /** - * optional string attachment = 2; + * string attachment = 2; + * @param value The bytes for attachment to set. + * @return This builder for chaining. */ public Builder setAttachmentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAttachmentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachment_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarAdd) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd other = (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd) arg1; - request_ = visitor.visitMessage(request_, other.request_); - attachment_ = visitor.visitString(!attachment_.isEmpty(), attachment_, - !other.attachment_.isEmpty(), other.attachment_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - attachment_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarAdd) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAvatarAdd) private static final net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAvatarAdd(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd(); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAvatarAdd parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAvatarAdd(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAdd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelAvatarAddResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAvatarAddResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ boolean hasAvatar(); /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ net.iGap.proto.ProtoGlobal.Avatar getAvatar(); + /** + * .proto.Avatar avatar = 2; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelAvatarAddResponse} */ - public static final class ChannelAvatarAddResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelAvatarAddResponse, ChannelAvatarAddResponse.Builder> implements + public static final class ChannelAvatarAddResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAvatarAddResponse) ChannelAvatarAddResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAvatarAddResponse.newBuilder() to construct. + private ChannelAvatarAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAvatarAddResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAvatarAddResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAvatarAddResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; + if (avatar_ != null) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.class, net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int AVATAR_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Avatar avatar_; /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ + @java.lang.Override public boolean hasAvatar() { return avatar_ != null; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ - private void setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - - } - /** - * optional .proto.Avatar avatar = 2; - */ - private void setAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - avatar_ = builderForValue.build(); - - } - /** - * optional .proto.Avatar avatar = 2; - */ - private void mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (avatar_ != null && - avatar_ != net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()) { - avatar_ = - net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - - } - /** - * optional .proto.Avatar avatar = 2; - */ - private void clearAvatar() { avatar_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + return getAvatar(); } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -687,10 +1090,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -706,333 +1111,697 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse other = (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasAvatar() != other.hasAvatar()) return false; + if (hasAvatar()) { + if (!getAvatar() + .equals(other.getAvatar())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasAvatar()) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAvatarAddResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAvatarAddResponse) net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.class, net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (avatarBuilder_ == null) { + avatar_ = null; + } else { + avatar_ = null; + avatarBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAvatarAdd.internal_static_proto_ChannelAvatarAddResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse build() { + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse buildPartial() { + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse result = new net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse other) { + if (other == net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.Avatar avatar_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ public boolean hasAvatar() { - return instance.hasAvatar(); + return avatarBuilder_ != null || avatar_ != null; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { - return instance.getAvatar(); + if (avatarBuilder_ == null) { + return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } else { + return avatarBuilder_.getMessage(); + } } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(value); - return this; + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder setAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(builderForValue); + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.mergeAvatar(value); + if (avatarBuilder_ == null) { + if (avatar_ != null) { + avatar_ = + net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ - public Builder clearAvatar() { copyOnWrite(); - instance.clearAvatar(); + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + return this; } + /** + * .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_ == null ? + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } + } + /** + * .proto.Avatar avatar = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + getAvatar(), + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarAddResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse other = (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - avatar_ = visitor.visitMessage(avatar_, other.avatar_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarAddResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAvatarAddResponse) private static final net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAvatarAddResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse(); } public static net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAvatarAddResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAvatarAddResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarAdd.ChannelAvatarAddResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAvatarAdd_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAvatarAdd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAvatarAddResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAvatarAddResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ChannelAvatarAdd.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\032\014Global.proto\"X\n\020" + + "ChannelAvatarAdd\022\037\n\007request\030\001 \001(\0132\016.prot" + + "o.Request\022\022\n\nattachment\030\002 \001(\t\022\017\n\007room_id" + + "\030\003 \001(\004\"m\n\030ChannelAvatarAddResponse\022!\n\010re" + + "sponse\030\001 \001(\0132\017.proto.Response\022\035\n\006avatar\030" + + "\002 \001(\0132\r.proto.Avatar\022\017\n\007room_id\030\003 \001(\004B\'\n" + + "\016net.iGap.protoB\025ProtoChannelAvatarAddb\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelAvatarAdd_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelAvatarAdd_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAvatarAdd_descriptor, + new java.lang.String[] { "Request", "Attachment", "RoomId", }); + internal_static_proto_ChannelAvatarAddResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelAvatarAddResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAvatarAddResponse_descriptor, + new java.lang.String[] { "Response", "Avatar", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelAvatarDelete.java b/src/main/java/net/iGap/proto/ProtoChannelAvatarDelete.java index 191a125..3b0cb70 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelAvatarDelete.java +++ b/src/main/java/net/iGap/proto/ProtoChannelAvatarDelete.java @@ -8,137 +8,203 @@ private ProtoChannelAvatarDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelAvatarDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAvatarDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelAvatarDelete} */ - public static final class ChannelAvatarDelete extends - com.google.protobuf.GeneratedMessageLite< - ChannelAvatarDelete, ChannelAvatarDelete.Builder> implements + public static final class ChannelAvatarDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAvatarDelete) ChannelAvatarDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAvatarDelete.newBuilder() to construct. + private ChannelAvatarDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAvatarDelete() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAvatarDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAvatarDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.class, net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete other = (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getId() + != other.getId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAvatarDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAvatarDelete) net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.class, net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + id_ = 0L; + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDelete_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete build() { + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete buildPartial() { + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete result = new net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.id_ = id_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete) { + return mergeFrom((net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete other) { + if (other == net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete other = (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarDelete) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAvatarDelete) private static final net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAvatarDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete(); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAvatarDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAvatarDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelAvatarDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAvatarDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelAvatarDeleteResponse} */ - public static final class ChannelAvatarDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelAvatarDeleteResponse, ChannelAvatarDeleteResponse.Builder> implements + public static final class ChannelAvatarDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAvatarDeleteResponse) ChannelAvatarDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAvatarDeleteResponse.newBuilder() to construct. + private ChannelAvatarDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAvatarDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAvatarDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAvatarDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.class, net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse other = (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getId() + != other.getId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAvatarDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAvatarDeleteResponse) net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.class, net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + id_ = 0L; + + roomId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAvatarDelete.internal_static_proto_ChannelAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse build() { + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse buildPartial() { + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse result = new net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.id_ = id_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse other) { + if (other == net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse other = (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAvatarDeleteResponse) private static final net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAvatarDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse(); } public static net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAvatarDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAvatarDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarDelete.ChannelAvatarDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAvatarDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAvatarDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAvatarDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAvatarDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031ChannelAvatarDelete.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"S\n\023ChannelAvat" + + "arDelete\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\n\n\002id\030\002 \001(\004\022\017\n\007room_id\030\003 \001(\004\"]\n\033Channe" + + "lAvatarDeleteResponse\022!\n\010response\030\001 \001(\0132" + + "\017.proto.Response\022\n\n\002id\030\002 \001(\004\022\017\n\007room_id\030" + + "\003 \001(\004B*\n\016net.iGap.protoB\030ProtoChannelAva" + + "tarDeleteb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelAvatarDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelAvatarDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAvatarDelete_descriptor, + new java.lang.String[] { "Request", "Id", "RoomId", }); + internal_static_proto_ChannelAvatarDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelAvatarDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAvatarDeleteResponse_descriptor, + new java.lang.String[] { "Response", "Id", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelAvatarGetList.java b/src/main/java/net/iGap/proto/ProtoChannelAvatarGetList.java index ea45bd6..2a69154 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelAvatarGetList.java +++ b/src/main/java/net/iGap/proto/ProtoChannelAvatarGetList.java @@ -8,109 +8,181 @@ private ProtoChannelAvatarGetList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelAvatarGetListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAvatarGetList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelAvatarGetList} */ - public static final class ChannelAvatarGetList extends - com.google.protobuf.GeneratedMessageLite< - ChannelAvatarGetList, ChannelAvatarGetList.Builder> implements + public static final class ChannelAvatarGetList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAvatarGetList) ChannelAvatarGetListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAvatarGetList.newBuilder() to construct. + private ChannelAvatarGetList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAvatarGetList() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAvatarGetList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAvatarGetList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.class, net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,284 +208,522 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList other = (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAvatarGetList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAvatarGetList) net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.class, net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList build() { + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList buildPartial() { + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList result = new net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList) { + return mergeFrom((net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList other) { + if (other == net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarGetList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList other = (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarGetList) + } + // @@protoc_insertion_point(class_scope:proto.ChannelAvatarGetList) private static final net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAvatarGetList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList(); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAvatarGetList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAvatarGetList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelAvatarGetListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelAvatarGetListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Avatar avatar = 2; @@ -426,82 +738,160 @@ public interface ChannelAvatarGetListResponseOrBuilder extends * repeated .proto.Avatar avatar = 2; */ int getAvatarCount(); + /** + * repeated .proto.Avatar avatar = 2; + */ + java.util.List + getAvatarOrBuilderList(); + /** + * repeated .proto.Avatar avatar = 2; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( + int index); } /** * Protobuf type {@code proto.ChannelAvatarGetListResponse} */ - public static final class ChannelAvatarGetListResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelAvatarGetListResponse, ChannelAvatarGetListResponse.Builder> implements + public static final class ChannelAvatarGetListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelAvatarGetListResponse) ChannelAvatarGetListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelAvatarGetListResponse.newBuilder() to construct. + private ChannelAvatarGetListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelAvatarGetListResponse() { - avatar_ = emptyProtobufList(); + avatar_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelAvatarGetListResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelAvatarGetListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + avatar_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + avatar_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + avatar_ = java.util.Collections.unmodifiableList(avatar_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.class, net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int AVATAR_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList avatar_; + private java.util.List avatar_; /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public java.util.List getAvatarList() { return avatar_; } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public java.util.List getAvatarOrBuilderList() { return avatar_; @@ -509,108 +899,38 @@ public java.util.List getAvatarList() { /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public int getAvatarCount() { return avatar_.size(); } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar(int index) { return avatar_.get(index); } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( int index) { return avatar_.get(index); } - private void ensureAvatarIsMutable() { - if (!avatar_.isModifiable()) { - avatar_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(avatar_); - } - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void setAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.set(index, value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void setAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.add(value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.add(index, value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.add(builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAllAvatar( - java.lang.Iterable values) { - ensureAvatarIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, avatar_); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void clearAvatar() { - avatar_ = emptyProtobufList(); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void removeAvatar(int index) { - ensureAvatarIsMutable(); - avatar_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -619,10 +939,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < avatar_.size(); i++) { output.writeMessage(2, avatar_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -634,162 +956,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, avatar_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse other = (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getAvatarList() + .equals(other.getAvatarList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getAvatarCount() > 0) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatarList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelAvatarGetListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelAvatarGetListResponse) net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.class, net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAvatarFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (avatarBuilder_ == null) { + avatar_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + avatarBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelAvatarGetList.internal_static_proto_ChannelAvatarGetListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse build() { + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse buildPartial() { + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse result = new net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + avatar_ = java.util.Collections.unmodifiableList(avatar_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse other) { + if (other == net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (avatarBuilder_ == null) { + if (!other.avatar_.isEmpty()) { + if (avatar_.isEmpty()) { + avatar_ = other.avatar_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAvatarIsMutable(); + avatar_.addAll(other.avatar_); + } + onChanged(); + } + } else { + if (!other.avatar_.isEmpty()) { + if (avatarBuilder_.isEmpty()) { + avatarBuilder_.dispose(); + avatarBuilder_ = null; + avatar_ = other.avatar_; + bitField0_ = (bitField0_ & ~0x00000001); + avatarBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAvatarFieldBuilder() : null; + } else { + avatarBuilder_.addAllMessages(other.avatar_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List avatar_ = + java.util.Collections.emptyList(); + private void ensureAvatarIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + avatar_ = new java.util.ArrayList(avatar_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** * repeated .proto.Avatar avatar = 2; */ public java.util.List getAvatarList() { - return java.util.Collections.unmodifiableList( - instance.getAvatarList()); + if (avatarBuilder_ == null) { + return java.util.Collections.unmodifiableList(avatar_); + } else { + return avatarBuilder_.getMessageList(); + } } /** * repeated .proto.Avatar avatar = 2; */ public int getAvatarCount() { - return instance.getAvatarCount(); - }/** + if (avatarBuilder_ == null) { + return avatar_.size(); + } else { + return avatarBuilder_.getCount(); + } + } + /** * repeated .proto.Avatar avatar = 2; */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar(int index) { - return instance.getAvatar(index); + if (avatarBuilder_ == null) { + return avatar_.get(index); + } else { + return avatarBuilder_.getMessage(index); + } } /** * repeated .proto.Avatar avatar = 2; */ public Builder setAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(index, value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.set(index, value); + onChanged(); + } else { + avatarBuilder_.setMessage(index, value); + } return this; } /** @@ -797,16 +1474,29 @@ public Builder setAvatar( */ public Builder setAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(index, builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.set(index, builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.addAvatar(value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.add(value); + onChanged(); + } else { + avatarBuilder_.addMessage(value); + } return this; } /** @@ -814,8 +1504,16 @@ public Builder addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { */ public Builder addAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.addAvatar(index, value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.add(index, value); + onChanged(); + } else { + avatarBuilder_.addMessage(index, value); + } return this; } /** @@ -823,8 +1521,13 @@ public Builder addAvatar( */ public Builder addAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.addAvatar(builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.add(builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -832,8 +1535,13 @@ public Builder addAvatar( */ public Builder addAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.addAvatar(index, builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.add(index, builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -841,146 +1549,209 @@ public Builder addAvatar( */ public Builder addAllAvatar( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllAvatar(values); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatar_); + onChanged(); + } else { + avatarBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder clearAvatar() { - copyOnWrite(); - instance.clearAvatar(); + if (avatarBuilder_ == null) { + avatar_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + avatarBuilder_.clear(); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder removeAvatar(int index) { - copyOnWrite(); - instance.removeAvatar(index); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.remove(index); + onChanged(); + } else { + avatarBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarGetListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - avatar_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse other = (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - avatar_= visitor.visitList(avatar_, other.avatar_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!avatar_.isModifiable()) { - avatar_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(avatar_); - } - avatar_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder( + int index) { + return getAvatarFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( + int index) { + if (avatarBuilder_ == null) { + return avatar_.get(index); } else { + return avatarBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public java.util.List + getAvatarOrBuilderList() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(avatar_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder addAvatarBuilder() { + return getAvatarFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder addAvatarBuilder( + int index) { + return getAvatarFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public java.util.List + getAvatarBuilderList() { + return getAvatarFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + avatar_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + avatar_ = null; } + return avatarBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelAvatarGetListResponse) + } // @@protoc_insertion_point(class_scope:proto.ChannelAvatarGetListResponse) private static final net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelAvatarGetListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse(); } public static net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelAvatarGetListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelAvatarGetListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelAvatarGetList.ChannelAvatarGetListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAvatarGetList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAvatarGetList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelAvatarGetListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelAvatarGetListResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ChannelAvatarGetList.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\032\014Global.proto" + + "\"H\n\024ChannelAvatarGetList\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\"`\n\034Ch" + + "annelAvatarGetListResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\035\n\006avatar\030\002 \003(\0132\r." + + "proto.AvatarB+\n\016net.iGap.protoB\031ProtoCha" + + "nnelAvatarGetListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelAvatarGetList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelAvatarGetList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAvatarGetList_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChannelAvatarGetListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelAvatarGetListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelAvatarGetListResponse_descriptor, + new java.lang.String[] { "Response", "Avatar", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelCheckUsername.java b/src/main/java/net/iGap/proto/ProtoChannelCheckUsername.java index 5233daf..63cc320 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelCheckUsername.java +++ b/src/main/java/net/iGap/proto/ProtoChannelCheckUsername.java @@ -8,181 +8,255 @@ private ProtoChannelCheckUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelCheckUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelCheckUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelCheckUsername} */ - public static final class ChannelCheckUsername extends - com.google.protobuf.GeneratedMessageLite< - ChannelCheckUsername, ChannelCheckUsername.Builder> implements + public static final class ChannelCheckUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelCheckUsername) ChannelCheckUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelCheckUsername.newBuilder() to construct. + private ChannelCheckUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelCheckUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelCheckUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelCheckUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.class, net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,365 +264,730 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername other = (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelCheckUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelCheckUsername) net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.class, net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername build() { + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername buildPartial() { + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername result = new net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername) { + return mergeFrom((net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername other) { + if (other == net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelCheckUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername other = (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelCheckUsername) + } + // @@protoc_insertion_point(class_scope:proto.ChannelCheckUsername) private static final net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelCheckUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername(); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelCheckUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelCheckUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelCheckUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelCheckUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status getStatus(); } /** * Protobuf type {@code proto.ChannelCheckUsernameResponse} */ - public static final class ChannelCheckUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelCheckUsernameResponse, ChannelCheckUsernameResponse.Builder> implements + public static final class ChannelCheckUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelCheckUsernameResponse) ChannelCheckUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelCheckUsernameResponse.newBuilder() to construct. + private ChannelCheckUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelCheckUsernameResponse() { + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelCheckUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelCheckUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.class, net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Builder.class); + } + /** * Protobuf enum {@code proto.ChannelCheckUsernameResponse.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * INVALID = 0; */ @@ -587,10 +1026,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -598,6 +1043,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return INVALID; @@ -620,6 +1069,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -632,94 +1112,60 @@ private Status(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status getStatus() { - net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status result = net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status result = net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status.UNRECOGNIZED : result; } - /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -728,10 +1174,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status.INVALID.getNumber()) { output.writeEnum(2, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -743,288 +1191,576 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse other = (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (status_ != other.status_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelCheckUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelCheckUsernameResponse) net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.class, net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelCheckUsername.internal_static_proto_ChannelCheckUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse build() { + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse buildPartial() { + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse result = new net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse other) { + if (other == net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ = 0; /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status result = net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status.UNRECOGNIZED : result; } /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ChannelCheckUsernameResponse.Status status = 2; + * .proto.ChannelCheckUsernameResponse.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelCheckUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse other = (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelCheckUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelCheckUsernameResponse) private static final net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelCheckUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse(); } public static net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelCheckUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelCheckUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCheckUsername.ChannelCheckUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelCheckUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelCheckUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelCheckUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelCheckUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ChannelCheckUsername.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"Z\n\024ChannelChe" + + "ckUsername\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\020\n\010username\030\002 \001(\t\022\017\n\007room_id\030\003 \001(\004\"\314" + + "\001\n\034ChannelCheckUsernameResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\022:\n\006status\030\002 \001" + + "(\0162*.proto.ChannelCheckUsernameResponse." + + "Status\"M\n\006Status\022\013\n\007INVALID\020\000\022\t\n\005TAKEN\020\001" + + "\022\r\n\tAVAILABLE\020\002\022\034\n\030OCCUPYING_LIMIT_EXCEE" + + "DED\020\003B+\n\016net.iGap.protoB\031ProtoChannelChe" + + "ckUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelCheckUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelCheckUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelCheckUsername_descriptor, + new java.lang.String[] { "Request", "Username", "RoomId", }); + internal_static_proto_ChannelCheckUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelCheckUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelCheckUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Status", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelCreate.java b/src/main/java/net/iGap/proto/ProtoChannelCreate.java index 9cd2cc9..c26a7bd 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelCreate.java +++ b/src/main/java/net/iGap/proto/ProtoChannelCreate.java @@ -8,35 +8,51 @@ private ProtoChannelCreate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelCreateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelCreate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string name = 2; + * string name = 2; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 3; + * string description = 3; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 3; + * string description = 3; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -44,174 +60,238 @@ public interface ChannelCreateOrBuilder extends /** * Protobuf type {@code proto.ChannelCreate} */ - public static final class ChannelCreate extends - com.google.protobuf.GeneratedMessageLite< - ChannelCreate, ChannelCreate.Builder> implements + public static final class ChannelCreate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelCreate) ChannelCreateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelCreate.newBuilder() to construct. + private ChannelCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelCreate() { name_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelCreate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCreate.ChannelCreate.class, net.iGap.proto.ProtoChannelCreate.ChannelCreate.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int NAME_FIELD_NUMBER = 2; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 2; + * string name = 2; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 2; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 2; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 2; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 3; + * string description = 3; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 3; + * string description = 3; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 3; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 3; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 3; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!name_.isEmpty()) { - output.writeString(2, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (!description_.isEmpty()) { - output.writeString(3, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -219,370 +299,675 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelCreate.ChannelCreate)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelCreate.ChannelCreate other = (net.iGap.proto.ProtoChannelCreate.ChannelCreate) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelCreate.ChannelCreate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelCreate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelCreate.ChannelCreate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelCreate) net.iGap.proto.ProtoChannelCreate.ChannelCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCreate.ChannelCreate.class, net.iGap.proto.ProtoChannelCreate.ChannelCreate.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelCreate.ChannelCreate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + name_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreate getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelCreate.ChannelCreate.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreate build() { + net.iGap.proto.ProtoChannelCreate.ChannelCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreate buildPartial() { + net.iGap.proto.ProtoChannelCreate.ChannelCreate result = new net.iGap.proto.ProtoChannelCreate.ChannelCreate(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelCreate.ChannelCreate) { + return mergeFrom((net.iGap.proto.ProtoChannelCreate.ChannelCreate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelCreate.ChannelCreate other) { + if (other == net.iGap.proto.ProtoChannelCreate.ChannelCreate.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelCreate.ChannelCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelCreate.ChannelCreate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object name_ = ""; /** - * optional string name = 2; + * string name = 2; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 2; + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 2; + * string name = 2; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 2; + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 3; + * string description = 3; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 3; + * string description = 3; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 3; + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 3; + * string description = 3; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 3; + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelCreate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelCreate.ChannelCreate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelCreate.ChannelCreate other = (net.iGap.proto.ProtoChannelCreate.ChannelCreate) arg1; - request_ = visitor.visitMessage(request_, other.request_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelCreate.ChannelCreate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelCreate) + } + // @@protoc_insertion_point(class_scope:proto.ChannelCreate) private static final net.iGap.proto.ProtoChannelCreate.ChannelCreate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelCreate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelCreate.ChannelCreate(); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelCreate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelCreateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelCreateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ java.lang.String getInviteLink(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ com.google.protobuf.ByteString getInviteLinkBytes(); @@ -590,135 +975,192 @@ public interface ChannelCreateResponseOrBuilder extends /** * Protobuf type {@code proto.ChannelCreateResponse} */ - public static final class ChannelCreateResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelCreateResponse, ChannelCreateResponse.Builder> implements + public static final class ChannelCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelCreateResponse) ChannelCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelCreateResponse.newBuilder() to construct. + private ChannelCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelCreateResponse() { inviteLink_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelCreateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteLink_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.class, net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int INVITE_LINK_FIELD_NUMBER = 3; - private java.lang.String inviteLink_; + private volatile java.lang.Object inviteLink_; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ + @java.lang.Override public java.lang.String getInviteLink() { - return inviteLink_; + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteLink_); - } - /** - * optional string invite_link = 3; - */ - private void setInviteLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteLink_ = value; - } - /** - * optional string invite_link = 3; - */ - private void clearInviteLink() { - - inviteLink_ = getDefaultInstance().getInviteLink(); + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_link = 3; - */ - private void setInviteLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteLink_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -727,13 +1169,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!inviteLink_.isEmpty()) { - output.writeString(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inviteLink_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -745,326 +1189,642 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!inviteLink_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inviteLink_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse other = (net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getInviteLink() + .equals(other.getInviteLink())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + INVITE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getInviteLink().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelCreateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelCreateResponse) net.iGap.proto.ProtoChannelCreate.ChannelCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.class, net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + inviteLink_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelCreate.internal_static_proto_ChannelCreateResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse build() { + net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse buildPartial() { + net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse result = new net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.inviteLink_ = inviteLink_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse other) { + if (other == net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getInviteLink().isEmpty()) { + inviteLink_ = other.inviteLink_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object inviteLink_ = ""; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ public java.lang.String getInviteLink() { - return instance.getInviteLink(); + java.lang.Object ref = inviteLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ public com.google.protobuf.ByteString getInviteLinkBytes() { - return instance.getInviteLinkBytes(); + java.lang.Object ref = inviteLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLink( java.lang.String value) { - copyOnWrite(); - instance.setInviteLink(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteLink_ = value; + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return This builder for chaining. */ public Builder clearInviteLink() { - copyOnWrite(); - instance.clearInviteLink(); + + inviteLink_ = getDefaultInstance().getInviteLink(); + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The bytes for inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteLink_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelCreateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse other = (net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - inviteLink_ = visitor.visitString(!inviteLink_.isEmpty(), inviteLink_, - !other.inviteLink_.isEmpty(), other.inviteLink_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - inviteLink_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelCreateResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelCreateResponse) private static final net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelCreateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse(); } public static net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelCreateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelCreate.ChannelCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelCreate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelCreateResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023ChannelCreate.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\"S\n\rChannelCreate\022\037\n\007" + + "request\030\001 \001(\0132\016.proto.Request\022\014\n\004name\030\002 " + + "\001(\t\022\023\n\013description\030\003 \001(\t\"`\n\025ChannelCreat" + + "eResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\017\n\007room_id\030\002 \001(\004\022\023\n\013invite_link\030\003 \001" + + "(\tB$\n\016net.iGap.protoB\022ProtoChannelCreate" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelCreate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelCreate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelCreate_descriptor, + new java.lang.String[] { "Request", "Name", "Description", }); + internal_static_proto_ChannelCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelCreateResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "InviteLink", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelDelete.java b/src/main/java/net/iGap/proto/ProtoChannelDelete.java index 4ce271e..eff914e 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelDelete.java +++ b/src/main/java/net/iGap/proto/ProtoChannelDelete.java @@ -8,109 +8,181 @@ private ProtoChannelDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelDelete} */ - public static final class ChannelDelete extends - com.google.protobuf.GeneratedMessageLite< - ChannelDelete, ChannelDelete.Builder> implements + public static final class ChannelDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelDelete) ChannelDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelDelete.newBuilder() to construct. + private ChannelDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelDelete() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDelete.ChannelDelete.class, net.iGap.proto.ProtoChannelDelete.ChannelDelete.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelDelete.ChannelDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelDelete.ChannelDelete other = (net.iGap.proto.ProtoChannelDelete.ChannelDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelDelete.ChannelDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelDelete.ChannelDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelDelete) net.iGap.proto.ProtoChannelDelete.ChannelDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDelete.ChannelDelete.class, net.iGap.proto.ProtoChannelDelete.ChannelDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelDelete.ChannelDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDelete_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelDelete.ChannelDelete.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDelete build() { + net.iGap.proto.ProtoChannelDelete.ChannelDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDelete buildPartial() { + net.iGap.proto.ProtoChannelDelete.ChannelDelete result = new net.iGap.proto.ProtoChannelDelete.ChannelDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelDelete.ChannelDelete) { + return mergeFrom((net.iGap.proto.ProtoChannelDelete.ChannelDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelDelete.ChannelDelete other) { + if (other == net.iGap.proto.ProtoChannelDelete.ChannelDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelDelete.ChannelDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelDelete.ChannelDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelDelete.ChannelDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelDelete.ChannelDelete other = (net.iGap.proto.ProtoChannelDelete.ChannelDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelDelete.ChannelDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelDelete) + } + // @@protoc_insertion_point(class_scope:proto.ChannelDelete) private static final net.iGap.proto.ProtoChannelDelete.ChannelDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelDelete.ChannelDelete(); } public static net.iGap.proto.ProtoChannelDelete.ChannelDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelDeleteResponse} */ - public static final class ChannelDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelDeleteResponse, ChannelDeleteResponse.Builder> implements + public static final class ChannelDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelDeleteResponse) ChannelDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelDeleteResponse.newBuilder() to construct. + private ChannelDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.class, net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse other = (net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelDeleteResponse) net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.class, net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelDelete.internal_static_proto_ChannelDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse build() { + net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse buildPartial() { + net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse result = new net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse other) { + if (other == net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse other = (net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelDeleteResponse) private static final net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse(); } public static net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDelete.ChannelDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023ChannelDelete.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\"A\n\rChannelDelete\022\037\n\007" + + "request\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id" + + "\030\002 \001(\004\"K\n\025ChannelDeleteResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 " + + "\001(\004B$\n\016net.iGap.protoB\022ProtoChannelDelet" + + "eb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelDelete_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChannelDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelDeleteResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelDeleteMessage.java b/src/main/java/net/iGap/proto/ProtoChannelDeleteMessage.java index aac4fb7..30cb877 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelDeleteMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChannelDeleteMessage.java @@ -8,165 +8,225 @@ private ProtoChannelDeleteMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelDeleteMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelDeleteMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChannelDeleteMessage} */ - public static final class ChannelDeleteMessage extends - com.google.protobuf.GeneratedMessageLite< - ChannelDeleteMessage, ChannelDeleteMessage.Builder> implements + public static final class ChannelDeleteMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelDeleteMessage) ChannelDeleteMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelDeleteMessage.newBuilder() to construct. + private ChannelDeleteMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelDeleteMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelDeleteMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelDeleteMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.class, net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 4; private long documentId_; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 4; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 4; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(4, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,519 +266,823 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage other = (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelDeleteMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelDeleteMessage) net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.class, net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage build() { + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage buildPartial() { + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage result = new net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage) { + return mergeFrom((net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage other) { + if (other == net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelDeleteMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage other = (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelDeleteMessage) + } + // @@protoc_insertion_point(class_scope:proto.ChannelDeleteMessage) private static final net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelDeleteMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage(); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelDeleteMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelDeleteMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelDeleteMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelDeleteMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ long getDeleteVersion(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChannelDeleteMessageResponse} */ - public static final class ChannelDeleteMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelDeleteMessageResponse, ChannelDeleteMessageResponse.Builder> implements + public static final class ChannelDeleteMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelDeleteMessageResponse) ChannelDeleteMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelDeleteMessageResponse.newBuilder() to construct. + private ChannelDeleteMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelDeleteMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelDeleteMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelDeleteMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + deleteVersion_ = input.readUInt64(); + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.class, net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DELETE_VERSION_FIELD_NUMBER = 4; private long deleteVersion_; /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { return deleteVersion_; } - /** - * optional uint64 delete_version = 4; - */ - private void setDeleteVersion(long value) { - - deleteVersion_ = value; - } - /** - * optional uint64 delete_version = 4; - */ - private void clearDeleteVersion() { - - deleteVersion_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -734,10 +1100,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -761,364 +1129,680 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse other = (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDeleteVersion() + != other.getDeleteVersion()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DELETE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeleteVersion()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelDeleteMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelDeleteMessageResponse) net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.class, net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + deleteVersion_ = 0L; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelDeleteMessage.internal_static_proto_ChannelDeleteMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse build() { + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse buildPartial() { + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse result = new net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.deleteVersion_ = deleteVersion_; + result.documentId_ = documentId_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse other) { + if (other == net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDeleteVersion() != 0L) { + setDeleteVersion(other.getDeleteVersion()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long deleteVersion_ ; /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { - return instance.getDeleteVersion(); + return deleteVersion_; } /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @param value The deleteVersion to set. + * @return This builder for chaining. */ public Builder setDeleteVersion(long value) { - copyOnWrite(); - instance.setDeleteVersion(value); + + deleteVersion_ = value; + onChanged(); return this; } /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return This builder for chaining. */ public Builder clearDeleteVersion() { - copyOnWrite(); - instance.clearDeleteVersion(); + + deleteVersion_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelDeleteMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse other = (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - deleteVersion_ = visitor.visitLong(deleteVersion_ != 0L, deleteVersion_, - other.deleteVersion_ != 0L, other.deleteVersion_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - deleteVersion_ = input.readUInt64(); - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelDeleteMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelDeleteMessageResponse) private static final net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelDeleteMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse(); } public static net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelDeleteMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelDeleteMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelDeleteMessage.ChannelDeleteMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelDeleteMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelDeleteMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelDeleteMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelDeleteMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ChannelDeleteMessage.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"q\n\024ChannelDel" + + "eteMessage\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004" + + "\022\023\n\013document_id\030\004 \001(\004\"\223\001\n\034ChannelDeleteM" + + "essageResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id" + + "\030\003 \001(\004\022\026\n\016delete_version\030\004 \001(\004\022\023\n\013docume" + + "nt_id\030\005 \001(\004B+\n\016net.iGap.protoB\031ProtoChan" + + "nelDeleteMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelDeleteMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelDeleteMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelDeleteMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_ChannelDeleteMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelDeleteMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelDeleteMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "DeleteVersion", "DocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelEdit.java b/src/main/java/net/iGap/proto/ProtoChannelEdit.java index 41eb9b1..cef3b4e 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelEdit.java +++ b/src/main/java/net/iGap/proto/ProtoChannelEdit.java @@ -8,40 +8,57 @@ private ProtoChannelEdit() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelEditOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelEdit) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string name = 3; + * string name = 3; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 4; + * string description = 4; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -49,182 +66,237 @@ public interface ChannelEditOrBuilder extends /** * Protobuf type {@code proto.ChannelEdit} */ - public static final class ChannelEdit extends - com.google.protobuf.GeneratedMessageLite< - ChannelEdit, ChannelEdit.Builder> implements + public static final class ChannelEdit extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelEdit) ChannelEditOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelEdit.newBuilder() to construct. + private ChannelEdit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelEdit() { name_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelEdit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelEdit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEdit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEdit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEdit.ChannelEdit.class, net.iGap.proto.ProtoChannelEdit.ChannelEdit.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 3; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 3; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 3; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 4; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 4; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 4; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -233,16 +305,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!name_.isEmpty()) { - output.writeString(3, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - if (!description_.isEmpty()) { - output.writeString(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -254,410 +328,729 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelEdit.ChannelEdit)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelEdit.ChannelEdit other = (net.iGap.proto.ProtoChannelEdit.ChannelEdit) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelEdit.ChannelEdit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelEdit} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelEdit.ChannelEdit, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelEdit) net.iGap.proto.ProtoChannelEdit.ChannelEditOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEdit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEdit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEdit.ChannelEdit.class, net.iGap.proto.ProtoChannelEdit.ChannelEdit.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelEdit.ChannelEdit.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + name_ = ""; + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEdit_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEdit getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelEdit.ChannelEdit.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEdit build() { + net.iGap.proto.ProtoChannelEdit.ChannelEdit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEdit buildPartial() { + net.iGap.proto.ProtoChannelEdit.ChannelEdit result = new net.iGap.proto.ProtoChannelEdit.ChannelEdit(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelEdit.ChannelEdit) { + return mergeFrom((net.iGap.proto.ProtoChannelEdit.ChannelEdit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelEdit.ChannelEdit other) { + if (other == net.iGap.proto.ProtoChannelEdit.ChannelEdit.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelEdit.ChannelEdit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelEdit.ChannelEdit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelEdit) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelEdit.ChannelEdit(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelEdit.ChannelEdit other = (net.iGap.proto.ProtoChannelEdit.ChannelEdit) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelEdit.ChannelEdit.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelEdit) + } + // @@protoc_insertion_point(class_scope:proto.ChannelEdit) private static final net.iGap.proto.ProtoChannelEdit.ChannelEdit DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelEdit(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelEdit.ChannelEdit(); } public static net.iGap.proto.ProtoChannelEdit.ChannelEdit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelEdit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelEdit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEdit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelEditResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelEditResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string name = 3; + * string name = 3; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 4; + * string description = 4; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -665,182 +1058,237 @@ public interface ChannelEditResponseOrBuilder extends /** * Protobuf type {@code proto.ChannelEditResponse} */ - public static final class ChannelEditResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelEditResponse, ChannelEditResponse.Builder> implements + public static final class ChannelEditResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelEditResponse) ChannelEditResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelEditResponse.newBuilder() to construct. + private ChannelEditResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelEditResponse() { name_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelEditResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelEditResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEditResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEditResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.class, net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 3; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 3; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 3; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 4; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 4; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 4; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -849,16 +1297,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!name_.isEmpty()) { - output.writeString(3, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - if (!description_.isEmpty()) { - output.writeString(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -870,378 +1320,732 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelEdit.ChannelEditResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelEdit.ChannelEditResponse other = (net.iGap.proto.ProtoChannelEdit.ChannelEditResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelEdit.ChannelEditResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelEditResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelEdit.ChannelEditResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelEditResponse) net.iGap.proto.ProtoChannelEdit.ChannelEditResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEditResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEditResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.class, net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + name_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelEdit.internal_static_proto_ChannelEditResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEditResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEditResponse build() { + net.iGap.proto.ProtoChannelEdit.ChannelEditResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEditResponse buildPartial() { + net.iGap.proto.ProtoChannelEdit.ChannelEditResponse result = new net.iGap.proto.ProtoChannelEdit.ChannelEditResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelEdit.ChannelEditResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelEdit.ChannelEditResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoChannelEdit.ChannelEditResponse other) { + if (other == net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelEdit.ChannelEditResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelEdit.ChannelEditResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelEditResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelEdit.ChannelEditResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelEdit.ChannelEditResponse other = (net.iGap.proto.ProtoChannelEdit.ChannelEditResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelEdit.ChannelEditResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelEditResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelEditResponse) private static final net.iGap.proto.ProtoChannelEdit.ChannelEditResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelEditResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelEdit.ChannelEditResponse(); } public static net.iGap.proto.ProtoChannelEdit.ChannelEditResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelEditResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelEditResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEdit.ChannelEditResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelEdit_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelEdit_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelEditResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelEditResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021ChannelEdit.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\"b\n\013ChannelEdit\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001" + + "(\004\022\014\n\004name\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\"l\n" + + "\023ChannelEditResponse\022!\n\010response\030\001 \001(\0132\017" + + ".proto.Response\022\017\n\007room_id\030\002 \001(\004\022\014\n\004name" + + "\030\003 \001(\t\022\023\n\013description\030\004 \001(\tB\"\n\016net.iGap." + + "protoB\020ProtoChannelEditb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelEdit_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelEdit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelEdit_descriptor, + new java.lang.String[] { "Request", "RoomId", "Name", "Description", }); + internal_static_proto_ChannelEditResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelEditResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelEditResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Name", "Description", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java b/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java index 9709e64..81e09b3 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java @@ -8,283 +8,336 @@ private ProtoChannelEditMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelEditMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelEditMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional string message = 4; + * string message = 4; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChannelEditMessage} */ - public static final class ChannelEditMessage extends - com.google.protobuf.GeneratedMessageLite< - ChannelEditMessage, ChannelEditMessage.Builder> implements + public static final class ChannelEditMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelEditMessage) ChannelEditMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelEditMessage.newBuilder() to construct. + private ChannelEditMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelEditMessage() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelEditMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelEditMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.class, net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 4; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 4; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 4; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 4; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int TEXT_SIGNS_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 6; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 6; - */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - - } - /** - * optional .proto.TextSigns text_signs = 6; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -296,8 +349,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageId_ != 0L) { output.writeUInt64(3, messageId_); } - if (!message_.isEmpty()) { - output.writeString(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } if (documentId_ != 0L) { output.writeUInt64(5, documentId_); @@ -305,10 +358,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(6, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -324,9 +379,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, messageId_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -336,792 +390,1200 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage other = (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelEditMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelEditMessage) net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.class, net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + message_ = ""; + + documentId_ = 0L; + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage build() { + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage buildPartial() { + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage result = new net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.message_ = message_; + result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage) { + return mergeFrom((net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage other) { + if (other == net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelEditMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage other = (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ChannelEditMessage) + } // @@protoc_insertion_point(class_scope:proto.ChannelEditMessage) private static final net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelEditMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage(); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelEditMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelEditMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelEditMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelEditMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ long getMessageVersion(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ int getMessageTypeValue(); /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType(); /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ long getDocumentId(); /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChannelEditMessageResponse} */ - public static final class ChannelEditMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelEditMessageResponse, ChannelEditMessageResponse.Builder> implements + public static final class ChannelEditMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelEditMessageResponse) ChannelEditMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelEditMessageResponse.newBuilder() to construct. + private ChannelEditMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelEditMessageResponse() { message_ = ""; + messageType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelEditMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelEditMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + messageVersion_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + messageType_ = rawValue; + break; + } + case 56: { + + documentId_ = input.readUInt64(); + break; + } + case 66: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.class, net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.Builder.class); } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_VERSION_FIELD_NUMBER = 4; private long messageVersion_; /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { return messageVersion_; } - /** - * optional uint64 message_version = 4; - */ - private void setMessageVersion(long value) { - - messageVersion_ = value; - } - /** - * optional uint64 message_version = 4; - */ - private void clearMessageVersion() { - - messageVersion_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MESSAGE_TYPE_FIELD_NUMBER = 6; private int messageType_; /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { + @java.lang.Override public int getMessageTypeValue() { return messageType_; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.forNumber(messageType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void setMessageTypeValue(int value) { - messageType_ = value; - } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - - messageType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void clearMessageType() { - - messageType_ = 0; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 7; private long documentId_; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 7; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 7; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int TEXT_SIGNS_FIELD_NUMBER = 8; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 8; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 8; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 8; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1136,8 +1598,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageVersion_ != 0L) { output.writeUInt64(4, messageVersion_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } if (messageType_ != net.iGap.proto.ProtoGlobal.RoomMessageType.TEXT.getNumber()) { output.writeEnum(6, messageType_); @@ -1148,10 +1610,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(8, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1171,9 +1635,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, messageVersion_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } if (messageType_ != net.iGap.proto.ProtoGlobal.RoomMessageType.TEXT.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -1187,515 +1650,978 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse other = (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getMessageVersion() + != other.getMessageVersion()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (messageType_ != other.messageType_) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageVersion()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelEditMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelEditMessageResponse) net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.class, net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + messageVersion_ = 0L; + + message_ = ""; + + messageType_ = 0; + + documentId_ = 0L; + + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelEditMessage.internal_static_proto_ChannelEditMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse build() { + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse buildPartial() { + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse result = new net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.messageVersion_ = messageVersion_; + result.message_ = message_; + result.messageType_ = messageType_; + result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse other) { + if (other == net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getMessageVersion() != 0L) { + setMessageVersion(other.getMessageVersion()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.messageType_ != 0) { + setMessageTypeValue(other.getMessageTypeValue()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long messageVersion_ ; /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { - return instance.getMessageVersion(); + return messageVersion_; } /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @param value The messageVersion to set. + * @return This builder for chaining. */ public Builder setMessageVersion(long value) { - copyOnWrite(); - instance.setMessageVersion(value); + + messageVersion_ = value; + onChanged(); return this; } /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return This builder for chaining. */ public Builder clearMessageVersion() { - copyOnWrite(); - instance.clearMessageVersion(); + + messageVersion_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private int messageType_ = 0; /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { - return instance.getMessageTypeValue(); + @java.lang.Override public int getMessageTypeValue() { + return messageType_; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @param value The enum numeric value on the wire for messageType to set. + * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - copyOnWrite(); - instance.setMessageTypeValue(value); + + messageType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - return instance.getMessageType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + if (value == null) { + throw new NullPointerException(); + } + + messageType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return This builder for chaining. */ public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); + + messageType_ = 0; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelEditMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse other = (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - messageVersion_ = visitor.visitLong(messageVersion_ != 0L, messageVersion_, - other.messageVersion_ != 0L, other.messageVersion_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - messageType_ = visitor.visitInt(messageType_ != 0, messageType_, other.messageType_ != 0, other.messageType_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - messageVersion_ = input.readUInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - case 56: { - - documentId_ = input.readUInt64(); - break; - } - case 66: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ChannelEditMessageResponse) + } // @@protoc_insertion_point(class_scope:proto.ChannelEditMessageResponse) private static final net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelEditMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse(); } public static net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelEditMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelEditMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelEditMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelEditMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelEditMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelEditMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030ChannelEditMessage.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"\246" + + "\001\n\022ChannelEditMessage\022\037\n\007request\030\001 \001(\0132\016" + + ".proto.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessa" + + "ge_id\030\003 \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document" + + "_id\030\005 \001(\004\022$\n\ntext_signs\030\006 \001(\0132\020.proto.Te" + + "xtSigns\"\367\001\n\032ChannelEditMessageResponse\022!" + + "\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007roo" + + "m_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\027\n\017messag" + + "e_version\030\004 \001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014mess" + + "age_type\030\006 \001(\0162\026.proto.RoomMessageType\022\023" + + "\n\013document_id\030\007 \001(\004\022$\n\ntext_signs\030\010 \001(\0132" + + "\020.proto.TextSignsB)\n\016net.iGap.protoB\027Pro" + + "toChannelEditMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelEditMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelEditMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelEditMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", "TextSigns", }); + internal_static_proto_ChannelEditMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelEditMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelEditMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", "TextSigns", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelGetDraft.java b/src/main/java/net/iGap/proto/ProtoChannelGetDraft.java index 0a003f1..b939100 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelGetDraft.java +++ b/src/main/java/net/iGap/proto/ProtoChannelGetDraft.java @@ -8,109 +8,181 @@ private ProtoChannelGetDraft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelGetDraftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetDraft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelGetDraft} */ - public static final class ChannelGetDraft extends - com.google.protobuf.GeneratedMessageLite< - ChannelGetDraft, ChannelGetDraft.Builder> implements + public static final class ChannelGetDraft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetDraft) ChannelGetDraftOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGetDraft.newBuilder() to construct. + private ChannelGetDraft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelGetDraft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelGetDraft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelGetDraft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.class, net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,408 +208,705 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft other = (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetDraft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetDraft) net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.class, net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft build() { + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft buildPartial() { + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft result = new net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft) { + return mergeFrom((net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft other) { + if (other == net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelGetDraft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft other = (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelGetDraft) + } + // @@protoc_insertion_point(class_scope:proto.ChannelGetDraft) private static final net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelGetDraft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft(); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGetDraft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelGetDraft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelGetDraftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetDraftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 2; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.ChannelGetDraftResponse} */ - public static final class ChannelGetDraftResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelGetDraftResponse, ChannelGetDraftResponse.Builder> implements + public static final class ChannelGetDraftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetDraftResponse) ChannelGetDraftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGetDraftResponse.newBuilder() to construct. + private ChannelGetDraftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelGetDraftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelGetDraftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelGetDraftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.class, net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int DRAFT_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 2; - */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 2; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - - } - /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 2; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -544,10 +915,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(2, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -559,303 +932,654 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse other = (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetDraftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetDraftResponse) net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.class, net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetDraft.internal_static_proto_ChannelGetDraftResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse build() { + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse buildPartial() { + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse result = new net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse other) { + if (other == net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelGetDraftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse other = (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelGetDraftResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelGetDraftResponse) private static final net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelGetDraftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse(); } public static net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGetDraftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelGetDraftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetDraft.ChannelGetDraftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetDraft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetDraft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetDraftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetDraftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025ChannelGetDraft.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"C\n\017C" + + "hannelGetDraft\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\017\n\007room_id\030\002 \001(\004\"]\n\027ChannelGetDr" + + "aftResponse\022!\n\010response\030\001 \001(\0132\017.proto.Re" + + "sponse\022\037\n\005draft\030\002 \001(\0132\020.proto.RoomDraftB" + + "&\n\016net.iGap.protoB\024ProtoChannelGetDraftb" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelGetDraft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelGetDraft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetDraft_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChannelGetDraftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelGetDraftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetDraftResponse_descriptor, + new java.lang.String[] { "Response", "Draft", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java b/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java index dea1463..251a26e 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java +++ b/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java @@ -8,57 +8,183 @@ private ProtoChannelGetMemberList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelGetMemberListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetMemberList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @return The enum numeric value on the wire for filterRole. */ int getFilterRoleValue(); /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @return The filterRole. */ net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole getFilterRole(); /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 4; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.ChannelGetMemberList} */ - public static final class ChannelGetMemberList extends - com.google.protobuf.GeneratedMessageLite< - ChannelGetMemberList, ChannelGetMemberList.Builder> implements + public static final class ChannelGetMemberList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetMemberList) ChannelGetMemberListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGetMemberList.newBuilder() to construct. + private ChannelGetMemberList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelGetMemberList() { + filterRole_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelGetMemberList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelGetMemberList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + filterRole_ = rawValue; + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.class, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.Builder.class); } + /** * Protobuf enum {@code proto.ChannelGetMemberList.FilterRole} */ public enum FilterRole - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * ALL = 0; */ @@ -97,10 +223,16 @@ public enum FilterRole public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -108,6 +240,10 @@ public static FilterRole valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static FilterRole forNumber(int value) { switch (value) { case 0: return ALL; @@ -130,6 +266,37 @@ public FilterRole findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.getDescriptor().getEnumTypes().get(0); + } + + private static final FilterRole[] VALUES = values(); + + public static FilterRole valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private FilterRole(int value) { @@ -142,169 +309,97 @@ private FilterRole(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int FILTER_ROLE_FIELD_NUMBER = 3; private int filterRole_; /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @return The enum numeric value on the wire for filterRole. */ - public int getFilterRoleValue() { + @java.lang.Override public int getFilterRoleValue() { return filterRole_; } /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @return The filterRole. */ - public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole getFilterRole() { - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole result = net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole.forNumber(filterRole_); + @java.lang.Override public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole getFilterRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole result = net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole.valueOf(filterRole_); return result == null ? net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole.UNRECOGNIZED : result; } - /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; - */ - private void setFilterRoleValue(int value) { - filterRole_ = value; - } - /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; - */ - private void setFilterRole(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole value) { - if (value == null) { - throw new NullPointerException(); - } - - filterRole_ = value.getNumber(); - } - /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; - */ - private void clearFilterRole() { - - filterRole_ = 0; - } public static final int PAGINATION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 4; - */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 4; - */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 4; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -319,10 +414,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(4, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -342,387 +439,727 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList other = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (filterRole_ != other.filterRole_) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + FILTER_ROLE_FIELD_NUMBER; + hash = (53 * hash) + filterRole_; + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetMemberList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetMemberList) net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.class, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + filterRole_ = 0; + + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList build() { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList buildPartial() { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList result = new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.filterRole_ = filterRole_; + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList) { + return mergeFrom((net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList other) { + if (other == net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.filterRole_ != 0) { + setFilterRoleValue(other.getFilterRoleValue()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int filterRole_ = 0; /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @return The enum numeric value on the wire for filterRole. */ - public int getFilterRoleValue() { - return instance.getFilterRoleValue(); + @java.lang.Override public int getFilterRoleValue() { + return filterRole_; } /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @param value The enum numeric value on the wire for filterRole to set. + * @return This builder for chaining. */ public Builder setFilterRoleValue(int value) { - copyOnWrite(); - instance.setFilterRoleValue(value); + + filterRole_ = value; + onChanged(); return this; } /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @return The filterRole. */ + @java.lang.Override public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole getFilterRole() { - return instance.getFilterRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole result = net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole.valueOf(filterRole_); + return result == null ? net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole.UNRECOGNIZED : result; } /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @param value The filterRole to set. + * @return This builder for chaining. */ public Builder setFilterRole(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.FilterRole value) { - copyOnWrite(); - instance.setFilterRole(value); + if (value == null) { + throw new NullPointerException(); + } + + filterRole_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * .proto.ChannelGetMemberList.FilterRole filter_role = 3; + * @return This builder for chaining. */ public Builder clearFilterRole() { - copyOnWrite(); - instance.clearFilterRole(); + + filterRole_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.ChannelGetMemberList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList other = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - filterRole_ = visitor.visitInt(filterRole_ != 0, filterRole_, other.filterRole_ != 0, other.filterRole_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - filterRole_ = rawValue; - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.Pagination pagination = 4; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 4; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelGetMemberList) + } // @@protoc_insertion_point(class_scope:proto.ChannelGetMemberList) private static final net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelGetMemberList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList(); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGetMemberList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelGetMemberList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelGetMemberListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetMemberListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; @@ -737,230 +1174,381 @@ public interface ChannelGetMemberListResponseOrBuilder extends * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ int getMemberCount(); + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + java.util.List + getMemberOrBuilderList(); + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.MemberOrBuilder getMemberOrBuilder( + int index); } /** * Protobuf type {@code proto.ChannelGetMemberListResponse} */ - public static final class ChannelGetMemberListResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelGetMemberListResponse, ChannelGetMemberListResponse.Builder> implements + public static final class ChannelGetMemberListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetMemberListResponse) ChannelGetMemberListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGetMemberListResponse.newBuilder() to construct. + private ChannelGetMemberListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelGetMemberListResponse() { - member_ = emptyProtobufList(); + member_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelGetMemberListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelGetMemberListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + member_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + member_.add( + input.readMessage(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + member_ = java.util.Collections.unmodifiableList(member_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.class, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Builder.class); + } + public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetMemberListResponse.Member) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return The userId. */ long getUserId(); /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The role. */ net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole(); /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * @return Whether the adminRights field is set. */ boolean hasAdminRights(); /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * @return The adminRights. */ net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getAdminRights(); + /** + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + */ + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getAdminRightsOrBuilder(); /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; + * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; + * @return The userInfo. */ net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo(); + /** + * .proto.RegisteredUser userInfo = 4; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder(); } /** * Protobuf type {@code proto.ChannelGetMemberListResponse.Member} */ - public static final class Member extends - com.google.protobuf.GeneratedMessageLite< - Member, Member.Builder> implements + public static final class Member extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetMemberListResponse.Member) MemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use Member.newBuilder() to construct. + private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Member() { + role_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Member(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Member( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder subBuilder = null; + if (adminRights_ != null) { + subBuilder = adminRights_.toBuilder(); + } + adminRights_ = input.readMessage(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adminRights_); + adminRights_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (userInfo_ != null) { + subBuilder = userInfo_.toBuilder(); + } + userInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userInfo_); + userInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_Member_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.class, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder.class); + } + public static final int USERID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 userId = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 userId = 1; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int ROLE_FIELD_NUMBER = 2; private int role_; /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The role. */ - public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { - net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Role.UNRECOGNIZED : result; } - /** - * optional .proto.ChannelRoom.Role role = 2; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.ChannelRoom.Role role = 2; - */ - private void setRole(net.iGap.proto.ProtoGlobal.ChannelRoom.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.ChannelRoom.Role role = 2; - */ - private void clearRole() { - - role_ = 0; - } public static final int ADMINRIGHTS_FIELD_NUMBER = 3; private net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights adminRights_; /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * @return Whether the adminRights field is set. */ + @java.lang.Override public boolean hasAdminRights() { return adminRights_ != null; } /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * @return The adminRights. */ + @java.lang.Override public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getAdminRights() { return adminRights_ == null ? net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : adminRights_; } /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; - */ - private void setAdminRights(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - if (value == null) { - throw new NullPointerException(); - } - adminRights_ = value; - - } - /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; - */ - private void setAdminRights( - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder builderForValue) { - adminRights_ = builderForValue.build(); - - } - /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; - */ - private void mergeAdminRights(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - if (adminRights_ != null && - adminRights_ != net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance()) { - adminRights_ = - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.newBuilder(adminRights_).mergeFrom(value).buildPartial(); - } else { - adminRights_ = value; - } - - } - /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; */ - private void clearAdminRights() { adminRights_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getAdminRightsOrBuilder() { + return getAdminRights(); } public static final int USERINFO_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_; /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; + * @return Whether the userInfo field is set. */ + @java.lang.Override public boolean hasUserInfo() { return userInfo_ != null; } /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; + * @return The userInfo. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; } /** - * optional .proto.RegisteredUser userInfo = 4; - */ - private void setUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - userInfo_ = value; - - } - /** - * optional .proto.RegisteredUser userInfo = 4; - */ - private void setUserInfo( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - userInfo_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; */ - private void mergeUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (userInfo_ != null && - userInfo_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - userInfo_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(userInfo_).mergeFrom(value).buildPartial(); - } else { - userInfo_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + return getUserInfo(); } - /** - * optional .proto.RegisteredUser userInfo = 4; - */ - private void clearUserInfo() { userInfo_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { @@ -975,10 +1563,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userInfo_ != null) { output.writeMessage(4, getUserInfo()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -998,439 +1588,748 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUserInfo()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member other = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member) obj; + + if (getUserId() + != other.getUserId()) return false; + if (role_ != other.role_) return false; + if (hasAdminRights() != other.hasAdminRights()) return false; + if (hasAdminRights()) { + if (!getAdminRights() + .equals(other.getAdminRights())) return false; + } + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo() + .equals(other.getUserInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + if (hasAdminRights()) { + hash = (37 * hash) + ADMINRIGHTS_FIELD_NUMBER; + hash = (53 * hash) + getAdminRights().hashCode(); + } + if (hasUserInfo()) { + hash = (37 * hash) + USERINFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetMemberListResponse.Member} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetMemberListResponse.Member) net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.MemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.class, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + role_ = 0; + + if (adminRightsBuilder_ == null) { + adminRights_ = null; + } else { + adminRights_ = null; + adminRightsBuilder_ = null; + } + if (userInfoBuilder_ == null) { + userInfo_ = null; + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_Member_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member build() { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member buildPartial() { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member result = new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member(this); + result.userId_ = userId_; + result.role_ = role_; + if (adminRightsBuilder_ == null) { + result.adminRights_ = adminRights_; + } else { + result.adminRights_ = adminRightsBuilder_.build(); + } + if (userInfoBuilder_ == null) { + result.userInfo_ = userInfo_; + } else { + result.userInfo_ = userInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member) { + return mergeFrom((net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member other) { + if (other == net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (other.hasAdminRights()) { + mergeAdminRights(other.getAdminRights()); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long userId_ ; /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Role.UNRECOGNIZED : result; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoGlobal.ChannelRoom.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights adminRights_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder> adminRightsBuilder_; /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * @return Whether the adminRights field is set. */ public boolean hasAdminRights() { - return instance.hasAdminRights(); + return adminRightsBuilder_ != null || adminRights_ != null; } /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * @return The adminRights. */ public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights getAdminRights() { - return instance.getAdminRights(); + if (adminRightsBuilder_ == null) { + return adminRights_ == null ? net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : adminRights_; + } else { + return adminRightsBuilder_.getMessage(); + } } /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; */ public Builder setAdminRights(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - copyOnWrite(); - instance.setAdminRights(value); - return this; + if (adminRightsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adminRights_ = value; + onChanged(); + } else { + adminRightsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; */ public Builder setAdminRights( net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder builderForValue) { - copyOnWrite(); - instance.setAdminRights(builderForValue); + if (adminRightsBuilder_ == null) { + adminRights_ = builderForValue.build(); + onChanged(); + } else { + adminRightsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; */ public Builder mergeAdminRights(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights value) { - copyOnWrite(); - instance.mergeAdminRights(value); + if (adminRightsBuilder_ == null) { + if (adminRights_ != null) { + adminRights_ = + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.newBuilder(adminRights_).mergeFrom(value).buildPartial(); + } else { + adminRights_ = value; + } + onChanged(); + } else { + adminRightsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; */ - public Builder clearAdminRights() { copyOnWrite(); - instance.clearAdminRights(); + public Builder clearAdminRights() { + if (adminRightsBuilder_ == null) { + adminRights_ = null; + onChanged(); + } else { + adminRights_ = null; + adminRightsBuilder_ = null; + } + return this; } + /** + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + */ + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder getAdminRightsBuilder() { + + onChanged(); + return getAdminRightsFieldBuilder().getBuilder(); + } + /** + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + */ + public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getAdminRightsOrBuilder() { + if (adminRightsBuilder_ != null) { + return adminRightsBuilder_.getMessageOrBuilder(); + } else { + return adminRights_ == null ? + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.getDefaultInstance() : adminRights_; + } + } + /** + * .proto.ChannelAddAdmin.AdminRights adminRights = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder> + getAdminRightsFieldBuilder() { + if (adminRightsBuilder_ == null) { + adminRightsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder>( + getAdminRights(), + getParentForChildren(), + isClean()); + adminRights_ = null; + } + return adminRightsBuilder_; + } + private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userInfoBuilder_; /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; + * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { - return instance.hasUserInfo(); + return userInfoBuilder_ != null || userInfo_ != null; } /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; + * @return The userInfo. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { - return instance.getUserInfo(); + if (userInfoBuilder_ == null) { + return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; */ public Builder setUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUserInfo(value); - return this; + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + onChanged(); + } else { + userInfoBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; */ public Builder setUserInfo( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUserInfo(builderForValue); + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + onChanged(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; */ public Builder mergeUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergeUserInfo(value); + if (userInfoBuilder_ == null) { + if (userInfo_ != null) { + userInfo_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(userInfo_).mergeFrom(value).buildPartial(); + } else { + userInfo_ = value; + } + onChanged(); + } else { + userInfoBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser userInfo = 4; + * .proto.RegisteredUser userInfo = 4; */ - public Builder clearUserInfo() { copyOnWrite(); - instance.clearUserInfo(); + public Builder clearUserInfo() { + if (userInfoBuilder_ == null) { + userInfo_ = null; + onChanged(); + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelGetMemberListResponse.Member) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member other = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - adminRights_ = visitor.visitMessage(adminRights_, other.adminRights_); - userInfo_ = visitor.visitMessage(userInfo_, other.userInfo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - role_ = rawValue; - break; - } - case 26: { - net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.Builder subBuilder = null; - if (adminRights_ != null) { - subBuilder = adminRights_.toBuilder(); - } - adminRights_ = input.readMessage(net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(adminRights_); - adminRights_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (userInfo_ != null) { - subBuilder = userInfo_.toBuilder(); - } - userInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userInfo_); - userInfo_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RegisteredUser userInfo = 4; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserInfoBuilder() { + + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser userInfo = 4; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RegisteredUser userInfo = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); + userInfo_ = null; } + return userInfoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelGetMemberListResponse.Member) + } // @@protoc_insertion_point(class_scope:proto.ChannelGetMemberListResponse.Member) private static final net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Member(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member(); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Member parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Member(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int MEMBER_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList member_; + private java.util.List member_; /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ + @java.lang.Override public java.util.List getMemberList() { return member_; } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ + @java.lang.Override public java.util.List getMemberOrBuilderList() { return member_; @@ -1438,108 +2337,38 @@ public java.util.Listrepeated .proto.ChannelGetMemberListResponse.Member member = 2; */ + @java.lang.Override public int getMemberCount() { return member_.size(); } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ + @java.lang.Override public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member getMember(int index) { return member_.get(index); } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ + @java.lang.Override public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.MemberOrBuilder getMemberOrBuilder( int index) { return member_.get(index); } - private void ensureMemberIsMutable() { - if (!member_.isModifiable()) { - member_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(member_); - } - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void setMember( - int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMemberIsMutable(); - member_.set(index, value); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void setMember( - int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder builderForValue) { - ensureMemberIsMutable(); - member_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void addMember(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMemberIsMutable(); - member_.add(value); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void addMember( - int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMemberIsMutable(); - member_.add(index, value); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void addMember( - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder builderForValue) { - ensureMemberIsMutable(); - member_.add(builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void addMember( - int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder builderForValue) { - ensureMemberIsMutable(); - member_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void addAllMember( - java.lang.Iterable values) { - ensureMemberIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, member_); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void clearMember() { - member_ = emptyProtobufList(); - } - /** - * repeated .proto.ChannelGetMemberListResponse.Member member = 2; - */ - private void removeMember(int index) { - ensureMemberIsMutable(); - member_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1548,10 +2377,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < member_.size(); i++) { output.writeMessage(2, member_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1563,162 +2394,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, member_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse other = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getMemberList() + .equals(other.getMemberList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getMemberCount() > 0) { + hash = (37 * hash) + MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getMemberList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetMemberListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetMemberListResponse) net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.class, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMemberFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (memberBuilder_ == null) { + member_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + memberBuilder_.clear(); + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetMemberList.internal_static_proto_ChannelGetMemberListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse build() { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse buildPartial() { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse result = new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (memberBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + member_ = java.util.Collections.unmodifiableList(member_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.member_ = member_; + } else { + result.member_ = memberBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse other) { + if (other == net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (memberBuilder_ == null) { + if (!other.member_.isEmpty()) { + if (member_.isEmpty()) { + member_ = other.member_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMemberIsMutable(); + member_.addAll(other.member_); + } + onChanged(); + } + } else { + if (!other.member_.isEmpty()) { + if (memberBuilder_.isEmpty()) { + memberBuilder_.dispose(); + memberBuilder_ = null; + member_ = other.member_; + bitField0_ = (bitField0_ & ~0x00000001); + memberBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMemberFieldBuilder() : null; + } else { + memberBuilder_.addAllMessages(other.member_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List member_ = + java.util.Collections.emptyList(); + private void ensureMemberIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + member_ = new java.util.ArrayList(member_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.MemberOrBuilder> memberBuilder_; /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ public java.util.List getMemberList() { - return java.util.Collections.unmodifiableList( - instance.getMemberList()); + if (memberBuilder_ == null) { + return java.util.Collections.unmodifiableList(member_); + } else { + return memberBuilder_.getMessageList(); + } } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ public int getMemberCount() { - return instance.getMemberCount(); - }/** + if (memberBuilder_ == null) { + return member_.size(); + } else { + return memberBuilder_.getCount(); + } + } + /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member getMember(int index) { - return instance.getMember(index); + if (memberBuilder_ == null) { + return member_.get(index); + } else { + return memberBuilder_.getMessage(index); + } } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ public Builder setMember( int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member value) { - copyOnWrite(); - instance.setMember(index, value); + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMemberIsMutable(); + member_.set(index, value); + onChanged(); + } else { + memberBuilder_.setMessage(index, value); + } return this; } /** @@ -1726,16 +2912,29 @@ public Builder setMember( */ public Builder setMember( int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder builderForValue) { - copyOnWrite(); - instance.setMember(index, builderForValue); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.set(index, builderForValue.build()); + onChanged(); + } else { + memberBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ public Builder addMember(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member value) { - copyOnWrite(); - instance.addMember(value); + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMemberIsMutable(); + member_.add(value); + onChanged(); + } else { + memberBuilder_.addMessage(value); + } return this; } /** @@ -1743,8 +2942,16 @@ public Builder addMember(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemb */ public Builder addMember( int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member value) { - copyOnWrite(); - instance.addMember(index, value); + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMemberIsMutable(); + member_.add(index, value); + onChanged(); + } else { + memberBuilder_.addMessage(index, value); + } return this; } /** @@ -1752,8 +2959,13 @@ public Builder addMember( */ public Builder addMember( net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder builderForValue) { - copyOnWrite(); - instance.addMember(builderForValue); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.add(builderForValue.build()); + onChanged(); + } else { + memberBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1761,8 +2973,13 @@ public Builder addMember( */ public Builder addMember( int index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder builderForValue) { - copyOnWrite(); - instance.addMember(index, builderForValue); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.add(index, builderForValue.build()); + onChanged(); + } else { + memberBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1770,146 +2987,232 @@ public Builder addMember( */ public Builder addAllMember( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllMember(values); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, member_); + onChanged(); + } else { + memberBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ public Builder clearMember() { - copyOnWrite(); - instance.clearMember(); + if (memberBuilder_ == null) { + member_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + memberBuilder_.clear(); + } return this; } /** * repeated .proto.ChannelGetMemberListResponse.Member member = 2; */ public Builder removeMember(int index) { - copyOnWrite(); - instance.removeMember(index); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.remove(index); + onChanged(); + } else { + memberBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelGetMemberListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - member_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse other = (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - member_= visitor.visitList(member_, other.member_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!member_.isModifiable()) { - member_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(member_); - } - member_.add( - input.readMessage(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder getMemberBuilder( + int index) { + return getMemberFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.MemberOrBuilder getMemberOrBuilder( + int index) { + if (memberBuilder_ == null) { + return member_.get(index); } else { + return memberBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + public java.util.List + getMemberOrBuilderList() { + if (memberBuilder_ != null) { + return memberBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(member_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder addMemberBuilder() { + return getMemberFieldBuilder().addBuilder( + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.getDefaultInstance()); + } + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder addMemberBuilder( + int index) { + return getMemberFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.getDefaultInstance()); + } + /** + * repeated .proto.ChannelGetMemberListResponse.Member member = 2; + */ + public java.util.List + getMemberBuilderList() { + return getMemberFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.MemberOrBuilder> + getMemberFieldBuilder() { + if (memberBuilder_ == null) { + memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Member.Builder, net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.MemberOrBuilder>( + member_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + member_ = null; } + return memberBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelGetMemberListResponse) + } // @@protoc_insertion_point(class_scope:proto.ChannelGetMemberListResponse) private static final net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelGetMemberListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse(); } public static net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGetMemberListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelGetMemberListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetMemberList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetMemberList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetMemberListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetMemberListResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetMemberListResponse_Member_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetMemberListResponse_Member_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ChannelGetMemberList.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\032\014Global.proto" + + "\032\025ChannelAddAdmin.proto\"\351\001\n\024ChannelGetMe" + + "mberList\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\017\n\007room_id\030\002 \001(\004\022;\n\013filter_role\030\003 \001(\0162" + + "&.proto.ChannelGetMemberList.FilterRole\022" + + "%\n\npagination\030\004 \001(\0132\021.proto.Pagination\";" + + "\n\nFilterRole\022\007\n\003ALL\020\000\022\n\n\006MEMBER\020\001\022\r\n\tMOD" + + "ERATOR\020\002\022\t\n\005ADMIN\020\003\"\241\002\n\034ChannelGetMember" + + "ListResponse\022!\n\010response\030\001 \001(\0132\017.proto.R" + + "esponse\022:\n\006member\030\002 \003(\0132*.proto.ChannelG" + + "etMemberListResponse.Member\032\241\001\n\006Member\022\016" + + "\n\006userId\030\001 \001(\004\022%\n\004role\030\002 \001(\0162\027.proto.Cha" + + "nnelRoom.Role\0227\n\013adminRights\030\003 \001(\0132\".pro" + + "to.ChannelAddAdmin.AdminRights\022\'\n\010userIn" + + "fo\030\004 \001(\0132\025.proto.RegisteredUserB+\n\016net.i" + + "Gap.protoB\031ProtoChannelGetMemberListb\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + net.iGap.proto.ProtoChannelAddAdmin.getDescriptor(), + }); + internal_static_proto_ChannelGetMemberList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelGetMemberList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetMemberList_descriptor, + new java.lang.String[] { "Request", "RoomId", "FilterRole", "Pagination", }); + internal_static_proto_ChannelGetMemberListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelGetMemberListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetMemberListResponse_descriptor, + new java.lang.String[] { "Response", "Member", }); + internal_static_proto_ChannelGetMemberListResponse_Member_descriptor = + internal_static_proto_ChannelGetMemberListResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ChannelGetMemberListResponse_Member_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetMemberListResponse_Member_descriptor, + new java.lang.String[] { "UserId", "Role", "AdminRights", "UserInfo", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); + net.iGap.proto.ProtoChannelAddAdmin.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelGetMessagesStats.java b/src/main/java/net/iGap/proto/ProtoChannelGetMessagesStats.java index b1618f8..c0b38bd 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelGetMessagesStats.java +++ b/src/main/java/net/iGap/proto/ProtoChannelGetMessagesStats.java @@ -8,34 +8,51 @@ private ProtoChannelGetMessagesStats() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelGetMessagesStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetMessagesStats) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** * repeated uint64 message_id = 3 [deprecated = true]; + * @return A list containing the messageId. */ @java.lang.Deprecated java.util.List getMessageIdList(); /** * repeated uint64 message_id = 3 [deprecated = true]; + * @return The count of messageId. */ @java.lang.Deprecated int getMessageIdCount(); /** * repeated uint64 message_id = 3 [deprecated = true]; + * @param index The index of the element to return. + * @return The messageId at the given index. */ @java.lang.Deprecated long getMessageId(int index); @@ -52,89 +69,288 @@ public interface ChannelGetMessagesStatsOrBuilder extends * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ int getMessageIdInfoCount(); + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + java.util.List + getMessageIdInfoOrBuilderList(); + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfoOrBuilder getMessageIdInfoOrBuilder( + int index); } /** * Protobuf type {@code proto.ChannelGetMessagesStats} */ - public static final class ChannelGetMessagesStats extends - com.google.protobuf.GeneratedMessageLite< - ChannelGetMessagesStats, ChannelGetMessagesStats.Builder> implements + public static final class ChannelGetMessagesStats extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetMessagesStats) ChannelGetMessagesStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGetMessagesStats.newBuilder() to construct. + private ChannelGetMessagesStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelGetMessagesStats() { messageId_ = emptyLongList(); - messageIdInfo_ = emptyProtobufList(); + messageIdInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelGetMessagesStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelGetMessagesStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + messageId_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + messageId_.addLong(input.readUInt64()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + messageId_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + messageId_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + messageIdInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + messageIdInfo_.add( + input.readMessage(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + messageId_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + messageIdInfo_ = java.util.Collections.unmodifiableList(messageIdInfo_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.Builder.class); + } + public interface messageIdInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetMessagesStats.messageIdInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 document_id = 2; + * uint64 document_id = 2; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChannelGetMessagesStats.messageIdInfo} */ - public static final class messageIdInfo extends - com.google.protobuf.GeneratedMessageLite< - messageIdInfo, messageIdInfo.Builder> implements + public static final class messageIdInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetMessagesStats.messageIdInfo) messageIdInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use messageIdInfo.newBuilder() to construct. + private messageIdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private messageIdInfo() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new messageIdInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private messageIdInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + messageId_ = input.readUInt64(); + break; + } + case 16: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_messageIdInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_messageIdInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder.class); + } + public static final int MESSAGE_ID_FIELD_NUMBER = 1; private long messageId_; /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 1; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 1; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 2; private long documentId_; /** - * optional uint64 document_id = 2; + * uint64 document_id = 2; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 2; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 2; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (messageId_ != 0L) { @@ -143,10 +359,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(2, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -158,388 +376,482 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo) obj; + + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetMessagesStats.messageIdInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetMessagesStats.messageIdInfo) net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_messageIdInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_messageIdInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + messageId_ = 0L; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_messageIdInfo_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo build() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo buildPartial() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo result = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo(this); + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo) { + return mergeFrom((net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo other) { + if (other == net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.getDefaultInstance()) return this; + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long messageId_ ; /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 2; + * uint64 document_id = 2; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 2; + * uint64 document_id = 2; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 2; + * uint64 document_id = 2; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStats.messageIdInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo) arg1; - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - messageId_ = input.readUInt64(); - break; - } - case 16: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStats.messageIdInfo) + } + // @@protoc_insertion_point(class_scope:proto.ChannelGetMessagesStats.messageIdInfo) private static final net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new messageIdInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo(); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public messageIdInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new messageIdInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private com.google.protobuf.Internal.LongList messageId_; /** * repeated uint64 message_id = 3 [deprecated = true]; + * @return A list containing the messageId. */ + @java.lang.Override @java.lang.Deprecated public java.util.List getMessageIdList() { return messageId_; } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @return The count of messageId. */ @java.lang.Deprecated public int getMessageIdCount() { return messageId_.size(); } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @param index The index of the element to return. + * @return The messageId at the given index. */ @java.lang.Deprecated public long getMessageId(int index) { return messageId_.getLong(index); } - private void ensureMessageIdIsMutable() { - if (!messageId_.isModifiable()) { - messageId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(messageId_); - } - } - /** - * repeated uint64 message_id = 3 [deprecated = true]; - */ - private void setMessageId( - int index, long value) { - ensureMessageIdIsMutable(); - messageId_.setLong(index, value); - } - /** - * repeated uint64 message_id = 3 [deprecated = true]; - */ - private void addMessageId(long value) { - ensureMessageIdIsMutable(); - messageId_.addLong(value); - } - /** - * repeated uint64 message_id = 3 [deprecated = true]; - */ - private void addAllMessageId( - java.lang.Iterable values) { - ensureMessageIdIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, messageId_); - } - /** - * repeated uint64 message_id = 3 [deprecated = true]; - */ - private void clearMessageId() { - messageId_ = emptyLongList(); - } + private int messageIdMemoizedSerializedSize = -1; public static final int MESSAGE_ID_INFO_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.ProtobufList messageIdInfo_; + private java.util.List messageIdInfo_; /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ + @java.lang.Override public java.util.List getMessageIdInfoList() { return messageIdInfo_; } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ + @java.lang.Override public java.util.List getMessageIdInfoOrBuilderList() { return messageIdInfo_; @@ -547,108 +859,38 @@ public java.util.Listrepeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ + @java.lang.Override public int getMessageIdInfoCount() { return messageIdInfo_.size(); } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ + @java.lang.Override public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo getMessageIdInfo(int index) { return messageIdInfo_.get(index); } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ + @java.lang.Override public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfoOrBuilder getMessageIdInfoOrBuilder( int index) { return messageIdInfo_.get(index); } - private void ensureMessageIdInfoIsMutable() { - if (!messageIdInfo_.isModifiable()) { - messageIdInfo_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(messageIdInfo_); - } - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void setMessageIdInfo( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdInfoIsMutable(); - messageIdInfo_.set(index, value); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void setMessageIdInfo( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder builderForValue) { - ensureMessageIdInfoIsMutable(); - messageIdInfo_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void addMessageIdInfo(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdInfoIsMutable(); - messageIdInfo_.add(value); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void addMessageIdInfo( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdInfoIsMutable(); - messageIdInfo_.add(index, value); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void addMessageIdInfo( - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder builderForValue) { - ensureMessageIdInfoIsMutable(); - messageIdInfo_.add(builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void addMessageIdInfo( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder builderForValue) { - ensureMessageIdInfoIsMutable(); - messageIdInfo_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void addAllMessageIdInfo( - java.lang.Iterable values) { - ensureMessageIdInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, messageIdInfo_); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void clearMessageIdInfo() { - messageIdInfo_ = emptyProtobufList(); - } - /** - * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; - */ - private void removeMessageIdInfo(int index) { - ensureMessageIdInfoIsMutable(); - messageIdInfo_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -658,16 +900,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + if (getMessageIdList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(messageIdMemoizedSerializedSize); + } for (int i = 0; i < messageId_.size(); i++) { - output.writeUInt64(3, messageId_.getLong(i)); + output.writeUInt64NoTag(messageId_.getLong(i)); } for (int i = 0; i < messageIdInfo_.size(); i++) { output.writeMessage(4, messageIdInfo_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -686,246 +934,672 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(messageId_.getLong(i)); } size += dataSize; - size += 1 * getMessageIdList().size(); + if (!getMessageIdList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + messageIdMemoizedSerializedSize = dataSize; } for (int i = 0; i < messageIdInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, messageIdInfo_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getMessageIdList() + .equals(other.getMessageIdList())) return false; + if (!getMessageIdInfoList() + .equals(other.getMessageIdInfoList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (getMessageIdCount() > 0) { + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getMessageIdList().hashCode(); + } + if (getMessageIdInfoCount() > 0) { + hash = (37 * hash) + MESSAGE_ID_INFO_FIELD_NUMBER; + hash = (53 * hash) + getMessageIdInfoList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( - com.google.protobuf.ByteString data) + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetMessagesStats} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetMessagesStats) net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMessageIdInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + if (messageIdInfoBuilder_ == null) { + messageIdInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + messageIdInfoBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStats_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats build() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats buildPartial() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats result = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + if (((bitField0_ & 0x00000001) != 0)) { + messageId_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messageId_ = messageId_; + if (messageIdInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + messageIdInfo_ = java.util.Collections.unmodifiableList(messageIdInfo_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.messageIdInfo_ = messageIdInfo_; + } else { + result.messageIdInfo_ = messageIdInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats) { + return mergeFrom((net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats other) { + if (other == net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.messageId_.isEmpty()) { + if (messageId_.isEmpty()) { + messageId_ = other.messageId_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessageIdIsMutable(); + messageId_.addAll(other.messageId_); + } + onChanged(); + } + if (messageIdInfoBuilder_ == null) { + if (!other.messageIdInfo_.isEmpty()) { + if (messageIdInfo_.isEmpty()) { + messageIdInfo_ = other.messageIdInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMessageIdInfoIsMutable(); + messageIdInfo_.addAll(other.messageIdInfo_); + } + onChanged(); + } + } else { + if (!other.messageIdInfo_.isEmpty()) { + if (messageIdInfoBuilder_.isEmpty()) { + messageIdInfoBuilder_.dispose(); + messageIdInfoBuilder_ = null; + messageIdInfo_ = other.messageIdInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + messageIdInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessageIdInfoFieldBuilder() : null; + } else { + messageIdInfoBuilder_.addAllMessages(other.messageIdInfo_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList messageId_ = emptyLongList(); + private void ensureMessageIdIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messageId_ = mutableCopy(messageId_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @return A list containing the messageId. */ @java.lang.Deprecated public java.util.List getMessageIdList() { - return java.util.Collections.unmodifiableList( - instance.getMessageIdList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(messageId_) : messageId_; } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @return The count of messageId. */ @java.lang.Deprecated public int getMessageIdCount() { - return instance.getMessageIdCount(); + return messageId_.size(); } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @param index The index of the element to return. + * @return The messageId at the given index. */ @java.lang.Deprecated public long getMessageId(int index) { - return instance.getMessageId(index); + return messageId_.getLong(index); } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @param index The index to set the value at. + * @param value The messageId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setMessageId( int index, long value) { - copyOnWrite(); - instance.setMessageId(index, value); + ensureMessageIdIsMutable(); + messageId_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @param value The messageId to add. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder addMessageId(long value) { - copyOnWrite(); - instance.addMessageId(value); + ensureMessageIdIsMutable(); + messageId_.addLong(value); + onChanged(); return this; } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @param values The messageId to add. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllMessageId( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllMessageId(values); + ensureMessageIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messageId_); + onChanged(); return this; } /** * repeated uint64 message_id = 3 [deprecated = true]; + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + messageId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + private java.util.List messageIdInfo_ = + java.util.Collections.emptyList(); + private void ensureMessageIdInfoIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + messageIdInfo_ = new java.util.ArrayList(messageIdInfo_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfoOrBuilder> messageIdInfoBuilder_; + /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ public java.util.List getMessageIdInfoList() { - return java.util.Collections.unmodifiableList( - instance.getMessageIdInfoList()); + if (messageIdInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(messageIdInfo_); + } else { + return messageIdInfoBuilder_.getMessageList(); + } } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ public int getMessageIdInfoCount() { - return instance.getMessageIdInfoCount(); - }/** + if (messageIdInfoBuilder_ == null) { + return messageIdInfo_.size(); + } else { + return messageIdInfoBuilder_.getCount(); + } + } + /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo getMessageIdInfo(int index) { - return instance.getMessageIdInfo(index); + if (messageIdInfoBuilder_ == null) { + return messageIdInfo_.get(index); + } else { + return messageIdInfoBuilder_.getMessage(index); + } } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ public Builder setMessageIdInfo( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo value) { - copyOnWrite(); - instance.setMessageIdInfo(index, value); + if (messageIdInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIdInfoIsMutable(); + messageIdInfo_.set(index, value); + onChanged(); + } else { + messageIdInfoBuilder_.setMessage(index, value); + } return this; } /** @@ -933,16 +1607,29 @@ public Builder setMessageIdInfo( */ public Builder setMessageIdInfo( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder builderForValue) { - copyOnWrite(); - instance.setMessageIdInfo(index, builderForValue); + if (messageIdInfoBuilder_ == null) { + ensureMessageIdInfoIsMutable(); + messageIdInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + messageIdInfoBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ public Builder addMessageIdInfo(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo value) { - copyOnWrite(); - instance.addMessageIdInfo(value); + if (messageIdInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIdInfoIsMutable(); + messageIdInfo_.add(value); + onChanged(); + } else { + messageIdInfoBuilder_.addMessage(value); + } return this; } /** @@ -950,8 +1637,16 @@ public Builder addMessageIdInfo(net.iGap.proto.ProtoChannelGetMessagesStats.Chan */ public Builder addMessageIdInfo( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo value) { - copyOnWrite(); - instance.addMessageIdInfo(index, value); + if (messageIdInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIdInfoIsMutable(); + messageIdInfo_.add(index, value); + onChanged(); + } else { + messageIdInfoBuilder_.addMessage(index, value); + } return this; } /** @@ -959,8 +1654,13 @@ public Builder addMessageIdInfo( */ public Builder addMessageIdInfo( net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder builderForValue) { - copyOnWrite(); - instance.addMessageIdInfo(builderForValue); + if (messageIdInfoBuilder_ == null) { + ensureMessageIdInfoIsMutable(); + messageIdInfo_.add(builderForValue.build()); + onChanged(); + } else { + messageIdInfoBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -968,8 +1668,13 @@ public Builder addMessageIdInfo( */ public Builder addMessageIdInfo( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder builderForValue) { - copyOnWrite(); - instance.addMessageIdInfo(index, builderForValue); + if (messageIdInfoBuilder_ == null) { + ensureMessageIdInfoIsMutable(); + messageIdInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + messageIdInfoBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -977,186 +1682,177 @@ public Builder addMessageIdInfo( */ public Builder addAllMessageIdInfo( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllMessageIdInfo(values); + if (messageIdInfoBuilder_ == null) { + ensureMessageIdInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messageIdInfo_); + onChanged(); + } else { + messageIdInfoBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ public Builder clearMessageIdInfo() { - copyOnWrite(); - instance.clearMessageIdInfo(); + if (messageIdInfoBuilder_ == null) { + messageIdInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + messageIdInfoBuilder_.clear(); + } return this; } /** * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; */ public Builder removeMessageIdInfo(int index) { - copyOnWrite(); - instance.removeMessageIdInfo(index); + if (messageIdInfoBuilder_ == null) { + ensureMessageIdInfoIsMutable(); + messageIdInfo_.remove(index); + onChanged(); + } else { + messageIdInfoBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStats) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats(); + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder getMessageIdInfoBuilder( + int index) { + return getMessageIdInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfoOrBuilder getMessageIdInfoOrBuilder( + int index) { + if (messageIdInfoBuilder_ == null) { + return messageIdInfo_.get(index); } else { + return messageIdInfoBuilder_.getMessageOrBuilder(index); } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + public java.util.List + getMessageIdInfoOrBuilderList() { + if (messageIdInfoBuilder_ != null) { + return messageIdInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messageIdInfo_); } - case MAKE_IMMUTABLE: { - messageId_.makeImmutable(); - messageIdInfo_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_= visitor.visitLongList(messageId_, other.messageId_); - messageIdInfo_= visitor.visitList(messageIdInfo_, other.messageIdInfo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; + } + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder addMessageIdInfoBuilder() { + return getMessageIdInfoFieldBuilder().addBuilder( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.getDefaultInstance()); + } + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder addMessageIdInfoBuilder( + int index) { + return getMessageIdInfoFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.getDefaultInstance()); + } + /** + * repeated .proto.ChannelGetMessagesStats.messageIdInfo message_id_info = 4; + */ + public java.util.List + getMessageIdInfoBuilderList() { + return getMessageIdInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfoOrBuilder> + getMessageIdInfoFieldBuilder() { + if (messageIdInfoBuilder_ == null) { + messageIdInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.Builder, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfoOrBuilder>( + messageIdInfo_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + messageIdInfo_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { + return messageIdInfoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - roomId_ = input.readUInt64(); - break; - } - case 24: { - if (!messageId_.isModifiable()) { - messageId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(messageId_); - } - messageId_.addLong(input.readUInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!messageId_.isModifiable() && input.getBytesUntilLimit() > 0) { - messageId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(messageId_); - } - while (input.getBytesUntilLimit() > 0) { - messageId_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 34: { - if (!messageIdInfo_.isModifiable()) { - messageIdInfo_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(messageIdInfo_); - } - messageIdInfo_.add( - input.readMessage(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.messageIdInfo.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStats) + } + // @@protoc_insertion_point(class_scope:proto.ChannelGetMessagesStats) private static final net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelGetMessagesStats(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats(); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGetMessagesStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelGetMessagesStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelGetMessagesStatsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetMessagesStatsResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; @@ -1171,280 +1867,452 @@ public interface ChannelGetMessagesStatsResponseOrBuilder extends * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ int getStatsCount(); + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + java.util.List + getStatsOrBuilderList(); + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder getStatsOrBuilder( + int index); } /** * Protobuf type {@code proto.ChannelGetMessagesStatsResponse} */ - public static final class ChannelGetMessagesStatsResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelGetMessagesStatsResponse, ChannelGetMessagesStatsResponse.Builder> implements + public static final class ChannelGetMessagesStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetMessagesStatsResponse) ChannelGetMessagesStatsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGetMessagesStatsResponse.newBuilder() to construct. + private ChannelGetMessagesStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelGetMessagesStatsResponse() { - stats_ = emptyProtobufList(); + stats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelGetMessagesStatsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelGetMessagesStatsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stats_.add( + input.readMessage(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + stats_ = java.util.Collections.unmodifiableList(stats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Builder.class); + } + public interface StatsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelGetMessagesStatsResponse.Stats) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ long getMessageId(); /** - * optional string views_label = 2; + * string views_label = 2; + * @return The viewsLabel. */ java.lang.String getViewsLabel(); /** - * optional string views_label = 2; + * string views_label = 2; + * @return The bytes for viewsLabel. */ com.google.protobuf.ByteString getViewsLabelBytes(); /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The thumbsUpLabel. */ java.lang.String getThumbsUpLabel(); /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The bytes for thumbsUpLabel. */ com.google.protobuf.ByteString getThumbsUpLabelBytes(); /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The thumbsDownLabel. */ java.lang.String getThumbsDownLabel(); /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The bytes for thumbsDownLabel. */ com.google.protobuf.ByteString getThumbsDownLabelBytes(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChannelGetMessagesStatsResponse.Stats} */ - public static final class Stats extends - com.google.protobuf.GeneratedMessageLite< - Stats, Stats.Builder> implements + public static final class Stats extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelGetMessagesStatsResponse.Stats) StatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Stats.newBuilder() to construct. + private Stats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Stats() { viewsLabel_ = ""; thumbsUpLabel_ = ""; thumbsDownLabel_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Stats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Stats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + messageId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + viewsLabel_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + thumbsUpLabel_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + thumbsDownLabel_ = s; + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_Stats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder.class); + } + public static final int MESSAGE_ID_FIELD_NUMBER = 1; private long messageId_; /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 1; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 1; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int VIEWS_LABEL_FIELD_NUMBER = 2; - private java.lang.String viewsLabel_; + private volatile java.lang.Object viewsLabel_; /** - * optional string views_label = 2; + * string views_label = 2; + * @return The viewsLabel. */ + @java.lang.Override public java.lang.String getViewsLabel() { - return viewsLabel_; + java.lang.Object ref = viewsLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + viewsLabel_ = s; + return s; + } } /** - * optional string views_label = 2; + * string views_label = 2; + * @return The bytes for viewsLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getViewsLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(viewsLabel_); + java.lang.Object ref = viewsLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewsLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int THUMBS_UP_LABEL_FIELD_NUMBER = 3; + private volatile java.lang.Object thumbsUpLabel_; /** - * optional string views_label = 2; + * string thumbs_up_label = 3; + * @return The thumbsUpLabel. */ - private void setViewsLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - viewsLabel_ = value; + @java.lang.Override + public java.lang.String getThumbsUpLabel() { + java.lang.Object ref = thumbsUpLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsUpLabel_ = s; + return s; + } } /** - * optional string views_label = 2; + * string thumbs_up_label = 3; + * @return The bytes for thumbsUpLabel. */ - private void clearViewsLabel() { - - viewsLabel_ = getDefaultInstance().getViewsLabel(); + @java.lang.Override + public com.google.protobuf.ByteString + getThumbsUpLabelBytes() { + java.lang.Object ref = thumbsUpLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsUpLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int THUMBS_DOWN_LABEL_FIELD_NUMBER = 4; + private volatile java.lang.Object thumbsDownLabel_; /** - * optional string views_label = 2; - */ - private void setViewsLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - viewsLabel_ = value.toStringUtf8(); - } - - public static final int THUMBS_UP_LABEL_FIELD_NUMBER = 3; - private java.lang.String thumbsUpLabel_; - /** - * optional string thumbs_up_label = 3; - */ - public java.lang.String getThumbsUpLabel() { - return thumbsUpLabel_; - } - /** - * optional string thumbs_up_label = 3; - */ - public com.google.protobuf.ByteString - getThumbsUpLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(thumbsUpLabel_); - } - /** - * optional string thumbs_up_label = 3; - */ - private void setThumbsUpLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - thumbsUpLabel_ = value; - } - /** - * optional string thumbs_up_label = 3; - */ - private void clearThumbsUpLabel() { - - thumbsUpLabel_ = getDefaultInstance().getThumbsUpLabel(); - } - /** - * optional string thumbs_up_label = 3; - */ - private void setThumbsUpLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - thumbsUpLabel_ = value.toStringUtf8(); - } - - public static final int THUMBS_DOWN_LABEL_FIELD_NUMBER = 4; - private java.lang.String thumbsDownLabel_; - /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The thumbsDownLabel. */ + @java.lang.Override public java.lang.String getThumbsDownLabel() { - return thumbsDownLabel_; + java.lang.Object ref = thumbsDownLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsDownLabel_ = s; + return s; + } } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The bytes for thumbsDownLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getThumbsDownLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(thumbsDownLabel_); - } - /** - * optional string thumbs_down_label = 4; - */ - private void setThumbsDownLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - thumbsDownLabel_ = value; - } - /** - * optional string thumbs_down_label = 4; - */ - private void clearThumbsDownLabel() { - - thumbsDownLabel_ = getDefaultInstance().getThumbsDownLabel(); - } - /** - * optional string thumbs_down_label = 4; - */ - private void setThumbsDownLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - thumbsDownLabel_ = value.toStringUtf8(); + java.lang.Object ref = thumbsDownLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsDownLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (messageId_ != 0L) { output.writeUInt64(1, messageId_); } - if (!viewsLabel_.isEmpty()) { - output.writeString(2, getViewsLabel()); + if (!getViewsLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, viewsLabel_); } - if (!thumbsUpLabel_.isEmpty()) { - output.writeString(3, getThumbsUpLabel()); + if (!getThumbsUpLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, thumbsUpLabel_); } - if (!thumbsDownLabel_.isEmpty()) { - output.writeString(4, getThumbsDownLabel()); + if (!getThumbsDownLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thumbsDownLabel_); } if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1452,467 +2320,717 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, messageId_); } - if (!viewsLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getViewsLabel()); + if (!getViewsLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, viewsLabel_); } - if (!thumbsUpLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getThumbsUpLabel()); + if (!getThumbsUpLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, thumbsUpLabel_); } - if (!thumbsDownLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getThumbsDownLabel()); + if (!getThumbsDownLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thumbsDownLabel_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats) obj; + + if (getMessageId() + != other.getMessageId()) return false; + if (!getViewsLabel() + .equals(other.getViewsLabel())) return false; + if (!getThumbsUpLabel() + .equals(other.getThumbsUpLabel())) return false; + if (!getThumbsDownLabel() + .equals(other.getThumbsDownLabel())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + VIEWS_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getViewsLabel().hashCode(); + hash = (37 * hash) + THUMBS_UP_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getThumbsUpLabel().hashCode(); + hash = (37 * hash) + THUMBS_DOWN_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getThumbsDownLabel().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetMessagesStatsResponse.Stats} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetMessagesStatsResponse.Stats) net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_Stats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + messageId_ = 0L; + + viewsLabel_ = ""; + + thumbsUpLabel_ = ""; + + thumbsDownLabel_ = ""; + + documentId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_Stats_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats build() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats buildPartial() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats result = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats(this); + result.messageId_ = messageId_; + result.viewsLabel_ = viewsLabel_; + result.thumbsUpLabel_ = thumbsUpLabel_; + result.thumbsDownLabel_ = thumbsDownLabel_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats) { + return mergeFrom((net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats other) { + if (other == net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.getDefaultInstance()) return this; + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (!other.getViewsLabel().isEmpty()) { + viewsLabel_ = other.viewsLabel_; + onChanged(); + } + if (!other.getThumbsUpLabel().isEmpty()) { + thumbsUpLabel_ = other.thumbsUpLabel_; + onChanged(); + } + if (!other.getThumbsDownLabel().isEmpty()) { + thumbsDownLabel_ = other.thumbsDownLabel_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long messageId_ ; /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private java.lang.Object viewsLabel_ = ""; /** - * optional string views_label = 2; + * string views_label = 2; + * @return The viewsLabel. */ public java.lang.String getViewsLabel() { - return instance.getViewsLabel(); + java.lang.Object ref = viewsLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + viewsLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string views_label = 2; + * string views_label = 2; + * @return The bytes for viewsLabel. */ public com.google.protobuf.ByteString getViewsLabelBytes() { - return instance.getViewsLabelBytes(); + java.lang.Object ref = viewsLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewsLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string views_label = 2; + * string views_label = 2; + * @param value The viewsLabel to set. + * @return This builder for chaining. */ public Builder setViewsLabel( java.lang.String value) { - copyOnWrite(); - instance.setViewsLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + viewsLabel_ = value; + onChanged(); return this; } /** - * optional string views_label = 2; + * string views_label = 2; + * @return This builder for chaining. */ public Builder clearViewsLabel() { - copyOnWrite(); - instance.clearViewsLabel(); + + viewsLabel_ = getDefaultInstance().getViewsLabel(); + onChanged(); return this; } /** - * optional string views_label = 2; + * string views_label = 2; + * @param value The bytes for viewsLabel to set. + * @return This builder for chaining. */ public Builder setViewsLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setViewsLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + viewsLabel_ = value; + onChanged(); return this; } + private java.lang.Object thumbsUpLabel_ = ""; /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The thumbsUpLabel. */ public java.lang.String getThumbsUpLabel() { - return instance.getThumbsUpLabel(); + java.lang.Object ref = thumbsUpLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsUpLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The bytes for thumbsUpLabel. */ public com.google.protobuf.ByteString getThumbsUpLabelBytes() { - return instance.getThumbsUpLabelBytes(); + java.lang.Object ref = thumbsUpLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsUpLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @param value The thumbsUpLabel to set. + * @return This builder for chaining. */ public Builder setThumbsUpLabel( java.lang.String value) { - copyOnWrite(); - instance.setThumbsUpLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + thumbsUpLabel_ = value; + onChanged(); return this; } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return This builder for chaining. */ public Builder clearThumbsUpLabel() { - copyOnWrite(); - instance.clearThumbsUpLabel(); + + thumbsUpLabel_ = getDefaultInstance().getThumbsUpLabel(); + onChanged(); return this; } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @param value The bytes for thumbsUpLabel to set. + * @return This builder for chaining. */ public Builder setThumbsUpLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setThumbsUpLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + thumbsUpLabel_ = value; + onChanged(); return this; } + private java.lang.Object thumbsDownLabel_ = ""; /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The thumbsDownLabel. */ public java.lang.String getThumbsDownLabel() { - return instance.getThumbsDownLabel(); + java.lang.Object ref = thumbsDownLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsDownLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The bytes for thumbsDownLabel. */ public com.google.protobuf.ByteString getThumbsDownLabelBytes() { - return instance.getThumbsDownLabelBytes(); + java.lang.Object ref = thumbsDownLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsDownLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @param value The thumbsDownLabel to set. + * @return This builder for chaining. */ public Builder setThumbsDownLabel( java.lang.String value) { - copyOnWrite(); - instance.setThumbsDownLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + thumbsDownLabel_ = value; + onChanged(); return this; } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return This builder for chaining. */ public Builder clearThumbsDownLabel() { - copyOnWrite(); - instance.clearThumbsDownLabel(); + + thumbsDownLabel_ = getDefaultInstance().getThumbsDownLabel(); + onChanged(); return this; } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @param value The bytes for thumbsDownLabel to set. + * @return This builder for chaining. */ public Builder setThumbsDownLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setThumbsDownLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + thumbsDownLabel_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStatsResponse.Stats) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats) arg1; - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - viewsLabel_ = visitor.visitString(!viewsLabel_.isEmpty(), viewsLabel_, - !other.viewsLabel_.isEmpty(), other.viewsLabel_); - thumbsUpLabel_ = visitor.visitString(!thumbsUpLabel_.isEmpty(), thumbsUpLabel_, - !other.thumbsUpLabel_.isEmpty(), other.thumbsUpLabel_); - thumbsDownLabel_ = visitor.visitString(!thumbsDownLabel_.isEmpty(), thumbsDownLabel_, - !other.thumbsDownLabel_.isEmpty(), other.thumbsDownLabel_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - messageId_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - viewsLabel_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - thumbsUpLabel_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - thumbsDownLabel_ = s; - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStatsResponse.Stats) + } + // @@protoc_insertion_point(class_scope:proto.ChannelGetMessagesStatsResponse.Stats) private static final net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Stats(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats(); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList stats_; + private java.util.List stats_; /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ + @java.lang.Override public java.util.List getStatsList() { return stats_; } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ + @java.lang.Override public java.util.List getStatsOrBuilderList() { return stats_; @@ -1920,108 +3038,38 @@ public java.util.Listrepeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ + @java.lang.Override public int getStatsCount() { return stats_.size(); } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ + @java.lang.Override public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index) { return stats_.get(index); } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ + @java.lang.Override public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder getStatsOrBuilder( int index) { return stats_.get(index); } - private void ensureStatsIsMutable() { - if (!stats_.isModifiable()) { - stats_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(stats_); - } - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void setStats( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatsIsMutable(); - stats_.set(index, value); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void setStats( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) { - ensureStatsIsMutable(); - stats_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatsIsMutable(); - stats_.add(value); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void addStats( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatsIsMutable(); - stats_.add(index, value); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void addStats( - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) { - ensureStatsIsMutable(); - stats_.add(builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void addStats( - int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) { - ensureStatsIsMutable(); - stats_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void addAllStats( - java.lang.Iterable values) { - ensureStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, stats_); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void clearStats() { - stats_ = emptyProtobufList(); - } - /** - * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - */ - private void removeStats(int index) { - ensureStatsIsMutable(); - stats_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -2030,10 +3078,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < stats_.size(); i++) { output.writeMessage(2, stats_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2045,162 +3095,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, stats_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getStatsList() + .equals(other.getStatsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getStatsCount() > 0) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStatsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelGetMessagesStatsResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelGetMessagesStatsResponse) net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.class, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStatsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + statsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.internal_static_proto_ChannelGetMessagesStatsResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse build() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse buildPartial() { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse result = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (statsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stats_ = java.util.Collections.unmodifiableList(stats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse other) { + if (other == net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (statsBuilder_ == null) { + if (!other.stats_.isEmpty()) { + if (stats_.isEmpty()) { + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatsIsMutable(); + stats_.addAll(other.stats_); + } + onChanged(); + } + } else { + if (!other.stats_.isEmpty()) { + if (statsBuilder_.isEmpty()) { + statsBuilder_.dispose(); + statsBuilder_ = null; + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000001); + statsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatsFieldBuilder() : null; + } else { + statsBuilder_.addAllMessages(other.stats_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List stats_ = + java.util.Collections.emptyList(); + private void ensureStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stats_ = new java.util.ArrayList(stats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder> statsBuilder_; /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ public java.util.List getStatsList() { - return java.util.Collections.unmodifiableList( - instance.getStatsList()); + if (statsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stats_); + } else { + return statsBuilder_.getMessageList(); + } } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ public int getStatsCount() { - return instance.getStatsCount(); - }/** + if (statsBuilder_ == null) { + return stats_.size(); + } else { + return statsBuilder_.getCount(); + } + } + /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index) { - return instance.getStats(index); + if (statsBuilder_ == null) { + return stats_.get(index); + } else { + return statsBuilder_.getMessage(index); + } } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ public Builder setStats( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) { - copyOnWrite(); - instance.setStats(index, value); + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.set(index, value); + onChanged(); + } else { + statsBuilder_.setMessage(index, value); + } return this; } /** @@ -2208,16 +3613,29 @@ public Builder setStats( */ public Builder setStats( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) { - copyOnWrite(); - instance.setStats(index, builderForValue); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.set(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ public Builder addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) { - copyOnWrite(); - instance.addStats(value); + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(value); + onChanged(); + } else { + statsBuilder_.addMessage(value); + } return this; } /** @@ -2225,8 +3643,16 @@ public Builder addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMe */ public Builder addStats( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) { - copyOnWrite(); - instance.addStats(index, value); + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(index, value); + onChanged(); + } else { + statsBuilder_.addMessage(index, value); + } return this; } /** @@ -2234,8 +3660,13 @@ public Builder addStats( */ public Builder addStats( net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) { - copyOnWrite(); - instance.addStats(builderForValue); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -2243,8 +3674,13 @@ public Builder addStats( */ public Builder addStats( int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) { - copyOnWrite(); - instance.addStats(index, builderForValue); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -2252,146 +3688,237 @@ public Builder addStats( */ public Builder addAllStats( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllStats(values); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stats_); + onChanged(); + } else { + statsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ public Builder clearStats() { - copyOnWrite(); - instance.clearStats(); + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + statsBuilder_.clear(); + } return this; } /** * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; */ public Builder removeStats(int index) { - copyOnWrite(); - instance.removeStats(index); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.remove(index); + onChanged(); + } else { + statsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStatsResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - stats_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse other = (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - stats_= visitor.visitList(stats_, other.stats_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!stats_.isModifiable()) { - stats_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(stats_); - } - stats_.add( - input.readMessage(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder getStatsBuilder( + int index) { + return getStatsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder getStatsOrBuilder( + int index) { + if (statsBuilder_ == null) { + return stats_.get(index); } else { + return statsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + public java.util.List + getStatsOrBuilderList() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stats_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder addStatsBuilder() { + return getStatsFieldBuilder().addBuilder( + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.getDefaultInstance()); + } + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder addStatsBuilder( + int index) { + return getStatsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.getDefaultInstance()); + } + /** + * repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; + */ + public java.util.List + getStatsBuilderList() { + return getStatsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder>( + stats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + stats_ = null; } + return statsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelGetMessagesStatsResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelGetMessagesStatsResponse) private static final net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelGetMessagesStatsResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse(); } public static net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGetMessagesStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelGetMessagesStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetMessagesStats_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetMessagesStats_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetMessagesStats_messageIdInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetMessagesStats_messageIdInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetMessagesStatsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetMessagesStatsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelGetMessagesStatsResponse_Stats_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelGetMessagesStatsResponse_Stats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\035ChannelGetMessagesStats.proto\022\005proto\032\r" + + "Request.proto\032\016Response.proto\"\344\001\n\027Channe" + + "lGetMessagesStats\022\037\n\007request\030\001 \001(\0132\016.pro" + + "to.Request\022\017\n\007room_id\030\002 \001(\004\022\026\n\nmessage_i" + + "d\030\003 \003(\004B\002\030\001\022E\n\017message_id_info\030\004 \003(\0132,.p" + + "roto.ChannelGetMessagesStats.messageIdIn" + + "fo\0328\n\rmessageIdInfo\022\022\n\nmessage_id\030\001 \001(\004\022" + + "\023\n\013document_id\030\002 \001(\004\"\374\001\n\037ChannelGetMessa" + + "gesStatsResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.Response\022;\n\005stats\030\002 \003(\0132,.proto.Chann" + + "elGetMessagesStatsResponse.Stats\032y\n\005Stat" + + "s\022\022\n\nmessage_id\030\001 \001(\004\022\023\n\013views_label\030\002 \001" + + "(\t\022\027\n\017thumbs_up_label\030\003 \001(\t\022\031\n\021thumbs_do" + + "wn_label\030\004 \001(\t\022\023\n\013document_id\030\005 \001(\004B.\n\016n" + + "et.iGap.protoB\034ProtoChannelGetMessagesSt" + + "atsb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelGetMessagesStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelGetMessagesStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetMessagesStats_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "MessageIdInfo", }); + internal_static_proto_ChannelGetMessagesStats_messageIdInfo_descriptor = + internal_static_proto_ChannelGetMessagesStats_descriptor.getNestedTypes().get(0); + internal_static_proto_ChannelGetMessagesStats_messageIdInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetMessagesStats_messageIdInfo_descriptor, + new java.lang.String[] { "MessageId", "DocumentId", }); + internal_static_proto_ChannelGetMessagesStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelGetMessagesStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetMessagesStatsResponse_descriptor, + new java.lang.String[] { "Response", "Stats", }); + internal_static_proto_ChannelGetMessagesStatsResponse_Stats_descriptor = + internal_static_proto_ChannelGetMessagesStatsResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ChannelGetMessagesStatsResponse_Stats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelGetMessagesStatsResponse_Stats_descriptor, + new java.lang.String[] { "MessageId", "ViewsLabel", "ThumbsUpLabel", "ThumbsDownLabel", "DocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelKickAdmin.java b/src/main/java/net/iGap/proto/ProtoChannelKickAdmin.java index 7793992..02f0cbf 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelKickAdmin.java +++ b/src/main/java/net/iGap/proto/ProtoChannelKickAdmin.java @@ -8,137 +8,203 @@ private ProtoChannelKickAdmin() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelKickAdminOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelKickAdmin) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelKickAdmin} */ - public static final class ChannelKickAdmin extends - com.google.protobuf.GeneratedMessageLite< - ChannelKickAdmin, ChannelKickAdmin.Builder> implements + public static final class ChannelKickAdmin extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelKickAdmin) ChannelKickAdminOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelKickAdmin.newBuilder() to construct. + private ChannelKickAdmin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelKickAdmin() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelKickAdmin(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelKickAdmin( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.class, net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin other = (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelKickAdmin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelKickAdmin) net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.class, net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + memberId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdmin_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin build() { + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin buildPartial() { + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin result = new net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin) { + return mergeFrom((net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin other) { + if (other == net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelKickAdmin) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin other = (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelKickAdmin) + } + // @@protoc_insertion_point(class_scope:proto.ChannelKickAdmin) private static final net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelKickAdmin(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin(); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelKickAdmin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelKickAdmin(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdmin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelKickAdminResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelKickAdminResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelKickAdminResponse} */ - public static final class ChannelKickAdminResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelKickAdminResponse, ChannelKickAdminResponse.Builder> implements + public static final class ChannelKickAdminResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelKickAdminResponse) ChannelKickAdminResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelKickAdminResponse.newBuilder() to construct. + private ChannelKickAdminResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelKickAdminResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelKickAdminResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelKickAdminResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.class, net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse other = (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelKickAdminResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelKickAdminResponse) net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.class, net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelKickAdmin.internal_static_proto_ChannelKickAdminResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse build() { + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse buildPartial() { + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse result = new net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse other) { + if (other == net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelKickAdminResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse other = (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelKickAdminResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelKickAdminResponse) private static final net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelKickAdminResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse(); } public static net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelKickAdminResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelKickAdminResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickAdmin.ChannelKickAdminResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelKickAdmin_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelKickAdmin_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelKickAdminResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelKickAdminResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ChannelKickAdmin.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"W\n\020ChannelKickAdm" + + "in\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007r" + + "oom_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\"a\n\030Chann" + + "elKickAdminResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\017\n\007room_id\030\002 \001(\004\022\021\n\tmembe" + + "r_id\030\003 \001(\004B\'\n\016net.iGap.protoB\025ProtoChann" + + "elKickAdminb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelKickAdmin_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelKickAdmin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelKickAdmin_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_ChannelKickAdminResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelKickAdminResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelKickAdminResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelKickMember.java b/src/main/java/net/iGap/proto/ProtoChannelKickMember.java index 26dc008..6cb1c27 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelKickMember.java +++ b/src/main/java/net/iGap/proto/ProtoChannelKickMember.java @@ -8,137 +8,203 @@ private ProtoChannelKickMember() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelKickMemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelKickMember) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelKickMember} */ - public static final class ChannelKickMember extends - com.google.protobuf.GeneratedMessageLite< - ChannelKickMember, ChannelKickMember.Builder> implements + public static final class ChannelKickMember extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelKickMember) ChannelKickMemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelKickMember.newBuilder() to construct. + private ChannelKickMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelKickMember() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelKickMember(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelKickMember( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.class, net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelKickMember.ChannelKickMember)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelKickMember.ChannelKickMember other = (net.iGap.proto.ProtoChannelKickMember.ChannelKickMember) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelKickMember.ChannelKickMember prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelKickMember} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelKickMember.ChannelKickMember, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelKickMember) net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.class, net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + memberId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMember_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMember getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMember build() { + net.iGap.proto.ProtoChannelKickMember.ChannelKickMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMember buildPartial() { + net.iGap.proto.ProtoChannelKickMember.ChannelKickMember result = new net.iGap.proto.ProtoChannelKickMember.ChannelKickMember(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelKickMember.ChannelKickMember) { + return mergeFrom((net.iGap.proto.ProtoChannelKickMember.ChannelKickMember)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelKickMember.ChannelKickMember other) { + if (other == net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelKickMember.ChannelKickMember parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelKickMember.ChannelKickMember) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelKickMember) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelKickMember.ChannelKickMember(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelKickMember.ChannelKickMember other = (net.iGap.proto.ProtoChannelKickMember.ChannelKickMember) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelKickMember.ChannelKickMember.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelKickMember) + } + // @@protoc_insertion_point(class_scope:proto.ChannelKickMember) private static final net.iGap.proto.ProtoChannelKickMember.ChannelKickMember DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelKickMember(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelKickMember.ChannelKickMember(); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMember getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelKickMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelKickMember(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelKickMemberResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelKickMemberResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelKickMemberResponse} */ - public static final class ChannelKickMemberResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelKickMemberResponse, ChannelKickMemberResponse.Builder> implements + public static final class ChannelKickMemberResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelKickMemberResponse) ChannelKickMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelKickMemberResponse.newBuilder() to construct. + private ChannelKickMemberResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelKickMemberResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelKickMemberResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelKickMemberResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.class, net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse other = (net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelKickMemberResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelKickMemberResponse) net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.class, net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelKickMember.internal_static_proto_ChannelKickMemberResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse build() { + net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse buildPartial() { + net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse result = new net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse other) { + if (other == net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelKickMemberResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse other = (net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelKickMemberResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelKickMemberResponse) private static final net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelKickMemberResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse(); } public static net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelKickMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelKickMemberResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickMember.ChannelKickMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelKickMember_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelKickMember_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelKickMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelKickMemberResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027ChannelKickMember.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"X\n\021ChannelKickMe" + + "mber\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007room_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\"b\n\031Cha" + + "nnelKickMemberResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\021\n\tme" + + "mber_id\030\003 \001(\004B(\n\016net.iGap.protoB\026ProtoCh" + + "annelKickMemberb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelKickMember_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelKickMember_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelKickMember_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_ChannelKickMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelKickMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelKickMemberResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelKickModerator.java b/src/main/java/net/iGap/proto/ProtoChannelKickModerator.java index ef582c3..dbbda3c 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelKickModerator.java +++ b/src/main/java/net/iGap/proto/ProtoChannelKickModerator.java @@ -8,137 +8,203 @@ private ProtoChannelKickModerator() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelKickModeratorOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelKickModerator) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelKickModerator} */ - public static final class ChannelKickModerator extends - com.google.protobuf.GeneratedMessageLite< - ChannelKickModerator, ChannelKickModerator.Builder> implements + public static final class ChannelKickModerator extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelKickModerator) ChannelKickModeratorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelKickModerator.newBuilder() to construct. + private ChannelKickModerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelKickModerator() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelKickModerator(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelKickModerator( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.class, net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator other = (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelKickModerator} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelKickModerator) net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.class, net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + memberId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModerator_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator build() { + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator buildPartial() { + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator result = new net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator) { + return mergeFrom((net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator other) { + if (other == net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelKickModerator) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator other = (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelKickModerator) + } + // @@protoc_insertion_point(class_scope:proto.ChannelKickModerator) private static final net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelKickModerator(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator(); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelKickModerator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelKickModerator(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModerator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelKickModeratorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelKickModeratorResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelKickModeratorResponse} */ - public static final class ChannelKickModeratorResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelKickModeratorResponse, ChannelKickModeratorResponse.Builder> implements + public static final class ChannelKickModeratorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelKickModeratorResponse) ChannelKickModeratorResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelKickModeratorResponse.newBuilder() to construct. + private ChannelKickModeratorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelKickModeratorResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelKickModeratorResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelKickModeratorResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.class, net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse other = (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelKickModeratorResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelKickModeratorResponse) net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.class, net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelKickModerator.internal_static_proto_ChannelKickModeratorResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse build() { + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse buildPartial() { + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse result = new net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse other) { + if (other == net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelKickModeratorResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse other = (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelKickModeratorResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelKickModeratorResponse) private static final net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelKickModeratorResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse(); } public static net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelKickModeratorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelKickModeratorResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelKickModerator.ChannelKickModeratorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelKickModerator_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelKickModerator_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelKickModeratorResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelKickModeratorResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ChannelKickModerator.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"[\n\024ChannelKic" + + "kModerator\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007room_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\"" + + "e\n\034ChannelKickModeratorResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 " + + "\001(\004\022\021\n\tmember_id\030\003 \001(\004B+\n\016net.iGap.proto" + + "B\031ProtoChannelKickModeratorb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelKickModerator_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelKickModerator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelKickModerator_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_ChannelKickModeratorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelKickModeratorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelKickModeratorResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelLeft.java b/src/main/java/net/iGap/proto/ProtoChannelLeft.java index 6b004ea..d375ee7 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelLeft.java +++ b/src/main/java/net/iGap/proto/ProtoChannelLeft.java @@ -8,109 +8,181 @@ private ProtoChannelLeft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelLeftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelLeft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelLeft} */ - public static final class ChannelLeft extends - com.google.protobuf.GeneratedMessageLite< - ChannelLeft, ChannelLeft.Builder> implements + public static final class ChannelLeft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelLeft) ChannelLeftOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelLeft.newBuilder() to construct. + private ChannelLeft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelLeft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelLeft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelLeft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelLeft.ChannelLeft.class, net.iGap.proto.ProtoChannelLeft.ChannelLeft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,403 +208,695 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelLeft.ChannelLeft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelLeft.ChannelLeft other = (net.iGap.proto.ProtoChannelLeft.ChannelLeft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelLeft.ChannelLeft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelLeft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelLeft.ChannelLeft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelLeft) net.iGap.proto.ProtoChannelLeft.ChannelLeftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelLeft.ChannelLeft.class, net.iGap.proto.ProtoChannelLeft.ChannelLeft.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelLeft.ChannelLeft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeft getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelLeft.ChannelLeft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeft build() { + net.iGap.proto.ProtoChannelLeft.ChannelLeft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeft buildPartial() { + net.iGap.proto.ProtoChannelLeft.ChannelLeft result = new net.iGap.proto.ProtoChannelLeft.ChannelLeft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelLeft.ChannelLeft) { + return mergeFrom((net.iGap.proto.ProtoChannelLeft.ChannelLeft)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelLeft.ChannelLeft other) { + if (other == net.iGap.proto.ProtoChannelLeft.ChannelLeft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelLeft.ChannelLeft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelLeft.ChannelLeft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelLeft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelLeft.ChannelLeft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelLeft.ChannelLeft other = (net.iGap.proto.ProtoChannelLeft.ChannelLeft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelLeft.ChannelLeft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelLeft) + } + // @@protoc_insertion_point(class_scope:proto.ChannelLeft) private static final net.iGap.proto.ProtoChannelLeft.ChannelLeft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelLeft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelLeft.ChannelLeft(); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelLeft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelLeft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelLeftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelLeftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.ChannelLeftResponse} */ - public static final class ChannelLeftResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelLeftResponse, ChannelLeftResponse.Builder> implements + public static final class ChannelLeftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelLeftResponse) ChannelLeftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelLeftResponse.newBuilder() to construct. + private ChannelLeftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelLeftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelLeftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelLeftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.class, net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -542,10 +908,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -561,304 +929,593 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse other = (net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelLeftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelLeftResponse) net.iGap.proto.ProtoChannelLeft.ChannelLeftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.class, net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelLeft.internal_static_proto_ChannelLeftResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse build() { + net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse buildPartial() { + net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse result = new net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse other) { + if (other == net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelLeftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse other = (net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelLeftResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelLeftResponse) private static final net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelLeftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse(); } public static net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelLeftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelLeftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelLeft.ChannelLeftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelLeft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelLeft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelLeftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelLeftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021ChannelLeft.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\"?\n\013ChannelLeft\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001" + + "(\004\"\\\n\023ChannelLeftResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\021\n" + + "\tmember_id\030\003 \001(\004B\"\n\016net.iGap.protoB\020Prot" + + "oChannelLeftb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelLeft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelLeft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelLeft_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChannelLeftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelLeftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelLeftResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelPinMessage.java b/src/main/java/net/iGap/proto/ProtoChannelPinMessage.java index b35f835..dc81975 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelPinMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChannelPinMessage.java @@ -8,165 +8,225 @@ private ProtoChannelPinMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelPinMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelPinMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChannelPinMessage} */ - public static final class ChannelPinMessage extends - com.google.protobuf.GeneratedMessageLite< - ChannelPinMessage, ChannelPinMessage.Builder> implements + public static final class ChannelPinMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelPinMessage) ChannelPinMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelPinMessage.newBuilder() to construct. + private ChannelPinMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelPinMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelPinMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelPinMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.class, net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 4; private long documentId_; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 4; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 4; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(4, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,496 +266,811 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage other = (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelPinMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelPinMessage) net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.class, net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessage_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage build() { + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage buildPartial() { + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage result = new net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage) { + return mergeFrom((net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage other) { + if (other == net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelPinMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage other = (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelPinMessage) + } + // @@protoc_insertion_point(class_scope:proto.ChannelPinMessage) private static final net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelPinMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage(); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelPinMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelPinMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelPinMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelPinMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ boolean hasPinnedMessage(); /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage(); + /** + * .proto.RoomMessage pinned_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder(); } /** * Protobuf type {@code proto.ChannelPinMessageResponse} */ - public static final class ChannelPinMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelPinMessageResponse, ChannelPinMessageResponse.Builder> implements + public static final class ChannelPinMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelPinMessageResponse) ChannelPinMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelPinMessageResponse.newBuilder() to construct. + private ChannelPinMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelPinMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelPinMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelPinMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (pinnedMessage_ != null) { + subBuilder = pinnedMessage_.toBuilder(); + } + pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pinnedMessage_); + pinnedMessage_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.class, net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int PINNED_MESSAGE_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ + @java.lang.Override public boolean hasPinnedMessage() { return pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; } /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - pinnedMessage_ = value; - - } - /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void setPinnedMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - pinnedMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ - private void mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (pinnedMessage_ != null && - pinnedMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - pinnedMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); - } else { - pinnedMessage_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + return getPinnedMessage(); } - /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void clearPinnedMessage() { pinnedMessage_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -705,10 +1082,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pinnedMessage_ != null) { output.writeMessage(3, getPinnedMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -724,333 +1103,698 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPinnedMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse other = (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasPinnedMessage() != other.hasPinnedMessage()) return false; + if (hasPinnedMessage()) { + if (!getPinnedMessage() + .equals(other.getPinnedMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasPinnedMessage()) { + hash = (37 * hash) + PINNED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getPinnedMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelPinMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelPinMessageResponse) net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.class, net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelPinMessage.internal_static_proto_ChannelPinMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse build() { + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse buildPartial() { + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse result = new net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (pinnedMessageBuilder_ == null) { + result.pinnedMessage_ = pinnedMessage_; + } else { + result.pinnedMessage_ = pinnedMessageBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse other) { + if (other == net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasPinnedMessage()) { + mergePinnedMessage(other.getPinnedMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> pinnedMessageBuilder_; /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ public boolean hasPinnedMessage() { - return instance.hasPinnedMessage(); + return pinnedMessageBuilder_ != null || pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { - return instance.getPinnedMessage(); + if (pinnedMessageBuilder_ == null) { + return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } else { + return pinnedMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setPinnedMessage(value); - return this; + if (pinnedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pinnedMessage_ = value; + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder setPinnedMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPinnedMessage(builderForValue); + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = builderForValue.build(); + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergePinnedMessage(value); + if (pinnedMessageBuilder_ == null) { + if (pinnedMessage_ != null) { + pinnedMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); + } else { + pinnedMessage_ = value; + } + onChanged(); + } else { + pinnedMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ - public Builder clearPinnedMessage() { copyOnWrite(); - instance.clearPinnedMessage(); + public Builder clearPinnedMessage() { + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + onChanged(); + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelPinMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse other = (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - pinnedMessage_ = visitor.visitMessage(pinnedMessage_, other.pinnedMessage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (pinnedMessage_ != null) { - subBuilder = pinnedMessage_.toBuilder(); - } - pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pinnedMessage_); - pinnedMessage_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getPinnedMessageBuilder() { + + onChanged(); + return getPinnedMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + if (pinnedMessageBuilder_ != null) { + return pinnedMessageBuilder_.getMessageOrBuilder(); + } else { + return pinnedMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage pinned_message = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getPinnedMessageFieldBuilder() { + if (pinnedMessageBuilder_ == null) { + pinnedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getPinnedMessage(), + getParentForChildren(), + isClean()); + pinnedMessage_ = null; } + return pinnedMessageBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ChannelPinMessageResponse) + } // @@protoc_insertion_point(class_scope:proto.ChannelPinMessageResponse) private static final net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelPinMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse(); } public static net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelPinMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelPinMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelPinMessage.ChannelPinMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelPinMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelPinMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelPinMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelPinMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027ChannelPinMessage.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\032\014Global.proto\"n\n" + + "\021ChannelPinMessage\022\037\n\007request\030\001 \001(\0132\016.pr" + + "oto.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_" + + "id\030\003 \001(\004\022\023\n\013document_id\030\004 \001(\004\"{\n\031Channel" + + "PinMessageResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.Response\022\017\n\007room_id\030\002 \001(\004\022*\n\016pinned" + + "_message\030\003 \001(\0132\022.proto.RoomMessageB(\n\016ne" + + "t.iGap.protoB\026ProtoChannelPinMessageb\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelPinMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelPinMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelPinMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_ChannelPinMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelPinMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelPinMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "PinnedMessage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelRemoveUsername.java b/src/main/java/net/iGap/proto/ProtoChannelRemoveUsername.java index 720748a..b0c9503 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelRemoveUsername.java +++ b/src/main/java/net/iGap/proto/ProtoChannelRemoveUsername.java @@ -8,109 +8,181 @@ private ProtoChannelRemoveUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelRemoveUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelRemoveUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelRemoveUsername} */ - public static final class ChannelRemoveUsername extends - com.google.protobuf.GeneratedMessageLite< - ChannelRemoveUsername, ChannelRemoveUsername.Builder> implements + public static final class ChannelRemoveUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelRemoveUsername) ChannelRemoveUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelRemoveUsername.newBuilder() to construct. + private ChannelRemoveUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelRemoveUsername() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelRemoveUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelRemoveUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.class, net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername other = (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelRemoveUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelRemoveUsername) net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.class, net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsername_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername build() { + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername buildPartial() { + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername result = new net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername) { + return mergeFrom((net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername other) { + if (other == net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelRemoveUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername other = (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelRemoveUsername) + } + // @@protoc_insertion_point(class_scope:proto.ChannelRemoveUsername) private static final net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelRemoveUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername(); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelRemoveUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelRemoveUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelRemoveUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelRemoveUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelRemoveUsernameResponse} */ - public static final class ChannelRemoveUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelRemoveUsernameResponse, ChannelRemoveUsernameResponse.Builder> implements + public static final class ChannelRemoveUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelRemoveUsernameResponse) ChannelRemoveUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelRemoveUsernameResponse.newBuilder() to construct. + private ChannelRemoveUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelRemoveUsernameResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelRemoveUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelRemoveUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.class, net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,552 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse other = (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelRemoveUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelRemoveUsernameResponse) net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.class, net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelRemoveUsername.internal_static_proto_ChannelRemoveUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse build() { + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse buildPartial() { + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse result = new net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse other) { + if (other == net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelRemoveUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse other = (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelRemoveUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelRemoveUsernameResponse) private static final net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelRemoveUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse(); } public static net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelRemoveUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelRemoveUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRemoveUsername.ChannelRemoveUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelRemoveUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelRemoveUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelRemoveUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelRemoveUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033ChannelRemoveUsername.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\"I\n\025ChannelRe" + + "moveUsername\022\037\n\007request\030\001 \001(\0132\016.proto.Re" + + "quest\022\017\n\007room_id\030\002 \001(\004\"S\n\035ChannelRemoveU" + + "sernameResponse\022!\n\010response\030\001 \001(\0132\017.prot" + + "o.Response\022\017\n\007room_id\030\002 \001(\004B,\n\016net.iGap." + + "protoB\032ProtoChannelRemoveUsernameb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelRemoveUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelRemoveUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelRemoveUsername_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChannelRemoveUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelRemoveUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelRemoveUsernameResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelRevokeLink.java b/src/main/java/net/iGap/proto/ProtoChannelRevokeLink.java index 9ae1bd5..32a0176 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelRevokeLink.java +++ b/src/main/java/net/iGap/proto/ProtoChannelRevokeLink.java @@ -8,109 +8,181 @@ private ProtoChannelRevokeLink() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelRevokeLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelRevokeLink) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelRevokeLink} */ - public static final class ChannelRevokeLink extends - com.google.protobuf.GeneratedMessageLite< - ChannelRevokeLink, ChannelRevokeLink.Builder> implements + public static final class ChannelRevokeLink extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelRevokeLink) ChannelRevokeLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelRevokeLink.newBuilder() to construct. + private ChannelRevokeLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelRevokeLink() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelRevokeLink(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelRevokeLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.class, net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,306 +208,549 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink other = (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelRevokeLink} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelRevokeLink) net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.class, net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLink_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink build() { + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink buildPartial() { + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink result = new net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink) { + return mergeFrom((net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink other) { + if (other == net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelRevokeLink) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink other = (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelRevokeLink) + } + // @@protoc_insertion_point(class_scope:proto.ChannelRevokeLink) private static final net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelRevokeLink(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink(); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelRevokeLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelRevokeLink(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelRevokeLinkResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelRevokeLinkResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ java.lang.String getInviteLink(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ com.google.protobuf.ByteString getInviteLinkBytes(); /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The inviteToken. */ java.lang.String getInviteToken(); /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The bytes for inviteToken. */ com.google.protobuf.ByteString getInviteTokenBytes(); @@ -441,182 +758,237 @@ public interface ChannelRevokeLinkResponseOrBuilder extends /** * Protobuf type {@code proto.ChannelRevokeLinkResponse} */ - public static final class ChannelRevokeLinkResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelRevokeLinkResponse, ChannelRevokeLinkResponse.Builder> implements + public static final class ChannelRevokeLinkResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelRevokeLinkResponse) ChannelRevokeLinkResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelRevokeLinkResponse.newBuilder() to construct. + private ChannelRevokeLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelRevokeLinkResponse() { inviteLink_ = ""; inviteToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelRevokeLinkResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelRevokeLinkResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteLink_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.class, net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int INVITE_LINK_FIELD_NUMBER = 3; - private java.lang.String inviteLink_; + private volatile java.lang.Object inviteLink_; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ + @java.lang.Override public java.lang.String getInviteLink() { - return inviteLink_; + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteLink_); - } - /** - * optional string invite_link = 3; - */ - private void setInviteLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteLink_ = value; - } - /** - * optional string invite_link = 3; - */ - private void clearInviteLink() { - - inviteLink_ = getDefaultInstance().getInviteLink(); - } - /** - * optional string invite_link = 3; - */ - private void setInviteLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteLink_ = value.toStringUtf8(); + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INVITE_TOKEN_FIELD_NUMBER = 4; - private java.lang.String inviteToken_; + private volatile java.lang.Object inviteToken_; /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The inviteToken. */ + @java.lang.Override public java.lang.String getInviteToken() { - return inviteToken_; + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The bytes for inviteToken. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteToken_); - } - /** - * optional string invite_token = 4; - */ - private void setInviteToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteToken_ = value; - } - /** - * optional string invite_token = 4; - */ - private void clearInviteToken() { - - inviteToken_ = getDefaultInstance().getInviteToken(); + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_token = 4; - */ - private void setInviteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -625,16 +997,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!inviteLink_.isEmpty()) { - output.writeString(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inviteLink_); } - if (!inviteToken_.isEmpty()) { - output.writeString(4, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inviteToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -646,378 +1020,732 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!inviteLink_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inviteLink_); } - if (!inviteToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, inviteToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse other = (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getInviteLink() + .equals(other.getInviteLink())) return false; + if (!getInviteToken() + .equals(other.getInviteToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + INVITE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getInviteLink().hashCode(); + hash = (37 * hash) + INVITE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getInviteToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelRevokeLinkResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelRevokeLinkResponse) net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.class, net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + inviteLink_ = ""; + + inviteToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelRevokeLink.internal_static_proto_ChannelRevokeLinkResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse build() { + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse buildPartial() { + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse result = new net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.inviteLink_ = inviteLink_; + result.inviteToken_ = inviteToken_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse other) { + if (other == net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getInviteLink().isEmpty()) { + inviteLink_ = other.inviteLink_; + onChanged(); + } + if (!other.getInviteToken().isEmpty()) { + inviteToken_ = other.inviteToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object inviteLink_ = ""; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ public java.lang.String getInviteLink() { - return instance.getInviteLink(); + java.lang.Object ref = inviteLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ public com.google.protobuf.ByteString getInviteLinkBytes() { - return instance.getInviteLinkBytes(); + java.lang.Object ref = inviteLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLink( java.lang.String value) { - copyOnWrite(); - instance.setInviteLink(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteLink_ = value; + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return This builder for chaining. */ public Builder clearInviteLink() { - copyOnWrite(); - instance.clearInviteLink(); + + inviteLink_ = getDefaultInstance().getInviteLink(); + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The bytes for inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteLink_ = value; + onChanged(); return this; } + private java.lang.Object inviteToken_ = ""; /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The inviteToken. */ public java.lang.String getInviteToken() { - return instance.getInviteToken(); + java.lang.Object ref = inviteToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The bytes for inviteToken. */ public com.google.protobuf.ByteString getInviteTokenBytes() { - return instance.getInviteTokenBytes(); + java.lang.Object ref = inviteToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @param value The inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteToken( java.lang.String value) { - copyOnWrite(); - instance.setInviteToken(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteToken_ = value; + onChanged(); return this; } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return This builder for chaining. */ public Builder clearInviteToken() { - copyOnWrite(); - instance.clearInviteToken(); + + inviteToken_ = getDefaultInstance().getInviteToken(); + onChanged(); return this; } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @param value The bytes for inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelRevokeLinkResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse other = (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - inviteLink_ = visitor.visitString(!inviteLink_.isEmpty(), inviteLink_, - !other.inviteLink_.isEmpty(), other.inviteLink_); - inviteToken_ = visitor.visitString(!inviteToken_.isEmpty(), inviteToken_, - !other.inviteToken_.isEmpty(), other.inviteToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - inviteLink_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - inviteToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelRevokeLinkResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelRevokeLinkResponse) private static final net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelRevokeLinkResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse(); } public static net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelRevokeLinkResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelRevokeLinkResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelRevokeLink.ChannelRevokeLinkResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelRevokeLink_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelRevokeLink_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelRevokeLinkResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelRevokeLinkResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027ChannelRevokeLink.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"E\n\021ChannelRevoke" + + "Link\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007room_id\030\002 \001(\004\"z\n\031ChannelRevokeLinkRespo" + + "nse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017" + + "\n\007room_id\030\002 \001(\004\022\023\n\013invite_link\030\003 \001(\t\022\024\n\014" + + "invite_token\030\004 \001(\tB(\n\016net.iGap.protoB\026Pr" + + "otoChannelRevokeLinkb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelRevokeLink_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelRevokeLink_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelRevokeLink_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChannelRevokeLinkResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelRevokeLinkResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelRevokeLinkResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "InviteLink", "InviteToken", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java b/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java index d63e97d..7a9ebe1 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java @@ -8,122 +8,176 @@ private ProtoChannelSendMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelSendMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelSendMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ int getMessageTypeValue(); /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); /** - * optional string message = 4; + * string message = 4; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ java.lang.String getAttachment(); /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ com.google.protobuf.ByteString getAttachmentBytes(); /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ boolean hasLocation(); /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation(); + /** + * .proto.RoomMessageLocation location = 6; + */ + net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder(); /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ boolean hasContact(); /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ net.iGap.proto.ProtoGlobal.RoomMessageContact getContact(); + /** + * .proto.RoomMessageContact contact = 7; + */ + net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder(); /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ long getReplyTo(); /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ boolean hasForwardFrom(); /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom(); + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder(); /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ long getRandomId(); /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ int getAdditionalType(); /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ java.lang.String getAdditionalData(); /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ com.google.protobuf.ByteString getAdditionalDataBytes(); /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; + * @return Whether the sticker field is set. */ boolean hasSticker(); /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; + * @return The sticker. */ net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * .proto.RoomMessageSticker sticker = 13; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; + * @return Whether the cardToCard field is set. */ boolean hasCardToCard(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; + * @return The cardToCard. */ net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * .proto.RoomMessageCardToCard card_to_card = 14; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; @@ -138,623 +192,608 @@ public interface ChannelSendMessageOrBuilder extends * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 16; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChannelSendMessage} */ - public static final class ChannelSendMessage extends - com.google.protobuf.GeneratedMessageLite< - ChannelSendMessage, ChannelSendMessage.Builder> implements + public static final class ChannelSendMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelSendMessage) ChannelSendMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelSendMessage.newBuilder() to construct. + private ChannelSendMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelSendMessage() { + messageType_ = 0; message_ = ""; attachment_ = ""; additionalData_ = ""; - botActionLists_ = emptyProtobufList(); + botActionLists_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelSendMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelSendMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + messageType_ = rawValue; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + attachment_ = s; + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); + } + contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); + } + + break; + } + case 64: { + + replyTo_ = input.readUInt64(); + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder subBuilder = null; + if (forwardFrom_ != null) { + subBuilder = forwardFrom_.toBuilder(); + } + forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(forwardFrom_); + forwardFrom_ = subBuilder.buildPartial(); + } + + break; + } + case 80: { + + randomId_ = input.readUInt64(); + break; + } + case 88: { + + additionalType_ = input.readUInt32(); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + additionalData_ = s; + break; + } + case 106: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 130: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.class, net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.Builder.class); } - private int bitField0_; + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int MESSAGE_TYPE_FIELD_NUMBER = 2; private int messageType_; /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { + @java.lang.Override public int getMessageTypeValue() { return messageType_; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.forNumber(messageType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void setMessageTypeValue(int value) { - messageType_ = value; - } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - - messageType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void clearMessageType() { - - messageType_ = 0; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 4; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 4; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 4; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 4; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ATTACHMENT_FIELD_NUMBER = 5; - private java.lang.String attachment_; + private volatile java.lang.Object attachment_; /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ + @java.lang.Override public java.lang.String getAttachment() { - return attachment_; + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(attachment_); - } - /** - * optional string attachment = 5; - */ - private void setAttachment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attachment_ = value; - } - /** - * optional string attachment = 5; - */ - private void clearAttachment() { - - attachment_ = getDefaultInstance().getAttachment(); - } - /** - * optional string attachment = 5; - */ - private void setAttachmentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attachment_ = value.toStringUtf8(); + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LOCATION_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ + @java.lang.Override public boolean hasLocation() { return location_ != null; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; } /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (value == null) { - throw new NullPointerException(); - } - location_ = value; - - } - /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void setLocation( - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - location_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (location_ != null && - location_ != net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance()) { - location_ = - net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); - } else { - location_ = value; - } - - } - /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ - private void clearLocation() { location_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + return getLocation(); } public static final int CONTACT_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ + @java.lang.Override public boolean hasContact() { return contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; } /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (value == null) { - throw new NullPointerException(); - } - contact_ = value; - - } - /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void setContact( - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - contact_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ - private void mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (contact_ != null && - contact_ != net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance()) { - contact_ = - net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); - } else { - contact_ = value; - } - - } - /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void clearContact() { contact_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + return getContact(); } public static final int REPLY_TO_FIELD_NUMBER = 8; private long replyTo_; /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { return replyTo_; } - /** - * optional uint64 reply_to = 8; - */ - private void setReplyTo(long value) { - - replyTo_ = value; - } - /** - * optional uint64 reply_to = 8; - */ - private void clearReplyTo() { - - replyTo_ = 0L; - } public static final int FORWARD_FROM_FIELD_NUMBER = 9; private net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom forwardFrom_; /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ + @java.lang.Override public boolean hasForwardFrom() { return forwardFrom_ != null; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom() { return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - if (value == null) { - throw new NullPointerException(); - } - forwardFrom_ = value; - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void setForwardFrom( - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder builderForValue) { - forwardFrom_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - if (forwardFrom_ != null && - forwardFrom_ != net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance()) { - forwardFrom_ = - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); - } else { - forwardFrom_ = value; - } - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ - private void clearForwardFrom() { forwardFrom_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder() { + return getForwardFrom(); } public static final int RANDOM_ID_FIELD_NUMBER = 10; private long randomId_; /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { return randomId_; } - /** - * optional uint64 random_id = 10; - */ - private void setRandomId(long value) { - - randomId_ = value; - } - /** - * optional uint64 random_id = 10; - */ - private void clearRandomId() { - - randomId_ = 0L; - } public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 11; private int additionalType_; /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { return additionalType_; } - /** - * optional uint32 additional_type = 11; - */ - private void setAdditionalType(int value) { - - additionalType_ = value; - } - /** - * optional uint32 additional_type = 11; - */ - private void clearAdditionalType() { - - additionalType_ = 0; - } public static final int ADDITIONAL_DATA_FIELD_NUMBER = 12; - private java.lang.String additionalData_; + private volatile java.lang.Object additionalData_; /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ + @java.lang.Override public java.lang.String getAdditionalData() { - return additionalData_; + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ + @java.lang.Override public com.google.protobuf.ByteString getAdditionalDataBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(additionalData_); - } - /** - * optional string additional_data = 12; - */ - private void setAdditionalData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - additionalData_ = value; - } - /** - * optional string additional_data = 12; - */ - private void clearAdditionalData() { - - additionalData_ = getDefaultInstance().getAdditionalData(); - } - /** - * optional string additional_data = 12; - */ - private void setAdditionalDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - additionalData_ = value.toStringUtf8(); + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STICKER_FIELD_NUMBER = 13; private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; + * @return Whether the sticker field is set. */ + @java.lang.Override public boolean hasSticker() { return sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; + * @return The sticker. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; } /** - * optional .proto.RoomMessageSticker sticker = 13; - */ - private void setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (value == null) { - throw new NullPointerException(); - } - sticker_ = value; - - } - /** - * optional .proto.RoomMessageSticker sticker = 13; - */ - private void setSticker( - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - sticker_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageSticker sticker = 13; - */ - private void mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (sticker_ != null && - sticker_ != net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance()) { - sticker_ = - net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); - } else { - sticker_ = value; - } - - } - /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; */ - private void clearSticker() { sticker_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); } public static final int CARD_TO_CARD_FIELD_NUMBER = 14; private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; + * @return Whether the cardToCard field is set. */ + @java.lang.Override public boolean hasCardToCard() { return cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; + * @return The cardToCard. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; - */ - private void setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (value == null) { - throw new NullPointerException(); - } - cardToCard_ = value; - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; - */ - private void setCardToCard( - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - cardToCard_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; - */ - private void mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (cardToCard_ != null && - cardToCard_ != net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance()) { - cardToCard_ = - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); - } else { - cardToCard_ = value; - } - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; */ - private void clearCardToCard() { cardToCard_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); } public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 15; - private com.google.protobuf.Internal.ProtobufList botActionLists_; + private java.util.List botActionLists_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ + @java.lang.Override public java.util.List getBotActionListsList() { return botActionLists_; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ + @java.lang.Override public java.util.List getBotActionListsOrBuilderList() { return botActionLists_; @@ -762,160 +801,64 @@ public java.util.List getBo /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ + @java.lang.Override public int getBotActionListsCount() { return botActionLists_.size(); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { return botActionLists_.get(index); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( int index) { return botActionLists_.get(index); } - private void ensureBotActionListsIsMutable() { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - } - - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.set(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void addBotActionLists( - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void addAllBotActionLists( - java.lang.Iterable values) { - ensureBotActionListsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, botActionLists_); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void clearBotActionLists() { - botActionLists_ = emptyProtobufList(); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; - */ - private void removeBotActionLists(int index) { - ensureBotActionListsIsMutable(); - botActionLists_.remove(index); - } public static final int TEXT_SIGNS_FIELD_NUMBER = 16; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 16; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 16; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 16; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -927,11 +870,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } - if (!message_.isEmpty()) { - output.writeString(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } - if (!attachment_.isEmpty()) { - output.writeString(5, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, attachment_); } if (location_ != null) { output.writeMessage(6, getLocation()); @@ -951,8 +894,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (additionalType_ != 0) { output.writeUInt32(11, additionalType_); } - if (!additionalData_.isEmpty()) { - output.writeString(12, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, additionalData_); } if (sticker_ != null) { output.writeMessage(13, getSticker()); @@ -966,10 +909,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(16, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -985,13 +930,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } - if (!attachment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, attachment_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1017,9 +960,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, additionalType_); } - if (!additionalData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(12, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, additionalData_); } if (sticker_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1037,636 +979,1741 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage other = (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (messageType_ != other.messageType_) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getAttachment() + .equals(other.getAttachment())) return false; + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation() + .equals(other.getLocation())) return false; + } + if (hasContact() != other.hasContact()) return false; + if (hasContact()) { + if (!getContact() + .equals(other.getContact())) return false; + } + if (getReplyTo() + != other.getReplyTo()) return false; + if (hasForwardFrom() != other.hasForwardFrom()) return false; + if (hasForwardFrom()) { + if (!getForwardFrom() + .equals(other.getForwardFrom())) return false; + } + if (getRandomId() + != other.getRandomId()) return false; + if (getAdditionalType() + != other.getAdditionalType()) return false; + if (!getAdditionalData() + .equals(other.getAdditionalData())) return false; + if (hasSticker() != other.hasSticker()) return false; + if (hasSticker()) { + if (!getSticker() + .equals(other.getSticker())) return false; + } + if (hasCardToCard() != other.hasCardToCard()) return false; + if (hasCardToCard()) { + if (!getCardToCard() + .equals(other.getCardToCard())) return false; + } + if (!getBotActionListsList() + .equals(other.getBotActionListsList())) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + if (hasContact()) { + hash = (37 * hash) + CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getContact().hashCode(); + } + hash = (37 * hash) + REPLY_TO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReplyTo()); + if (hasForwardFrom()) { + hash = (37 * hash) + FORWARD_FROM_FIELD_NUMBER; + hash = (53 * hash) + getForwardFrom().hashCode(); + } + hash = (37 * hash) + RANDOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRandomId()); + hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalType(); + hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalData().hashCode(); + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelSendMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelSendMessage) net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.class, net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + messageType_ = 0; + + roomId_ = 0L; + + message_ = ""; + + attachment_ = ""; + + if (locationBuilder_ == null) { + location_ = null; + } else { + location_ = null; + locationBuilder_ = null; + } + if (contactBuilder_ == null) { + contact_ = null; + } else { + contact_ = null; + contactBuilder_ = null; + } + replyTo_ = 0L; + + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + randomId_ = 0L; + + additionalType_ = 0; + + additionalData_ = ""; + + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage build() { + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage buildPartial() { + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage result = new net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.messageType_ = messageType_; + result.roomId_ = roomId_; + result.message_ = message_; + result.attachment_ = attachment_; + if (locationBuilder_ == null) { + result.location_ = location_; + } else { + result.location_ = locationBuilder_.build(); + } + if (contactBuilder_ == null) { + result.contact_ = contact_; + } else { + result.contact_ = contactBuilder_.build(); + } + result.replyTo_ = replyTo_; + if (forwardFromBuilder_ == null) { + result.forwardFrom_ = forwardFrom_; + } else { + result.forwardFrom_ = forwardFromBuilder_.build(); + } + result.randomId_ = randomId_; + result.additionalType_ = additionalType_; + result.additionalData_ = additionalData_; + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage) { + return mergeFrom((net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage other) { + if (other == net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.messageType_ != 0) { + setMessageTypeValue(other.getMessageTypeValue()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getAttachment().isEmpty()) { + attachment_ = other.attachment_; + onChanged(); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + if (other.hasContact()) { + mergeContact(other.getContact()); + } + if (other.getReplyTo() != 0L) { + setReplyTo(other.getReplyTo()); + } + if (other.hasForwardFrom()) { + mergeForwardFrom(other.getForwardFrom()); + } + if (other.getRandomId() != 0L) { + setRandomId(other.getRandomId()); + } + if (other.getAdditionalType() != 0) { + setAdditionalType(other.getAdditionalType()); + } + if (!other.getAdditionalData().isEmpty()) { + additionalData_ = other.additionalData_; + onChanged(); + } + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int messageType_ = 0; /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { - return instance.getMessageTypeValue(); + @java.lang.Override public int getMessageTypeValue() { + return messageType_; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @param value The enum numeric value on the wire for messageType to set. + * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - copyOnWrite(); - instance.setMessageTypeValue(value); + + messageType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - return instance.getMessageType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + if (value == null) { + throw new NullPointerException(); + } + + messageType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return This builder for chaining. */ public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); + + messageType_ = 0; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private java.lang.Object attachment_ = ""; /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ public java.lang.String getAttachment() { - return instance.getAttachment(); + java.lang.Object ref = attachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ public com.google.protobuf.ByteString getAttachmentBytes() { - return instance.getAttachmentBytes(); + java.lang.Object ref = attachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @param value The attachment to set. + * @return This builder for chaining. */ public Builder setAttachment( java.lang.String value) { - copyOnWrite(); - instance.setAttachment(value); + if (value == null) { + throw new NullPointerException(); + } + + attachment_ = value; + onChanged(); return this; } /** - * optional string attachment = 5; + * string attachment = 5; + * @return This builder for chaining. */ public Builder clearAttachment() { - copyOnWrite(); - instance.clearAttachment(); + + attachment_ = getDefaultInstance().getAttachment(); + onChanged(); return this; } /** - * optional string attachment = 5; + * string attachment = 5; + * @param value The bytes for attachment to set. + * @return This builder for chaining. */ public Builder setAttachmentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAttachmentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachment_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> locationBuilder_; /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ public boolean hasLocation() { - return instance.hasLocation(); + return locationBuilder_ != null || location_ != null; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { - return instance.getLocation(); + if (locationBuilder_ == null) { + return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.setLocation(value); - return this; + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder setLocation( net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - copyOnWrite(); - instance.setLocation(builderForValue); + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.mergeLocation(value); + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ - public Builder clearLocation() { copyOnWrite(); - instance.clearLocation(); + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageLocation location = 6; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageLocation location = 6; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } + } + /** + * .proto.RoomMessageLocation location = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> contactBuilder_; /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ public boolean hasContact() { - return instance.hasContact(); + return contactBuilder_ != null || contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { - return instance.getContact(); + if (contactBuilder_ == null) { + return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } else { + return contactBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.setContact(value); - return this; + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contact_ = value; + onChanged(); + } else { + contactBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder setContact( net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - copyOnWrite(); - instance.setContact(builderForValue); + if (contactBuilder_ == null) { + contact_ = builderForValue.build(); + onChanged(); + } else { + contactBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.mergeContact(value); + if (contactBuilder_ == null) { + if (contact_ != null) { + contact_ = + net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); + } else { + contact_ = value; + } + onChanged(); + } else { + contactBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ - public Builder clearContact() { copyOnWrite(); - instance.clearContact(); + public Builder clearContact() { + if (contactBuilder_ == null) { + contact_ = null; + onChanged(); + } else { + contact_ = null; + contactBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageContact contact = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder getContactBuilder() { + + onChanged(); + return getContactFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageContact contact = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + if (contactBuilder_ != null) { + return contactBuilder_.getMessageOrBuilder(); + } else { + return contact_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } + } + /** + * .proto.RoomMessageContact contact = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> + getContactFieldBuilder() { + if (contactBuilder_ == null) { + contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder>( + getContact(), + getParentForChildren(), + isClean()); + contact_ = null; + } + return contactBuilder_; + } + private long replyTo_ ; /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { - return instance.getReplyTo(); + return replyTo_; } /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @param value The replyTo to set. + * @return This builder for chaining. */ public Builder setReplyTo(long value) { - copyOnWrite(); - instance.setReplyTo(value); + + replyTo_ = value; + onChanged(); return this; } /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return This builder for chaining. */ public Builder clearReplyTo() { - copyOnWrite(); - instance.clearReplyTo(); + + replyTo_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom forwardFrom_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder> forwardFromBuilder_; /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ public boolean hasForwardFrom() { - return instance.hasForwardFrom(); + return forwardFromBuilder_ != null || forwardFrom_ != null; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom() { - return instance.getForwardFrom(); + if (forwardFromBuilder_ == null) { + return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; + } else { + return forwardFromBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - copyOnWrite(); - instance.setForwardFrom(value); - return this; + if (forwardFromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forwardFrom_ = value; + onChanged(); + } else { + forwardFromBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder setForwardFrom( net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder builderForValue) { - copyOnWrite(); - instance.setForwardFrom(builderForValue); + if (forwardFromBuilder_ == null) { + forwardFrom_ = builderForValue.build(); + onChanged(); + } else { + forwardFromBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - copyOnWrite(); - instance.mergeForwardFrom(value); + if (forwardFromBuilder_ == null) { + if (forwardFrom_ != null) { + forwardFrom_ = + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); + } else { + forwardFrom_ = value; + } + onChanged(); + } else { + forwardFromBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ - public Builder clearForwardFrom() { copyOnWrite(); - instance.clearForwardFrom(); + public Builder clearForwardFrom() { + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + onChanged(); + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder getForwardFromBuilder() { + + onChanged(); + return getForwardFromFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder() { + if (forwardFromBuilder_ != null) { + return forwardFromBuilder_.getMessageOrBuilder(); + } else { + return forwardFrom_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; + } + } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder> + getForwardFromFieldBuilder() { + if (forwardFromBuilder_ == null) { + forwardFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder>( + getForwardFrom(), + getParentForChildren(), + isClean()); + forwardFrom_ = null; + } + return forwardFromBuilder_; + } + private long randomId_ ; /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { - return instance.getRandomId(); + return randomId_; } /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @param value The randomId to set. + * @return This builder for chaining. */ public Builder setRandomId(long value) { - copyOnWrite(); - instance.setRandomId(value); + + randomId_ = value; + onChanged(); return this; } /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return This builder for chaining. */ public Builder clearRandomId() { - copyOnWrite(); - instance.clearRandomId(); + + randomId_ = 0L; + onChanged(); return this; } + private int additionalType_ ; /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { - return instance.getAdditionalType(); + return additionalType_; } /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @param value The additionalType to set. + * @return This builder for chaining. */ public Builder setAdditionalType(int value) { - copyOnWrite(); - instance.setAdditionalType(value); + + additionalType_ = value; + onChanged(); return this; } /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return This builder for chaining. */ public Builder clearAdditionalType() { - copyOnWrite(); - instance.clearAdditionalType(); + + additionalType_ = 0; + onChanged(); return this; } + private java.lang.Object additionalData_ = ""; /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ public java.lang.String getAdditionalData() { - return instance.getAdditionalData(); + java.lang.Object ref = additionalData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ public com.google.protobuf.ByteString getAdditionalDataBytes() { - return instance.getAdditionalDataBytes(); + java.lang.Object ref = additionalData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @param value The additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalData( java.lang.String value) { - copyOnWrite(); - instance.setAdditionalData(value); + if (value == null) { + throw new NullPointerException(); + } + + additionalData_ = value; + onChanged(); return this; } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return This builder for chaining. */ public Builder clearAdditionalData() { - copyOnWrite(); - instance.clearAdditionalData(); + + additionalData_ = getDefaultInstance().getAdditionalData(); + onChanged(); return this; } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @param value The bytes for additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalDataBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAdditionalDataBytes(value); - return this; + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + additionalData_ = value; + onChanged(); + return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; + * @return Whether the sticker field is set. */ public boolean hasSticker() { - return instance.hasSticker(); + return stickerBuilder_ != null || sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; + * @return The sticker. */ public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { - return instance.getSticker(); + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; */ public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.setSticker(value); - return this; + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; */ public Builder setSticker( net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - copyOnWrite(); - instance.setSticker(builderForValue); + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; */ public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.mergeSticker(value); + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 13; + * .proto.RoomMessageSticker sticker = 13; */ - public Builder clearSticker() { copyOnWrite(); - instance.clearSticker(); + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageSticker sticker = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { + + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageSticker sticker = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * .proto.RoomMessageSticker sticker = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; + * @return Whether the cardToCard field is set. */ public boolean hasCardToCard() { - return instance.hasCardToCard(); + return cardToCardBuilder_ != null || cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; + * @return The cardToCard. */ public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { - return instance.getCardToCard(); + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; */ public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.setCardToCard(value); - return this; + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; */ public Builder setCardToCard( net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - copyOnWrite(); - instance.setCardToCard(builderForValue); + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; */ public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.mergeCardToCard(value); + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 14; + * .proto.RoomMessageCardToCard card_to_card = 14; */ - public Builder clearCardToCard() { copyOnWrite(); - instance.clearCardToCard(); + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageCardToCard card_to_card = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { + + onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageCardToCard card_to_card = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * .proto.RoomMessageCardToCard card_to_card = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ public java.util.List getBotActionListsList() { - return java.util.Collections.unmodifiableList( - instance.getBotActionListsList()); + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ public int getBotActionListsCount() { - return instance.getBotActionListsCount(); - }/** + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { - return instance.getBotActionLists(index); + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.setBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } return this; } /** @@ -1674,16 +2721,29 @@ public Builder setBotActionLists( */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.setBotActionLists(index, builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } return this; } /** @@ -1691,8 +2751,16 @@ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotAction */ public Builder addBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } return this; } /** @@ -1700,8 +2768,13 @@ public Builder addBotActionLists( */ public Builder addBotActionLists( net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1709,8 +2782,13 @@ public Builder addBotActionLists( */ public Builder addBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(index, builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1718,496 +2796,501 @@ public Builder addBotActionLists( */ public Builder addAllBotActionLists( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllBotActionLists(values); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ public Builder clearBotActionLists() { - copyOnWrite(); - instance.clearBotActionLists(); + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; */ public Builder removeBotActionLists(int index) { - copyOnWrite(); - instance.removeBotActionLists(index); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } return this; } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; + } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 16; + * .proto.TextSigns text_signs = 16; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelSendMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - botActionLists_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage other = (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - messageType_ = visitor.visitInt(messageType_ != 0, messageType_, other.messageType_ != 0, other.messageType_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - attachment_ = visitor.visitString(!attachment_.isEmpty(), attachment_, - !other.attachment_.isEmpty(), other.attachment_); - location_ = visitor.visitMessage(location_, other.location_); - contact_ = visitor.visitMessage(contact_, other.contact_); - replyTo_ = visitor.visitLong(replyTo_ != 0L, replyTo_, - other.replyTo_ != 0L, other.replyTo_); - forwardFrom_ = visitor.visitMessage(forwardFrom_, other.forwardFrom_); - randomId_ = visitor.visitLong(randomId_ != 0L, randomId_, - other.randomId_ != 0L, other.randomId_); - additionalType_ = visitor.visitInt(additionalType_ != 0, additionalType_, - other.additionalType_ != 0, other.additionalType_); - additionalData_ = visitor.visitString(!additionalData_.isEmpty(), additionalData_, - !other.additionalData_.isEmpty(), other.additionalData_); - sticker_ = visitor.visitMessage(sticker_, other.sticker_); - cardToCard_ = visitor.visitMessage(cardToCard_, other.cardToCard_); - botActionLists_= visitor.visitList(botActionLists_, other.botActionLists_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - attachment_ = s; - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; - if (location_ != null) { - subBuilder = location_.toBuilder(); - } - location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(location_); - location_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); - } - contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - replyTo_ = input.readUInt64(); - break; - } - case 74: { - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder subBuilder = null; - if (forwardFrom_ != null) { - subBuilder = forwardFrom_.toBuilder(); - } - forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(forwardFrom_); - forwardFrom_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - - randomId_ = input.readUInt64(); - break; - } - case 88: { - - additionalType_ = input.readUInt32(); - break; - } - case 98: { - String s = input.readStringRequireUtf8(); - - additionalData_ = s; - break; - } - case 106: { - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; - if (sticker_ != null) { - subBuilder = sticker_.toBuilder(); - } - sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sticker_); - sticker_ = subBuilder.buildPartial(); - } - - break; - } - case 114: { - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; - if (cardToCard_ != null) { - subBuilder = cardToCard_.toBuilder(); - } - cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cardToCard_); - cardToCard_ = subBuilder.buildPartial(); - } - - break; - } - case 122: { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - botActionLists_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); - break; - } - case 130: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 16; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 16; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelSendMessage) + } // @@protoc_insertion_point(class_scope:proto.ChannelSendMessage) private static final net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelSendMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage(); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelSendMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelSendMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelSendMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelSendMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ boolean hasRoomMessage(); /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage(); + /** + * .proto.RoomMessage room_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder(); } /** * Protobuf type {@code proto.ChannelSendMessageResponse} */ - public static final class ChannelSendMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelSendMessageResponse, ChannelSendMessageResponse.Builder> implements + public static final class ChannelSendMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelSendMessageResponse) ChannelSendMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelSendMessageResponse.newBuilder() to construct. + private ChannelSendMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelSendMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelSendMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelSendMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (roomMessage_ != null) { + subBuilder = roomMessage_.toBuilder(); + } + roomMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(roomMessage_); + roomMessage_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.class, net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ROOM_MESSAGE_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessage roomMessage_; /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ + @java.lang.Override public boolean hasRoomMessage() { return roomMessage_ != null; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage() { return roomMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ - private void setRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - roomMessage_ = value; - - } - /** - * optional .proto.RoomMessage room_message = 3; - */ - private void setRoomMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - roomMessage_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder() { + return getRoomMessage(); } - /** - * optional .proto.RoomMessage room_message = 3; - */ - private void mergeRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (roomMessage_ != null && - roomMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - roomMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(roomMessage_).mergeFrom(value).buildPartial(); - } else { - roomMessage_ = value; - } - - } - /** - * optional .proto.RoomMessage room_message = 3; - */ - private void clearRoomMessage() { roomMessage_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -2219,10 +3302,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomMessage_ != null) { output.writeMessage(3, getRoomMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2238,333 +3323,709 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRoomMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse other = (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasRoomMessage() != other.hasRoomMessage()) return false; + if (hasRoomMessage()) { + if (!getRoomMessage() + .equals(other.getRoomMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasRoomMessage()) { + hash = (37 * hash) + ROOM_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getRoomMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelSendMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelSendMessageResponse) net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.class, net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + if (roomMessageBuilder_ == null) { + roomMessage_ = null; + } else { + roomMessage_ = null; + roomMessageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelSendMessage.internal_static_proto_ChannelSendMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse build() { + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse buildPartial() { + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse result = new net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (roomMessageBuilder_ == null) { + result.roomMessage_ = roomMessage_; + } else { + result.roomMessage_ = roomMessageBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse other) { + if (other == net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasRoomMessage()) { + mergeRoomMessage(other.getRoomMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage roomMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> roomMessageBuilder_; /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ public boolean hasRoomMessage() { - return instance.hasRoomMessage(); + return roomMessageBuilder_ != null || roomMessage_ != null; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage() { - return instance.getRoomMessage(); + if (roomMessageBuilder_ == null) { + return roomMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; + } else { + return roomMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder setRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setRoomMessage(value); - return this; + if (roomMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + roomMessage_ = value; + onChanged(); + } else { + roomMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder setRoomMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setRoomMessage(builderForValue); + if (roomMessageBuilder_ == null) { + roomMessage_ = builderForValue.build(); + onChanged(); + } else { + roomMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder mergeRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeRoomMessage(value); + if (roomMessageBuilder_ == null) { + if (roomMessage_ != null) { + roomMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(roomMessage_).mergeFrom(value).buildPartial(); + } else { + roomMessage_ = value; + } + onChanged(); + } else { + roomMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ - public Builder clearRoomMessage() { copyOnWrite(); - instance.clearRoomMessage(); + public Builder clearRoomMessage() { + if (roomMessageBuilder_ == null) { + roomMessage_ = null; + onChanged(); + } else { + roomMessage_ = null; + roomMessageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelSendMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse other = (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - roomMessage_ = visitor.visitMessage(roomMessage_, other.roomMessage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (roomMessage_ != null) { - subBuilder = roomMessage_.toBuilder(); - } - roomMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roomMessage_); - roomMessage_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage room_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getRoomMessageBuilder() { + + onChanged(); + return getRoomMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage room_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder() { + if (roomMessageBuilder_ != null) { + return roomMessageBuilder_.getMessageOrBuilder(); + } else { + return roomMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage room_message = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getRoomMessageFieldBuilder() { + if (roomMessageBuilder_ == null) { + roomMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getRoomMessage(), + getParentForChildren(), + isClean()); + roomMessage_ = null; } + return roomMessageBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelSendMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelSendMessageResponse) private static final net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelSendMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse(); } public static net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelSendMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelSendMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - } + @java.lang.Override + public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelSendMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelSendMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelSendMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelSendMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030ChannelSendMessage.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"\300" + + "\004\n\022ChannelSendMessage\022\037\n\007request\030\001 \001(\0132\016" + + ".proto.Request\022,\n\014message_type\030\002 \001(\0162\026.p" + + "roto.RoomMessageType\022\017\n\007room_id\030\003 \001(\004\022\017\n" + + "\007message\030\004 \001(\t\022\022\n\nattachment\030\005 \001(\t\022,\n\010lo" + + "cation\030\006 \001(\0132\032.proto.RoomMessageLocation" + + "\022*\n\007contact\030\007 \001(\0132\031.proto.RoomMessageCon" + + "tact\022\020\n\010reply_to\030\010 \001(\004\0223\n\014forward_from\030\t" + + " \001(\0132\035.proto.RoomMessageForwardFrom\022\021\n\tr" + + "andom_id\030\n \001(\004\022\027\n\017additional_type\030\013 \001(\r\022" + + "\027\n\017additional_data\030\014 \001(\t\022*\n\007sticker\030\r \001(" + + "\0132\031.proto.RoomMessageSticker\0222\n\014card_to_" + + "card\030\016 \001(\0132\034.proto.RoomMessageCardToCard" + + "\0229\n\020bot_action_lists\030\017 \003(\0132\037.proto.RoomM" + + "essageBotActionList\022$\n\ntext_signs\030\020 \001(\0132" + + "\020.proto.TextSigns\"z\n\032ChannelSendMessageR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "se\022\017\n\007room_id\030\002 \001(\004\022(\n\014room_message\030\003 \001(" + + "\0132\022.proto.RoomMessageB)\n\016net.iGap.protoB" + + "\027ProtoChannelSendMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelSendMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelSendMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelSendMessage_descriptor, + new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "AdditionalType", "AdditionalData", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); + internal_static_proto_ChannelSendMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelSendMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelSendMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "RoomMessage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelSetAction.java b/src/main/java/net/iGap/proto/ProtoChannelSetAction.java index 91e5126..6ed03f0 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelSetAction.java +++ b/src/main/java/net/iGap/proto/ProtoChannelSetAction.java @@ -8,185 +8,240 @@ private ProtoChannelSetAction() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelSetActionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelSetAction) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ net.iGap.proto.ProtoGlobal.ClientAction getAction(); /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ int getActionId(); } /** * Protobuf type {@code proto.ChannelSetAction} */ - public static final class ChannelSetAction extends - com.google.protobuf.GeneratedMessageLite< - ChannelSetAction, ChannelSetAction.Builder> implements + public static final class ChannelSetAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelSetAction) ChannelSetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelSetAction.newBuilder() to construct. + private ChannelSetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelSetAction() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelSetAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelSetAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 32: { + + actionId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.class, net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.Builder.class); } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ACTION_FIELD_NUMBER = 3; private int action_; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ - public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.forNumber(action_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } - /** - * optional .proto.ClientAction action = 3; - */ - private void setActionValue(int value) { - action_ = value; - } - /** - * optional .proto.ClientAction action = 3; - */ - private void setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - } - /** - * optional .proto.ClientAction action = 3; - */ - private void clearAction() { - - action_ = 0; - } public static final int ACTION_ID_FIELD_NUMBER = 4; private int actionId_; /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ + @java.lang.Override public int getActionId() { return actionId_; } - /** - * optional uint32 action_id = 4; - */ - private void setActionId(int value) { - - actionId_ = value; - } - /** - * optional uint32 action_id = 4; - */ - private void clearActionId() { - - actionId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -201,10 +256,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (actionId_ != 0) { output.writeUInt32(4, actionId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -224,525 +281,836 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, actionId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelSetAction.ChannelSetAction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelSetAction.ChannelSetAction other = (net.iGap.proto.ProtoChannelSetAction.ChannelSetAction) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (action_ != other.action_) return false; + if (getActionId() + != other.getActionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getActionId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelSetAction.ChannelSetAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelSetAction} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelSetAction.ChannelSetAction, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelSetAction) net.iGap.proto.ProtoChannelSetAction.ChannelSetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.class, net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + action_ = 0; + + actionId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetAction_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetAction getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetAction build() { + net.iGap.proto.ProtoChannelSetAction.ChannelSetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetAction buildPartial() { + net.iGap.proto.ProtoChannelSetAction.ChannelSetAction result = new net.iGap.proto.ProtoChannelSetAction.ChannelSetAction(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.action_ = action_; + result.actionId_ = actionId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelSetAction.ChannelSetAction) { + return mergeFrom((net.iGap.proto.ProtoChannelSetAction.ChannelSetAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelSetAction.ChannelSetAction other) { + if (other == net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.getActionId() != 0) { + setActionId(other.getActionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelSetAction.ChannelSetAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelSetAction.ChannelSetAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int action_ = 0; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { - return instance.getActionValue(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. */ public Builder setActionValue(int value) { - copyOnWrite(); - instance.setActionValue(value); + + action_ = value; + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - return instance.getAction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - copyOnWrite(); - instance.setAction(value); + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return This builder for chaining. */ public Builder clearAction() { - copyOnWrite(); - instance.clearAction(); + + action_ = 0; + onChanged(); return this; } + private int actionId_ ; /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ + @java.lang.Override public int getActionId() { - return instance.getActionId(); + return actionId_; } /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @param value The actionId to set. + * @return This builder for chaining. */ public Builder setActionId(int value) { - copyOnWrite(); - instance.setActionId(value); + + actionId_ = value; + onChanged(); return this; } /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return This builder for chaining. */ public Builder clearActionId() { - copyOnWrite(); - instance.clearActionId(); + + actionId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelSetAction) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelSetAction.ChannelSetAction(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelSetAction.ChannelSetAction other = (net.iGap.proto.ProtoChannelSetAction.ChannelSetAction) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - action_ = visitor.visitInt(action_ != 0, action_, other.action_ != 0, other.action_); - actionId_ = visitor.visitInt(actionId_ != 0, actionId_, - other.actionId_ != 0, other.actionId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 32: { - - actionId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelSetAction.ChannelSetAction.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelSetAction) + } + // @@protoc_insertion_point(class_scope:proto.ChannelSetAction) private static final net.iGap.proto.ProtoChannelSetAction.ChannelSetAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelSetAction(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelSetAction.ChannelSetAction(); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelSetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelSetAction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelSetActionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelSetActionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ net.iGap.proto.ProtoGlobal.ClientAction getAction(); /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.ChannelSetActionResponse} */ - public static final class ChannelSetActionResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelSetActionResponse, ChannelSetActionResponse.Builder> implements + public static final class ChannelSetActionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelSetActionResponse) ChannelSetActionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelSetActionResponse.newBuilder() to construct. + private ChannelSetActionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelSetActionResponse() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelSetActionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelSetActionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 32: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetActionResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetActionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.class, net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ACTION_FIELD_NUMBER = 3; private int action_; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ - public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.forNumber(action_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } - /** - * optional .proto.ClientAction action = 3; - */ - private void setActionValue(int value) { - action_ = value; - } - /** - * optional .proto.ClientAction action = 3; - */ - private void setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - } - /** - * optional .proto.ClientAction action = 3; - */ - private void clearAction() { - - action_ = 0; - } public static final int USER_ID_FIELD_NUMBER = 4; private long userId_; /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 4; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 4; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -757,10 +1125,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(4, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -780,348 +1150,661 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse other = (net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (action_ != other.action_) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelSetActionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelSetActionResponse) net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetActionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetActionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.class, net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + action_ = 0; + + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelSetAction.internal_static_proto_ChannelSetActionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse build() { + net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse buildPartial() { + net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse result = new net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.action_ = action_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse other) { + if (other == net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int action_ = 0; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { - return instance.getActionValue(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. */ public Builder setActionValue(int value) { - copyOnWrite(); - instance.setActionValue(value); + + action_ = value; + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - return instance.getAction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - copyOnWrite(); - instance.setAction(value); + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return This builder for chaining. */ public Builder clearAction() { - copyOnWrite(); - instance.clearAction(); + + action_ = 0; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelSetActionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse other = (net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - action_ = visitor.visitInt(action_ != 0, action_, other.action_ != 0, other.action_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 32: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelSetActionResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelSetActionResponse) private static final net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelSetActionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse(); } public static net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelSetActionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelSetActionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelSetAction.ChannelSetActionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelSetAction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelSetAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelSetActionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelSetActionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ChannelSetAction.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\032\014Global.proto\"|\n\020" + + "ChannelSetAction\022\037\n\007request\030\001 \001(\0132\016.prot" + + "o.Request\022\017\n\007room_id\030\002 \001(\004\022#\n\006action\030\003 \001" + + "(\0162\023.proto.ClientAction\022\021\n\taction_id\030\004 \001" + + "(\r\"\204\001\n\030ChannelSetActionResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 " + + "\001(\004\022#\n\006action\030\003 \001(\0162\023.proto.ClientAction" + + "\022\017\n\007user_id\030\004 \001(\004B\'\n\016net.iGap.protoB\025Pro" + + "toChannelSetActionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelSetAction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelSetAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelSetAction_descriptor, + new java.lang.String[] { "Request", "RoomId", "Action", "ActionId", }); + internal_static_proto_ChannelSetActionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelSetActionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelSetActionResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Action", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelUpdateDraft.java b/src/main/java/net/iGap/proto/ProtoChannelUpdateDraft.java index 55baadd..6fd6fd7 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelUpdateDraft.java +++ b/src/main/java/net/iGap/proto/ProtoChannelUpdateDraft.java @@ -8,170 +8,235 @@ private ProtoChannelUpdateDraft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelUpdateDraftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateDraft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 3; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.ChannelUpdateDraft} */ - public static final class ChannelUpdateDraft extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateDraft, ChannelUpdateDraft.Builder> implements + public static final class ChannelUpdateDraft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateDraft) ChannelUpdateDraftOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateDraft.newBuilder() to construct. + private ChannelUpdateDraft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateDraft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateDraft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateDraft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.class, net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int DRAFT_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -183,10 +248,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(3, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -202,495 +269,869 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft other = (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateDraft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateDraft) net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.class, net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft build() { + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft buildPartial() { + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft result = new net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft other) { + if (other == net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateDraft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft other = (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateDraft) + } + // @@protoc_insertion_point(class_scope:proto.ChannelUpdateDraft) private static final net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateDraft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft(); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateDraft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateDraft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelUpdateDraftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateDraftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 3; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.ChannelUpdateDraftResponse} */ - public static final class ChannelUpdateDraftResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateDraftResponse, ChannelUpdateDraftResponse.Builder> implements + public static final class ChannelUpdateDraftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateDraftResponse) ChannelUpdateDraftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateDraftResponse.newBuilder() to construct. + private ChannelUpdateDraftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateDraftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateDraftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateDraftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.class, net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int DRAFT_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - - } - /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -702,10 +1143,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(3, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -721,333 +1164,697 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse other = (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateDraftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateDraftResponse) net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.class, net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateDraft.internal_static_proto_ChannelUpdateDraftResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse build() { + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse buildPartial() { + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse result = new net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse other) { + if (other == net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateDraftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse other = (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateDraftResponse) + } // @@protoc_insertion_point(class_scope:proto.ChannelUpdateDraftResponse) private static final net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateDraftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse(); } public static net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateDraftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateDraftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateDraft.ChannelUpdateDraftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateDraft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateDraft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateDraftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateDraftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030ChannelUpdateDraft.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"g" + + "\n\022ChannelUpdateDraft\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\017\n\007room_id\030\002 \001(\004\022\037\n\005draft\030" + + "\003 \001(\0132\020.proto.RoomDraft\"q\n\032ChannelUpdate" + + "DraftResponse\022!\n\010response\030\001 \001(\0132\017.proto." + + "Response\022\017\n\007room_id\030\002 \001(\004\022\037\n\005draft\030\003 \001(\013" + + "2\020.proto.RoomDraftB)\n\016net.iGap.protoB\027Pr" + + "otoChannelUpdateDraftb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChannelUpdateDraft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelUpdateDraft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateDraft_descriptor, + new java.lang.String[] { "Request", "RoomId", "Draft", }); + internal_static_proto_ChannelUpdateDraftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelUpdateDraftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateDraftResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Draft", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelUpdateReactionStatus.java b/src/main/java/net/iGap/proto/ProtoChannelUpdateReactionStatus.java index 508fb22..52f08fb 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelUpdateReactionStatus.java +++ b/src/main/java/net/iGap/proto/ProtoChannelUpdateReactionStatus.java @@ -8,137 +8,203 @@ private ProtoChannelUpdateReactionStatus() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelUpdateReactionStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateReactionStatus) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return The reactionStatus. */ boolean getReactionStatus(); } /** * Protobuf type {@code proto.ChannelUpdateReactionStatus} */ - public static final class ChannelUpdateReactionStatus extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateReactionStatus, ChannelUpdateReactionStatus.Builder> implements + public static final class ChannelUpdateReactionStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateReactionStatus) ChannelUpdateReactionStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateReactionStatus.newBuilder() to construct. + private ChannelUpdateReactionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateReactionStatus() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateReactionStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateReactionStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + reactionStatus_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.class, net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int REACTION_STATUS_FIELD_NUMBER = 3; private boolean reactionStatus_; /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return The reactionStatus. */ + @java.lang.Override public boolean getReactionStatus() { return reactionStatus_; } - /** - * optional bool reaction_status = 3; - */ - private void setReactionStatus(boolean value) { - - reactionStatus_ = value; - } - /** - * optional bool reaction_status = 3; - */ - private void clearReactionStatus() { - - reactionStatus_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reactionStatus_ != false) { output.writeBool(3, reactionStatus_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, reactionStatus_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus other = (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getReactionStatus() + != other.getReactionStatus()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + REACTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReactionStatus()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateReactionStatus} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateReactionStatus) net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.class, net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + reactionStatus_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatus_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus build() { + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus buildPartial() { + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus result = new net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.reactionStatus_ = reactionStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus other) { + if (other == net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getReactionStatus() != false) { + setReactionStatus(other.getReactionStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private boolean reactionStatus_ ; /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return The reactionStatus. */ + @java.lang.Override public boolean getReactionStatus() { - return instance.getReactionStatus(); + return reactionStatus_; } /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @param value The reactionStatus to set. + * @return This builder for chaining. */ public Builder setReactionStatus(boolean value) { - copyOnWrite(); - instance.setReactionStatus(value); + + reactionStatus_ = value; + onChanged(); return this; } /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return This builder for chaining. */ public Builder clearReactionStatus() { - copyOnWrite(); - instance.clearReactionStatus(); + + reactionStatus_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateReactionStatus) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus other = (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - reactionStatus_ = visitor.visitBoolean(reactionStatus_ != false, reactionStatus_, - other.reactionStatus_ != false, other.reactionStatus_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - reactionStatus_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateReactionStatus) + } + // @@protoc_insertion_point(class_scope:proto.ChannelUpdateReactionStatus) private static final net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateReactionStatus(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus(); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateReactionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateReactionStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelUpdateReactionStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateReactionStatusResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return The reactionStatus. */ boolean getReactionStatus(); } /** * Protobuf type {@code proto.ChannelUpdateReactionStatusResponse} */ - public static final class ChannelUpdateReactionStatusResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateReactionStatusResponse, ChannelUpdateReactionStatusResponse.Builder> implements + public static final class ChannelUpdateReactionStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateReactionStatusResponse) ChannelUpdateReactionStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateReactionStatusResponse.newBuilder() to construct. + private ChannelUpdateReactionStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateReactionStatusResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateReactionStatusResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateReactionStatusResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + reactionStatus_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.class, net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int REACTION_STATUS_FIELD_NUMBER = 3; private boolean reactionStatus_; /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return The reactionStatus. */ + @java.lang.Override public boolean getReactionStatus() { return reactionStatus_; } - /** - * optional bool reaction_status = 3; - */ - private void setReactionStatus(boolean value) { - - reactionStatus_ = value; - } - /** - * optional bool reaction_status = 3; - */ - private void clearReactionStatus() { - - reactionStatus_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reactionStatus_ != false) { output.writeBool(3, reactionStatus_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,595 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, reactionStatus_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse other = (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getReactionStatus() + != other.getReactionStatus()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + REACTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReactionStatus()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateReactionStatusResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateReactionStatusResponse) net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.class, net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + reactionStatus_ = false; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.internal_static_proto_ChannelUpdateReactionStatusResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse build() { + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse buildPartial() { + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse result = new net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.reactionStatus_ = reactionStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse other) { + if (other == net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getReactionStatus() != false) { + setReactionStatus(other.getReactionStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private boolean reactionStatus_ ; /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return The reactionStatus. */ + @java.lang.Override public boolean getReactionStatus() { - return instance.getReactionStatus(); + return reactionStatus_; } /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @param value The reactionStatus to set. + * @return This builder for chaining. */ public Builder setReactionStatus(boolean value) { - copyOnWrite(); - instance.setReactionStatus(value); + + reactionStatus_ = value; + onChanged(); return this; } /** - * optional bool reaction_status = 3; + * bool reaction_status = 3; + * @return This builder for chaining. */ public Builder clearReactionStatus() { - copyOnWrite(); - instance.clearReactionStatus(); + + reactionStatus_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateReactionStatusResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse other = (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - reactionStatus_ = visitor.visitBoolean(reactionStatus_ != false, reactionStatus_, - other.reactionStatus_ != false, other.reactionStatus_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - reactionStatus_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateReactionStatusResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelUpdateReactionStatusResponse) private static final net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateReactionStatusResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse(); } public static net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateReactionStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateReactionStatusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateReactionStatus.ChannelUpdateReactionStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateReactionStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateReactionStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateReactionStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateReactionStatusResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n!ChannelUpdateReactionStatus.proto\022\005pro" + + "to\032\rRequest.proto\032\016Response.proto\"h\n\033Cha" + + "nnelUpdateReactionStatus\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\027\n\017re" + + "action_status\030\003 \001(\010\"r\n#ChannelUpdateReac" + + "tionStatusResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.Response\022\017\n\007room_id\030\002 \001(\004\022\027\n\017reacti" + + "on_status\030\003 \001(\010B2\n\016net.iGap.protoB Proto" + + "ChannelUpdateReactionStatusb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelUpdateReactionStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelUpdateReactionStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateReactionStatus_descriptor, + new java.lang.String[] { "Request", "RoomId", "ReactionStatus", }); + internal_static_proto_ChannelUpdateReactionStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelUpdateReactionStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateReactionStatusResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "ReactionStatus", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelUpdateSignature.java b/src/main/java/net/iGap/proto/ProtoChannelUpdateSignature.java index 16fe582..e41ef7b 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelUpdateSignature.java +++ b/src/main/java/net/iGap/proto/ProtoChannelUpdateSignature.java @@ -8,137 +8,203 @@ private ProtoChannelUpdateSignature() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelUpdateSignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateSignature) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional bool signature = 3; + * bool signature = 3; + * @return The signature. */ boolean getSignature(); } /** * Protobuf type {@code proto.ChannelUpdateSignature} */ - public static final class ChannelUpdateSignature extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateSignature, ChannelUpdateSignature.Builder> implements + public static final class ChannelUpdateSignature extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateSignature) ChannelUpdateSignatureOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateSignature.newBuilder() to construct. + private ChannelUpdateSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateSignature() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateSignature(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateSignature( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + signature_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.class, net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int SIGNATURE_FIELD_NUMBER = 3; private boolean signature_; /** - * optional bool signature = 3; + * bool signature = 3; + * @return The signature. */ + @java.lang.Override public boolean getSignature() { return signature_; } - /** - * optional bool signature = 3; - */ - private void setSignature(boolean value) { - - signature_ = value; - } - /** - * optional bool signature = 3; - */ - private void clearSignature() { - - signature_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (signature_ != false) { output.writeBool(3, signature_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, signature_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature other = (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getSignature() + != other.getSignature()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSignature()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateSignature} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateSignature) net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.class, net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + signature_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignature_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature build() { + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature buildPartial() { + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature result = new net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.signature_ = signature_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature other) { + if (other == net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getSignature() != false) { + setSignature(other.getSignature()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private boolean signature_ ; /** - * optional bool signature = 3; + * bool signature = 3; + * @return The signature. */ + @java.lang.Override public boolean getSignature() { - return instance.getSignature(); + return signature_; } /** - * optional bool signature = 3; + * bool signature = 3; + * @param value The signature to set. + * @return This builder for chaining. */ public Builder setSignature(boolean value) { - copyOnWrite(); - instance.setSignature(value); + + signature_ = value; + onChanged(); return this; } /** - * optional bool signature = 3; + * bool signature = 3; + * @return This builder for chaining. */ public Builder clearSignature() { - copyOnWrite(); - instance.clearSignature(); + + signature_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateSignature) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature other = (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - signature_ = visitor.visitBoolean(signature_ != false, signature_, - other.signature_ != false, other.signature_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - signature_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateSignature) + } + // @@protoc_insertion_point(class_scope:proto.ChannelUpdateSignature) private static final net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateSignature(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature(); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateSignature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateSignature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelUpdateSignatureResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateSignatureResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional bool signature = 3; + * bool signature = 3; + * @return The signature. */ boolean getSignature(); } /** * Protobuf type {@code proto.ChannelUpdateSignatureResponse} */ - public static final class ChannelUpdateSignatureResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateSignatureResponse, ChannelUpdateSignatureResponse.Builder> implements + public static final class ChannelUpdateSignatureResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateSignatureResponse) ChannelUpdateSignatureResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateSignatureResponse.newBuilder() to construct. + private ChannelUpdateSignatureResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateSignatureResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateSignatureResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateSignatureResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + signature_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignatureResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignatureResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.class, net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int SIGNATURE_FIELD_NUMBER = 3; private boolean signature_; /** - * optional bool signature = 3; + * bool signature = 3; + * @return The signature. */ + @java.lang.Override public boolean getSignature() { return signature_; } - /** - * optional bool signature = 3; - */ - private void setSignature(boolean value) { - - signature_ = value; - } - /** - * optional bool signature = 3; - */ - private void clearSignature() { - - signature_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (signature_ != false) { output.writeBool(3, signature_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,595 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, signature_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse other = (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getSignature() + != other.getSignature()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSignature()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateSignatureResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateSignatureResponse) net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignatureResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignatureResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.class, net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + signature_ = false; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateSignature.internal_static_proto_ChannelUpdateSignatureResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse build() { + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse buildPartial() { + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse result = new net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.signature_ = signature_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse other) { + if (other == net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getSignature() != false) { + setSignature(other.getSignature()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private boolean signature_ ; /** - * optional bool signature = 3; + * bool signature = 3; + * @return The signature. */ + @java.lang.Override public boolean getSignature() { - return instance.getSignature(); + return signature_; } /** - * optional bool signature = 3; + * bool signature = 3; + * @param value The signature to set. + * @return This builder for chaining. */ public Builder setSignature(boolean value) { - copyOnWrite(); - instance.setSignature(value); + + signature_ = value; + onChanged(); return this; } /** - * optional bool signature = 3; + * bool signature = 3; + * @return This builder for chaining. */ public Builder clearSignature() { - copyOnWrite(); - instance.clearSignature(); + + signature_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateSignatureResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse other = (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - signature_ = visitor.visitBoolean(signature_ != false, signature_, - other.signature_ != false, other.signature_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - signature_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateSignatureResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelUpdateSignatureResponse) private static final net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateSignatureResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse(); } public static net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateSignatureResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateSignatureResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateSignature.ChannelUpdateSignatureResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateSignature_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateSignature_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateSignatureResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateSignatureResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034ChannelUpdateSignature.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"]\n\026ChannelU" + + "pdateSignature\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\017\n\007room_id\030\002 \001(\004\022\021\n\tsignature\030\003 " + + "\001(\010\"g\n\036ChannelUpdateSignatureResponse\022!\n" + + "\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007room" + + "_id\030\002 \001(\004\022\021\n\tsignature\030\003 \001(\010B-\n\016net.iGap" + + ".protoB\033ProtoChannelUpdateSignatureb\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelUpdateSignature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelUpdateSignature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateSignature_descriptor, + new java.lang.String[] { "Request", "RoomId", "Signature", }); + internal_static_proto_ChannelUpdateSignatureResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelUpdateSignatureResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateSignatureResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Signature", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChannelUpdateUsername.java b/src/main/java/net/iGap/proto/ProtoChannelUpdateUsername.java index 91b56ae..87374a5 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelUpdateUsername.java +++ b/src/main/java/net/iGap/proto/ProtoChannelUpdateUsername.java @@ -8,181 +8,255 @@ private ProtoChannelUpdateUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChannelUpdateUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelUpdateUsername} */ - public static final class ChannelUpdateUsername extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateUsername, ChannelUpdateUsername.Builder> implements + public static final class ChannelUpdateUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateUsername) ChannelUpdateUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateUsername.newBuilder() to construct. + private ChannelUpdateUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.class, net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,503 +264,841 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername other = (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateUsername) net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.class, net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + roomId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername build() { + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername buildPartial() { + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername result = new net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername other) { + if (other == net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername other = (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateUsername) + } + // @@protoc_insertion_point(class_scope:proto.ChannelUpdateUsername) private static final net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername(); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelUpdateUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelUpdateUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChannelUpdateUsernameResponse} */ - public static final class ChannelUpdateUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - ChannelUpdateUsernameResponse, ChannelUpdateUsernameResponse.Builder> implements + public static final class ChannelUpdateUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelUpdateUsernameResponse) ChannelUpdateUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelUpdateUsernameResponse.newBuilder() to construct. + private ChannelUpdateUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelUpdateUsernameResponse() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelUpdateUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelUpdateUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.class, net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -694,330 +1106,646 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse other = (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelUpdateUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelUpdateUsernameResponse) net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.class, net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + username_ = ""; + + roomId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChannelUpdateUsername.internal_static_proto_ChannelUpdateUsernameResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse build() { + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse buildPartial() { + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse result = new net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.username_ = username_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse other) { + if (other == net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse other = (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelUpdateUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChannelUpdateUsernameResponse) private static final net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelUpdateUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse(); } public static net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelUpdateUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelUpdateUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChannelUpdateUsername.ChannelUpdateUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelUpdateUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelUpdateUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033ChannelUpdateUsername.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\"[\n\025ChannelUp" + + "dateUsername\022\037\n\007request\030\001 \001(\0132\016.proto.Re" + + "quest\022\020\n\010username\030\002 \001(\t\022\017\n\007room_id\030\003 \001(\004" + + "\"e\n\035ChannelUpdateUsernameResponse\022!\n\010res" + + "ponse\030\001 \001(\0132\017.proto.Response\022\020\n\010username" + + "\030\002 \001(\t\022\017\n\007room_id\030\003 \001(\004B,\n\016net.iGap.prot" + + "oB\032ProtoChannelUpdateUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChannelUpdateUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChannelUpdateUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateUsername_descriptor, + new java.lang.String[] { "Request", "Username", "RoomId", }); + internal_static_proto_ChannelUpdateUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChannelUpdateUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelUpdateUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Username", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatClearMessage.java b/src/main/java/net/iGap/proto/ProtoChatClearMessage.java index e74e7c1..177be83 100644 --- a/src/main/java/net/iGap/proto/ProtoChatClearMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChatClearMessage.java @@ -8,165 +8,225 @@ private ProtoChatClearMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatClearMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatClearMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ long getClearMessageId(); /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ long getClearDocumentId(); } /** * Protobuf type {@code proto.ChatClearMessage} */ - public static final class ChatClearMessage extends - com.google.protobuf.GeneratedMessageLite< - ChatClearMessage, ChatClearMessage.Builder> implements + public static final class ChatClearMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatClearMessage) ChatClearMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatClearMessage.newBuilder() to construct. + private ChatClearMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatClearMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatClearMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatClearMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.class, net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; private long clearMessageId_; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { return clearMessageId_; } - /** - * optional uint64 clear_message_id = 3; - */ - private void setClearMessageId(long value) { - - clearMessageId_ = value; - } - /** - * optional uint64 clear_message_id = 3; - */ - private void clearClearMessageId() { - - clearMessageId_ = 0L; - } public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; private long clearDocumentId_; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { return clearDocumentId_; } - /** - * optional uint64 clear_document_id = 4; - */ - private void setClearDocumentId(long value) { - - clearDocumentId_ = value; - } - /** - * optional uint64 clear_document_id = 4; - */ - private void clearClearDocumentId() { - - clearDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (clearDocumentId_ != 0L) { output.writeUInt64(4, clearDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,491 +266,801 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, clearDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatClearMessage.ChatClearMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatClearMessage.ChatClearMessage other = (net.iGap.proto.ProtoChatClearMessage.ChatClearMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getClearMessageId() + != other.getClearMessageId()) return false; + if (getClearDocumentId() + != other.getClearDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatClearMessage.ChatClearMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatClearMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatClearMessage.ChatClearMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatClearMessage) net.iGap.proto.ProtoChatClearMessage.ChatClearMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.class, net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + clearMessageId_ = 0L; + clearDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessage build() { + net.iGap.proto.ProtoChatClearMessage.ChatClearMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessage buildPartial() { + net.iGap.proto.ProtoChatClearMessage.ChatClearMessage result = new net.iGap.proto.ProtoChatClearMessage.ChatClearMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatClearMessage.ChatClearMessage) { + return mergeFrom((net.iGap.proto.ProtoChatClearMessage.ChatClearMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatClearMessage.ChatClearMessage other) { + if (other == net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatClearMessage.ChatClearMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatClearMessage.ChatClearMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long clearMessageId_ ; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { - return instance.getClearMessageId(); + return clearMessageId_; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @param value The clearMessageId to set. + * @return This builder for chaining. */ public Builder setClearMessageId(long value) { - copyOnWrite(); - instance.setClearMessageId(value); + + clearMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return This builder for chaining. */ public Builder clearClearMessageId() { - copyOnWrite(); - instance.clearClearMessageId(); + + clearMessageId_ = 0L; + onChanged(); return this; } + private long clearDocumentId_ ; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { - return instance.getClearDocumentId(); + return clearDocumentId_; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @param value The clearDocumentId to set. + * @return This builder for chaining. */ public Builder setClearDocumentId(long value) { - copyOnWrite(); - instance.setClearDocumentId(value); + + clearDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return This builder for chaining. */ public Builder clearClearDocumentId() { - copyOnWrite(); - instance.clearClearDocumentId(); + + clearDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatClearMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatClearMessage.ChatClearMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatClearMessage.ChatClearMessage other = (net.iGap.proto.ProtoChatClearMessage.ChatClearMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - clearMessageId_ = visitor.visitLong(clearMessageId_ != 0L, clearMessageId_, - other.clearMessageId_ != 0L, other.clearMessageId_); - clearDocumentId_ = visitor.visitLong(clearDocumentId_ != 0L, clearDocumentId_, - other.clearDocumentId_ != 0L, other.clearDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - clearMessageId_ = input.readUInt64(); - break; - } - case 32: { - - clearDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatClearMessage.ChatClearMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatClearMessage) + } + // @@protoc_insertion_point(class_scope:proto.ChatClearMessage) private static final net.iGap.proto.ProtoChatClearMessage.ChatClearMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatClearMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatClearMessage.ChatClearMessage(); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatClearMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatClearMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChatClearMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatClearMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ long getClearMessageId(); /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ long getClearDocumentId(); } /** * Protobuf type {@code proto.ChatClearMessageResponse} */ - public static final class ChatClearMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatClearMessageResponse, ChatClearMessageResponse.Builder> implements + public static final class ChatClearMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatClearMessageResponse) ChatClearMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatClearMessageResponse.newBuilder() to construct. + private ChatClearMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatClearMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatClearMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatClearMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.class, net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; private long clearMessageId_; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { return clearMessageId_; } - /** - * optional uint64 clear_message_id = 3; - */ - private void setClearMessageId(long value) { - - clearMessageId_ = value; - } - /** - * optional uint64 clear_message_id = 3; - */ - private void clearClearMessageId() { - - clearMessageId_ = 0L; - } public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; private long clearDocumentId_; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { return clearDocumentId_; } - /** - * optional uint64 clear_document_id = 4; - */ - private void setClearDocumentId(long value) { - - clearDocumentId_ = value; - } - /** - * optional uint64 clear_document_id = 4; - */ - private void clearClearDocumentId() { - - clearDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -703,10 +1075,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (clearDocumentId_ != 0L) { output.writeUInt64(4, clearDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -726,334 +1100,638 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, clearDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse other = (net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getClearMessageId() + != other.getClearMessageId()) return false; + if (getClearDocumentId() + != other.getClearDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatClearMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatClearMessageResponse) net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.class, net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + clearMessageId_ = 0L; + clearDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatClearMessage.internal_static_proto_ChatClearMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse build() { + net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse buildPartial() { + net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse result = new net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse other) { + if (other == net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long clearMessageId_ ; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { - return instance.getClearMessageId(); + return clearMessageId_; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @param value The clearMessageId to set. + * @return This builder for chaining. */ public Builder setClearMessageId(long value) { - copyOnWrite(); - instance.setClearMessageId(value); + + clearMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return This builder for chaining. */ public Builder clearClearMessageId() { - copyOnWrite(); - instance.clearClearMessageId(); + + clearMessageId_ = 0L; + onChanged(); return this; } + private long clearDocumentId_ ; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { - return instance.getClearDocumentId(); + return clearDocumentId_; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @param value The clearDocumentId to set. + * @return This builder for chaining. */ public Builder setClearDocumentId(long value) { - copyOnWrite(); - instance.setClearDocumentId(value); + + clearDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return This builder for chaining. */ public Builder clearClearDocumentId() { - copyOnWrite(); - instance.clearClearDocumentId(); + + clearDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatClearMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse other = (net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - clearMessageId_ = visitor.visitLong(clearMessageId_ != 0L, clearMessageId_, - other.clearMessageId_ != 0L, other.clearMessageId_); - clearDocumentId_ = visitor.visitLong(clearDocumentId_ != 0L, clearDocumentId_, - other.clearDocumentId_ != 0L, other.clearDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - clearMessageId_ = input.readUInt64(); - break; - } - case 32: { - - clearDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatClearMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatClearMessageResponse) private static final net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatClearMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse(); } public static net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatClearMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatClearMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatClearMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatClearMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatClearMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatClearMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ChatClearMessage.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"y\n\020ChatClearMessa" + + "ge\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007r" + + "oom_id\030\002 \001(\004\022\030\n\020clear_message_id\030\003 \001(\004\022\031" + + "\n\021clear_document_id\030\004 \001(\004\"\203\001\n\030ChatClearM" + + "essageResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022\017\n\007room_id\030\002 \001(\004\022\030\n\020clear_mess" + + "age_id\030\003 \001(\004\022\031\n\021clear_document_id\030\004 \001(\004B" + + "\'\n\016net.iGap.protoB\025ProtoChatClearMessage" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChatClearMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatClearMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatClearMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "ClearMessageId", "ClearDocumentId", }); + internal_static_proto_ChatClearMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatClearMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatClearMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "ClearMessageId", "ClearDocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatConvertToGroup.java b/src/main/java/net/iGap/proto/ProtoChatConvertToGroup.java index 11736af..f82bc73 100644 --- a/src/main/java/net/iGap/proto/ProtoChatConvertToGroup.java +++ b/src/main/java/net/iGap/proto/ProtoChatConvertToGroup.java @@ -8,40 +8,57 @@ private ProtoChatConvertToGroup() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatConvertToGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatConvertToGroup) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string name = 3; + * string name = 3; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 4; + * string description = 4; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -49,182 +66,237 @@ public interface ChatConvertToGroupOrBuilder extends /** * Protobuf type {@code proto.ChatConvertToGroup} */ - public static final class ChatConvertToGroup extends - com.google.protobuf.GeneratedMessageLite< - ChatConvertToGroup, ChatConvertToGroup.Builder> implements + public static final class ChatConvertToGroup extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatConvertToGroup) ChatConvertToGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatConvertToGroup.newBuilder() to construct. + private ChatConvertToGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatConvertToGroup() { name_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatConvertToGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatConvertToGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.class, net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 3; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 3; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 3; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 4; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 4; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 4; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -233,16 +305,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!name_.isEmpty()) { - output.writeString(3, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - if (!description_.isEmpty()) { - output.writeString(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -254,641 +328,1004 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup other = (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatConvertToGroup} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatConvertToGroup) net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.class, net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + name_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroup_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup build() { + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup buildPartial() { + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup result = new net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup) { + return mergeFrom((net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup other) { + if (other == net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatConvertToGroup) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup other = (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatConvertToGroup) + } + // @@protoc_insertion_point(class_scope:proto.ChatConvertToGroup) private static final net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatConvertToGroup(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup(); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatConvertToGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatConvertToGroup(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChatConvertToGroupResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatConvertToGroupResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string name = 3; + * string name = 3; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 4; + * string description = 4; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @return The role. */ net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole(); } /** * Protobuf type {@code proto.ChatConvertToGroupResponse} */ - public static final class ChatConvertToGroupResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatConvertToGroupResponse, ChatConvertToGroupResponse.Builder> implements + public static final class ChatConvertToGroupResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatConvertToGroupResponse) ChatConvertToGroupResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatConvertToGroupResponse.newBuilder() to construct. + private ChatConvertToGroupResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatConvertToGroupResponse() { name_ = ""; description_ = ""; + role_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatConvertToGroupResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatConvertToGroupResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroupResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroupResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.class, net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 3; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 3; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 3; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 4; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 4; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); - } - /** - * optional string description = 4; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROLE_FIELD_NUMBER = 5; private int role_; /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @return The role. */ - public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } - /** - * optional .proto.GroupRoom.Role role = 5; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.GroupRoom.Role role = 5; - */ - private void setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.GroupRoom.Role role = 5; - */ - private void clearRole() { - - role_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -897,19 +1334,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!name_.isEmpty()) { - output.writeString(3, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - if (!description_.isEmpty()) { - output.writeString(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (role_ != net.iGap.proto.ProtoGlobal.GroupRoom.Role.MEMBER.getNumber()) { output.writeEnum(5, role_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -921,426 +1360,803 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (role_ != net.iGap.proto.ProtoGlobal.GroupRoom.Role.MEMBER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, role_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse other = (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (role_ != other.role_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatConvertToGroupResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatConvertToGroupResponse) net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroupResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroupResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.class, net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + name_ = ""; + + description_ = ""; + + role_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatConvertToGroup.internal_static_proto_ChatConvertToGroupResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse build() { + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse buildPartial() { + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse result = new net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.name_ = name_; + result.description_ = description_; + result.role_ = role_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse) { + return mergeFrom((net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse other) { + if (other == net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 5; + * .proto.GroupRoom.Role role = 5; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatConvertToGroupResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse other = (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - role_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatConvertToGroupResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatConvertToGroupResponse) private static final net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatConvertToGroupResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse(); } public static net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatConvertToGroupResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatConvertToGroupResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoChatConvertToGroup.ChatConvertToGroupResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatConvertToGroup_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatConvertToGroup_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatConvertToGroupResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatConvertToGroupResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030ChatConvertToGroup.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"i" + + "\n\022ChatConvertToGroup\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\017\n\007room_id\030\002 \001(\004\022\014\n\004name\030\003" + + " \001(\t\022\023\n\013description\030\004 \001(\t\"\230\001\n\032ChatConver" + + "tToGroupResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.Response\022\017\n\007room_id\030\002 \001(\004\022\014\n\004name\030\003 \001" + + "(\t\022\023\n\013description\030\004 \001(\t\022#\n\004role\030\005 \001(\0162\025." + + "proto.GroupRoom.RoleB)\n\016net.iGap.protoB\027" + + "ProtoChatConvertToGroupb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatConvertToGroup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatConvertToGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatConvertToGroup_descriptor, + new java.lang.String[] { "Request", "RoomId", "Name", "Description", }); + internal_static_proto_ChatConvertToGroupResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatConvertToGroupResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatConvertToGroupResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Name", "Description", "Role", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatDelete.java b/src/main/java/net/iGap/proto/ProtoChatDelete.java index 9c69b05..5483133 100644 --- a/src/main/java/net/iGap/proto/ProtoChatDelete.java +++ b/src/main/java/net/iGap/proto/ProtoChatDelete.java @@ -8,109 +8,181 @@ private ProtoChatDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChatDelete} */ - public static final class ChatDelete extends - com.google.protobuf.GeneratedMessageLite< - ChatDelete, ChatDelete.Builder> implements + public static final class ChatDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatDelete) ChatDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatDelete.newBuilder() to construct. + private ChatDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatDelete() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDelete.ChatDelete.class, net.iGap.proto.ProtoChatDelete.ChatDelete.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatDelete.ChatDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatDelete.ChatDelete other = (net.iGap.proto.ProtoChatDelete.ChatDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDelete.ChatDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatDelete.ChatDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatDelete.ChatDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatDelete) net.iGap.proto.ProtoChatDelete.ChatDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDelete.ChatDelete.class, net.iGap.proto.ProtoChatDelete.ChatDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatDelete.ChatDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDelete_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatDelete.ChatDelete.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDelete build() { + net.iGap.proto.ProtoChatDelete.ChatDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDelete buildPartial() { + net.iGap.proto.ProtoChatDelete.ChatDelete result = new net.iGap.proto.ProtoChatDelete.ChatDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatDelete.ChatDelete) { + return mergeFrom((net.iGap.proto.ProtoChatDelete.ChatDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatDelete.ChatDelete other) { + if (other == net.iGap.proto.ProtoChatDelete.ChatDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatDelete.ChatDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatDelete.ChatDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatDelete.ChatDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatDelete.ChatDelete other = (net.iGap.proto.ProtoChatDelete.ChatDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatDelete.ChatDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatDelete) + } + // @@protoc_insertion_point(class_scope:proto.ChatDelete) private static final net.iGap.proto.ProtoChatDelete.ChatDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatDelete.ChatDelete(); } public static net.iGap.proto.ProtoChatDelete.ChatDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChatDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChatDeleteResponse} */ - public static final class ChatDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatDeleteResponse, ChatDeleteResponse.Builder> implements + public static final class ChatDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatDeleteResponse) ChatDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatDeleteResponse.newBuilder() to construct. + private ChatDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.class, net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,550 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatDelete.ChatDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatDelete.ChatDeleteResponse other = (net.iGap.proto.ProtoChatDelete.ChatDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatDelete.ChatDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatDelete.ChatDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatDeleteResponse) net.iGap.proto.ProtoChatDelete.ChatDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.class, net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatDelete.internal_static_proto_ChatDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDeleteResponse build() { + net.iGap.proto.ProtoChatDelete.ChatDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDeleteResponse buildPartial() { + net.iGap.proto.ProtoChatDelete.ChatDeleteResponse result = new net.iGap.proto.ProtoChatDelete.ChatDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatDelete.ChatDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoChatDelete.ChatDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatDelete.ChatDeleteResponse other) { + if (other == net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatDelete.ChatDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatDelete.ChatDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatDelete.ChatDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatDelete.ChatDeleteResponse other = (net.iGap.proto.ProtoChatDelete.ChatDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatDelete.ChatDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatDeleteResponse) private static final net.iGap.proto.ProtoChatDelete.ChatDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatDelete.ChatDeleteResponse(); } public static net.iGap.proto.ProtoChatDelete.ChatDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDelete.ChatDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020ChatDelete.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\">\n\nChatDelete\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004" + + "\"H\n\022ChatDeleteResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022\017\n\007room_id\030\002 \001(\004B!\n\016ne" + + "t.iGap.protoB\017ProtoChatDeleteb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChatDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatDelete_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChatDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatDeleteResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatDeleteMessage.java b/src/main/java/net/iGap/proto/ProtoChatDeleteMessage.java index e8e35b8..63c0b19 100644 --- a/src/main/java/net/iGap/proto/ProtoChatDeleteMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChatDeleteMessage.java @@ -8,193 +8,247 @@ private ProtoChatDeleteMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatDeleteMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatDeleteMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional bool both = 4; + * bool both = 4; + * @return The both. */ boolean getBoth(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChatDeleteMessage} */ - public static final class ChatDeleteMessage extends - com.google.protobuf.GeneratedMessageLite< - ChatDeleteMessage, ChatDeleteMessage.Builder> implements + public static final class ChatDeleteMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatDeleteMessage) ChatDeleteMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatDeleteMessage.newBuilder() to construct. + private ChatDeleteMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatDeleteMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatDeleteMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatDeleteMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + both_ = input.readBool(); + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.class, net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int BOTH_FIELD_NUMBER = 4; private boolean both_; /** - * optional bool both = 4; + * bool both = 4; + * @return The both. */ + @java.lang.Override public boolean getBoth() { return both_; } - /** - * optional bool both = 4; - */ - private void setBoth(boolean value) { - - both_ = value; - } - /** - * optional bool both = 4; - */ - private void clearBoth() { - - both_ = false; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -212,10 +266,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -239,549 +295,865 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage other = (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getBoth() + != other.getBoth()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + BOTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoth()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatDeleteMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatDeleteMessage) net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.class, net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + both_ = false; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage build() { + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage buildPartial() { + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage result = new net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.both_ = both_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage) { + return mergeFrom((net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage other) { + if (other == net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getBoth() != false) { + setBoth(other.getBoth()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private boolean both_ ; /** - * optional bool both = 4; + * bool both = 4; + * @return The both. */ + @java.lang.Override public boolean getBoth() { - return instance.getBoth(); + return both_; } /** - * optional bool both = 4; + * bool both = 4; + * @param value The both to set. + * @return This builder for chaining. */ public Builder setBoth(boolean value) { - copyOnWrite(); - instance.setBoth(value); + + both_ = value; + onChanged(); return this; } /** - * optional bool both = 4; + * bool both = 4; + * @return This builder for chaining. */ public Builder clearBoth() { - copyOnWrite(); - instance.clearBoth(); + + both_ = false; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatDeleteMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage other = (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - both_ = visitor.visitBoolean(both_ != false, both_, - other.both_ != false, other.both_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - both_ = input.readBool(); - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatDeleteMessage) + } + // @@protoc_insertion_point(class_scope:proto.ChatDeleteMessage) private static final net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatDeleteMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage(); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatDeleteMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatDeleteMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChatDeleteMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatDeleteMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ long getDeleteVersion(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChatDeleteMessageResponse} */ - public static final class ChatDeleteMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatDeleteMessageResponse, ChatDeleteMessageResponse.Builder> implements + public static final class ChatDeleteMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatDeleteMessageResponse) ChatDeleteMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatDeleteMessageResponse.newBuilder() to construct. + private ChatDeleteMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatDeleteMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatDeleteMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatDeleteMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + deleteVersion_ = input.readUInt64(); + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.class, net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DELETE_VERSION_FIELD_NUMBER = 4; private long deleteVersion_; /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { return deleteVersion_; } - /** - * optional uint64 delete_version = 4; - */ - private void setDeleteVersion(long value) { - - deleteVersion_ = value; - } - /** - * optional uint64 delete_version = 4; - */ - private void clearDeleteVersion() { - - deleteVersion_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -799,10 +1171,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -826,364 +1200,680 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse other = (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDeleteVersion() + != other.getDeleteVersion()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DELETE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeleteVersion()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatDeleteMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatDeleteMessageResponse) net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.class, net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + deleteVersion_ = 0L; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatDeleteMessage.internal_static_proto_ChatDeleteMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse build() { + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse buildPartial() { + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse result = new net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.deleteVersion_ = deleteVersion_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse other) { + if (other == net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDeleteVersion() != 0L) { + setDeleteVersion(other.getDeleteVersion()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long deleteVersion_ ; /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { - return instance.getDeleteVersion(); + return deleteVersion_; } /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @param value The deleteVersion to set. + * @return This builder for chaining. */ public Builder setDeleteVersion(long value) { - copyOnWrite(); - instance.setDeleteVersion(value); + + deleteVersion_ = value; + onChanged(); return this; } /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return This builder for chaining. */ public Builder clearDeleteVersion() { - copyOnWrite(); - instance.clearDeleteVersion(); + + deleteVersion_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatDeleteMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse other = (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - deleteVersion_ = visitor.visitLong(deleteVersion_ != 0L, deleteVersion_, - other.deleteVersion_ != 0L, other.deleteVersion_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - deleteVersion_ = input.readUInt64(); - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatDeleteMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatDeleteMessageResponse) private static final net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatDeleteMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse(); } public static net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatDeleteMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatDeleteMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - } + @java.lang.Override + public net.iGap.proto.ProtoChatDeleteMessage.ChatDeleteMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatDeleteMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatDeleteMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatDeleteMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatDeleteMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027ChatDeleteMessage.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"|\n\021ChatDeleteMes" + + "sage\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\014\n\004bo" + + "th\030\004 \001(\010\022\023\n\013document_id\030\005 \001(\004\"\220\001\n\031ChatDe" + + "leteMessageResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessa" + + "ge_id\030\003 \001(\004\022\026\n\016delete_version\030\004 \001(\004\022\023\n\013d" + + "ocument_id\030\005 \001(\004B(\n\016net.iGap.protoB\026Prot" + + "oChatDeleteMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ChatDeleteMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatDeleteMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatDeleteMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Both", "DocumentId", }); + internal_static_proto_ChatDeleteMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatDeleteMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatDeleteMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "DeleteVersion", "DocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatEditMessage.java b/src/main/java/net/iGap/proto/ProtoChatEditMessage.java index d3407bf..86e026f 100644 --- a/src/main/java/net/iGap/proto/ProtoChatEditMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChatEditMessage.java @@ -8,283 +8,336 @@ private ProtoChatEditMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatEditMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatEditMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional string message = 4; + * string message = 4; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChatEditMessage} */ - public static final class ChatEditMessage extends - com.google.protobuf.GeneratedMessageLite< - ChatEditMessage, ChatEditMessage.Builder> implements + public static final class ChatEditMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatEditMessage) ChatEditMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatEditMessage.newBuilder() to construct. + private ChatEditMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatEditMessage() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatEditMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatEditMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.class, net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 4; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 4; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 4; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 4; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int TEXT_SIGNS_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 6; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 6; - */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - - } - /** - * optional .proto.TextSigns text_signs = 6; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -296,8 +349,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageId_ != 0L) { output.writeUInt64(3, messageId_); } - if (!message_.isEmpty()) { - output.writeString(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } if (documentId_ != 0L) { output.writeUInt64(5, documentId_); @@ -305,10 +358,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(6, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -324,9 +379,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, messageId_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -336,792 +390,1200 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatEditMessage.ChatEditMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatEditMessage.ChatEditMessage other = (net.iGap.proto.ProtoChatEditMessage.ChatEditMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatEditMessage.ChatEditMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatEditMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatEditMessage.ChatEditMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatEditMessage) net.iGap.proto.ProtoChatEditMessage.ChatEditMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.class, net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + message_ = ""; + + documentId_ = 0L; + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessage build() { + net.iGap.proto.ProtoChatEditMessage.ChatEditMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessage buildPartial() { + net.iGap.proto.ProtoChatEditMessage.ChatEditMessage result = new net.iGap.proto.ProtoChatEditMessage.ChatEditMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.message_ = message_; + result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatEditMessage.ChatEditMessage) { + return mergeFrom((net.iGap.proto.ProtoChatEditMessage.ChatEditMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatEditMessage.ChatEditMessage other) { + if (other == net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatEditMessage.ChatEditMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatEditMessage.ChatEditMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatEditMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatEditMessage.ChatEditMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatEditMessage.ChatEditMessage other = (net.iGap.proto.ProtoChatEditMessage.ChatEditMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatEditMessage.ChatEditMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ChatEditMessage) + } // @@protoc_insertion_point(class_scope:proto.ChatEditMessage) private static final net.iGap.proto.ProtoChatEditMessage.ChatEditMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatEditMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatEditMessage.ChatEditMessage(); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatEditMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatEditMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChatEditMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatEditMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ long getMessageVersion(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ int getMessageTypeValue(); /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType(); /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ long getDocumentId(); /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChatEditMessageResponse} */ - public static final class ChatEditMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatEditMessageResponse, ChatEditMessageResponse.Builder> implements + public static final class ChatEditMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatEditMessageResponse) ChatEditMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatEditMessageResponse.newBuilder() to construct. + private ChatEditMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatEditMessageResponse() { message_ = ""; + messageType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatEditMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatEditMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + messageVersion_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + messageType_ = rawValue; + break; + } + case 56: { + + documentId_ = input.readUInt64(); + break; + } + case 66: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.class, net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.Builder.class); } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_VERSION_FIELD_NUMBER = 4; private long messageVersion_; /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { return messageVersion_; } - /** - * optional uint64 message_version = 4; - */ - private void setMessageVersion(long value) { - - messageVersion_ = value; - } - /** - * optional uint64 message_version = 4; - */ - private void clearMessageVersion() { - - messageVersion_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MESSAGE_TYPE_FIELD_NUMBER = 6; private int messageType_; /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { + @java.lang.Override public int getMessageTypeValue() { return messageType_; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.forNumber(messageType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void setMessageTypeValue(int value) { - messageType_ = value; - } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - - messageType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void clearMessageType() { - - messageType_ = 0; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 7; private long documentId_; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 7; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 7; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int TEXT_SIGNS_FIELD_NUMBER = 8; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 8; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 8; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 8; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1136,8 +1598,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageVersion_ != 0L) { output.writeUInt64(4, messageVersion_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } if (messageType_ != net.iGap.proto.ProtoGlobal.RoomMessageType.TEXT.getNumber()) { output.writeEnum(6, messageType_); @@ -1148,10 +1610,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(8, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1171,9 +1635,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, messageVersion_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } if (messageType_ != net.iGap.proto.ProtoGlobal.RoomMessageType.TEXT.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -1187,515 +1650,978 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse other = (net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getMessageVersion() + != other.getMessageVersion()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (messageType_ != other.messageType_) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageVersion()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatEditMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatEditMessageResponse) net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.class, net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + messageVersion_ = 0L; + + message_ = ""; + + messageType_ = 0; + + documentId_ = 0L; + + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatEditMessage.internal_static_proto_ChatEditMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse build() { + net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse buildPartial() { + net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse result = new net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.messageVersion_ = messageVersion_; + result.message_ = message_; + result.messageType_ = messageType_; + result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse other) { + if (other == net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getMessageVersion() != 0L) { + setMessageVersion(other.getMessageVersion()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.messageType_ != 0) { + setMessageTypeValue(other.getMessageTypeValue()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long messageVersion_ ; /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { - return instance.getMessageVersion(); + return messageVersion_; } /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @param value The messageVersion to set. + * @return This builder for chaining. */ public Builder setMessageVersion(long value) { - copyOnWrite(); - instance.setMessageVersion(value); + + messageVersion_ = value; + onChanged(); return this; } /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return This builder for chaining. */ public Builder clearMessageVersion() { - copyOnWrite(); - instance.clearMessageVersion(); + + messageVersion_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private int messageType_ = 0; /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { - return instance.getMessageTypeValue(); + @java.lang.Override public int getMessageTypeValue() { + return messageType_; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @param value The enum numeric value on the wire for messageType to set. + * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - copyOnWrite(); - instance.setMessageTypeValue(value); + + messageType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - return instance.getMessageType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + if (value == null) { + throw new NullPointerException(); + } + + messageType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return This builder for chaining. */ public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); + + messageType_ = 0; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatEditMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse other = (net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - messageVersion_ = visitor.visitLong(messageVersion_ != 0L, messageVersion_, - other.messageVersion_ != 0L, other.messageVersion_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - messageType_ = visitor.visitInt(messageType_ != 0, messageType_, other.messageType_ != 0, other.messageType_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - messageVersion_ = input.readUInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - case 56: { - - documentId_ = input.readUInt64(); - break; - } - case 66: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ChatEditMessageResponse) + } // @@protoc_insertion_point(class_scope:proto.ChatEditMessageResponse) private static final net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatEditMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse(); } public static net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatEditMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatEditMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatEditMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatEditMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatEditMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatEditMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025ChatEditMessage.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"\243\001\n\017" + + "ChatEditMessage\022\037\n\007request\030\001 \001(\0132\016.proto" + + ".Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030" + + "\003 \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document_id\030\005 " + + "\001(\004\022$\n\ntext_signs\030\006 \001(\0132\020.proto.TextSign" + + "s\"\364\001\n\027ChatEditMessageResponse\022!\n\010respons" + + "e\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(" + + "\004\022\022\n\nmessage_id\030\003 \001(\004\022\027\n\017message_version" + + "\030\004 \001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014message_type\030" + + "\006 \001(\0162\026.proto.RoomMessageType\022\023\n\013documen" + + "t_id\030\007 \001(\004\022$\n\ntext_signs\030\010 \001(\0132\020.proto.T" + + "extSignsB&\n\016net.iGap.protoB\024ProtoChatEdi" + + "tMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatEditMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatEditMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatEditMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", "TextSigns", }); + internal_static_proto_ChatEditMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatEditMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatEditMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", "TextSigns", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatGetDraft.java b/src/main/java/net/iGap/proto/ProtoChatGetDraft.java index 6b639c9..1b3b6f2 100644 --- a/src/main/java/net/iGap/proto/ProtoChatGetDraft.java +++ b/src/main/java/net/iGap/proto/ProtoChatGetDraft.java @@ -8,109 +8,181 @@ private ProtoChatGetDraft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatGetDraftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatGetDraft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ChatGetDraft} */ - public static final class ChatGetDraft extends - com.google.protobuf.GeneratedMessageLite< - ChatGetDraft, ChatGetDraft.Builder> implements + public static final class ChatGetDraft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatGetDraft) ChatGetDraftOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatGetDraft.newBuilder() to construct. + private ChatGetDraft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatGetDraft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatGetDraft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatGetDraft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.class, net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,408 +208,705 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatGetDraft.ChatGetDraft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatGetDraft.ChatGetDraft other = (net.iGap.proto.ProtoChatGetDraft.ChatGetDraft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatGetDraft.ChatGetDraft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatGetDraft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatGetDraft.ChatGetDraft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatGetDraft) net.iGap.proto.ProtoChatGetDraft.ChatGetDraftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.class, net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraft getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraft build() { + net.iGap.proto.ProtoChatGetDraft.ChatGetDraft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraft buildPartial() { + net.iGap.proto.ProtoChatGetDraft.ChatGetDraft result = new net.iGap.proto.ProtoChatGetDraft.ChatGetDraft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatGetDraft.ChatGetDraft) { + return mergeFrom((net.iGap.proto.ProtoChatGetDraft.ChatGetDraft)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoChatGetDraft.ChatGetDraft other) { + if (other == net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatGetDraft.ChatGetDraft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatGetDraft.ChatGetDraft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatGetDraft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatGetDraft.ChatGetDraft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatGetDraft.ChatGetDraft other = (net.iGap.proto.ProtoChatGetDraft.ChatGetDraft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatGetDraft.ChatGetDraft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatGetDraft) + } + // @@protoc_insertion_point(class_scope:proto.ChatGetDraft) private static final net.iGap.proto.ProtoChatGetDraft.ChatGetDraft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatGetDraft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatGetDraft.ChatGetDraft(); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatGetDraft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatGetDraft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChatGetDraftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatGetDraftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 2; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.ChatGetDraftResponse} */ - public static final class ChatGetDraftResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatGetDraftResponse, ChatGetDraftResponse.Builder> implements + public static final class ChatGetDraftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatGetDraftResponse) ChatGetDraftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatGetDraftResponse.newBuilder() to construct. + private ChatGetDraftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatGetDraftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatGetDraftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatGetDraftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.class, net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int DRAFT_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 2; - */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 2; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - - } - /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 2; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -544,10 +915,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(2, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -559,303 +932,653 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse other = (net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatGetDraftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatGetDraftResponse) net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.class, net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatGetDraft.internal_static_proto_ChatGetDraftResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse build() { + net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse buildPartial() { + net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse result = new net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse) { + return mergeFrom((net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse other) { + if (other == net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatGetDraftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse other = (net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatGetDraftResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatGetDraftResponse) private static final net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatGetDraftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse(); } public static net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatGetDraftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatGetDraftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetDraft.ChatGetDraftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatGetDraft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatGetDraft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatGetDraftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatGetDraftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022ChatGetDraft.proto\022\005proto\032\rRequest.pro" + + "to\032\016Response.proto\032\014Global.proto\"@\n\014Chat" + + "GetDraft\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\017\n\007room_id\030\002 \001(\004\"Z\n\024ChatGetDraftRespon" + + "se\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\037\n" + + "\005draft\030\002 \001(\0132\020.proto.RoomDraftB#\n\016net.iG" + + "ap.protoB\021ProtoChatGetDraftb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatGetDraft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatGetDraft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatGetDraft_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ChatGetDraftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatGetDraftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatGetDraftResponse_descriptor, + new java.lang.String[] { "Response", "Draft", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatGetRoom.java b/src/main/java/net/iGap/proto/ProtoChatGetRoom.java index 67fc4e1..a7c843c 100644 --- a/src/main/java/net/iGap/proto/ProtoChatGetRoom.java +++ b/src/main/java/net/iGap/proto/ProtoChatGetRoom.java @@ -8,109 +8,181 @@ private ProtoChatGetRoom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatGetRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatGetRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 peer_id = 2; + * uint64 peer_id = 2; + * @return The peerId. */ long getPeerId(); } /** * Protobuf type {@code proto.ChatGetRoom} */ - public static final class ChatGetRoom extends - com.google.protobuf.GeneratedMessageLite< - ChatGetRoom, ChatGetRoom.Builder> implements + public static final class ChatGetRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatGetRoom) ChatGetRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatGetRoom.newBuilder() to construct. + private ChatGetRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatGetRoom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatGetRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatGetRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + peerId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.class, net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PEER_ID_FIELD_NUMBER = 2; private long peerId_; /** - * optional uint64 peer_id = 2; + * uint64 peer_id = 2; + * @return The peerId. */ + @java.lang.Override public long getPeerId() { return peerId_; } - /** - * optional uint64 peer_id = 2; - */ - private void setPeerId(long value) { - - peerId_ = value; - } - /** - * optional uint64 peer_id = 2; - */ - private void clearPeerId() { - - peerId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (peerId_ != 0L) { output.writeUInt64(2, peerId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,408 +208,705 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, peerId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatGetRoom.ChatGetRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatGetRoom.ChatGetRoom other = (net.iGap.proto.ProtoChatGetRoom.ChatGetRoom) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPeerId() + != other.getPeerId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PEER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPeerId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatGetRoom.ChatGetRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatGetRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatGetRoom.ChatGetRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatGetRoom) net.iGap.proto.ProtoChatGetRoom.ChatGetRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.class, net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + peerId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoom build() { + net.iGap.proto.ProtoChatGetRoom.ChatGetRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoom buildPartial() { + net.iGap.proto.ProtoChatGetRoom.ChatGetRoom result = new net.iGap.proto.ProtoChatGetRoom.ChatGetRoom(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.peerId_ = peerId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatGetRoom.ChatGetRoom) { + return mergeFrom((net.iGap.proto.ProtoChatGetRoom.ChatGetRoom)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoChatGetRoom.ChatGetRoom other) { + if (other == net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPeerId() != 0L) { + setPeerId(other.getPeerId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatGetRoom.ChatGetRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatGetRoom.ChatGetRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long peerId_ ; /** - * optional uint64 peer_id = 2; + * uint64 peer_id = 2; + * @return The peerId. */ + @java.lang.Override public long getPeerId() { - return instance.getPeerId(); + return peerId_; } /** - * optional uint64 peer_id = 2; + * uint64 peer_id = 2; + * @param value The peerId to set. + * @return This builder for chaining. */ public Builder setPeerId(long value) { - copyOnWrite(); - instance.setPeerId(value); + + peerId_ = value; + onChanged(); return this; } /** - * optional uint64 peer_id = 2; + * uint64 peer_id = 2; + * @return This builder for chaining. */ public Builder clearPeerId() { - copyOnWrite(); - instance.clearPeerId(); + + peerId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatGetRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatGetRoom.ChatGetRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatGetRoom.ChatGetRoom other = (net.iGap.proto.ProtoChatGetRoom.ChatGetRoom) arg1; - request_ = visitor.visitMessage(request_, other.request_); - peerId_ = visitor.visitLong(peerId_ != 0L, peerId_, - other.peerId_ != 0L, other.peerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - peerId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatGetRoom.ChatGetRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatGetRoom) + } + // @@protoc_insertion_point(class_scope:proto.ChatGetRoom) private static final net.iGap.proto.ProtoChatGetRoom.ChatGetRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatGetRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatGetRoom.ChatGetRoom(); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatGetRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatGetRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChatGetRoomResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatGetRoomResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * .proto.Room room = 2; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ChatGetRoomResponse} */ - public static final class ChatGetRoomResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatGetRoomResponse, ChatGetRoomResponse.Builder> implements + public static final class ChatGetRoomResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatGetRoomResponse) ChatGetRoomResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatGetRoomResponse.newBuilder() to construct. + private ChatGetRoomResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatGetRoomResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatGetRoomResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatGetRoomResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.class, net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Room room_; /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } /** - * optional .proto.Room room = 2; - */ - private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.Room room = 2; - */ - private void setRoom( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - room_ = builderForValue.build(); - - } - /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.Room room = 2; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -544,10 +915,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(2, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -559,303 +932,653 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse other = (net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatGetRoomResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatGetRoomResponse) net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.class, net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatGetRoom.internal_static_proto_ChatGetRoomResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse build() { + net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse buildPartial() { + net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse result = new net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse) { + return mergeFrom((net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse other) { + if (other == net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ public net.iGap.proto.ProtoGlobal.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatGetRoomResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse other = (net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Room room = 2; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.Room room = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Room room = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } + return roomBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatGetRoomResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatGetRoomResponse) private static final net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatGetRoomResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse(); } public static net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatGetRoomResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatGetRoomResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChatGetRoom.ChatGetRoomResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatGetRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatGetRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatGetRoomResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatGetRoomResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021ChatGetRoom.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\032\014Global.proto\"?\n\013ChatG" + + "etRoom\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\017\n\007peer_id\030\002 \001(\004\"S\n\023ChatGetRoomResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\022\031\n\004ro" + + "om\030\002 \001(\0132\013.proto.RoomB\"\n\016net.iGap.protoB" + + "\020ProtoChatGetRoomb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatGetRoom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatGetRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatGetRoom_descriptor, + new java.lang.String[] { "Request", "PeerId", }); + internal_static_proto_ChatGetRoomResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatGetRoomResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatGetRoomResponse_descriptor, + new java.lang.String[] { "Response", "Room", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatSendMessage.java b/src/main/java/net/iGap/proto/ProtoChatSendMessage.java index d99db84..d93232d 100644 --- a/src/main/java/net/iGap/proto/ProtoChatSendMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChatSendMessage.java @@ -8,140 +8,206 @@ private ProtoChatSendMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatSendMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatSendMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ int getMessageTypeValue(); /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); /** - * optional string message = 4; + * string message = 4; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ java.lang.String getAttachment(); /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ com.google.protobuf.ByteString getAttachmentBytes(); /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ boolean hasLocation(); /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation(); + /** + * .proto.RoomMessageLocation location = 6; + */ + net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder(); /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ boolean hasContact(); /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ net.iGap.proto.ProtoGlobal.RoomMessageContact getContact(); + /** + * .proto.RoomMessageContact contact = 7; + */ + net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder(); /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ long getReplyTo(); /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ boolean hasForwardFrom(); /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom(); + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder(); /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ long getRandomId(); /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ int getAdditionalType(); /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ java.lang.String getAdditionalData(); /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ com.google.protobuf.ByteString getAdditionalDataBytes(); /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return Whether the storyReply field is set. */ boolean hasStoryReply(); /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return The storyReply. */ net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getStoryReply(); + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder getStoryReplyOrBuilder(); /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return Whether the storyForward field is set. */ boolean hasStoryForward(); /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return The storyForward. */ net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getStoryForward(); + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder(); /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; + * @return Whether the sticker field is set. */ boolean hasSticker(); /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; + * @return The sticker. */ net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * .proto.RoomMessageSticker sticker = 15; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; + * @return Whether the cardToCard field is set. */ boolean hasCardToCard(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; + * @return The cardToCard. */ net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * .proto.RoomMessageCardToCard card_to_card = 16; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; @@ -156,727 +222,686 @@ public interface ChatSendMessageOrBuilder extends * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 18; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChatSendMessage} */ - public static final class ChatSendMessage extends - com.google.protobuf.GeneratedMessageLite< - ChatSendMessage, ChatSendMessage.Builder> implements + public static final class ChatSendMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatSendMessage) ChatSendMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatSendMessage.newBuilder() to construct. + private ChatSendMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatSendMessage() { + messageType_ = 0; message_ = ""; attachment_ = ""; additionalData_ = ""; - botActionLists_ = emptyProtobufList(); + botActionLists_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatSendMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatSendMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + messageType_ = rawValue; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + attachment_ = s; + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); + } + contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); + } + + break; + } + case 64: { + + replyTo_ = input.readUInt64(); + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder subBuilder = null; + if (forwardFrom_ != null) { + subBuilder = forwardFrom_.toBuilder(); + } + forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(forwardFrom_); + forwardFrom_ = subBuilder.buildPartial(); + } + + break; + } + case 80: { + + randomId_ = input.readUInt64(); + break; + } + case 88: { + + additionalType_ = input.readUInt32(); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + additionalData_ = s; + break; + } + case 106: { + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder subBuilder = null; + if (storyReply_ != null) { + subBuilder = storyReply_.toBuilder(); + } + storyReply_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storyReply_); + storyReply_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder subBuilder = null; + if (storyForward_ != null) { + subBuilder = storyForward_.toBuilder(); + } + storyForward_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storyForward_); + storyForward_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 146: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - private int bitField0_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.class, net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int MESSAGE_TYPE_FIELD_NUMBER = 2; private int messageType_; /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { + @java.lang.Override public int getMessageTypeValue() { return messageType_; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.forNumber(messageType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void setMessageTypeValue(int value) { - messageType_ = value; - } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - - messageType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void clearMessageType() { - - messageType_ = 0; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 4; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 4; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 4; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 4; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ATTACHMENT_FIELD_NUMBER = 5; - private java.lang.String attachment_; + private volatile java.lang.Object attachment_; /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ + @java.lang.Override public java.lang.String getAttachment() { - return attachment_; + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(attachment_); - } - /** - * optional string attachment = 5; - */ - private void setAttachment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attachment_ = value; - } - /** - * optional string attachment = 5; - */ - private void clearAttachment() { - - attachment_ = getDefaultInstance().getAttachment(); - } - /** - * optional string attachment = 5; - */ - private void setAttachmentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attachment_ = value.toStringUtf8(); + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LOCATION_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ + @java.lang.Override public boolean hasLocation() { return location_ != null; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; } /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (value == null) { - throw new NullPointerException(); - } - location_ = value; - - } - /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ - private void setLocation( - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - location_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (location_ != null && - location_ != net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance()) { - location_ = - net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); - } else { - location_ = value; - } - - } - /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void clearLocation() { location_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + return getLocation(); } public static final int CONTACT_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ + @java.lang.Override public boolean hasContact() { return contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; } /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (value == null) { - throw new NullPointerException(); - } - contact_ = value; - - } - /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ - private void setContact( - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - contact_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (contact_ != null && - contact_ != net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance()) { - contact_ = - net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); - } else { - contact_ = value; - } - - } - /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void clearContact() { contact_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + return getContact(); } public static final int REPLY_TO_FIELD_NUMBER = 8; private long replyTo_; /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { return replyTo_; } - /** - * optional uint64 reply_to = 8; - */ - private void setReplyTo(long value) { - - replyTo_ = value; - } - /** - * optional uint64 reply_to = 8; - */ - private void clearReplyTo() { - - replyTo_ = 0L; - } public static final int FORWARD_FROM_FIELD_NUMBER = 9; private net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom forwardFrom_; /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ + @java.lang.Override public boolean hasForwardFrom() { return forwardFrom_ != null; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom() { return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - if (value == null) { - throw new NullPointerException(); - } - forwardFrom_ = value; - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void setForwardFrom( - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder builderForValue) { - forwardFrom_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ - private void mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - if (forwardFrom_ != null && - forwardFrom_ != net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance()) { - forwardFrom_ = - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); - } else { - forwardFrom_ = value; - } - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void clearForwardFrom() { forwardFrom_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder() { + return getForwardFrom(); } public static final int RANDOM_ID_FIELD_NUMBER = 10; private long randomId_; /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { return randomId_; } - /** - * optional uint64 random_id = 10; - */ - private void setRandomId(long value) { - - randomId_ = value; - } - /** - * optional uint64 random_id = 10; - */ - private void clearRandomId() { - - randomId_ = 0L; - } public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 11; private int additionalType_; /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { return additionalType_; } - /** - * optional uint32 additional_type = 11; - */ - private void setAdditionalType(int value) { - - additionalType_ = value; - } - /** - * optional uint32 additional_type = 11; - */ - private void clearAdditionalType() { - - additionalType_ = 0; - } public static final int ADDITIONAL_DATA_FIELD_NUMBER = 12; - private java.lang.String additionalData_; + private volatile java.lang.Object additionalData_; /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ + @java.lang.Override public java.lang.String getAdditionalData() { - return additionalData_; + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ + @java.lang.Override public com.google.protobuf.ByteString getAdditionalDataBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(additionalData_); - } - /** - * optional string additional_data = 12; - */ - private void setAdditionalData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - additionalData_ = value; - } - /** - * optional string additional_data = 12; - */ - private void clearAdditionalData() { - - additionalData_ = getDefaultInstance().getAdditionalData(); - } - /** - * optional string additional_data = 12; - */ - private void setAdditionalDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - additionalData_ = value.toStringUtf8(); + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STORY_REPLY_FIELD_NUMBER = 13; private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_; /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return Whether the storyReply field is set. */ + @java.lang.Override public boolean hasStoryReply() { return storyReply_ != null; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return The storyReply. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getStoryReply() { return storyReply_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance() : storyReply_; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; - */ - private void setStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - if (value == null) { - throw new NullPointerException(); - } - storyReply_ = value; - - } - /** - * optional .proto.RoomMessageStoryReply story_reply = 13; - */ - private void setStoryReply( - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder builderForValue) { - storyReply_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageStoryReply story_reply = 13; - */ - private void mergeStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - if (storyReply_ != null && - storyReply_ != net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance()) { - storyReply_ = - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.newBuilder(storyReply_).mergeFrom(value).buildPartial(); - } else { - storyReply_ = value; - } - - } - /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ - private void clearStoryReply() { storyReply_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder getStoryReplyOrBuilder() { + return getStoryReply(); } public static final int STORY_FORWARD_FIELD_NUMBER = 14; private net.iGap.proto.ProtoGlobal.RoomMessageStoryForward storyForward_; /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return Whether the storyForward field is set. */ + @java.lang.Override public boolean hasStoryForward() { return storyForward_ != null; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return The storyForward. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getStoryForward() { return storyForward_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance() : storyForward_; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; - */ - private void setStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - if (value == null) { - throw new NullPointerException(); - } - storyForward_ = value; - - } - /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ - private void setStoryForward( - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder builderForValue) { - storyForward_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageStoryForward story_forward = 14; - */ - private void mergeStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - if (storyForward_ != null && - storyForward_ != net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance()) { - storyForward_ = - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.newBuilder(storyForward_).mergeFrom(value).buildPartial(); - } else { - storyForward_ = value; - } - - } - /** - * optional .proto.RoomMessageStoryForward story_forward = 14; - */ - private void clearStoryForward() { storyForward_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder() { + return getStoryForward(); } public static final int STICKER_FIELD_NUMBER = 15; private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; + * @return Whether the sticker field is set. */ + @java.lang.Override public boolean hasSticker() { return sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; + * @return The sticker. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; } /** - * optional .proto.RoomMessageSticker sticker = 15; - */ - private void setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (value == null) { - throw new NullPointerException(); - } - sticker_ = value; - - } - /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; */ - private void setSticker( - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - sticker_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageSticker sticker = 15; - */ - private void mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (sticker_ != null && - sticker_ != net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance()) { - sticker_ = - net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); - } else { - sticker_ = value; - } - - } - /** - * optional .proto.RoomMessageSticker sticker = 15; - */ - private void clearSticker() { sticker_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); } public static final int CARD_TO_CARD_FIELD_NUMBER = 16; private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; + * @return Whether the cardToCard field is set. */ + @java.lang.Override public boolean hasCardToCard() { return cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; + * @return The cardToCard. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; */ - private void setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (value == null) { - throw new NullPointerException(); - } - cardToCard_ = value; - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; - */ - private void setCardToCard( - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - cardToCard_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; - */ - private void mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (cardToCard_ != null && - cardToCard_ != net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance()) { - cardToCard_ = - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); - } else { - cardToCard_ = value; - } - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; - */ - private void clearCardToCard() { cardToCard_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); } public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 17; - private com.google.protobuf.Internal.ProtobufList botActionLists_; + private java.util.List botActionLists_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ + @java.lang.Override public java.util.List getBotActionListsList() { return botActionLists_; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ + @java.lang.Override public java.util.List getBotActionListsOrBuilderList() { return botActionLists_; @@ -884,160 +909,64 @@ public java.util.List getBo /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ + @java.lang.Override public int getBotActionListsCount() { return botActionLists_.size(); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { return botActionLists_.get(index); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( int index) { return botActionLists_.get(index); } - private void ensureBotActionListsIsMutable() { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - } - - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.set(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void addBotActionLists( - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void addAllBotActionLists( - java.lang.Iterable values) { - ensureBotActionListsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, botActionLists_); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void clearBotActionLists() { - botActionLists_ = emptyProtobufList(); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; - */ - private void removeBotActionLists(int index) { - ensureBotActionListsIsMutable(); - botActionLists_.remove(index); - } public static final int TEXT_SIGNS_FIELD_NUMBER = 18; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 18; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 18; - */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - - } - /** - * optional .proto.TextSigns text_signs = 18; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -1049,11 +978,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } - if (!message_.isEmpty()) { - output.writeString(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } - if (!attachment_.isEmpty()) { - output.writeString(5, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, attachment_); } if (location_ != null) { output.writeMessage(6, getLocation()); @@ -1073,8 +1002,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (additionalType_ != 0) { output.writeUInt32(11, additionalType_); } - if (!additionalData_.isEmpty()) { - output.writeString(12, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, additionalData_); } if (storyReply_ != null) { output.writeMessage(13, getStoryReply()); @@ -1094,10 +1023,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(18, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1113,13 +1044,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } - if (!attachment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, attachment_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1145,9 +1074,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, additionalType_); } - if (!additionalData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(12, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, additionalData_); } if (storyReply_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1173,726 +1101,2025 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatSendMessage.ChatSendMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatSendMessage.ChatSendMessage other = (net.iGap.proto.ProtoChatSendMessage.ChatSendMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (messageType_ != other.messageType_) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getAttachment() + .equals(other.getAttachment())) return false; + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation() + .equals(other.getLocation())) return false; + } + if (hasContact() != other.hasContact()) return false; + if (hasContact()) { + if (!getContact() + .equals(other.getContact())) return false; + } + if (getReplyTo() + != other.getReplyTo()) return false; + if (hasForwardFrom() != other.hasForwardFrom()) return false; + if (hasForwardFrom()) { + if (!getForwardFrom() + .equals(other.getForwardFrom())) return false; + } + if (getRandomId() + != other.getRandomId()) return false; + if (getAdditionalType() + != other.getAdditionalType()) return false; + if (!getAdditionalData() + .equals(other.getAdditionalData())) return false; + if (hasStoryReply() != other.hasStoryReply()) return false; + if (hasStoryReply()) { + if (!getStoryReply() + .equals(other.getStoryReply())) return false; + } + if (hasStoryForward() != other.hasStoryForward()) return false; + if (hasStoryForward()) { + if (!getStoryForward() + .equals(other.getStoryForward())) return false; + } + if (hasSticker() != other.hasSticker()) return false; + if (hasSticker()) { + if (!getSticker() + .equals(other.getSticker())) return false; + } + if (hasCardToCard() != other.hasCardToCard()) return false; + if (hasCardToCard()) { + if (!getCardToCard() + .equals(other.getCardToCard())) return false; + } + if (!getBotActionListsList() + .equals(other.getBotActionListsList())) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + if (hasContact()) { + hash = (37 * hash) + CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getContact().hashCode(); + } + hash = (37 * hash) + REPLY_TO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReplyTo()); + if (hasForwardFrom()) { + hash = (37 * hash) + FORWARD_FROM_FIELD_NUMBER; + hash = (53 * hash) + getForwardFrom().hashCode(); + } + hash = (37 * hash) + RANDOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRandomId()); + hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalType(); + hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalData().hashCode(); + if (hasStoryReply()) { + hash = (37 * hash) + STORY_REPLY_FIELD_NUMBER; + hash = (53 * hash) + getStoryReply().hashCode(); + } + if (hasStoryForward()) { + hash = (37 * hash) + STORY_FORWARD_FIELD_NUMBER; + hash = (53 * hash) + getStoryForward().hashCode(); + } + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatSendMessage.ChatSendMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatSendMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatSendMessage.ChatSendMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatSendMessage) net.iGap.proto.ProtoChatSendMessage.ChatSendMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.class, net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + messageType_ = 0; + + roomId_ = 0L; + message_ = ""; + + attachment_ = ""; + + if (locationBuilder_ == null) { + location_ = null; + } else { + location_ = null; + locationBuilder_ = null; + } + if (contactBuilder_ == null) { + contact_ = null; + } else { + contact_ = null; + contactBuilder_ = null; + } + replyTo_ = 0L; + + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + randomId_ = 0L; + + additionalType_ = 0; + + additionalData_ = ""; + + if (storyReplyBuilder_ == null) { + storyReply_ = null; + } else { + storyReply_ = null; + storyReplyBuilder_ = null; + } + if (storyForwardBuilder_ == null) { + storyForward_ = null; + } else { + storyForward_ = null; + storyForwardBuilder_ = null; + } + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage build() { + net.iGap.proto.ProtoChatSendMessage.ChatSendMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage buildPartial() { + net.iGap.proto.ProtoChatSendMessage.ChatSendMessage result = new net.iGap.proto.ProtoChatSendMessage.ChatSendMessage(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.messageType_ = messageType_; + result.roomId_ = roomId_; + result.message_ = message_; + result.attachment_ = attachment_; + if (locationBuilder_ == null) { + result.location_ = location_; + } else { + result.location_ = locationBuilder_.build(); + } + if (contactBuilder_ == null) { + result.contact_ = contact_; + } else { + result.contact_ = contactBuilder_.build(); + } + result.replyTo_ = replyTo_; + if (forwardFromBuilder_ == null) { + result.forwardFrom_ = forwardFrom_; + } else { + result.forwardFrom_ = forwardFromBuilder_.build(); + } + result.randomId_ = randomId_; + result.additionalType_ = additionalType_; + result.additionalData_ = additionalData_; + if (storyReplyBuilder_ == null) { + result.storyReply_ = storyReply_; + } else { + result.storyReply_ = storyReplyBuilder_.build(); + } + if (storyForwardBuilder_ == null) { + result.storyForward_ = storyForward_; + } else { + result.storyForward_ = storyForwardBuilder_.build(); + } + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatSendMessage.ChatSendMessage) { + return mergeFrom((net.iGap.proto.ProtoChatSendMessage.ChatSendMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatSendMessage.ChatSendMessage other) { + if (other == net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.messageType_ != 0) { + setMessageTypeValue(other.getMessageTypeValue()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getAttachment().isEmpty()) { + attachment_ = other.attachment_; + onChanged(); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + if (other.hasContact()) { + mergeContact(other.getContact()); + } + if (other.getReplyTo() != 0L) { + setReplyTo(other.getReplyTo()); + } + if (other.hasForwardFrom()) { + mergeForwardFrom(other.getForwardFrom()); + } + if (other.getRandomId() != 0L) { + setRandomId(other.getRandomId()); + } + if (other.getAdditionalType() != 0) { + setAdditionalType(other.getAdditionalType()); + } + if (!other.getAdditionalData().isEmpty()) { + additionalData_ = other.additionalData_; + onChanged(); + } + if (other.hasStoryReply()) { + mergeStoryReply(other.getStoryReply()); + } + if (other.hasStoryForward()) { + mergeStoryForward(other.getStoryForward()); + } + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatSendMessage.ChatSendMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatSendMessage.ChatSendMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; */ - public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); - return this; + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; } + private int messageType_ = 0; /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { - return instance.getMessageTypeValue(); + @java.lang.Override public int getMessageTypeValue() { + return messageType_; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @param value The enum numeric value on the wire for messageType to set. + * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - copyOnWrite(); - instance.setMessageTypeValue(value); + + messageType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - return instance.getMessageType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + if (value == null) { + throw new NullPointerException(); + } + + messageType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return This builder for chaining. */ public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); + + messageType_ = 0; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private java.lang.Object attachment_ = ""; /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ public java.lang.String getAttachment() { - return instance.getAttachment(); + java.lang.Object ref = attachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ public com.google.protobuf.ByteString getAttachmentBytes() { - return instance.getAttachmentBytes(); + java.lang.Object ref = attachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @param value The attachment to set. + * @return This builder for chaining. */ public Builder setAttachment( java.lang.String value) { - copyOnWrite(); - instance.setAttachment(value); + if (value == null) { + throw new NullPointerException(); + } + + attachment_ = value; + onChanged(); return this; } /** - * optional string attachment = 5; + * string attachment = 5; + * @return This builder for chaining. */ public Builder clearAttachment() { - copyOnWrite(); - instance.clearAttachment(); + + attachment_ = getDefaultInstance().getAttachment(); + onChanged(); return this; } /** - * optional string attachment = 5; + * string attachment = 5; + * @param value The bytes for attachment to set. + * @return This builder for chaining. */ public Builder setAttachmentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAttachmentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachment_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> locationBuilder_; /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ public boolean hasLocation() { - return instance.hasLocation(); + return locationBuilder_ != null || location_ != null; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { - return instance.getLocation(); + if (locationBuilder_ == null) { + return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.setLocation(value); - return this; + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder setLocation( net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - copyOnWrite(); - instance.setLocation(builderForValue); + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.mergeLocation(value); + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ - public Builder clearLocation() { copyOnWrite(); - instance.clearLocation(); + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageLocation location = 6; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageLocation location = 6; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } + } + /** + * .proto.RoomMessageLocation location = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> contactBuilder_; /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ public boolean hasContact() { - return instance.hasContact(); + return contactBuilder_ != null || contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { - return instance.getContact(); + if (contactBuilder_ == null) { + return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } else { + return contactBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.setContact(value); - return this; + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contact_ = value; + onChanged(); + } else { + contactBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder setContact( net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - copyOnWrite(); - instance.setContact(builderForValue); + if (contactBuilder_ == null) { + contact_ = builderForValue.build(); + onChanged(); + } else { + contactBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.mergeContact(value); + if (contactBuilder_ == null) { + if (contact_ != null) { + contact_ = + net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); + } else { + contact_ = value; + } + onChanged(); + } else { + contactBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ - public Builder clearContact() { copyOnWrite(); - instance.clearContact(); + public Builder clearContact() { + if (contactBuilder_ == null) { + contact_ = null; + onChanged(); + } else { + contact_ = null; + contactBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageContact contact = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder getContactBuilder() { + + onChanged(); + return getContactFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageContact contact = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + if (contactBuilder_ != null) { + return contactBuilder_.getMessageOrBuilder(); + } else { + return contact_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } + } + /** + * .proto.RoomMessageContact contact = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> + getContactFieldBuilder() { + if (contactBuilder_ == null) { + contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder>( + getContact(), + getParentForChildren(), + isClean()); + contact_ = null; + } + return contactBuilder_; + } + private long replyTo_ ; /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { - return instance.getReplyTo(); + return replyTo_; } /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @param value The replyTo to set. + * @return This builder for chaining. */ public Builder setReplyTo(long value) { - copyOnWrite(); - instance.setReplyTo(value); + + replyTo_ = value; + onChanged(); return this; } /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return This builder for chaining. */ public Builder clearReplyTo() { - copyOnWrite(); - instance.clearReplyTo(); + + replyTo_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom forwardFrom_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder> forwardFromBuilder_; /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ public boolean hasForwardFrom() { - return instance.hasForwardFrom(); + return forwardFromBuilder_ != null || forwardFrom_ != null; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom() { - return instance.getForwardFrom(); + if (forwardFromBuilder_ == null) { + return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; + } else { + return forwardFromBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - copyOnWrite(); - instance.setForwardFrom(value); - return this; + if (forwardFromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forwardFrom_ = value; + onChanged(); + } else { + forwardFromBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder setForwardFrom( net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder builderForValue) { - copyOnWrite(); - instance.setForwardFrom(builderForValue); + if (forwardFromBuilder_ == null) { + forwardFrom_ = builderForValue.build(); + onChanged(); + } else { + forwardFromBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - copyOnWrite(); - instance.mergeForwardFrom(value); + if (forwardFromBuilder_ == null) { + if (forwardFrom_ != null) { + forwardFrom_ = + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); + } else { + forwardFrom_ = value; + } + onChanged(); + } else { + forwardFromBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ - public Builder clearForwardFrom() { copyOnWrite(); - instance.clearForwardFrom(); + public Builder clearForwardFrom() { + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + onChanged(); + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder getForwardFromBuilder() { + + onChanged(); + return getForwardFromFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder() { + if (forwardFromBuilder_ != null) { + return forwardFromBuilder_.getMessageOrBuilder(); + } else { + return forwardFrom_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; + } + } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder> + getForwardFromFieldBuilder() { + if (forwardFromBuilder_ == null) { + forwardFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder>( + getForwardFrom(), + getParentForChildren(), + isClean()); + forwardFrom_ = null; + } + return forwardFromBuilder_; + } + private long randomId_ ; /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { - return instance.getRandomId(); + return randomId_; } /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @param value The randomId to set. + * @return This builder for chaining. */ public Builder setRandomId(long value) { - copyOnWrite(); - instance.setRandomId(value); + + randomId_ = value; + onChanged(); return this; } /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return This builder for chaining. */ public Builder clearRandomId() { - copyOnWrite(); - instance.clearRandomId(); + + randomId_ = 0L; + onChanged(); return this; } + private int additionalType_ ; /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { - return instance.getAdditionalType(); + return additionalType_; } /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @param value The additionalType to set. + * @return This builder for chaining. */ public Builder setAdditionalType(int value) { - copyOnWrite(); - instance.setAdditionalType(value); + + additionalType_ = value; + onChanged(); return this; } /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return This builder for chaining. */ public Builder clearAdditionalType() { - copyOnWrite(); - instance.clearAdditionalType(); + + additionalType_ = 0; + onChanged(); return this; } + private java.lang.Object additionalData_ = ""; /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ public java.lang.String getAdditionalData() { - return instance.getAdditionalData(); + java.lang.Object ref = additionalData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ public com.google.protobuf.ByteString getAdditionalDataBytes() { - return instance.getAdditionalDataBytes(); + java.lang.Object ref = additionalData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @param value The additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalData( java.lang.String value) { - copyOnWrite(); - instance.setAdditionalData(value); + if (value == null) { + throw new NullPointerException(); + } + + additionalData_ = value; + onChanged(); return this; } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return This builder for chaining. */ public Builder clearAdditionalData() { - copyOnWrite(); - instance.clearAdditionalData(); + + additionalData_ = getDefaultInstance().getAdditionalData(); + onChanged(); return this; } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @param value The bytes for additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalDataBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAdditionalDataBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + additionalData_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder> storyReplyBuilder_; /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return Whether the storyReply field is set. */ public boolean hasStoryReply() { - return instance.hasStoryReply(); + return storyReplyBuilder_ != null || storyReply_ != null; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return The storyReply. */ public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getStoryReply() { - return instance.getStoryReply(); + if (storyReplyBuilder_ == null) { + return storyReply_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance() : storyReply_; + } else { + return storyReplyBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ public Builder setStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - copyOnWrite(); - instance.setStoryReply(value); - return this; + if (storyReplyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storyReply_ = value; + onChanged(); + } else { + storyReplyBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ public Builder setStoryReply( net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder builderForValue) { - copyOnWrite(); - instance.setStoryReply(builderForValue); + if (storyReplyBuilder_ == null) { + storyReply_ = builderForValue.build(); + onChanged(); + } else { + storyReplyBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ public Builder mergeStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - copyOnWrite(); - instance.mergeStoryReply(value); + if (storyReplyBuilder_ == null) { + if (storyReply_ != null) { + storyReply_ = + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.newBuilder(storyReply_).mergeFrom(value).buildPartial(); + } else { + storyReply_ = value; + } + onChanged(); + } else { + storyReplyBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ - public Builder clearStoryReply() { copyOnWrite(); - instance.clearStoryReply(); + public Builder clearStoryReply() { + if (storyReplyBuilder_ == null) { + storyReply_ = null; + onChanged(); + } else { + storyReply_ = null; + storyReplyBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder getStoryReplyBuilder() { + + onChanged(); + return getStoryReplyFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder getStoryReplyOrBuilder() { + if (storyReplyBuilder_ != null) { + return storyReplyBuilder_.getMessageOrBuilder(); + } else { + return storyReply_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance() : storyReply_; + } + } + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder> + getStoryReplyFieldBuilder() { + if (storyReplyBuilder_ == null) { + storyReplyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder>( + getStoryReply(), + getParentForChildren(), + isClean()); + storyReply_ = null; + } + return storyReplyBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageStoryForward storyForward_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder> storyForwardBuilder_; /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return Whether the storyForward field is set. */ public boolean hasStoryForward() { - return instance.hasStoryForward(); + return storyForwardBuilder_ != null || storyForward_ != null; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return The storyForward. */ public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getStoryForward() { - return instance.getStoryForward(); + if (storyForwardBuilder_ == null) { + return storyForward_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance() : storyForward_; + } else { + return storyForwardBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ public Builder setStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - copyOnWrite(); - instance.setStoryForward(value); - return this; + if (storyForwardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storyForward_ = value; + onChanged(); + } else { + storyForwardBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ public Builder setStoryForward( net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder builderForValue) { - copyOnWrite(); - instance.setStoryForward(builderForValue); + if (storyForwardBuilder_ == null) { + storyForward_ = builderForValue.build(); + onChanged(); + } else { + storyForwardBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ public Builder mergeStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - copyOnWrite(); - instance.mergeStoryForward(value); + if (storyForwardBuilder_ == null) { + if (storyForward_ != null) { + storyForward_ = + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.newBuilder(storyForward_).mergeFrom(value).buildPartial(); + } else { + storyForward_ = value; + } + onChanged(); + } else { + storyForwardBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ - public Builder clearStoryForward() { copyOnWrite(); - instance.clearStoryForward(); + public Builder clearStoryForward() { + if (storyForwardBuilder_ == null) { + storyForward_ = null; + onChanged(); + } else { + storyForward_ = null; + storyForwardBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder getStoryForwardBuilder() { + + onChanged(); + return getStoryForwardFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder() { + if (storyForwardBuilder_ != null) { + return storyForwardBuilder_.getMessageOrBuilder(); + } else { + return storyForward_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance() : storyForward_; + } + } + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder> + getStoryForwardFieldBuilder() { + if (storyForwardBuilder_ == null) { + storyForwardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder>( + getStoryForward(), + getParentForChildren(), + isClean()); + storyForward_ = null; + } + return storyForwardBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; + * @return Whether the sticker field is set. */ public boolean hasSticker() { - return instance.hasSticker(); + return stickerBuilder_ != null || sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; + * @return The sticker. */ public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { - return instance.getSticker(); + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; */ public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.setSticker(value); - return this; + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; */ public Builder setSticker( net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - copyOnWrite(); - instance.setSticker(builderForValue); + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; */ public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.mergeSticker(value); + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 15; + * .proto.RoomMessageSticker sticker = 15; */ - public Builder clearSticker() { copyOnWrite(); - instance.clearSticker(); + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageSticker sticker = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { + + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageSticker sticker = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * .proto.RoomMessageSticker sticker = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; + * @return Whether the cardToCard field is set. */ public boolean hasCardToCard() { - return instance.hasCardToCard(); + return cardToCardBuilder_ != null || cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; + * @return The cardToCard. */ public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { - return instance.getCardToCard(); + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; */ public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.setCardToCard(value); - return this; + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; */ public Builder setCardToCard( net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - copyOnWrite(); - instance.setCardToCard(builderForValue); + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; */ public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.mergeCardToCard(value); + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 16; + * .proto.RoomMessageCardToCard card_to_card = 16; */ - public Builder clearCardToCard() { copyOnWrite(); - instance.clearCardToCard(); + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageCardToCard card_to_card = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { + + onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageCardToCard card_to_card = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * .proto.RoomMessageCardToCard card_to_card = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ public java.util.List getBotActionListsList() { - return java.util.Collections.unmodifiableList( - instance.getBotActionListsList()); + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ public int getBotActionListsCount() { - return instance.getBotActionListsCount(); - }/** + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { - return instance.getBotActionLists(index); + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.setBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } return this; } /** @@ -1900,16 +3127,29 @@ public Builder setBotActionLists( */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.setBotActionLists(index, builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } return this; } /** @@ -1917,551 +3157,546 @@ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotAction */ public Builder addBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addBotActionLists( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addAllBotActionLists( + java.lang.Iterable values) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder clearBotActionLists() { + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder removeBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ - public Builder addBotActionLists( - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(builderForValue); - return this; + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ - public Builder addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(index, builderForValue); - return this; + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ - public Builder addAllBotActionLists( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllBotActionLists(values); - return this; + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ - public Builder clearBotActionLists() { - copyOnWrite(); - instance.clearBotActionLists(); - return this; + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; */ - public Builder removeBotActionLists(int index) { - copyOnWrite(); - instance.removeBotActionLists(index); - return this; + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 18; + * .proto.TextSigns text_signs = 18; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatSendMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatSendMessage.ChatSendMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - botActionLists_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatSendMessage.ChatSendMessage other = (net.iGap.proto.ProtoChatSendMessage.ChatSendMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - messageType_ = visitor.visitInt(messageType_ != 0, messageType_, other.messageType_ != 0, other.messageType_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - attachment_ = visitor.visitString(!attachment_.isEmpty(), attachment_, - !other.attachment_.isEmpty(), other.attachment_); - location_ = visitor.visitMessage(location_, other.location_); - contact_ = visitor.visitMessage(contact_, other.contact_); - replyTo_ = visitor.visitLong(replyTo_ != 0L, replyTo_, - other.replyTo_ != 0L, other.replyTo_); - forwardFrom_ = visitor.visitMessage(forwardFrom_, other.forwardFrom_); - randomId_ = visitor.visitLong(randomId_ != 0L, randomId_, - other.randomId_ != 0L, other.randomId_); - additionalType_ = visitor.visitInt(additionalType_ != 0, additionalType_, - other.additionalType_ != 0, other.additionalType_); - additionalData_ = visitor.visitString(!additionalData_.isEmpty(), additionalData_, - !other.additionalData_.isEmpty(), other.additionalData_); - storyReply_ = visitor.visitMessage(storyReply_, other.storyReply_); - storyForward_ = visitor.visitMessage(storyForward_, other.storyForward_); - sticker_ = visitor.visitMessage(sticker_, other.sticker_); - cardToCard_ = visitor.visitMessage(cardToCard_, other.cardToCard_); - botActionLists_= visitor.visitList(botActionLists_, other.botActionLists_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - attachment_ = s; - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; - if (location_ != null) { - subBuilder = location_.toBuilder(); - } - location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(location_); - location_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); - } - contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - replyTo_ = input.readUInt64(); - break; - } - case 74: { - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder subBuilder = null; - if (forwardFrom_ != null) { - subBuilder = forwardFrom_.toBuilder(); - } - forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(forwardFrom_); - forwardFrom_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - - randomId_ = input.readUInt64(); - break; - } - case 88: { - - additionalType_ = input.readUInt32(); - break; - } - case 98: { - String s = input.readStringRequireUtf8(); - - additionalData_ = s; - break; - } - case 106: { - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder subBuilder = null; - if (storyReply_ != null) { - subBuilder = storyReply_.toBuilder(); - } - storyReply_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storyReply_); - storyReply_ = subBuilder.buildPartial(); - } - - break; - } - case 114: { - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder subBuilder = null; - if (storyForward_ != null) { - subBuilder = storyForward_.toBuilder(); - } - storyForward_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storyForward_); - storyForward_ = subBuilder.buildPartial(); - } - - break; - } - case 122: { - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; - if (sticker_ != null) { - subBuilder = sticker_.toBuilder(); - } - sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sticker_); - sticker_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; - if (cardToCard_ != null) { - subBuilder = cardToCard_.toBuilder(); - } - cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cardToCard_); - cardToCard_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - botActionLists_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); - break; - } - case 146: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 18; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 18; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ChatSendMessage) + } // @@protoc_insertion_point(class_scope:proto.ChatSendMessage) private static final net.iGap.proto.ProtoChatSendMessage.ChatSendMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatSendMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatSendMessage.ChatSendMessage(); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatSendMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatSendMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChatSendMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatSendMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ boolean hasRoomMessage(); /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage(); + /** + * .proto.RoomMessage room_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder(); } /** * Protobuf type {@code proto.ChatSendMessageResponse} */ - public static final class ChatSendMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatSendMessageResponse, ChatSendMessageResponse.Builder> implements + public static final class ChatSendMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatSendMessageResponse) ChatSendMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatSendMessageResponse.newBuilder() to construct. + private ChatSendMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatSendMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatSendMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatSendMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (roomMessage_ != null) { + subBuilder = roomMessage_.toBuilder(); + } + roomMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(roomMessage_); + roomMessage_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.class, net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ROOM_MESSAGE_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessage roomMessage_; /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ + @java.lang.Override public boolean hasRoomMessage() { return roomMessage_ != null; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage() { return roomMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; } /** - * optional .proto.RoomMessage room_message = 3; - */ - private void setRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - roomMessage_ = value; - - } - /** - * optional .proto.RoomMessage room_message = 3; - */ - private void setRoomMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - roomMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ - private void mergeRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (roomMessage_ != null && - roomMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - roomMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(roomMessage_).mergeFrom(value).buildPartial(); - } else { - roomMessage_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder() { + return getRoomMessage(); } - /** - * optional .proto.RoomMessage room_message = 3; - */ - private void clearRoomMessage() { roomMessage_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -2473,10 +3708,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomMessage_ != null) { output.writeMessage(3, getRoomMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2492,333 +3729,712 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRoomMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse other = (net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasRoomMessage() != other.hasRoomMessage()) return false; + if (hasRoomMessage()) { + if (!getRoomMessage() + .equals(other.getRoomMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasRoomMessage()) { + hash = (37 * hash) + ROOM_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getRoomMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatSendMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatSendMessageResponse) net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.class, net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (roomMessageBuilder_ == null) { + roomMessage_ = null; + } else { + roomMessage_ = null; + roomMessageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatSendMessage.internal_static_proto_ChatSendMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse build() { + net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse buildPartial() { + net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse result = new net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (roomMessageBuilder_ == null) { + result.roomMessage_ = roomMessage_; + } else { + result.roomMessage_ = roomMessageBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse other) { + if (other == net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasRoomMessage()) { + mergeRoomMessage(other.getRoomMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage roomMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> roomMessageBuilder_; /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ public boolean hasRoomMessage() { - return instance.hasRoomMessage(); + return roomMessageBuilder_ != null || roomMessage_ != null; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage() { - return instance.getRoomMessage(); + if (roomMessageBuilder_ == null) { + return roomMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; + } else { + return roomMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder setRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setRoomMessage(value); - return this; + if (roomMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + roomMessage_ = value; + onChanged(); + } else { + roomMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder setRoomMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setRoomMessage(builderForValue); + if (roomMessageBuilder_ == null) { + roomMessage_ = builderForValue.build(); + onChanged(); + } else { + roomMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder mergeRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeRoomMessage(value); + if (roomMessageBuilder_ == null) { + if (roomMessage_ != null) { + roomMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(roomMessage_).mergeFrom(value).buildPartial(); + } else { + roomMessage_ = value; + } + onChanged(); + } else { + roomMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ - public Builder clearRoomMessage() { copyOnWrite(); - instance.clearRoomMessage(); + public Builder clearRoomMessage() { + if (roomMessageBuilder_ == null) { + roomMessage_ = null; + onChanged(); + } else { + roomMessage_ = null; + roomMessageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatSendMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse other = (net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - roomMessage_ = visitor.visitMessage(roomMessage_, other.roomMessage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (roomMessage_ != null) { - subBuilder = roomMessage_.toBuilder(); - } - roomMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roomMessage_); - roomMessage_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage room_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getRoomMessageBuilder() { + + onChanged(); + return getRoomMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage room_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder() { + if (roomMessageBuilder_ != null) { + return roomMessageBuilder_.getMessageOrBuilder(); + } else { + return roomMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage room_message = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getRoomMessageFieldBuilder() { + if (roomMessageBuilder_ == null) { + roomMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getRoomMessage(), + getParentForChildren(), + isClean()); + roomMessage_ = null; } + return roomMessageBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChatSendMessageResponse) + } // @@protoc_insertion_point(class_scope:proto.ChatSendMessageResponse) private static final net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatSendMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse(); } public static net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatSendMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatSendMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatSendMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatSendMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatSendMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatSendMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025ChatSendMessage.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"\247\005\n\017" + + "ChatSendMessage\022\037\n\007request\030\001 \001(\0132\016.proto" + + ".Request\022,\n\014message_type\030\002 \001(\0162\026.proto.R" + + "oomMessageType\022\017\n\007room_id\030\003 \001(\004\022\017\n\007messa" + + "ge\030\004 \001(\t\022\022\n\nattachment\030\005 \001(\t\022,\n\010location" + + "\030\006 \001(\0132\032.proto.RoomMessageLocation\022*\n\007co" + + "ntact\030\007 \001(\0132\031.proto.RoomMessageContact\022\020" + + "\n\010reply_to\030\010 \001(\004\0223\n\014forward_from\030\t \001(\0132\035" + + ".proto.RoomMessageForwardFrom\022\021\n\trandom_" + + "id\030\n \001(\004\022\027\n\017additional_type\030\013 \001(\r\022\027\n\017add" + + "itional_data\030\014 \001(\t\0221\n\013story_reply\030\r \001(\0132" + + "\034.proto.RoomMessageStoryReply\0225\n\rstory_f" + + "orward\030\016 \001(\0132\036.proto.RoomMessageStoryFor" + + "ward\022*\n\007sticker\030\017 \001(\0132\031.proto.RoomMessag" + + "eSticker\0222\n\014card_to_card\030\020 \001(\0132\034.proto.R" + + "oomMessageCardToCard\0229\n\020bot_action_lists" + + "\030\021 \003(\0132\037.proto.RoomMessageBotActionList\022" + + "$\n\ntext_signs\030\022 \001(\0132\020.proto.TextSigns\"w\n" + + "\027ChatSendMessageResponse\022!\n\010response\030\001 \001" + + "(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022(\n\014" + + "room_message\030\003 \001(\0132\022.proto.RoomMessageB&" + + "\n\016net.iGap.protoB\024ProtoChatSendMessageb\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatSendMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatSendMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatSendMessage_descriptor, + new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "AdditionalType", "AdditionalData", "StoryReply", "StoryForward", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); + internal_static_proto_ChatSendMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatSendMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatSendMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "RoomMessage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatSetAction.java b/src/main/java/net/iGap/proto/ProtoChatSetAction.java index 919c1bf..4abf47b 100644 --- a/src/main/java/net/iGap/proto/ProtoChatSetAction.java +++ b/src/main/java/net/iGap/proto/ProtoChatSetAction.java @@ -8,185 +8,240 @@ private ProtoChatSetAction() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatSetActionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatSetAction) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ net.iGap.proto.ProtoGlobal.ClientAction getAction(); /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ int getActionId(); } /** * Protobuf type {@code proto.ChatSetAction} */ - public static final class ChatSetAction extends - com.google.protobuf.GeneratedMessageLite< - ChatSetAction, ChatSetAction.Builder> implements + public static final class ChatSetAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatSetAction) ChatSetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatSetAction.newBuilder() to construct. + private ChatSetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatSetAction() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatSetAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatSetAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 32: { + + actionId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSetAction.ChatSetAction.class, net.iGap.proto.ProtoChatSetAction.ChatSetAction.Builder.class); } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ACTION_FIELD_NUMBER = 3; private int action_; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ - public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.forNumber(action_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } - /** - * optional .proto.ClientAction action = 3; - */ - private void setActionValue(int value) { - action_ = value; - } - /** - * optional .proto.ClientAction action = 3; - */ - private void setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - } - /** - * optional .proto.ClientAction action = 3; - */ - private void clearAction() { - - action_ = 0; - } public static final int ACTION_ID_FIELD_NUMBER = 4; private int actionId_; /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ + @java.lang.Override public int getActionId() { return actionId_; } - /** - * optional uint32 action_id = 4; - */ - private void setActionId(int value) { - - actionId_ = value; - } - /** - * optional uint32 action_id = 4; - */ - private void clearActionId() { - - actionId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -201,10 +256,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (actionId_ != 0) { output.writeUInt32(4, actionId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -224,525 +281,836 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, actionId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatSetAction.ChatSetAction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatSetAction.ChatSetAction other = (net.iGap.proto.ProtoChatSetAction.ChatSetAction) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (action_ != other.action_) return false; + if (getActionId() + != other.getActionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getActionId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatSetAction.ChatSetAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatSetAction} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatSetAction.ChatSetAction, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatSetAction) net.iGap.proto.ProtoChatSetAction.ChatSetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSetAction.ChatSetAction.class, net.iGap.proto.ProtoChatSetAction.ChatSetAction.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatSetAction.ChatSetAction.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + action_ = 0; + + actionId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetAction_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetAction getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatSetAction.ChatSetAction.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetAction build() { + net.iGap.proto.ProtoChatSetAction.ChatSetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetAction buildPartial() { + net.iGap.proto.ProtoChatSetAction.ChatSetAction result = new net.iGap.proto.ProtoChatSetAction.ChatSetAction(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.action_ = action_; + result.actionId_ = actionId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatSetAction.ChatSetAction) { + return mergeFrom((net.iGap.proto.ProtoChatSetAction.ChatSetAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatSetAction.ChatSetAction other) { + if (other == net.iGap.proto.ProtoChatSetAction.ChatSetAction.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.getActionId() != 0) { + setActionId(other.getActionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatSetAction.ChatSetAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatSetAction.ChatSetAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int action_ = 0; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { - return instance.getActionValue(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. */ public Builder setActionValue(int value) { - copyOnWrite(); - instance.setActionValue(value); + + action_ = value; + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - return instance.getAction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - copyOnWrite(); - instance.setAction(value); + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return This builder for chaining. */ public Builder clearAction() { - copyOnWrite(); - instance.clearAction(); + + action_ = 0; + onChanged(); return this; } + private int actionId_ ; /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ + @java.lang.Override public int getActionId() { - return instance.getActionId(); + return actionId_; } /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @param value The actionId to set. + * @return This builder for chaining. */ public Builder setActionId(int value) { - copyOnWrite(); - instance.setActionId(value); + + actionId_ = value; + onChanged(); return this; } /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return This builder for chaining. */ public Builder clearActionId() { - copyOnWrite(); - instance.clearActionId(); + + actionId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatSetAction) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatSetAction.ChatSetAction(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatSetAction.ChatSetAction other = (net.iGap.proto.ProtoChatSetAction.ChatSetAction) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - action_ = visitor.visitInt(action_ != 0, action_, other.action_ != 0, other.action_); - actionId_ = visitor.visitInt(actionId_ != 0, actionId_, - other.actionId_ != 0, other.actionId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 32: { - - actionId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatSetAction.ChatSetAction.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatSetAction) + } + // @@protoc_insertion_point(class_scope:proto.ChatSetAction) private static final net.iGap.proto.ProtoChatSetAction.ChatSetAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatSetAction(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatSetAction.ChatSetAction(); } public static net.iGap.proto.ProtoChatSetAction.ChatSetAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatSetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatSetAction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChatSetActionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatSetActionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ net.iGap.proto.ProtoGlobal.ClientAction getAction(); /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.ChatSetActionResponse} */ - public static final class ChatSetActionResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatSetActionResponse, ChatSetActionResponse.Builder> implements + public static final class ChatSetActionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatSetActionResponse) ChatSetActionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatSetActionResponse.newBuilder() to construct. + private ChatSetActionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatSetActionResponse() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatSetActionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatSetActionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 32: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetActionResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetActionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.class, net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ACTION_FIELD_NUMBER = 3; private int action_; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ - public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.forNumber(action_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } - /** - * optional .proto.ClientAction action = 3; - */ - private void setActionValue(int value) { - action_ = value; - } - /** - * optional .proto.ClientAction action = 3; - */ - private void setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - } - /** - * optional .proto.ClientAction action = 3; - */ - private void clearAction() { - - action_ = 0; - } public static final int USER_ID_FIELD_NUMBER = 4; private long userId_; /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 4; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 4; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -757,10 +1125,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(4, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -780,348 +1150,661 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse other = (net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (action_ != other.action_) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatSetActionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatSetActionResponse) net.iGap.proto.ProtoChatSetAction.ChatSetActionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetActionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetActionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.class, net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + action_ = 0; + + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatSetAction.internal_static_proto_ChatSetActionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse build() { + net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse buildPartial() { + net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse result = new net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.action_ = action_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse) { + return mergeFrom((net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse other) { + if (other == net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int action_ = 0; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { - return instance.getActionValue(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. */ public Builder setActionValue(int value) { - copyOnWrite(); - instance.setActionValue(value); + + action_ = value; + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - return instance.getAction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - copyOnWrite(); - instance.setAction(value); + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return This builder for chaining. */ public Builder clearAction() { - copyOnWrite(); - instance.clearAction(); + + action_ = 0; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatSetActionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse other = (net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - action_ = visitor.visitInt(action_ != 0, action_, other.action_ != 0, other.action_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 32: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatSetActionResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatSetActionResponse) private static final net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatSetActionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse(); } public static net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatSetActionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatSetActionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatSetAction.ChatSetActionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatSetAction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatSetAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatSetActionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatSetActionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023ChatSetAction.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\032\014Global.proto\"y\n\rCha" + + "tSetAction\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007room_id\030\002 \001(\004\022#\n\006action\030\003 \001(\0162\023.p" + + "roto.ClientAction\022\021\n\taction_id\030\004 \001(\r\"\201\001\n" + + "\025ChatSetActionResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022#\n\006ac" + + "tion\030\003 \001(\0162\023.proto.ClientAction\022\017\n\007user_" + + "id\030\004 \001(\004B$\n\016net.iGap.protoB\022ProtoChatSet" + + "Actionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatSetAction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatSetAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatSetAction_descriptor, + new java.lang.String[] { "Request", "RoomId", "Action", "ActionId", }); + internal_static_proto_ChatSetActionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatSetActionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatSetActionResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Action", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatUpdateDraft.java b/src/main/java/net/iGap/proto/ProtoChatUpdateDraft.java index 0e2de4d..25ac26a 100644 --- a/src/main/java/net/iGap/proto/ProtoChatUpdateDraft.java +++ b/src/main/java/net/iGap/proto/ProtoChatUpdateDraft.java @@ -8,170 +8,235 @@ private ProtoChatUpdateDraft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatUpdateDraftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatUpdateDraft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 3; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.ChatUpdateDraft} */ - public static final class ChatUpdateDraft extends - com.google.protobuf.GeneratedMessageLite< - ChatUpdateDraft, ChatUpdateDraft.Builder> implements + public static final class ChatUpdateDraft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatUpdateDraft) ChatUpdateDraftOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatUpdateDraft.newBuilder() to construct. + private ChatUpdateDraft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatUpdateDraft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatUpdateDraft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatUpdateDraft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.class, net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int DRAFT_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -183,10 +248,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(3, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -202,495 +269,869 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft other = (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatUpdateDraft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatUpdateDraft) net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.class, net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft build() { + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft buildPartial() { + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft result = new net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft) { + return mergeFrom((net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft other) { + if (other == net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatUpdateDraft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft other = (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatUpdateDraft) + } + // @@protoc_insertion_point(class_scope:proto.ChatUpdateDraft) private static final net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatUpdateDraft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft(); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatUpdateDraft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatUpdateDraft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChatUpdateDraftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatUpdateDraftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 3; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.ChatUpdateDraftResponse} */ - public static final class ChatUpdateDraftResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatUpdateDraftResponse, ChatUpdateDraftResponse.Builder> implements + public static final class ChatUpdateDraftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatUpdateDraftResponse) ChatUpdateDraftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatUpdateDraftResponse.newBuilder() to construct. + private ChatUpdateDraftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatUpdateDraftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatUpdateDraftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatUpdateDraftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.class, net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int DRAFT_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - - } - /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -702,10 +1143,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(3, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -721,333 +1164,697 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse other = (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatUpdateDraftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatUpdateDraftResponse) net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.class, net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatUpdateDraft.internal_static_proto_ChatUpdateDraftResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse build() { + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse buildPartial() { + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse result = new net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse) { + return mergeFrom((net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse other) { + if (other == net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatUpdateDraftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse other = (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ChatUpdateDraftResponse) + } // @@protoc_insertion_point(class_scope:proto.ChatUpdateDraftResponse) private static final net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatUpdateDraftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse(); } public static net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatUpdateDraftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatUpdateDraftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateDraft.ChatUpdateDraftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatUpdateDraft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatUpdateDraft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatUpdateDraftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatUpdateDraftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025ChatUpdateDraft.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"d\n\017C" + + "hatUpdateDraft\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\017\n\007room_id\030\002 \001(\004\022\037\n\005draft\030\003 \001(\0132" + + "\020.proto.RoomDraft\"n\n\027ChatUpdateDraftResp" + + "onse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022" + + "\017\n\007room_id\030\002 \001(\004\022\037\n\005draft\030\003 \001(\0132\020.proto." + + "RoomDraftB&\n\016net.iGap.protoB\024ProtoChatUp" + + "dateDraftb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatUpdateDraft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatUpdateDraft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatUpdateDraft_descriptor, + new java.lang.String[] { "Request", "RoomId", "Draft", }); + internal_static_proto_ChatUpdateDraftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatUpdateDraftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatUpdateDraftResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Draft", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoChatUpdateStatus.java b/src/main/java/net/iGap/proto/ProtoChatUpdateStatus.java index dab3ef4..c3439db 100644 --- a/src/main/java/net/iGap/proto/ProtoChatUpdateStatus.java +++ b/src/main/java/net/iGap/proto/ProtoChatUpdateStatus.java @@ -8,213 +8,262 @@ private ProtoChatUpdateStatus() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ChatUpdateStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatUpdateStatus) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ChatUpdateStatus} */ - public static final class ChatUpdateStatus extends - com.google.protobuf.GeneratedMessageLite< - ChatUpdateStatus, ChatUpdateStatus.Builder> implements + public static final class ChatUpdateStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatUpdateStatus) ChatUpdateStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatUpdateStatus.newBuilder() to construct. + private ChatUpdateStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatUpdateStatus() { + status_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatUpdateStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatUpdateStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.class, net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void clearStatus() { - - status_ = 0; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -232,10 +281,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -259,696 +310,1002 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus other = (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (status_ != other.status_) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatUpdateStatus} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatUpdateStatus) net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.class, net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + status_ = 0; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatus_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus build() { + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus buildPartial() { + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus result = new net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.status_ = status_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus) { + return mergeFrom((net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus other) { + if (other == net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatUpdateStatus) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus other = (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatUpdateStatus) + } + // @@protoc_insertion_point(class_scope:proto.ChatUpdateStatus) private static final net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatUpdateStatus(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus(); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatUpdateStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatUpdateStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChatUpdateStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatUpdateStatusResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus(); /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return The statusVersion. */ long getStatusVersion(); /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The updaterAuthorHash. */ java.lang.String getUpdaterAuthorHash(); /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The bytes for updaterAuthorHash. */ com.google.protobuf.ByteString getUpdaterAuthorHashBytes(); /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ long getDocumentId(); /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return The versionDocumentId. */ long getVersionDocumentId(); } /** * Protobuf type {@code proto.ChatUpdateStatusResponse} */ - public static final class ChatUpdateStatusResponse extends - com.google.protobuf.GeneratedMessageLite< - ChatUpdateStatusResponse, ChatUpdateStatusResponse.Builder> implements + public static final class ChatUpdateStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatUpdateStatusResponse) ChatUpdateStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatUpdateStatusResponse.newBuilder() to construct. + private ChatUpdateStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatUpdateStatusResponse() { + status_ = 0; updaterAuthorHash_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatUpdateStatusResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatUpdateStatusResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 40: { + + statusVersion_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + updaterAuthorHash_ = s; + break; + } + case 56: { + + documentId_ = input.readUInt64(); + break; + } + case 64: { + + versionDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.class, net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void clearStatus() { - - status_ = 0; - } public static final int STATUS_VERSION_FIELD_NUMBER = 5; private long statusVersion_; /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { return statusVersion_; } - /** - * optional uint64 status_version = 5; - */ - private void setStatusVersion(long value) { - - statusVersion_ = value; - } - /** - * optional uint64 status_version = 5; - */ - private void clearStatusVersion() { - - statusVersion_ = 0L; - } public static final int UPDATER_AUTHOR_HASH_FIELD_NUMBER = 6; - private java.lang.String updaterAuthorHash_; + private volatile java.lang.Object updaterAuthorHash_; /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The updaterAuthorHash. */ + @java.lang.Override public java.lang.String getUpdaterAuthorHash() { - return updaterAuthorHash_; + java.lang.Object ref = updaterAuthorHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updaterAuthorHash_ = s; + return s; + } } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The bytes for updaterAuthorHash. */ + @java.lang.Override public com.google.protobuf.ByteString getUpdaterAuthorHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(updaterAuthorHash_); - } - /** - * optional string updater_author_hash = 6; - */ - private void setUpdaterAuthorHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - updaterAuthorHash_ = value; - } - /** - * optional string updater_author_hash = 6; - */ - private void clearUpdaterAuthorHash() { - - updaterAuthorHash_ = getDefaultInstance().getUpdaterAuthorHash(); - } - /** - * optional string updater_author_hash = 6; - */ - private void setUpdaterAuthorHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - updaterAuthorHash_ = value.toStringUtf8(); + java.lang.Object ref = updaterAuthorHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + updaterAuthorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 7; private long documentId_; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 7; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 7; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int VERSION_DOCUMENT_ID_FIELD_NUMBER = 8; private long versionDocumentId_; /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return The versionDocumentId. */ + @java.lang.Override public long getVersionDocumentId() { return versionDocumentId_; } - /** - * optional uint64 version_document_id = 8; - */ - private void setVersionDocumentId(long value) { - - versionDocumentId_ = value; - } - /** - * optional uint64 version_document_id = 8; - */ - private void clearVersionDocumentId() { - - versionDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -966,8 +1323,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (statusVersion_ != 0L) { output.writeUInt64(5, statusVersion_); } - if (!updaterAuthorHash_.isEmpty()) { - output.writeString(6, getUpdaterAuthorHash()); + if (!getUpdaterAuthorHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, updaterAuthorHash_); } if (documentId_ != 0L) { output.writeUInt64(7, documentId_); @@ -975,10 +1332,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (versionDocumentId_ != 0L) { output.writeUInt64(8, versionDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1002,9 +1361,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, statusVersion_); } - if (!updaterAuthorHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getUpdaterAuthorHash()); + if (!getUpdaterAuthorHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, updaterAuthorHash_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -1014,486 +1372,878 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, versionDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse other = (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (status_ != other.status_) return false; + if (getStatusVersion() + != other.getStatusVersion()) return false; + if (!getUpdaterAuthorHash() + .equals(other.getUpdaterAuthorHash())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (getVersionDocumentId() + != other.getVersionDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStatusVersion()); + hash = (37 * hash) + UPDATER_AUTHOR_HASH_FIELD_NUMBER; + hash = (53 * hash) + getUpdaterAuthorHash().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (37 * hash) + VERSION_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatUpdateStatusResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatUpdateStatusResponse) net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.class, net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + status_ = 0; + + statusVersion_ = 0L; + + updaterAuthorHash_ = ""; + documentId_ = 0L; + versionDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoChatUpdateStatus.internal_static_proto_ChatUpdateStatusResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse build() { + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse buildPartial() { + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse result = new net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.status_ = status_; + result.statusVersion_ = statusVersion_; + result.updaterAuthorHash_ = updaterAuthorHash_; + result.documentId_ = documentId_; + result.versionDocumentId_ = versionDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse) { + return mergeFrom((net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse other) { + if (other == net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getStatusVersion() != 0L) { + setStatusVersion(other.getStatusVersion()); + } + if (!other.getUpdaterAuthorHash().isEmpty()) { + updaterAuthorHash_ = other.updaterAuthorHash_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.getVersionDocumentId() != 0L) { + setVersionDocumentId(other.getVersionDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long statusVersion_ ; /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { - return instance.getStatusVersion(); + return statusVersion_; } /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @param value The statusVersion to set. + * @return This builder for chaining. */ public Builder setStatusVersion(long value) { - copyOnWrite(); - instance.setStatusVersion(value); + + statusVersion_ = value; + onChanged(); return this; } /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return This builder for chaining. */ public Builder clearStatusVersion() { - copyOnWrite(); - instance.clearStatusVersion(); + + statusVersion_ = 0L; + onChanged(); return this; } + private java.lang.Object updaterAuthorHash_ = ""; /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The updaterAuthorHash. */ public java.lang.String getUpdaterAuthorHash() { - return instance.getUpdaterAuthorHash(); + java.lang.Object ref = updaterAuthorHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updaterAuthorHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The bytes for updaterAuthorHash. */ public com.google.protobuf.ByteString getUpdaterAuthorHashBytes() { - return instance.getUpdaterAuthorHashBytes(); + java.lang.Object ref = updaterAuthorHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + updaterAuthorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @param value The updaterAuthorHash to set. + * @return This builder for chaining. */ public Builder setUpdaterAuthorHash( java.lang.String value) { - copyOnWrite(); - instance.setUpdaterAuthorHash(value); + if (value == null) { + throw new NullPointerException(); + } + + updaterAuthorHash_ = value; + onChanged(); return this; } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return This builder for chaining. */ public Builder clearUpdaterAuthorHash() { - copyOnWrite(); - instance.clearUpdaterAuthorHash(); + + updaterAuthorHash_ = getDefaultInstance().getUpdaterAuthorHash(); + onChanged(); return this; } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @param value The bytes for updaterAuthorHash to set. + * @return This builder for chaining. */ public Builder setUpdaterAuthorHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUpdaterAuthorHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + updaterAuthorHash_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private long versionDocumentId_ ; /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return The versionDocumentId. */ + @java.lang.Override public long getVersionDocumentId() { - return instance.getVersionDocumentId(); + return versionDocumentId_; } /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @param value The versionDocumentId to set. + * @return This builder for chaining. */ public Builder setVersionDocumentId(long value) { - copyOnWrite(); - instance.setVersionDocumentId(value); + + versionDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return This builder for chaining. */ public Builder clearVersionDocumentId() { - copyOnWrite(); - instance.clearVersionDocumentId(); + + versionDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChatUpdateStatusResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse other = (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - statusVersion_ = visitor.visitLong(statusVersion_ != 0L, statusVersion_, - other.statusVersion_ != 0L, other.statusVersion_); - updaterAuthorHash_ = visitor.visitString(!updaterAuthorHash_.isEmpty(), updaterAuthorHash_, - !other.updaterAuthorHash_.isEmpty(), other.updaterAuthorHash_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - versionDocumentId_ = visitor.visitLong(versionDocumentId_ != 0L, versionDocumentId_, - other.versionDocumentId_ != 0L, other.versionDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 40: { - - statusVersion_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - updaterAuthorHash_ = s; - break; - } - case 56: { - - documentId_ = input.readUInt64(); - break; - } - case 64: { - - versionDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatUpdateStatusResponse) + } + // @@protoc_insertion_point(class_scope:proto.ChatUpdateStatusResponse) private static final net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatUpdateStatusResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse(); } public static net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatUpdateStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatUpdateStatusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoChatUpdateStatus.ChatUpdateStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatUpdateStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatUpdateStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatUpdateStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatUpdateStatusResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ChatUpdateStatus.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\032\014Global.proto\"\227\001\n" + + "\020ChatUpdateStatus\022\037\n\007request\030\001 \001(\0132\016.pro" + + "to.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_i" + + "d\030\003 \001(\004\022(\n\006status\030\004 \001(\0162\030.proto.RoomMess" + + "ageStatus\022\023\n\013document_id\030\005 \001(\004\"\363\001\n\030ChatU" + + "pdateStatusResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessa" + + "ge_id\030\003 \001(\004\022(\n\006status\030\004 \001(\0162\030.proto.Room" + + "MessageStatus\022\026\n\016status_version\030\005 \001(\004\022\033\n" + + "\023updater_author_hash\030\006 \001(\t\022\023\n\013document_i" + + "d\030\007 \001(\004\022\033\n\023version_document_id\030\010 \001(\004B\'\n\016" + + "net.iGap.protoB\025ProtoChatUpdateStatusb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ChatUpdateStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ChatUpdateStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatUpdateStatus_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Status", "DocumentId", }); + internal_static_proto_ChatUpdateStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ChatUpdateStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatUpdateStatusResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "Status", "StatusVersion", "UpdaterAuthorHash", "DocumentId", "VersionDocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientCheckInviteLink.java b/src/main/java/net/iGap/proto/ProtoClientCheckInviteLink.java index 1a9d43c..6dd8e28 100644 --- a/src/main/java/net/iGap/proto/ProtoClientCheckInviteLink.java +++ b/src/main/java/net/iGap/proto/ProtoClientCheckInviteLink.java @@ -8,25 +8,39 @@ private ProtoClientCheckInviteLink() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientCheckInviteLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCheckInviteLink) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ java.lang.String getInviteToken(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ com.google.protobuf.ByteString getInviteTokenBytes(); @@ -34,124 +48,190 @@ public interface ClientCheckInviteLinkOrBuilder extends /** * Protobuf type {@code proto.ClientCheckInviteLink} */ - public static final class ClientCheckInviteLink extends - com.google.protobuf.GeneratedMessageLite< - ClientCheckInviteLink, ClientCheckInviteLink.Builder> implements + public static final class ClientCheckInviteLink extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCheckInviteLink) ClientCheckInviteLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientCheckInviteLink.newBuilder() to construct. + private ClientCheckInviteLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientCheckInviteLink() { inviteToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientCheckInviteLink(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientCheckInviteLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.class, net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int INVITE_TOKEN_FIELD_NUMBER = 2; - private java.lang.String inviteToken_; + private volatile java.lang.Object inviteToken_; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ + @java.lang.Override public java.lang.String getInviteToken() { - return inviteToken_; + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteToken_); - } - /** - * optional string invite_token = 2; - */ - private void setInviteToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteToken_ = value; - } - /** - * optional string invite_token = 2; - */ - private void clearInviteToken() { - - inviteToken_ = getDefaultInstance().getInviteToken(); + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_token = 2; - */ - private void setInviteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!inviteToken_.isEmpty()) { - output.writeString(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inviteToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,430 +239,753 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!inviteToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inviteToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink other = (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getInviteToken() + .equals(other.getInviteToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + INVITE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getInviteToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCheckInviteLink} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCheckInviteLink) net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.class, net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + inviteToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLink_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink build() { + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink buildPartial() { + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink result = new net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.inviteToken_ = inviteToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink) { + return mergeFrom((net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink other) { + if (other == net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getInviteToken().isEmpty()) { + inviteToken_ = other.inviteToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object inviteToken_ = ""; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ public java.lang.String getInviteToken() { - return instance.getInviteToken(); + java.lang.Object ref = inviteToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ public com.google.protobuf.ByteString getInviteTokenBytes() { - return instance.getInviteTokenBytes(); + java.lang.Object ref = inviteToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteToken( java.lang.String value) { - copyOnWrite(); - instance.setInviteToken(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteToken_ = value; + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return This builder for chaining. */ public Builder clearInviteToken() { - copyOnWrite(); - instance.clearInviteToken(); + + inviteToken_ = getDefaultInstance().getInviteToken(); + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The bytes for inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientCheckInviteLink) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink other = (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink) arg1; - request_ = visitor.visitMessage(request_, other.request_); - inviteToken_ = visitor.visitString(!inviteToken_.isEmpty(), inviteToken_, - !other.inviteToken_.isEmpty(), other.inviteToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - inviteToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientCheckInviteLink) + } + // @@protoc_insertion_point(class_scope:proto.ClientCheckInviteLink) private static final net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientCheckInviteLink(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink(); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCheckInviteLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCheckInviteLink(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientCheckInviteLinkResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCheckInviteLinkResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * .proto.Room room = 2; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ClientCheckInviteLinkResponse} */ - public static final class ClientCheckInviteLinkResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientCheckInviteLinkResponse, ClientCheckInviteLinkResponse.Builder> implements + public static final class ClientCheckInviteLinkResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCheckInviteLinkResponse) ClientCheckInviteLinkResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientCheckInviteLinkResponse.newBuilder() to construct. + private ClientCheckInviteLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientCheckInviteLinkResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientCheckInviteLinkResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientCheckInviteLinkResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.class, net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Room room_; /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } /** - * optional .proto.Room room = 2; - */ - private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ - private void setRoom( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - room_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.Room room = 2; - */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - - } - /** - * optional .proto.Room room = 2; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -591,10 +994,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(2, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -606,303 +1011,654 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse other = (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCheckInviteLinkResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCheckInviteLinkResponse) net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.class, net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCheckInviteLink.internal_static_proto_ClientCheckInviteLinkResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse build() { + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse buildPartial() { + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse result = new net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse) { + return mergeFrom((net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse other) { + if (other == net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ public net.iGap.proto.ProtoGlobal.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientCheckInviteLinkResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse other = (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Room room = 2; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.Room room = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Room room = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } + return roomBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientCheckInviteLinkResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientCheckInviteLinkResponse) private static final net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientCheckInviteLinkResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse(); } public static net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCheckInviteLinkResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCheckInviteLinkResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientCheckInviteLink.ClientCheckInviteLinkResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCheckInviteLink_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCheckInviteLink_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCheckInviteLinkResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCheckInviteLinkResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033ClientCheckInviteLink.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\032\014Global.prot" + + "o\"N\n\025ClientCheckInviteLink\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022\024\n\014invite_token\030\002 \001(" + + "\t\"]\n\035ClientCheckInviteLinkResponse\022!\n\010re" + + "sponse\030\001 \001(\0132\017.proto.Response\022\031\n\004room\030\002 " + + "\001(\0132\013.proto.RoomB,\n\016net.iGap.protoB\032Prot" + + "oClientCheckInviteLinkb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientCheckInviteLink_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientCheckInviteLink_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCheckInviteLink_descriptor, + new java.lang.String[] { "Request", "InviteToken", }); + internal_static_proto_ClientCheckInviteLinkResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientCheckInviteLinkResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCheckInviteLinkResponse_descriptor, + new java.lang.String[] { "Response", "Room", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientCondition.java b/src/main/java/net/iGap/proto/ProtoClientCondition.java index 90eaeba..f8c92b5 100644 --- a/src/main/java/net/iGap/proto/ProtoClientCondition.java +++ b/src/main/java/net/iGap/proto/ProtoClientCondition.java @@ -8,18 +8,30 @@ private ProtoClientCondition() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCondition) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** * repeated .proto.ClientCondition.Room rooms = 2; @@ -34,52 +46,163 @@ public interface ClientConditionOrBuilder extends * repeated .proto.ClientCondition.Room rooms = 2; */ int getRoomsCount(); + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + java.util.List + getRoomsOrBuilderList(); + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + net.iGap.proto.ProtoClientCondition.ClientCondition.RoomOrBuilder getRoomsOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientCondition} */ - public static final class ClientCondition extends - com.google.protobuf.GeneratedMessageLite< - ClientCondition, ClientCondition.Builder> implements + public static final class ClientCondition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCondition) ClientConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientCondition.newBuilder() to construct. + private ClientCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientCondition() { - rooms_ = emptyProtobufList(); + rooms_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientCondition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rooms_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rooms_.add( + input.readMessage(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + rooms_ = java.util.Collections.unmodifiableList(rooms_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Builder.class); + } + public interface RoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCondition.Room) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_version = 3; + * uint64 message_version = 3; + * @return The messageVersion. */ long getMessageVersion(); /** - * optional uint64 status_version = 4; + * uint64 status_version = 4; + * @return The statusVersion. */ long getStatusVersion(); /** - * optional uint64 delete_version = 5; + * uint64 delete_version = 5; + * @return The deleteVersion. */ long getDeleteVersion(); /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @return A list containing the offlineDeletedDeprecated. */ @java.lang.Deprecated java.util.List getOfflineDeletedDeprecatedList(); /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @return The count of offlineDeletedDeprecated. */ @java.lang.Deprecated int getOfflineDeletedDeprecatedCount(); /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @param index The index of the element to return. + * @return The offlineDeletedDeprecated at the given index. */ @java.lang.Deprecated long getOfflineDeletedDeprecated(int index); @@ -96,54 +219,77 @@ public interface RoomOrBuilder extends * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ int getOfflineEditedCount(); + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + java.util.List + getOfflineEditedOrBuilderList(); + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEditedOrBuilder getOfflineEditedOrBuilder( + int index); /** * repeated uint64 offline_seen = 8; + * @return A list containing the offlineSeen. */ java.util.List getOfflineSeenList(); /** * repeated uint64 offline_seen = 8; + * @return The count of offlineSeen. */ int getOfflineSeenCount(); /** * repeated uint64 offline_seen = 8; + * @param index The index of the element to return. + * @return The offlineSeen at the given index. */ long getOfflineSeen(int index); /** - * optional uint64 clear_id = 9; + * uint64 clear_id = 9; + * @return The clearId. */ long getClearId(); /** - * optional uint64 cache_start_id = 10; + * uint64 cache_start_id = 10; + * @return The cacheStartId. */ long getCacheStartId(); /** - * optional uint64 cache_end_id = 11; + * uint64 cache_end_id = 11; + * @return The cacheEndId. */ long getCacheEndId(); /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return The enum numeric value on the wire for offlineMute. */ int getOfflineMuteValue(); /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return The offlineMute. */ net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute getOfflineMute(); /** * repeated uint64 offline_listened = 13; + * @return A list containing the offlineListened. */ java.util.List getOfflineListenedList(); /** * repeated uint64 offline_listened = 13; + * @return The count of offlineListened. */ int getOfflineListenedCount(); /** * repeated uint64 offline_listened = 13; + * @param index The index of the element to return. + * @return The offlineListened at the given index. */ long getOfflineListened(int index); @@ -160,27 +306,243 @@ public interface RoomOrBuilder extends * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ int getOfflineDeletedCount(); + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + java.util.List + getOfflineDeletedOrBuilderList(); + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeletedOrBuilder getOfflineDeletedOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientCondition.Room} */ - public static final class Room extends - com.google.protobuf.GeneratedMessageLite< - Room, Room.Builder> implements + public static final class Room extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCondition.Room) RoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use Room.newBuilder() to construct. + private Room(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Room() { offlineDeletedDeprecated_ = emptyLongList(); - offlineEdited_ = emptyProtobufList(); + offlineEdited_ = java.util.Collections.emptyList(); offlineSeen_ = emptyLongList(); + offlineMute_ = 0; offlineListened_ = emptyLongList(); - offlineDeleted_ = emptyProtobufList(); + offlineDeleted_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Room(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Room( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageVersion_ = input.readUInt64(); + break; + } + case 32: { + + statusVersion_ = input.readUInt64(); + break; + } + case 40: { + + deleteVersion_ = input.readUInt64(); + break; + } + case 48: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + offlineDeletedDeprecated_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + offlineDeletedDeprecated_.addLong(input.readUInt64()); + break; + } + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + offlineDeletedDeprecated_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + offlineDeletedDeprecated_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + offlineEdited_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + offlineEdited_.add( + input.readMessage(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.parser(), extensionRegistry)); + break; + } + case 64: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + offlineSeen_ = newLongList(); + mutable_bitField0_ |= 0x00000004; + } + offlineSeen_.addLong(input.readUInt64()); + break; + } + case 66: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { + offlineSeen_ = newLongList(); + mutable_bitField0_ |= 0x00000004; + } + while (input.getBytesUntilLimit() > 0) { + offlineSeen_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 72: { + + clearId_ = input.readUInt64(); + break; + } + case 80: { + + cacheStartId_ = input.readUInt64(); + break; + } + case 88: { + + cacheEndId_ = input.readUInt64(); + break; + } + case 96: { + int rawValue = input.readEnum(); + + offlineMute_ = rawValue; + break; + } + case 104: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + offlineListened_ = newLongList(); + mutable_bitField0_ |= 0x00000008; + } + offlineListened_.addLong(input.readUInt64()); + break; + } + case 106: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { + offlineListened_ = newLongList(); + mutable_bitField0_ |= 0x00000008; + } + while (input.getBytesUntilLimit() > 0) { + offlineListened_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + offlineDeleted_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + offlineDeleted_.add( + input.readMessage(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + offlineDeletedDeprecated_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + offlineEdited_ = java.util.Collections.unmodifiableList(offlineEdited_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + offlineSeen_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + offlineListened_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + offlineDeleted_ = java.util.Collections.unmodifiableList(offlineDeleted_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder.class); + } + /** * Protobuf enum {@code proto.ClientCondition.Room.OfflineMute} */ public enum OfflineMute - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UNCHANGED = 0; */ @@ -211,10 +573,16 @@ public enum OfflineMute public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -222,6 +590,10 @@ public static OfflineMute valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static OfflineMute forNumber(int value) { switch (value) { case 0: return UNCHANGED; @@ -243,6 +615,37 @@ public OfflineMute findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.ClientCondition.Room.getDescriptor().getEnumTypes().get(0); + } + + private static final OfflineMute[] VALUES = values(); + + public static OfflineMute valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private OfflineMute(int value) { @@ -254,260 +657,313 @@ private OfflineMute(int value) { public interface OfflineEditedOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCondition.Room.OfflineEdited) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ long getMessageId(); /** - * optional string message = 2; + * string message = 2; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint64 document_id = 3; + * uint64 document_id = 3; + * @return The documentId. */ long getDocumentId(); /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; + * @return Whether the mentions field is set. */ boolean hasMentions(); /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; + * @return The mentions. */ net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * .proto.Mention mentions = 4; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 5; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ClientCondition.Room.OfflineEdited} */ - public static final class OfflineEdited extends - com.google.protobuf.GeneratedMessageLite< - OfflineEdited, OfflineEdited.Builder> implements + public static final class OfflineEdited extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCondition.Room.OfflineEdited) OfflineEditedOrBuilder { + private static final long serialVersionUID = 0L; + // Use OfflineEdited.newBuilder() to construct. + private OfflineEdited(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private OfflineEdited() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OfflineEdited(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OfflineEdited( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + messageId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: { + + documentId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineEdited_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineEdited_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder.class); + } + public static final int MESSAGE_ID_FIELD_NUMBER = 1; private long messageId_; /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 1; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 1; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 2; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 2; + * string message = 2; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 2; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 2; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 2; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 3; private long documentId_; /** - * optional uint64 document_id = 3; + * uint64 document_id = 3; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 3; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 3; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int MENTIONS_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.Mention mentions_; /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; + * @return Whether the mentions field is set. */ + @java.lang.Override public boolean hasMentions() { return mentions_ != null; } /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; + * @return The mentions. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Mention getMentions() { return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } /** - * optional .proto.Mention mentions = 4; - */ - private void setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (value == null) { - throw new NullPointerException(); - } - mentions_ = value; - - } - /** - * optional .proto.Mention mentions = 4; - */ - private void setMentions( - net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - mentions_ = builderForValue.build(); - - } - /** - * optional .proto.Mention mentions = 4; - */ - private void mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (mentions_ != null && - mentions_ != net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance()) { - mentions_ = - net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); - } else { - mentions_ = value; - } - - } - /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; */ - private void clearMentions() { mentions_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); } public static final int TEXT_SIGNS_FIELD_NUMBER = 5; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 5; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 5; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 5; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (messageId_ != 0L) { output.writeUInt64(1, messageId_); } - if (!message_.isEmpty()) { - output.writeString(2, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } if (documentId_ != 0L) { output.writeUInt64(3, documentId_); @@ -518,10 +974,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(5, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -529,9 +987,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, messageId_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -545,507 +1002,934 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited other = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited) obj; + + if (getMessageId() + != other.getMessageId()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (hasMentions() != other.hasMentions()) return false; + if (hasMentions()) { + if (!getMentions() + .equals(other.getMentions())) return false; + } + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCondition.Room.OfflineEdited} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCondition.Room.OfflineEdited) net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEditedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineEdited_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineEdited_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + messageId_ = 0L; + + message_ = ""; + + documentId_ = 0L; + + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineEdited_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited build() { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited buildPartial() { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited result = new net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited(this); + result.messageId_ = messageId_; + result.message_ = message_; + result.documentId_ = documentId_; + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited) { + return mergeFrom((net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited other) { + if (other == net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.getDefaultInstance()) return this; + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long messageId_ ; /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 2; + * string message = 2; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 2; + * string message = 2; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 2; + * string message = 2; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 2; + * string message = 2; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 3; + * uint64 document_id = 3; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 3; + * uint64 document_id = 3; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 3; + * uint64 document_id = 3; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Mention mentions_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; + * @return Whether the mentions field is set. */ public boolean hasMentions() { - return instance.hasMentions(); + return mentionsBuilder_ != null || mentions_ != null; } /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; + * @return The mentions. */ public net.iGap.proto.ProtoGlobal.Mention getMentions() { - return instance.getMentions(); + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } } /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; */ public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.setMentions(value); - return this; + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; */ public Builder setMentions( net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - copyOnWrite(); - instance.setMentions(builderForValue); + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; */ public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.mergeMentions(value); + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Mention mentions = 4; + * .proto.Mention mentions = 4; */ - public Builder clearMentions() { copyOnWrite(); - instance.clearMentions(); + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; } + /** + * .proto.Mention mentions = 4; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * .proto.Mention mentions = 4; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + } + /** + * .proto.Mention mentions = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; + } + return mentionsBuilder_; + } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 5; + * .proto.TextSigns text_signs = 5; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientCondition.Room.OfflineEdited) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited other = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited) arg1; - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - mentions_ = visitor.visitMessage(mentions_, other.mentions_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - messageId_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 24: { - - documentId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; - if (mentions_ != null) { - subBuilder = mentions_.toBuilder(); - } - mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mentions_); - mentions_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 5; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 5; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientCondition.Room.OfflineEdited) + } // @@protoc_insertion_point(class_scope:proto.ClientCondition.Room.OfflineEdited) private static final net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new OfflineEdited(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited(); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OfflineEdited parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OfflineEdited(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface OfflineDeletedOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCondition.Room.OfflineDeleted) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ long getMessageId(); /** - * optional bool both = 4; + * bool both = 4; + * @return The both. */ boolean getBoth(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ClientCondition.Room.OfflineDeleted} */ - public static final class OfflineDeleted extends - com.google.protobuf.GeneratedMessageLite< - OfflineDeleted, OfflineDeleted.Builder> implements + public static final class OfflineDeleted extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCondition.Room.OfflineDeleted) OfflineDeletedOrBuilder { + private static final long serialVersionUID = 0L; + // Use OfflineDeleted.newBuilder() to construct. + private OfflineDeleted(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private OfflineDeleted() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OfflineDeleted(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OfflineDeleted( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + both_ = input.readBool(); + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineDeleted_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineDeleted_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder.class); + } + public static final int MESSAGE_ID_FIELD_NUMBER = 1; private long messageId_; /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 1; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 1; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int BOTH_FIELD_NUMBER = 4; private boolean both_; /** - * optional bool both = 4; + * bool both = 4; + * @return The both. */ + @java.lang.Override public boolean getBoth() { return both_; } - /** - * optional bool both = 4; - */ - private void setBoth(boolean value) { - - both_ = value; - } - /** - * optional bool both = 4; - */ - private void clearBoth() { - - both_ = false; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (messageId_ != 0L) { @@ -1057,10 +1941,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1076,435 +1962,531 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted other = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted) obj; + + if (getMessageId() + != other.getMessageId()) return false; + if (getBoth() + != other.getBoth()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + BOTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoth()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCondition.Room.OfflineDeleted} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCondition.Room.OfflineDeleted) net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeletedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineDeleted_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineDeleted_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - /** - * optional uint64 message_id = 1; - */ - public long getMessageId() { - return instance.getMessageId(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional uint64 message_id = 1; - */ - public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + messageId_ = 0L; + + both_ = false; + + documentId_ = 0L; + return this; } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_OfflineDeleted_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted build() { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted buildPartial() { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted result = new net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted(this); + result.messageId_ = messageId_; + result.both_ = both_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted) { + return mergeFrom((net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted other) { + if (other == net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.getDefaultInstance()) return this; + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getBoth() != false) { + setBoth(other.getBoth()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long messageId_ ; + /** + * uint64 message_id = 1; + * @return The messageId. + */ + @java.lang.Override + public long getMessageId() { + return messageId_; + } /** - * optional uint64 message_id = 1; + * uint64 message_id = 1; + * @param value The messageId to set. + * @return This builder for chaining. + */ + public Builder setMessageId(long value) { + + messageId_ = value; + onChanged(); + return this; + } + /** + * uint64 message_id = 1; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private boolean both_ ; /** - * optional bool both = 4; + * bool both = 4; + * @return The both. */ + @java.lang.Override public boolean getBoth() { - return instance.getBoth(); + return both_; } /** - * optional bool both = 4; + * bool both = 4; + * @param value The both to set. + * @return This builder for chaining. */ public Builder setBoth(boolean value) { - copyOnWrite(); - instance.setBoth(value); + + both_ = value; + onChanged(); return this; } /** - * optional bool both = 4; + * bool both = 4; + * @return This builder for chaining. */ public Builder clearBoth() { - copyOnWrite(); - instance.clearBoth(); + + both_ = false; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientCondition.Room.OfflineDeleted) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted other = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted) arg1; - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - both_ = visitor.visitBoolean(both_ != false, both_, - other.both_ != false, other.both_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - both_ = input.readBool(); - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientCondition.Room.OfflineDeleted) + } + // @@protoc_insertion_point(class_scope:proto.ClientCondition.Room.OfflineDeleted) private static final net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new OfflineDeleted(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted(); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OfflineDeleted parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OfflineDeleted(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_VERSION_FIELD_NUMBER = 3; private long messageVersion_; /** - * optional uint64 message_version = 3; + * uint64 message_version = 3; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { return messageVersion_; } - /** - * optional uint64 message_version = 3; - */ - private void setMessageVersion(long value) { - - messageVersion_ = value; - } - /** - * optional uint64 message_version = 3; - */ - private void clearMessageVersion() { - - messageVersion_ = 0L; - } public static final int STATUS_VERSION_FIELD_NUMBER = 4; private long statusVersion_; /** - * optional uint64 status_version = 4; + * uint64 status_version = 4; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { return statusVersion_; } - /** - * optional uint64 status_version = 4; - */ - private void setStatusVersion(long value) { - - statusVersion_ = value; - } - /** - * optional uint64 status_version = 4; - */ - private void clearStatusVersion() { - - statusVersion_ = 0L; - } public static final int DELETE_VERSION_FIELD_NUMBER = 5; private long deleteVersion_; /** - * optional uint64 delete_version = 5; + * uint64 delete_version = 5; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { return deleteVersion_; } - /** - * optional uint64 delete_version = 5; - */ - private void setDeleteVersion(long value) { - - deleteVersion_ = value; - } - /** - * optional uint64 delete_version = 5; - */ - private void clearDeleteVersion() { - - deleteVersion_ = 0L; - } public static final int OFFLINE_DELETED_DEPRECATED_FIELD_NUMBER = 6; private com.google.protobuf.Internal.LongList offlineDeletedDeprecated_; /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @return A list containing the offlineDeletedDeprecated. */ + @java.lang.Override @java.lang.Deprecated public java.util.List getOfflineDeletedDeprecatedList() { return offlineDeletedDeprecated_; } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @return The count of offlineDeletedDeprecated. */ @java.lang.Deprecated public int getOfflineDeletedDeprecatedCount() { return offlineDeletedDeprecated_.size(); } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @param index The index of the element to return. + * @return The offlineDeletedDeprecated at the given index. */ @java.lang.Deprecated public long getOfflineDeletedDeprecated(int index) { return offlineDeletedDeprecated_.getLong(index); } - private void ensureOfflineDeletedDeprecatedIsMutable() { - if (!offlineDeletedDeprecated_.isModifiable()) { - offlineDeletedDeprecated_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineDeletedDeprecated_); - } - } - /** - * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; - */ - private void setOfflineDeletedDeprecated( - int index, long value) { - ensureOfflineDeletedDeprecatedIsMutable(); - offlineDeletedDeprecated_.setLong(index, value); - } - /** - * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; - */ - private void addOfflineDeletedDeprecated(long value) { - ensureOfflineDeletedDeprecatedIsMutable(); - offlineDeletedDeprecated_.addLong(value); - } - /** - * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; - */ - private void addAllOfflineDeletedDeprecated( - java.lang.Iterable values) { - ensureOfflineDeletedDeprecatedIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, offlineDeletedDeprecated_); - } - /** - * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; - */ - private void clearOfflineDeletedDeprecated() { - offlineDeletedDeprecated_ = emptyLongList(); - } + private int offlineDeletedDeprecatedMemoizedSerializedSize = -1; public static final int OFFLINE_EDITED_FIELD_NUMBER = 7; - private com.google.protobuf.Internal.ProtobufList offlineEdited_; + private java.util.List offlineEdited_; /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ + @java.lang.Override public java.util.List getOfflineEditedList() { return offlineEdited_; } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ + @java.lang.Override public java.util.List getOfflineEditedOrBuilderList() { return offlineEdited_; @@ -1512,343 +2494,147 @@ public java.util.Listrepeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ + @java.lang.Override public int getOfflineEditedCount() { return offlineEdited_.size(); } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited getOfflineEdited(int index) { return offlineEdited_.get(index); } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEditedOrBuilder getOfflineEditedOrBuilder( int index) { return offlineEdited_.get(index); } - private void ensureOfflineEditedIsMutable() { - if (!offlineEdited_.isModifiable()) { - offlineEdited_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineEdited_); - } - } - - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void setOfflineEdited( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOfflineEditedIsMutable(); - offlineEdited_.set(index, value); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void setOfflineEdited( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder builderForValue) { - ensureOfflineEditedIsMutable(); - offlineEdited_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void addOfflineEdited(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOfflineEditedIsMutable(); - offlineEdited_.add(value); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void addOfflineEdited( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOfflineEditedIsMutable(); - offlineEdited_.add(index, value); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void addOfflineEdited( - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder builderForValue) { - ensureOfflineEditedIsMutable(); - offlineEdited_.add(builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void addOfflineEdited( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder builderForValue) { - ensureOfflineEditedIsMutable(); - offlineEdited_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void addAllOfflineEdited( - java.lang.Iterable values) { - ensureOfflineEditedIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, offlineEdited_); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void clearOfflineEdited() { - offlineEdited_ = emptyProtobufList(); - } - /** - * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private void removeOfflineEdited(int index) { - ensureOfflineEditedIsMutable(); - offlineEdited_.remove(index); - } public static final int OFFLINE_SEEN_FIELD_NUMBER = 8; private com.google.protobuf.Internal.LongList offlineSeen_; /** * repeated uint64 offline_seen = 8; + * @return A list containing the offlineSeen. */ + @java.lang.Override public java.util.List getOfflineSeenList() { return offlineSeen_; } /** * repeated uint64 offline_seen = 8; + * @return The count of offlineSeen. */ public int getOfflineSeenCount() { return offlineSeen_.size(); } /** * repeated uint64 offline_seen = 8; + * @param index The index of the element to return. + * @return The offlineSeen at the given index. */ public long getOfflineSeen(int index) { return offlineSeen_.getLong(index); } - private void ensureOfflineSeenIsMutable() { - if (!offlineSeen_.isModifiable()) { - offlineSeen_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineSeen_); - } - } - /** - * repeated uint64 offline_seen = 8; - */ - private void setOfflineSeen( - int index, long value) { - ensureOfflineSeenIsMutable(); - offlineSeen_.setLong(index, value); - } - /** - * repeated uint64 offline_seen = 8; - */ - private void addOfflineSeen(long value) { - ensureOfflineSeenIsMutable(); - offlineSeen_.addLong(value); - } - /** - * repeated uint64 offline_seen = 8; - */ - private void addAllOfflineSeen( - java.lang.Iterable values) { - ensureOfflineSeenIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, offlineSeen_); - } - /** - * repeated uint64 offline_seen = 8; - */ - private void clearOfflineSeen() { - offlineSeen_ = emptyLongList(); - } + private int offlineSeenMemoizedSerializedSize = -1; public static final int CLEAR_ID_FIELD_NUMBER = 9; private long clearId_; /** - * optional uint64 clear_id = 9; + * uint64 clear_id = 9; + * @return The clearId. */ + @java.lang.Override public long getClearId() { return clearId_; } - /** - * optional uint64 clear_id = 9; - */ - private void setClearId(long value) { - - clearId_ = value; - } - /** - * optional uint64 clear_id = 9; - */ - private void clearClearId() { - - clearId_ = 0L; - } public static final int CACHE_START_ID_FIELD_NUMBER = 10; private long cacheStartId_; /** - * optional uint64 cache_start_id = 10; + * uint64 cache_start_id = 10; + * @return The cacheStartId. */ + @java.lang.Override public long getCacheStartId() { return cacheStartId_; } - /** - * optional uint64 cache_start_id = 10; - */ - private void setCacheStartId(long value) { - - cacheStartId_ = value; - } - /** - * optional uint64 cache_start_id = 10; - */ - private void clearCacheStartId() { - - cacheStartId_ = 0L; - } public static final int CACHE_END_ID_FIELD_NUMBER = 11; private long cacheEndId_; /** - * optional uint64 cache_end_id = 11; + * uint64 cache_end_id = 11; + * @return The cacheEndId. */ + @java.lang.Override public long getCacheEndId() { return cacheEndId_; } - /** - * optional uint64 cache_end_id = 11; - */ - private void setCacheEndId(long value) { - - cacheEndId_ = value; - } - /** - * optional uint64 cache_end_id = 11; - */ - private void clearCacheEndId() { - - cacheEndId_ = 0L; - } public static final int OFFLINE_MUTE_FIELD_NUMBER = 12; private int offlineMute_; /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return The enum numeric value on the wire for offlineMute. */ - public int getOfflineMuteValue() { + @java.lang.Override public int getOfflineMuteValue() { return offlineMute_; } /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return The offlineMute. */ - public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute getOfflineMute() { - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute result = net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute.forNumber(offlineMute_); + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute getOfflineMute() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute result = net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute.valueOf(offlineMute_); return result == null ? net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute.UNRECOGNIZED : result; } - /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; - */ - private void setOfflineMuteValue(int value) { - offlineMute_ = value; - } - /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; - */ - private void setOfflineMute(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute value) { - if (value == null) { - throw new NullPointerException(); - } - - offlineMute_ = value.getNumber(); - } - /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; - */ - private void clearOfflineMute() { - - offlineMute_ = 0; - } public static final int OFFLINE_LISTENED_FIELD_NUMBER = 13; private com.google.protobuf.Internal.LongList offlineListened_; /** * repeated uint64 offline_listened = 13; + * @return A list containing the offlineListened. */ + @java.lang.Override public java.util.List getOfflineListenedList() { return offlineListened_; } /** * repeated uint64 offline_listened = 13; + * @return The count of offlineListened. */ public int getOfflineListenedCount() { return offlineListened_.size(); } /** * repeated uint64 offline_listened = 13; + * @param index The index of the element to return. + * @return The offlineListened at the given index. */ public long getOfflineListened(int index) { return offlineListened_.getLong(index); } - private void ensureOfflineListenedIsMutable() { - if (!offlineListened_.isModifiable()) { - offlineListened_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineListened_); - } - } - /** - * repeated uint64 offline_listened = 13; - */ - private void setOfflineListened( - int index, long value) { - ensureOfflineListenedIsMutable(); - offlineListened_.setLong(index, value); - } - /** - * repeated uint64 offline_listened = 13; - */ - private void addOfflineListened(long value) { - ensureOfflineListenedIsMutable(); - offlineListened_.addLong(value); - } - /** - * repeated uint64 offline_listened = 13; - */ - private void addAllOfflineListened( - java.lang.Iterable values) { - ensureOfflineListenedIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, offlineListened_); - } - /** - * repeated uint64 offline_listened = 13; - */ - private void clearOfflineListened() { - offlineListened_ = emptyLongList(); - } + private int offlineListenedMemoizedSerializedSize = -1; public static final int OFFLINE_DELETED_FIELD_NUMBER = 14; - private com.google.protobuf.Internal.ProtobufList offlineDeleted_; + private java.util.List offlineDeleted_; /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ + @java.lang.Override public java.util.List getOfflineDeletedList() { return offlineDeleted_; } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ + @java.lang.Override public java.util.List getOfflineDeletedOrBuilderList() { return offlineDeleted_; @@ -1856,108 +2642,38 @@ public java.util.Listrepeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ + @java.lang.Override public int getOfflineDeletedCount() { return offlineDeleted_.size(); } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted getOfflineDeleted(int index) { return offlineDeleted_.get(index); } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeletedOrBuilder getOfflineDeletedOrBuilder( int index) { return offlineDeleted_.get(index); } - private void ensureOfflineDeletedIsMutable() { - if (!offlineDeleted_.isModifiable()) { - offlineDeleted_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineDeleted_); - } - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void setOfflineDeleted( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOfflineDeletedIsMutable(); - offlineDeleted_.set(index, value); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void setOfflineDeleted( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder builderForValue) { - ensureOfflineDeletedIsMutable(); - offlineDeleted_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void addOfflineDeleted(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOfflineDeletedIsMutable(); - offlineDeleted_.add(value); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void addOfflineDeleted( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOfflineDeletedIsMutable(); - offlineDeleted_.add(index, value); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void addOfflineDeleted( - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder builderForValue) { - ensureOfflineDeletedIsMutable(); - offlineDeleted_.add(builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void addOfflineDeleted( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder builderForValue) { - ensureOfflineDeletedIsMutable(); - offlineDeleted_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void addAllOfflineDeleted( - java.lang.Iterable values) { - ensureOfflineDeletedIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, offlineDeleted_); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void clearOfflineDeleted() { - offlineDeleted_ = emptyProtobufList(); - } - /** - * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private void removeOfflineDeleted(int index) { - ensureOfflineDeletedIsMutable(); - offlineDeleted_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -1973,14 +2689,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (deleteVersion_ != 0L) { output.writeUInt64(5, deleteVersion_); } + if (getOfflineDeletedDeprecatedList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(offlineDeletedDeprecatedMemoizedSerializedSize); + } for (int i = 0; i < offlineDeletedDeprecated_.size(); i++) { - output.writeUInt64(6, offlineDeletedDeprecated_.getLong(i)); + output.writeUInt64NoTag(offlineDeletedDeprecated_.getLong(i)); } for (int i = 0; i < offlineEdited_.size(); i++) { output.writeMessage(7, offlineEdited_.get(i)); } + if (getOfflineSeenList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(offlineSeenMemoizedSerializedSize); + } for (int i = 0; i < offlineSeen_.size(); i++) { - output.writeUInt64(8, offlineSeen_.getLong(i)); + output.writeUInt64NoTag(offlineSeen_.getLong(i)); } if (clearId_ != 0L) { output.writeUInt64(9, clearId_); @@ -1994,16 +2718,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (offlineMute_ != net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute.UNCHANGED.getNumber()) { output.writeEnum(12, offlineMute_); } + if (getOfflineListenedList().size() > 0) { + output.writeUInt32NoTag(106); + output.writeUInt32NoTag(offlineListenedMemoizedSerializedSize); + } for (int i = 0; i < offlineListened_.size(); i++) { - output.writeUInt64(13, offlineListened_.getLong(i)); + output.writeUInt64NoTag(offlineListened_.getLong(i)); } for (int i = 0; i < offlineDeleted_.size(); i++) { output.writeMessage(14, offlineDeleted_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2030,7 +2760,12 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(offlineDeletedDeprecated_.getLong(i)); } size += dataSize; - size += 1 * getOfflineDeletedDeprecatedList().size(); + if (!getOfflineDeletedDeprecatedList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + offlineDeletedDeprecatedMemoizedSerializedSize = dataSize; } for (int i = 0; i < offlineEdited_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -2043,7 +2778,12 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(offlineSeen_.getLong(i)); } size += dataSize; - size += 1 * getOfflineSeenList().size(); + if (!getOfflineSeenList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + offlineSeenMemoizedSerializedSize = dataSize; } if (clearId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -2068,270 +2808,792 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(offlineListened_.getLong(i)); } size += dataSize; - size += 1 * getOfflineListenedList().size(); + if (!getOfflineListenedList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + offlineListenedMemoizedSerializedSize = dataSize; } for (int i = 0; i < offlineDeleted_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, offlineDeleted_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCondition.ClientCondition.Room)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCondition.ClientCondition.Room other = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room) obj; + + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageVersion() + != other.getMessageVersion()) return false; + if (getStatusVersion() + != other.getStatusVersion()) return false; + if (getDeleteVersion() + != other.getDeleteVersion()) return false; + if (!getOfflineDeletedDeprecatedList() + .equals(other.getOfflineDeletedDeprecatedList())) return false; + if (!getOfflineEditedList() + .equals(other.getOfflineEditedList())) return false; + if (!getOfflineSeenList() + .equals(other.getOfflineSeenList())) return false; + if (getClearId() + != other.getClearId()) return false; + if (getCacheStartId() + != other.getCacheStartId()) return false; + if (getCacheEndId() + != other.getCacheEndId()) return false; + if (offlineMute_ != other.offlineMute_) return false; + if (!getOfflineListenedList() + .equals(other.getOfflineListenedList())) return false; + if (!getOfflineDeletedList() + .equals(other.getOfflineDeletedList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageVersion()); + hash = (37 * hash) + STATUS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStatusVersion()); + hash = (37 * hash) + DELETE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeleteVersion()); + if (getOfflineDeletedDeprecatedCount() > 0) { + hash = (37 * hash) + OFFLINE_DELETED_DEPRECATED_FIELD_NUMBER; + hash = (53 * hash) + getOfflineDeletedDeprecatedList().hashCode(); + } + if (getOfflineEditedCount() > 0) { + hash = (37 * hash) + OFFLINE_EDITED_FIELD_NUMBER; + hash = (53 * hash) + getOfflineEditedList().hashCode(); + } + if (getOfflineSeenCount() > 0) { + hash = (37 * hash) + OFFLINE_SEEN_FIELD_NUMBER; + hash = (53 * hash) + getOfflineSeenList().hashCode(); + } + hash = (37 * hash) + CLEAR_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearId()); + hash = (37 * hash) + CACHE_START_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCacheStartId()); + hash = (37 * hash) + CACHE_END_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCacheEndId()); + hash = (37 * hash) + OFFLINE_MUTE_FIELD_NUMBER; + hash = (53 * hash) + offlineMute_; + if (getOfflineListenedCount() > 0) { + hash = (37 * hash) + OFFLINE_LISTENED_FIELD_NUMBER; + hash = (53 * hash) + getOfflineListenedList().hashCode(); + } + if (getOfflineDeletedCount() > 0) { + hash = (37 * hash) + OFFLINE_DELETED_FIELD_NUMBER; + hash = (53 * hash) + getOfflineDeletedList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCondition.ClientCondition.Room prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCondition.Room} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCondition.ClientCondition.Room, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCondition.Room) net.iGap.proto.ProtoClientCondition.ClientCondition.RoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCondition.ClientCondition.Room.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOfflineEditedFieldBuilder(); + getOfflineDeletedFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + roomId_ = 0L; + + messageVersion_ = 0L; + + statusVersion_ = 0L; + + deleteVersion_ = 0L; + + offlineDeletedDeprecated_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + if (offlineEditedBuilder_ == null) { + offlineEdited_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + offlineEditedBuilder_.clear(); + } + offlineSeen_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + clearId_ = 0L; + + cacheStartId_ = 0L; + + cacheEndId_ = 0L; + + offlineMute_ = 0; + + offlineListened_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000008); + if (offlineDeletedBuilder_ == null) { + offlineDeleted_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + offlineDeletedBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_Room_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCondition.ClientCondition.Room.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room build() { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room buildPartial() { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room result = new net.iGap.proto.ProtoClientCondition.ClientCondition.Room(this); + int from_bitField0_ = bitField0_; + result.roomId_ = roomId_; + result.messageVersion_ = messageVersion_; + result.statusVersion_ = statusVersion_; + result.deleteVersion_ = deleteVersion_; + if (((bitField0_ & 0x00000001) != 0)) { + offlineDeletedDeprecated_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.offlineDeletedDeprecated_ = offlineDeletedDeprecated_; + if (offlineEditedBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + offlineEdited_ = java.util.Collections.unmodifiableList(offlineEdited_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.offlineEdited_ = offlineEdited_; + } else { + result.offlineEdited_ = offlineEditedBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + offlineSeen_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.offlineSeen_ = offlineSeen_; + result.clearId_ = clearId_; + result.cacheStartId_ = cacheStartId_; + result.cacheEndId_ = cacheEndId_; + result.offlineMute_ = offlineMute_; + if (((bitField0_ & 0x00000008) != 0)) { + offlineListened_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.offlineListened_ = offlineListened_; + if (offlineDeletedBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + offlineDeleted_ = java.util.Collections.unmodifiableList(offlineDeleted_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.offlineDeleted_ = offlineDeleted_; + } else { + result.offlineDeleted_ = offlineDeletedBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCondition.ClientCondition.Room) { + return mergeFrom((net.iGap.proto.ProtoClientCondition.ClientCondition.Room)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientCondition.ClientCondition.Room other) { + if (other == net.iGap.proto.ProtoClientCondition.ClientCondition.Room.getDefaultInstance()) return this; + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageVersion() != 0L) { + setMessageVersion(other.getMessageVersion()); + } + if (other.getStatusVersion() != 0L) { + setStatusVersion(other.getStatusVersion()); + } + if (other.getDeleteVersion() != 0L) { + setDeleteVersion(other.getDeleteVersion()); + } + if (!other.offlineDeletedDeprecated_.isEmpty()) { + if (offlineDeletedDeprecated_.isEmpty()) { + offlineDeletedDeprecated_ = other.offlineDeletedDeprecated_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOfflineDeletedDeprecatedIsMutable(); + offlineDeletedDeprecated_.addAll(other.offlineDeletedDeprecated_); + } + onChanged(); + } + if (offlineEditedBuilder_ == null) { + if (!other.offlineEdited_.isEmpty()) { + if (offlineEdited_.isEmpty()) { + offlineEdited_ = other.offlineEdited_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOfflineEditedIsMutable(); + offlineEdited_.addAll(other.offlineEdited_); + } + onChanged(); + } + } else { + if (!other.offlineEdited_.isEmpty()) { + if (offlineEditedBuilder_.isEmpty()) { + offlineEditedBuilder_.dispose(); + offlineEditedBuilder_ = null; + offlineEdited_ = other.offlineEdited_; + bitField0_ = (bitField0_ & ~0x00000002); + offlineEditedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOfflineEditedFieldBuilder() : null; + } else { + offlineEditedBuilder_.addAllMessages(other.offlineEdited_); + } + } + } + if (!other.offlineSeen_.isEmpty()) { + if (offlineSeen_.isEmpty()) { + offlineSeen_ = other.offlineSeen_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOfflineSeenIsMutable(); + offlineSeen_.addAll(other.offlineSeen_); + } + onChanged(); + } + if (other.getClearId() != 0L) { + setClearId(other.getClearId()); + } + if (other.getCacheStartId() != 0L) { + setCacheStartId(other.getCacheStartId()); + } + if (other.getCacheEndId() != 0L) { + setCacheEndId(other.getCacheEndId()); + } + if (other.offlineMute_ != 0) { + setOfflineMuteValue(other.getOfflineMuteValue()); + } + if (!other.offlineListened_.isEmpty()) { + if (offlineListened_.isEmpty()) { + offlineListened_ = other.offlineListened_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureOfflineListenedIsMutable(); + offlineListened_.addAll(other.offlineListened_); + } + onChanged(); + } + if (offlineDeletedBuilder_ == null) { + if (!other.offlineDeleted_.isEmpty()) { + if (offlineDeleted_.isEmpty()) { + offlineDeleted_ = other.offlineDeleted_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOfflineDeletedIsMutable(); + offlineDeleted_.addAll(other.offlineDeleted_); + } + onChanged(); + } + } else { + if (!other.offlineDeleted_.isEmpty()) { + if (offlineDeletedBuilder_.isEmpty()) { + offlineDeletedBuilder_.dispose(); + offlineDeletedBuilder_ = null; + offlineDeleted_ = other.offlineDeleted_; + bitField0_ = (bitField0_ & ~0x00000010); + offlineDeletedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOfflineDeletedFieldBuilder() : null; + } else { + offlineDeletedBuilder_.addAllMessages(other.offlineDeleted_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCondition.ClientCondition.Room parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageVersion_ ; /** - * optional uint64 message_version = 3; + * uint64 message_version = 3; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { - return instance.getMessageVersion(); + return messageVersion_; } /** - * optional uint64 message_version = 3; + * uint64 message_version = 3; + * @param value The messageVersion to set. + * @return This builder for chaining. */ public Builder setMessageVersion(long value) { - copyOnWrite(); - instance.setMessageVersion(value); + + messageVersion_ = value; + onChanged(); return this; } /** - * optional uint64 message_version = 3; + * uint64 message_version = 3; + * @return This builder for chaining. */ public Builder clearMessageVersion() { - copyOnWrite(); - instance.clearMessageVersion(); + + messageVersion_ = 0L; + onChanged(); return this; } + private long statusVersion_ ; /** - * optional uint64 status_version = 4; + * uint64 status_version = 4; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { - return instance.getStatusVersion(); + return statusVersion_; } /** - * optional uint64 status_version = 4; + * uint64 status_version = 4; + * @param value The statusVersion to set. + * @return This builder for chaining. */ public Builder setStatusVersion(long value) { - copyOnWrite(); - instance.setStatusVersion(value); + + statusVersion_ = value; + onChanged(); return this; } /** - * optional uint64 status_version = 4; + * uint64 status_version = 4; + * @return This builder for chaining. */ public Builder clearStatusVersion() { - copyOnWrite(); - instance.clearStatusVersion(); + + statusVersion_ = 0L; + onChanged(); return this; } + private long deleteVersion_ ; /** - * optional uint64 delete_version = 5; + * uint64 delete_version = 5; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { - return instance.getDeleteVersion(); + return deleteVersion_; } /** - * optional uint64 delete_version = 5; + * uint64 delete_version = 5; + * @param value The deleteVersion to set. + * @return This builder for chaining. */ public Builder setDeleteVersion(long value) { - copyOnWrite(); - instance.setDeleteVersion(value); + + deleteVersion_ = value; + onChanged(); return this; } /** - * optional uint64 delete_version = 5; + * uint64 delete_version = 5; + * @return This builder for chaining. */ public Builder clearDeleteVersion() { - copyOnWrite(); - instance.clearDeleteVersion(); + + deleteVersion_ = 0L; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList offlineDeletedDeprecated_ = emptyLongList(); + private void ensureOfflineDeletedDeprecatedIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + offlineDeletedDeprecated_ = mutableCopy(offlineDeletedDeprecated_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @return A list containing the offlineDeletedDeprecated. */ @java.lang.Deprecated public java.util.List getOfflineDeletedDeprecatedList() { - return java.util.Collections.unmodifiableList( - instance.getOfflineDeletedDeprecatedList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(offlineDeletedDeprecated_) : offlineDeletedDeprecated_; } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @return The count of offlineDeletedDeprecated. */ @java.lang.Deprecated public int getOfflineDeletedDeprecatedCount() { - return instance.getOfflineDeletedDeprecatedCount(); + return offlineDeletedDeprecated_.size(); } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @param index The index of the element to return. + * @return The offlineDeletedDeprecated at the given index. */ @java.lang.Deprecated public long getOfflineDeletedDeprecated(int index) { - return instance.getOfflineDeletedDeprecated(index); + return offlineDeletedDeprecated_.getLong(index); } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @param index The index to set the value at. + * @param value The offlineDeletedDeprecated to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setOfflineDeletedDeprecated( int index, long value) { - copyOnWrite(); - instance.setOfflineDeletedDeprecated(index, value); + ensureOfflineDeletedDeprecatedIsMutable(); + offlineDeletedDeprecated_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @param value The offlineDeletedDeprecated to add. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder addOfflineDeletedDeprecated(long value) { - copyOnWrite(); - instance.addOfflineDeletedDeprecated(value); + ensureOfflineDeletedDeprecatedIsMutable(); + offlineDeletedDeprecated_.addLong(value); + onChanged(); return this; } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @param values The offlineDeletedDeprecated to add. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllOfflineDeletedDeprecated( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllOfflineDeletedDeprecated(values); + ensureOfflineDeletedDeprecatedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, offlineDeletedDeprecated_); + onChanged(); return this; } /** * repeated uint64 offline_deleted_deprecated = 6 [deprecated = true]; + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearOfflineDeletedDeprecated() { - copyOnWrite(); - instance.clearOfflineDeletedDeprecated(); + offlineDeletedDeprecated_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + private java.util.List offlineEdited_ = + java.util.Collections.emptyList(); + private void ensureOfflineEditedIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + offlineEdited_ = new java.util.ArrayList(offlineEdited_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEditedOrBuilder> offlineEditedBuilder_; + /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ public java.util.List getOfflineEditedList() { - return java.util.Collections.unmodifiableList( - instance.getOfflineEditedList()); + if (offlineEditedBuilder_ == null) { + return java.util.Collections.unmodifiableList(offlineEdited_); + } else { + return offlineEditedBuilder_.getMessageList(); + } } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ public int getOfflineEditedCount() { - return instance.getOfflineEditedCount(); - }/** + if (offlineEditedBuilder_ == null) { + return offlineEdited_.size(); + } else { + return offlineEditedBuilder_.getCount(); + } + } + /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited getOfflineEdited(int index) { - return instance.getOfflineEdited(index); + if (offlineEditedBuilder_ == null) { + return offlineEdited_.get(index); + } else { + return offlineEditedBuilder_.getMessage(index); + } } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ public Builder setOfflineEdited( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited value) { - copyOnWrite(); - instance.setOfflineEdited(index, value); + if (offlineEditedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfflineEditedIsMutable(); + offlineEdited_.set(index, value); + onChanged(); + } else { + offlineEditedBuilder_.setMessage(index, value); + } return this; } /** @@ -2339,16 +3601,29 @@ public Builder setOfflineEdited( */ public Builder setOfflineEdited( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder builderForValue) { - copyOnWrite(); - instance.setOfflineEdited(index, builderForValue); + if (offlineEditedBuilder_ == null) { + ensureOfflineEditedIsMutable(); + offlineEdited_.set(index, builderForValue.build()); + onChanged(); + } else { + offlineEditedBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ public Builder addOfflineEdited(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited value) { - copyOnWrite(); - instance.addOfflineEdited(value); + if (offlineEditedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfflineEditedIsMutable(); + offlineEdited_.add(value); + onChanged(); + } else { + offlineEditedBuilder_.addMessage(value); + } return this; } /** @@ -2356,8 +3631,16 @@ public Builder addOfflineEdited(net.iGap.proto.ProtoClientCondition.ClientCondit */ public Builder addOfflineEdited( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited value) { - copyOnWrite(); - instance.addOfflineEdited(index, value); + if (offlineEditedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfflineEditedIsMutable(); + offlineEdited_.add(index, value); + onChanged(); + } else { + offlineEditedBuilder_.addMessage(index, value); + } return this; } /** @@ -2365,8 +3648,13 @@ public Builder addOfflineEdited( */ public Builder addOfflineEdited( net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder builderForValue) { - copyOnWrite(); - instance.addOfflineEdited(builderForValue); + if (offlineEditedBuilder_ == null) { + ensureOfflineEditedIsMutable(); + offlineEdited_.add(builderForValue.build()); + onChanged(); + } else { + offlineEditedBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -2374,8 +3662,13 @@ public Builder addOfflineEdited( */ public Builder addOfflineEdited( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder builderForValue) { - copyOnWrite(); - instance.addOfflineEdited(index, builderForValue); + if (offlineEditedBuilder_ == null) { + ensureOfflineEditedIsMutable(); + offlineEdited_.add(index, builderForValue.build()); + onChanged(); + } else { + offlineEditedBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -2383,268 +3676,469 @@ public Builder addOfflineEdited( */ public Builder addAllOfflineEdited( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllOfflineEdited(values); + if (offlineEditedBuilder_ == null) { + ensureOfflineEditedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, offlineEdited_); + onChanged(); + } else { + offlineEditedBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ public Builder clearOfflineEdited() { - copyOnWrite(); - instance.clearOfflineEdited(); + if (offlineEditedBuilder_ == null) { + offlineEdited_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + offlineEditedBuilder_.clear(); + } return this; } /** * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; */ public Builder removeOfflineEdited(int index) { - copyOnWrite(); - instance.removeOfflineEdited(index); + if (offlineEditedBuilder_ == null) { + ensureOfflineEditedIsMutable(); + offlineEdited_.remove(index); + onChanged(); + } else { + offlineEditedBuilder_.remove(index); + } return this; } + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder getOfflineEditedBuilder( + int index) { + return getOfflineEditedFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEditedOrBuilder getOfflineEditedOrBuilder( + int index) { + if (offlineEditedBuilder_ == null) { + return offlineEdited_.get(index); } else { + return offlineEditedBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + public java.util.List + getOfflineEditedOrBuilderList() { + if (offlineEditedBuilder_ != null) { + return offlineEditedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(offlineEdited_); + } + } + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder addOfflineEditedBuilder() { + return getOfflineEditedFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.getDefaultInstance()); + } + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder addOfflineEditedBuilder( + int index) { + return getOfflineEditedFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.getDefaultInstance()); + } + /** + * repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + public java.util.List + getOfflineEditedBuilderList() { + return getOfflineEditedFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEditedOrBuilder> + getOfflineEditedFieldBuilder() { + if (offlineEditedBuilder_ == null) { + offlineEditedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEditedOrBuilder>( + offlineEdited_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + offlineEdited_ = null; + } + return offlineEditedBuilder_; + } + private com.google.protobuf.Internal.LongList offlineSeen_ = emptyLongList(); + private void ensureOfflineSeenIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + offlineSeen_ = mutableCopy(offlineSeen_); + bitField0_ |= 0x00000004; + } + } /** * repeated uint64 offline_seen = 8; + * @return A list containing the offlineSeen. */ public java.util.List getOfflineSeenList() { - return java.util.Collections.unmodifiableList( - instance.getOfflineSeenList()); + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(offlineSeen_) : offlineSeen_; } /** * repeated uint64 offline_seen = 8; + * @return The count of offlineSeen. */ public int getOfflineSeenCount() { - return instance.getOfflineSeenCount(); + return offlineSeen_.size(); } /** * repeated uint64 offline_seen = 8; + * @param index The index of the element to return. + * @return The offlineSeen at the given index. */ public long getOfflineSeen(int index) { - return instance.getOfflineSeen(index); + return offlineSeen_.getLong(index); } /** * repeated uint64 offline_seen = 8; + * @param index The index to set the value at. + * @param value The offlineSeen to set. + * @return This builder for chaining. */ public Builder setOfflineSeen( int index, long value) { - copyOnWrite(); - instance.setOfflineSeen(index, value); + ensureOfflineSeenIsMutable(); + offlineSeen_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 offline_seen = 8; + * @param value The offlineSeen to add. + * @return This builder for chaining. */ public Builder addOfflineSeen(long value) { - copyOnWrite(); - instance.addOfflineSeen(value); + ensureOfflineSeenIsMutable(); + offlineSeen_.addLong(value); + onChanged(); return this; } /** * repeated uint64 offline_seen = 8; + * @param values The offlineSeen to add. + * @return This builder for chaining. */ public Builder addAllOfflineSeen( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllOfflineSeen(values); + ensureOfflineSeenIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, offlineSeen_); + onChanged(); return this; } /** * repeated uint64 offline_seen = 8; + * @return This builder for chaining. */ public Builder clearOfflineSeen() { - copyOnWrite(); - instance.clearOfflineSeen(); + offlineSeen_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } + private long clearId_ ; /** - * optional uint64 clear_id = 9; + * uint64 clear_id = 9; + * @return The clearId. */ + @java.lang.Override public long getClearId() { - return instance.getClearId(); + return clearId_; } /** - * optional uint64 clear_id = 9; + * uint64 clear_id = 9; + * @param value The clearId to set. + * @return This builder for chaining. */ public Builder setClearId(long value) { - copyOnWrite(); - instance.setClearId(value); + + clearId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_id = 9; + * uint64 clear_id = 9; + * @return This builder for chaining. */ public Builder clearClearId() { - copyOnWrite(); - instance.clearClearId(); + + clearId_ = 0L; + onChanged(); return this; } + private long cacheStartId_ ; /** - * optional uint64 cache_start_id = 10; + * uint64 cache_start_id = 10; + * @return The cacheStartId. */ + @java.lang.Override public long getCacheStartId() { - return instance.getCacheStartId(); + return cacheStartId_; } /** - * optional uint64 cache_start_id = 10; + * uint64 cache_start_id = 10; + * @param value The cacheStartId to set. + * @return This builder for chaining. */ public Builder setCacheStartId(long value) { - copyOnWrite(); - instance.setCacheStartId(value); + + cacheStartId_ = value; + onChanged(); return this; } /** - * optional uint64 cache_start_id = 10; + * uint64 cache_start_id = 10; + * @return This builder for chaining. */ public Builder clearCacheStartId() { - copyOnWrite(); - instance.clearCacheStartId(); + + cacheStartId_ = 0L; + onChanged(); return this; } + private long cacheEndId_ ; /** - * optional uint64 cache_end_id = 11; + * uint64 cache_end_id = 11; + * @return The cacheEndId. */ + @java.lang.Override public long getCacheEndId() { - return instance.getCacheEndId(); + return cacheEndId_; } /** - * optional uint64 cache_end_id = 11; + * uint64 cache_end_id = 11; + * @param value The cacheEndId to set. + * @return This builder for chaining. */ public Builder setCacheEndId(long value) { - copyOnWrite(); - instance.setCacheEndId(value); + + cacheEndId_ = value; + onChanged(); return this; } /** - * optional uint64 cache_end_id = 11; + * uint64 cache_end_id = 11; + * @return This builder for chaining. */ public Builder clearCacheEndId() { - copyOnWrite(); - instance.clearCacheEndId(); + + cacheEndId_ = 0L; + onChanged(); return this; } + private int offlineMute_ = 0; /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return The enum numeric value on the wire for offlineMute. */ - public int getOfflineMuteValue() { - return instance.getOfflineMuteValue(); + @java.lang.Override public int getOfflineMuteValue() { + return offlineMute_; } /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @param value The enum numeric value on the wire for offlineMute to set. + * @return This builder for chaining. */ public Builder setOfflineMuteValue(int value) { - copyOnWrite(); - instance.setOfflineMuteValue(value); + + offlineMute_ = value; + onChanged(); return this; } /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return The offlineMute. */ + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute getOfflineMute() { - return instance.getOfflineMute(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute result = net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute.valueOf(offlineMute_); + return result == null ? net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute.UNRECOGNIZED : result; } /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @param value The offlineMute to set. + * @return This builder for chaining. */ public Builder setOfflineMute(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineMute value) { - copyOnWrite(); - instance.setOfflineMute(value); + if (value == null) { + throw new NullPointerException(); + } + + offlineMute_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return This builder for chaining. */ public Builder clearOfflineMute() { - copyOnWrite(); - instance.clearOfflineMute(); + + offlineMute_ = 0; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList offlineListened_ = emptyLongList(); + private void ensureOfflineListenedIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + offlineListened_ = mutableCopy(offlineListened_); + bitField0_ |= 0x00000008; + } + } /** * repeated uint64 offline_listened = 13; + * @return A list containing the offlineListened. */ public java.util.List getOfflineListenedList() { - return java.util.Collections.unmodifiableList( - instance.getOfflineListenedList()); + return ((bitField0_ & 0x00000008) != 0) ? + java.util.Collections.unmodifiableList(offlineListened_) : offlineListened_; } /** * repeated uint64 offline_listened = 13; + * @return The count of offlineListened. */ public int getOfflineListenedCount() { - return instance.getOfflineListenedCount(); + return offlineListened_.size(); } /** * repeated uint64 offline_listened = 13; + * @param index The index of the element to return. + * @return The offlineListened at the given index. */ public long getOfflineListened(int index) { - return instance.getOfflineListened(index); + return offlineListened_.getLong(index); } /** * repeated uint64 offline_listened = 13; + * @param index The index to set the value at. + * @param value The offlineListened to set. + * @return This builder for chaining. */ public Builder setOfflineListened( int index, long value) { - copyOnWrite(); - instance.setOfflineListened(index, value); + ensureOfflineListenedIsMutable(); + offlineListened_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 offline_listened = 13; + * @param value The offlineListened to add. + * @return This builder for chaining. */ public Builder addOfflineListened(long value) { - copyOnWrite(); - instance.addOfflineListened(value); + ensureOfflineListenedIsMutable(); + offlineListened_.addLong(value); + onChanged(); return this; } /** * repeated uint64 offline_listened = 13; + * @param values The offlineListened to add. + * @return This builder for chaining. */ public Builder addAllOfflineListened( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllOfflineListened(values); + ensureOfflineListenedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, offlineListened_); + onChanged(); return this; } /** * repeated uint64 offline_listened = 13; + * @return This builder for chaining. */ public Builder clearOfflineListened() { - copyOnWrite(); - instance.clearOfflineListened(); + offlineListened_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); return this; } + private java.util.List offlineDeleted_ = + java.util.Collections.emptyList(); + private void ensureOfflineDeletedIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + offlineDeleted_ = new java.util.ArrayList(offlineDeleted_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeletedOrBuilder> offlineDeletedBuilder_; + /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ public java.util.List getOfflineDeletedList() { - return java.util.Collections.unmodifiableList( - instance.getOfflineDeletedList()); + if (offlineDeletedBuilder_ == null) { + return java.util.Collections.unmodifiableList(offlineDeleted_); + } else { + return offlineDeletedBuilder_.getMessageList(); + } } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ public int getOfflineDeletedCount() { - return instance.getOfflineDeletedCount(); - }/** + if (offlineDeletedBuilder_ == null) { + return offlineDeleted_.size(); + } else { + return offlineDeletedBuilder_.getCount(); + } + } + /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted getOfflineDeleted(int index) { - return instance.getOfflineDeleted(index); + if (offlineDeletedBuilder_ == null) { + return offlineDeleted_.get(index); + } else { + return offlineDeletedBuilder_.getMessage(index); + } } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ public Builder setOfflineDeleted( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted value) { - copyOnWrite(); - instance.setOfflineDeleted(index, value); + if (offlineDeletedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfflineDeletedIsMutable(); + offlineDeleted_.set(index, value); + onChanged(); + } else { + offlineDeletedBuilder_.setMessage(index, value); + } return this; } /** @@ -2652,16 +4146,29 @@ public Builder setOfflineDeleted( */ public Builder setOfflineDeleted( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder builderForValue) { - copyOnWrite(); - instance.setOfflineDeleted(index, builderForValue); + if (offlineDeletedBuilder_ == null) { + ensureOfflineDeletedIsMutable(); + offlineDeleted_.set(index, builderForValue.build()); + onChanged(); + } else { + offlineDeletedBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ public Builder addOfflineDeleted(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted value) { - copyOnWrite(); - instance.addOfflineDeleted(value); + if (offlineDeletedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfflineDeletedIsMutable(); + offlineDeleted_.add(value); + onChanged(); + } else { + offlineDeletedBuilder_.addMessage(value); + } return this; } /** @@ -2669,8 +4176,16 @@ public Builder addOfflineDeleted(net.iGap.proto.ProtoClientCondition.ClientCondi */ public Builder addOfflineDeleted( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted value) { - copyOnWrite(); - instance.addOfflineDeleted(index, value); + if (offlineDeletedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOfflineDeletedIsMutable(); + offlineDeleted_.add(index, value); + onChanged(); + } else { + offlineDeletedBuilder_.addMessage(index, value); + } return this; } /** @@ -2678,8 +4193,13 @@ public Builder addOfflineDeleted( */ public Builder addOfflineDeleted( net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder builderForValue) { - copyOnWrite(); - instance.addOfflineDeleted(builderForValue); + if (offlineDeletedBuilder_ == null) { + ensureOfflineDeletedIsMutable(); + offlineDeleted_.add(builderForValue.build()); + onChanged(); + } else { + offlineDeletedBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -2687,8 +4207,13 @@ public Builder addOfflineDeleted( */ public Builder addOfflineDeleted( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder builderForValue) { - copyOnWrite(); - instance.addOfflineDeleted(index, builderForValue); + if (offlineDeletedBuilder_ == null) { + ensureOfflineDeletedIsMutable(); + offlineDeleted_.add(index, builderForValue.build()); + onChanged(); + } else { + offlineDeletedBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -2696,330 +4221,198 @@ public Builder addOfflineDeleted( */ public Builder addAllOfflineDeleted( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllOfflineDeleted(values); + if (offlineDeletedBuilder_ == null) { + ensureOfflineDeletedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, offlineDeleted_); + onChanged(); + } else { + offlineDeletedBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ public Builder clearOfflineDeleted() { - copyOnWrite(); - instance.clearOfflineDeleted(); + if (offlineDeletedBuilder_ == null) { + offlineDeleted_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + offlineDeletedBuilder_.clear(); + } return this; } /** * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; */ public Builder removeOfflineDeleted(int index) { - copyOnWrite(); - instance.removeOfflineDeleted(index); + if (offlineDeletedBuilder_ == null) { + ensureOfflineDeletedIsMutable(); + offlineDeleted_.remove(index); + onChanged(); + } else { + offlineDeletedBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientCondition.Room) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCondition.ClientCondition.Room(); + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder getOfflineDeletedBuilder( + int index) { + return getOfflineDeletedFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeletedOrBuilder getOfflineDeletedOrBuilder( + int index) { + if (offlineDeletedBuilder_ == null) { + return offlineDeleted_.get(index); } else { + return offlineDeletedBuilder_.getMessageOrBuilder(index); } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + public java.util.List + getOfflineDeletedOrBuilderList() { + if (offlineDeletedBuilder_ != null) { + return offlineDeletedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(offlineDeleted_); } - case MAKE_IMMUTABLE: { - offlineDeletedDeprecated_.makeImmutable(); - offlineEdited_.makeImmutable(); - offlineSeen_.makeImmutable(); - offlineListened_.makeImmutable(); - offlineDeleted_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCondition.ClientCondition.Room other = (net.iGap.proto.ProtoClientCondition.ClientCondition.Room) arg1; - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageVersion_ = visitor.visitLong(messageVersion_ != 0L, messageVersion_, - other.messageVersion_ != 0L, other.messageVersion_); - statusVersion_ = visitor.visitLong(statusVersion_ != 0L, statusVersion_, - other.statusVersion_ != 0L, other.statusVersion_); - deleteVersion_ = visitor.visitLong(deleteVersion_ != 0L, deleteVersion_, - other.deleteVersion_ != 0L, other.deleteVersion_); - offlineDeletedDeprecated_= visitor.visitLongList(offlineDeletedDeprecated_, other.offlineDeletedDeprecated_); - offlineEdited_= visitor.visitList(offlineEdited_, other.offlineEdited_); - offlineSeen_= visitor.visitLongList(offlineSeen_, other.offlineSeen_); - clearId_ = visitor.visitLong(clearId_ != 0L, clearId_, - other.clearId_ != 0L, other.clearId_); - cacheStartId_ = visitor.visitLong(cacheStartId_ != 0L, cacheStartId_, - other.cacheStartId_ != 0L, other.cacheStartId_); - cacheEndId_ = visitor.visitLong(cacheEndId_ != 0L, cacheEndId_, - other.cacheEndId_ != 0L, other.cacheEndId_); - offlineMute_ = visitor.visitInt(offlineMute_ != 0, offlineMute_, other.offlineMute_ != 0, other.offlineMute_); - offlineListened_= visitor.visitLongList(offlineListened_, other.offlineListened_); - offlineDeleted_= visitor.visitList(offlineDeleted_, other.offlineDeleted_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; + } + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder addOfflineDeletedBuilder() { + return getOfflineDeletedFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.getDefaultInstance()); + } + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder addOfflineDeletedBuilder( + int index) { + return getOfflineDeletedFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.getDefaultInstance()); + } + /** + * repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + public java.util.List + getOfflineDeletedBuilderList() { + return getOfflineDeletedFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeletedOrBuilder> + getOfflineDeletedFieldBuilder() { + if (offlineDeletedBuilder_ == null) { + offlineDeletedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeletedOrBuilder>( + offlineDeleted_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + offlineDeleted_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageVersion_ = input.readUInt64(); - break; - } - case 32: { - - statusVersion_ = input.readUInt64(); - break; - } - case 40: { - - deleteVersion_ = input.readUInt64(); - break; - } - case 48: { - if (!offlineDeletedDeprecated_.isModifiable()) { - offlineDeletedDeprecated_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineDeletedDeprecated_); - } - offlineDeletedDeprecated_.addLong(input.readUInt64()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!offlineDeletedDeprecated_.isModifiable() && input.getBytesUntilLimit() > 0) { - offlineDeletedDeprecated_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineDeletedDeprecated_); - } - while (input.getBytesUntilLimit() > 0) { - offlineDeletedDeprecated_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 58: { - if (!offlineEdited_.isModifiable()) { - offlineEdited_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineEdited_); - } - offlineEdited_.add( - input.readMessage(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited.parser(), extensionRegistry)); - break; - } - case 64: { - if (!offlineSeen_.isModifiable()) { - offlineSeen_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineSeen_); - } - offlineSeen_.addLong(input.readUInt64()); - break; - } - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!offlineSeen_.isModifiable() && input.getBytesUntilLimit() > 0) { - offlineSeen_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineSeen_); - } - while (input.getBytesUntilLimit() > 0) { - offlineSeen_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 72: { - - clearId_ = input.readUInt64(); - break; - } - case 80: { + return offlineDeletedBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - cacheStartId_ = input.readUInt64(); - break; - } - case 88: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - cacheEndId_ = input.readUInt64(); - break; - } - case 96: { - int rawValue = input.readEnum(); - offlineMute_ = rawValue; - break; - } - case 104: { - if (!offlineListened_.isModifiable()) { - offlineListened_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineListened_); - } - offlineListened_.addLong(input.readUInt64()); - break; - } - case 106: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!offlineListened_.isModifiable() && input.getBytesUntilLimit() > 0) { - offlineListened_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineListened_); - } - while (input.getBytesUntilLimit() > 0) { - offlineListened_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 114: { - if (!offlineDeleted_.isModifiable()) { - offlineDeleted_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(offlineDeleted_); - } - offlineDeleted_.add( - input.readMessage(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineDeleted.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCondition.ClientCondition.Room.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.ClientCondition.Room) } - // @@protoc_insertion_point(class_scope:proto.ClientCondition.Room) private static final net.iGap.proto.ProtoClientCondition.ClientCondition.Room DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Room(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCondition.ClientCondition.Room(); } public static net.iGap.proto.ProtoClientCondition.ClientCondition.Room getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Room parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Room(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOMS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList rooms_; + private java.util.List rooms_; /** * repeated .proto.ClientCondition.Room rooms = 2; */ + @java.lang.Override public java.util.List getRoomsList() { return rooms_; } /** * repeated .proto.ClientCondition.Room rooms = 2; */ + @java.lang.Override public java.util.List getRoomsOrBuilderList() { return rooms_; @@ -3027,108 +4420,38 @@ public java.util.List /** * repeated .proto.ClientCondition.Room rooms = 2; */ + @java.lang.Override public int getRoomsCount() { return rooms_.size(); } /** * repeated .proto.ClientCondition.Room rooms = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.Room getRooms(int index) { return rooms_.get(index); } /** * repeated .proto.ClientCondition.Room rooms = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientCondition.ClientCondition.RoomOrBuilder getRoomsOrBuilder( int index) { return rooms_.get(index); } - private void ensureRoomsIsMutable() { - if (!rooms_.isModifiable()) { - rooms_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(rooms_); - } - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void setRooms( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoomsIsMutable(); - rooms_.set(index, value); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void setRooms( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder builderForValue) { - ensureRoomsIsMutable(); - rooms_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void addRooms(net.iGap.proto.ProtoClientCondition.ClientCondition.Room value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoomsIsMutable(); - rooms_.add(value); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void addRooms( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoomsIsMutable(); - rooms_.add(index, value); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void addRooms( - net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder builderForValue) { - ensureRoomsIsMutable(); - rooms_.add(builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void addRooms( - int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder builderForValue) { - ensureRoomsIsMutable(); - rooms_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void addAllRooms( - java.lang.Iterable values) { - ensureRoomsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, rooms_); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void clearRooms() { - rooms_ = emptyProtobufList(); - } - /** - * repeated .proto.ClientCondition.Room rooms = 2; - */ - private void removeRooms(int index) { - ensureRoomsIsMutable(); - rooms_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -3137,10 +4460,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < rooms_.size(); i++) { output.writeMessage(2, rooms_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -3152,162 +4477,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rooms_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCondition.ClientCondition)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCondition.ClientCondition other = (net.iGap.proto.ProtoClientCondition.ClientCondition) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getRoomsList() + .equals(other.getRoomsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (getRoomsCount() > 0) { + hash = (37 * hash) + ROOMS_FIELD_NUMBER; + hash = (53 * hash) + getRoomsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientCondition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCondition.ClientCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCondition} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCondition.ClientCondition, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCondition) net.iGap.proto.ProtoClientCondition.ClientConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientCondition.class, net.iGap.proto.ProtoClientCondition.ClientCondition.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCondition.ClientCondition.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRoomsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (roomsBuilder_ == null) { + rooms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + roomsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientCondition_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCondition.ClientCondition.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition build() { + net.iGap.proto.ProtoClientCondition.ClientCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition buildPartial() { + net.iGap.proto.ProtoClientCondition.ClientCondition result = new net.iGap.proto.ProtoClientCondition.ClientCondition(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (roomsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rooms_ = java.util.Collections.unmodifiableList(rooms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rooms_ = rooms_; + } else { + result.rooms_ = roomsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCondition.ClientCondition) { + return mergeFrom((net.iGap.proto.ProtoClientCondition.ClientCondition)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientCondition.ClientCondition other) { + if (other == net.iGap.proto.ProtoClientCondition.ClientCondition.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (roomsBuilder_ == null) { + if (!other.rooms_.isEmpty()) { + if (rooms_.isEmpty()) { + rooms_ = other.rooms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRoomsIsMutable(); + rooms_.addAll(other.rooms_); + } + onChanged(); + } + } else { + if (!other.rooms_.isEmpty()) { + if (roomsBuilder_.isEmpty()) { + roomsBuilder_.dispose(); + roomsBuilder_ = null; + rooms_ = other.rooms_; + bitField0_ = (bitField0_ & ~0x00000001); + roomsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoomsFieldBuilder() : null; + } else { + roomsBuilder_.addAllMessages(other.rooms_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCondition.ClientCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCondition.ClientCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.util.List rooms_ = + java.util.Collections.emptyList(); + private void ensureRoomsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rooms_ = new java.util.ArrayList(rooms_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.RoomOrBuilder> roomsBuilder_; /** * repeated .proto.ClientCondition.Room rooms = 2; */ public java.util.List getRoomsList() { - return java.util.Collections.unmodifiableList( - instance.getRoomsList()); + if (roomsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rooms_); + } else { + return roomsBuilder_.getMessageList(); + } } /** * repeated .proto.ClientCondition.Room rooms = 2; */ public int getRoomsCount() { - return instance.getRoomsCount(); - }/** + if (roomsBuilder_ == null) { + return rooms_.size(); + } else { + return roomsBuilder_.getCount(); + } + } + /** * repeated .proto.ClientCondition.Room rooms = 2; */ public net.iGap.proto.ProtoClientCondition.ClientCondition.Room getRooms(int index) { - return instance.getRooms(index); + if (roomsBuilder_ == null) { + return rooms_.get(index); + } else { + return roomsBuilder_.getMessage(index); + } } /** * repeated .proto.ClientCondition.Room rooms = 2; */ public Builder setRooms( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room value) { - copyOnWrite(); - instance.setRooms(index, value); + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.set(index, value); + onChanged(); + } else { + roomsBuilder_.setMessage(index, value); + } return this; } /** @@ -3315,16 +4995,29 @@ public Builder setRooms( */ public Builder setRooms( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRooms(index, builderForValue); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.set(index, builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientCondition.Room rooms = 2; */ public Builder addRooms(net.iGap.proto.ProtoClientCondition.ClientCondition.Room value) { - copyOnWrite(); - instance.addRooms(value); + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.add(value); + onChanged(); + } else { + roomsBuilder_.addMessage(value); + } return this; } /** @@ -3332,8 +5025,16 @@ public Builder addRooms(net.iGap.proto.ProtoClientCondition.ClientCondition.Room */ public Builder addRooms( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room value) { - copyOnWrite(); - instance.addRooms(index, value); + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.add(index, value); + onChanged(); + } else { + roomsBuilder_.addMessage(index, value); + } return this; } /** @@ -3341,8 +5042,13 @@ public Builder addRooms( */ public Builder addRooms( net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder builderForValue) { - copyOnWrite(); - instance.addRooms(builderForValue); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.add(builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -3350,8 +5056,13 @@ public Builder addRooms( */ public Builder addRooms( int index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder builderForValue) { - copyOnWrite(); - instance.addRooms(index, builderForValue); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.add(index, builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -3359,228 +5070,317 @@ public Builder addRooms( */ public Builder addAllRooms( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllRooms(values); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rooms_); + onChanged(); + } else { + roomsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientCondition.Room rooms = 2; */ public Builder clearRooms() { - copyOnWrite(); - instance.clearRooms(); + if (roomsBuilder_ == null) { + rooms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + roomsBuilder_.clear(); + } return this; } /** * repeated .proto.ClientCondition.Room rooms = 2; */ public Builder removeRooms(int index) { - copyOnWrite(); - instance.removeRooms(index); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.remove(index); + onChanged(); + } else { + roomsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientCondition) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCondition.ClientCondition(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - rooms_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCondition.ClientCondition other = (net.iGap.proto.ProtoClientCondition.ClientCondition) arg1; - request_ = visitor.visitMessage(request_, other.request_); - rooms_= visitor.visitList(rooms_, other.rooms_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!rooms_.isModifiable()) { - rooms_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(rooms_); - } - rooms_.add( - input.readMessage(net.iGap.proto.ProtoClientCondition.ClientCondition.Room.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder getRoomsBuilder( + int index) { + return getRoomsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.RoomOrBuilder getRoomsOrBuilder( + int index) { + if (roomsBuilder_ == null) { + return rooms_.get(index); } else { + return roomsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + public java.util.List + getRoomsOrBuilderList() { + if (roomsBuilder_ != null) { + return roomsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rooms_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCondition.ClientCondition.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder addRoomsBuilder() { + return getRoomsFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientCondition.ClientCondition.Room.getDefaultInstance()); + } + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder addRoomsBuilder( + int index) { + return getRoomsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.getDefaultInstance()); + } + /** + * repeated .proto.ClientCondition.Room rooms = 2; + */ + public java.util.List + getRoomsBuilderList() { + return getRoomsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.RoomOrBuilder> + getRoomsFieldBuilder() { + if (roomsBuilder_ == null) { + roomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientCondition.ClientCondition.Room, net.iGap.proto.ProtoClientCondition.ClientCondition.Room.Builder, net.iGap.proto.ProtoClientCondition.ClientCondition.RoomOrBuilder>( + rooms_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rooms_ = null; } + return roomsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientCondition) + } + // @@protoc_insertion_point(class_scope:proto.ClientCondition) private static final net.iGap.proto.ProtoClientCondition.ClientCondition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientCondition(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCondition.ClientCondition(); } public static net.iGap.proto.ProtoClientCondition.ClientCondition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCondition(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientConditionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientConditionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientConditionResponse} */ - public static final class ClientConditionResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientConditionResponse, ClientConditionResponse.Builder> implements + public static final class ClientConditionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientConditionResponse) ClientConditionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientConditionResponse.newBuilder() to construct. + private ClientConditionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientConditionResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientConditionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientConditionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientConditionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientConditionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientConditionResponse.class, net.iGap.proto.ProtoClientCondition.ClientConditionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -3588,244 +5388,563 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCondition.ClientConditionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCondition.ClientConditionResponse other = (net.iGap.proto.ProtoClientCondition.ClientConditionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCondition.ClientConditionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientConditionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCondition.ClientConditionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientConditionResponse) net.iGap.proto.ProtoClientCondition.ClientConditionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientConditionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientConditionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCondition.ClientConditionResponse.class, net.iGap.proto.ProtoClientCondition.ClientConditionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCondition.ClientConditionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCondition.internal_static_proto_ClientConditionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientConditionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCondition.ClientConditionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientConditionResponse build() { + net.iGap.proto.ProtoClientCondition.ClientConditionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientConditionResponse buildPartial() { + net.iGap.proto.ProtoClientCondition.ClientConditionResponse result = new net.iGap.proto.ProtoClientCondition.ClientConditionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCondition.ClientConditionResponse) { + return mergeFrom((net.iGap.proto.ProtoClientCondition.ClientConditionResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientCondition.ClientConditionResponse other) { + if (other == net.iGap.proto.ProtoClientCondition.ClientConditionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCondition.ClientConditionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCondition.ClientConditionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientConditionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCondition.ClientConditionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCondition.ClientConditionResponse other = (net.iGap.proto.ProtoClientCondition.ClientConditionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCondition.ClientConditionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientConditionResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientConditionResponse) private static final net.iGap.proto.ProtoClientCondition.ClientConditionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientConditionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCondition.ClientConditionResponse(); } public static net.iGap.proto.ProtoClientCondition.ClientConditionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientConditionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientConditionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCondition.ClientConditionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCondition_Room_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCondition_Room_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCondition_Room_OfflineEdited_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCondition_Room_OfflineEdited_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCondition_Room_OfflineDeleted_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCondition_Room_OfflineDeleted_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientConditionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientConditionResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025ClientCondition.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"\263\006\n\017" + + "ClientCondition\022\037\n\007request\030\001 \001(\0132\016.proto" + + ".Request\022*\n\005rooms\030\002 \003(\0132\033.proto.ClientCo" + + "ndition.Room\032\322\005\n\004Room\022\017\n\007room_id\030\002 \001(\004\022\027" + + "\n\017message_version\030\003 \001(\004\022\026\n\016status_versio" + + "n\030\004 \001(\004\022\026\n\016delete_version\030\005 \001(\004\022&\n\032offli" + + "ne_deleted_deprecated\030\006 \003(\004B\002\030\001\022A\n\016offli" + + "ne_edited\030\007 \003(\0132).proto.ClientCondition." + + "Room.OfflineEdited\022\024\n\014offline_seen\030\010 \003(\004" + + "\022\020\n\010clear_id\030\t \001(\004\022\026\n\016cache_start_id\030\n \001" + + "(\004\022\024\n\014cache_end_id\030\013 \001(\004\022=\n\014offline_mute" + + "\030\014 \001(\0162\'.proto.ClientCondition.Room.Offl" + + "ineMute\022\030\n\020offline_listened\030\r \003(\004\022C\n\017off" + + "line_deleted\030\016 \003(\0132*.proto.ClientConditi" + + "on.Room.OfflineDeleted\032\221\001\n\rOfflineEdited" + + "\022\022\n\nmessage_id\030\001 \001(\004\022\017\n\007message\030\002 \001(\t\022\023\n" + + "\013document_id\030\003 \001(\004\022 \n\010mentions\030\004 \001(\0132\016.p" + + "roto.Mention\022$\n\ntext_signs\030\005 \001(\0132\020.proto" + + ".TextSigns\032G\n\016OfflineDeleted\022\022\n\nmessage_" + + "id\030\001 \001(\004\022\014\n\004both\030\004 \001(\010\022\023\n\013document_id\030\005 " + + "\001(\004\"4\n\013OfflineMute\022\r\n\tUNCHANGED\020\000\022\t\n\005MUT" + + "ED\020\001\022\013\n\007UNMUTED\020\002\"<\n\027ClientConditionResp" + + "onse\022!\n\010response\030\001 \001(\0132\017.proto.ResponseB" + + "&\n\016net.iGap.protoB\024ProtoClientConditionb" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientCondition_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCondition_descriptor, + new java.lang.String[] { "Request", "Rooms", }); + internal_static_proto_ClientCondition_Room_descriptor = + internal_static_proto_ClientCondition_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientCondition_Room_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCondition_Room_descriptor, + new java.lang.String[] { "RoomId", "MessageVersion", "StatusVersion", "DeleteVersion", "OfflineDeletedDeprecated", "OfflineEdited", "OfflineSeen", "ClearId", "CacheStartId", "CacheEndId", "OfflineMute", "OfflineListened", "OfflineDeleted", }); + internal_static_proto_ClientCondition_Room_OfflineEdited_descriptor = + internal_static_proto_ClientCondition_Room_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientCondition_Room_OfflineEdited_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCondition_Room_OfflineEdited_descriptor, + new java.lang.String[] { "MessageId", "Message", "DocumentId", "Mentions", "TextSigns", }); + internal_static_proto_ClientCondition_Room_OfflineDeleted_descriptor = + internal_static_proto_ClientCondition_Room_descriptor.getNestedTypes().get(1); + internal_static_proto_ClientCondition_Room_OfflineDeleted_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCondition_Room_OfflineDeleted_descriptor, + new java.lang.String[] { "MessageId", "Both", "DocumentId", }); + internal_static_proto_ClientConditionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientConditionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientConditionResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientCountRoomHistory.java b/src/main/java/net/iGap/proto/ProtoClientCountRoomHistory.java index 32f861f..e956969 100644 --- a/src/main/java/net/iGap/proto/ProtoClientCountRoomHistory.java +++ b/src/main/java/net/iGap/proto/ProtoClientCountRoomHistory.java @@ -8,109 +8,181 @@ private ProtoClientCountRoomHistory() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientCountRoomHistoryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCountRoomHistory) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ClientCountRoomHistory} */ - public static final class ClientCountRoomHistory extends - com.google.protobuf.GeneratedMessageLite< - ClientCountRoomHistory, ClientCountRoomHistory.Builder> implements + public static final class ClientCountRoomHistory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCountRoomHistory) ClientCountRoomHistoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientCountRoomHistory.newBuilder() to construct. + private ClientCountRoomHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientCountRoomHistory() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientCountRoomHistory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientCountRoomHistory( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.class, net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,571 +208,827 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory other = (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCountRoomHistory} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCountRoomHistory) net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.class, net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistory_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory build() { + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory buildPartial() { + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory result = new net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory) { + return mergeFrom((net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory other) { + if (other == net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientCountRoomHistory) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory other = (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientCountRoomHistory) + } + // @@protoc_insertion_point(class_scope:proto.ClientCountRoomHistory) private static final net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientCountRoomHistory(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory(); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCountRoomHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCountRoomHistory(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientCountRoomHistoryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientCountRoomHistoryResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 media = 2; + * uint32 media = 2; + * @return The media. */ int getMedia(); /** - * optional uint32 image = 3; + * uint32 image = 3; + * @return The image. */ int getImage(); /** - * optional uint32 video = 4; + * uint32 video = 4; + * @return The video. */ int getVideo(); /** - * optional uint32 audio = 5; + * uint32 audio = 5; + * @return The audio. */ int getAudio(); /** - * optional uint32 voice = 6; + * uint32 voice = 6; + * @return The voice. */ int getVoice(); /** - * optional uint32 gif = 7; + * uint32 gif = 7; + * @return The gif. */ int getGif(); /** - * optional uint32 file = 8; + * uint32 file = 8; + * @return The file. */ int getFile(); /** - * optional uint32 url = 9; + * uint32 url = 9; + * @return The url. */ int getUrl(); } /** * Protobuf type {@code proto.ClientCountRoomHistoryResponse} */ - public static final class ClientCountRoomHistoryResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientCountRoomHistoryResponse, ClientCountRoomHistoryResponse.Builder> implements + public static final class ClientCountRoomHistoryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientCountRoomHistoryResponse) ClientCountRoomHistoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientCountRoomHistoryResponse.newBuilder() to construct. + private ClientCountRoomHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientCountRoomHistoryResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientCountRoomHistoryResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientCountRoomHistoryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + media_ = input.readUInt32(); + break; + } + case 24: { + + image_ = input.readUInt32(); + break; + } + case 32: { + + video_ = input.readUInt32(); + break; + } + case 40: { + + audio_ = input.readUInt32(); + break; + } + case 48: { + + voice_ = input.readUInt32(); + break; + } + case 56: { + + gif_ = input.readUInt32(); + break; + } + case 64: { + + file_ = input.readUInt32(); + break; + } + case 72: { + + url_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.class, net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int MEDIA_FIELD_NUMBER = 2; private int media_; /** - * optional uint32 media = 2; + * uint32 media = 2; + * @return The media. */ + @java.lang.Override public int getMedia() { return media_; } - /** - * optional uint32 media = 2; - */ - private void setMedia(int value) { - - media_ = value; - } - /** - * optional uint32 media = 2; - */ - private void clearMedia() { - - media_ = 0; - } public static final int IMAGE_FIELD_NUMBER = 3; private int image_; /** - * optional uint32 image = 3; + * uint32 image = 3; + * @return The image. */ + @java.lang.Override public int getImage() { return image_; } - /** - * optional uint32 image = 3; - */ - private void setImage(int value) { - - image_ = value; - } - /** - * optional uint32 image = 3; - */ - private void clearImage() { - - image_ = 0; - } public static final int VIDEO_FIELD_NUMBER = 4; private int video_; /** - * optional uint32 video = 4; + * uint32 video = 4; + * @return The video. */ + @java.lang.Override public int getVideo() { return video_; } - /** - * optional uint32 video = 4; - */ - private void setVideo(int value) { - - video_ = value; - } - /** - * optional uint32 video = 4; - */ - private void clearVideo() { - - video_ = 0; - } public static final int AUDIO_FIELD_NUMBER = 5; private int audio_; /** - * optional uint32 audio = 5; + * uint32 audio = 5; + * @return The audio. */ + @java.lang.Override public int getAudio() { return audio_; } - /** - * optional uint32 audio = 5; - */ - private void setAudio(int value) { - - audio_ = value; - } - /** - * optional uint32 audio = 5; - */ - private void clearAudio() { - - audio_ = 0; - } public static final int VOICE_FIELD_NUMBER = 6; private int voice_; /** - * optional uint32 voice = 6; + * uint32 voice = 6; + * @return The voice. */ + @java.lang.Override public int getVoice() { return voice_; } - /** - * optional uint32 voice = 6; - */ - private void setVoice(int value) { - - voice_ = value; - } - /** - * optional uint32 voice = 6; - */ - private void clearVoice() { - - voice_ = 0; - } public static final int GIF_FIELD_NUMBER = 7; private int gif_; /** - * optional uint32 gif = 7; + * uint32 gif = 7; + * @return The gif. */ + @java.lang.Override public int getGif() { return gif_; } - /** - * optional uint32 gif = 7; - */ - private void setGif(int value) { - - gif_ = value; - } - /** - * optional uint32 gif = 7; - */ - private void clearGif() { - - gif_ = 0; - } public static final int FILE_FIELD_NUMBER = 8; private int file_; /** - * optional uint32 file = 8; + * uint32 file = 8; + * @return The file. */ + @java.lang.Override public int getFile() { return file_; } - /** - * optional uint32 file = 8; - */ - private void setFile(int value) { - - file_ = value; - } - /** - * optional uint32 file = 8; - */ - private void clearFile() { - - file_ = 0; - } public static final int URL_FIELD_NUMBER = 9; private int url_; /** - * optional uint32 url = 9; + * uint32 url = 9; + * @return The url. */ + @java.lang.Override public int getUrl() { return url_; } - /** - * optional uint32 url = 9; - */ - private void setUrl(int value) { - - url_ = value; - } - /** - * optional uint32 url = 9; - */ - private void clearUrl() { - - url_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -728,10 +1058,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (url_ != 0) { output.writeUInt32(9, url_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -771,484 +1103,840 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, url_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse other = (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getMedia() + != other.getMedia()) return false; + if (getImage() + != other.getImage()) return false; + if (getVideo() + != other.getVideo()) return false; + if (getAudio() + != other.getAudio()) return false; + if (getVoice() + != other.getVoice()) return false; + if (getGif() + != other.getGif()) return false; + if (getFile() + != other.getFile()) return false; + if (getUrl() + != other.getUrl()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + MEDIA_FIELD_NUMBER; + hash = (53 * hash) + getMedia(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage(); + hash = (37 * hash) + VIDEO_FIELD_NUMBER; + hash = (53 * hash) + getVideo(); + hash = (37 * hash) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio(); + hash = (37 * hash) + VOICE_FIELD_NUMBER; + hash = (53 * hash) + getVoice(); + hash = (37 * hash) + GIF_FIELD_NUMBER; + hash = (53 * hash) + getGif(); + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientCountRoomHistoryResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientCountRoomHistoryResponse) net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.class, net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + media_ = 0; + + image_ = 0; + + video_ = 0; + + audio_ = 0; + + voice_ = 0; + gif_ = 0; + + file_ = 0; + + url_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientCountRoomHistory.internal_static_proto_ClientCountRoomHistoryResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse build() { + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse buildPartial() { + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse result = new net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.media_ = media_; + result.image_ = image_; + result.video_ = video_; + result.audio_ = audio_; + result.voice_ = voice_; + result.gif_ = gif_; + result.file_ = file_; + result.url_ = url_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse) { + return mergeFrom((net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse other) { + if (other == net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getMedia() != 0) { + setMedia(other.getMedia()); + } + if (other.getImage() != 0) { + setImage(other.getImage()); + } + if (other.getVideo() != 0) { + setVideo(other.getVideo()); + } + if (other.getAudio() != 0) { + setAudio(other.getAudio()); + } + if (other.getVoice() != 0) { + setVoice(other.getVoice()); + } + if (other.getGif() != 0) { + setGif(other.getGif()); + } + if (other.getFile() != 0) { + setFile(other.getFile()); + } + if (other.getUrl() != 0) { + setUrl(other.getUrl()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int media_ ; /** - * optional uint32 media = 2; + * uint32 media = 2; + * @return The media. */ + @java.lang.Override public int getMedia() { - return instance.getMedia(); + return media_; } /** - * optional uint32 media = 2; + * uint32 media = 2; + * @param value The media to set. + * @return This builder for chaining. */ public Builder setMedia(int value) { - copyOnWrite(); - instance.setMedia(value); + + media_ = value; + onChanged(); return this; } /** - * optional uint32 media = 2; + * uint32 media = 2; + * @return This builder for chaining. */ public Builder clearMedia() { - copyOnWrite(); - instance.clearMedia(); + + media_ = 0; + onChanged(); return this; } + private int image_ ; /** - * optional uint32 image = 3; + * uint32 image = 3; + * @return The image. */ + @java.lang.Override public int getImage() { - return instance.getImage(); + return image_; } /** - * optional uint32 image = 3; + * uint32 image = 3; + * @param value The image to set. + * @return This builder for chaining. */ public Builder setImage(int value) { - copyOnWrite(); - instance.setImage(value); + + image_ = value; + onChanged(); return this; } /** - * optional uint32 image = 3; + * uint32 image = 3; + * @return This builder for chaining. */ public Builder clearImage() { - copyOnWrite(); - instance.clearImage(); + + image_ = 0; + onChanged(); return this; } + private int video_ ; /** - * optional uint32 video = 4; + * uint32 video = 4; + * @return The video. */ + @java.lang.Override public int getVideo() { - return instance.getVideo(); + return video_; } /** - * optional uint32 video = 4; + * uint32 video = 4; + * @param value The video to set. + * @return This builder for chaining. */ public Builder setVideo(int value) { - copyOnWrite(); - instance.setVideo(value); + + video_ = value; + onChanged(); return this; } /** - * optional uint32 video = 4; + * uint32 video = 4; + * @return This builder for chaining. */ public Builder clearVideo() { - copyOnWrite(); - instance.clearVideo(); + + video_ = 0; + onChanged(); return this; } + private int audio_ ; /** - * optional uint32 audio = 5; + * uint32 audio = 5; + * @return The audio. */ + @java.lang.Override public int getAudio() { - return instance.getAudio(); + return audio_; } /** - * optional uint32 audio = 5; + * uint32 audio = 5; + * @param value The audio to set. + * @return This builder for chaining. */ public Builder setAudio(int value) { - copyOnWrite(); - instance.setAudio(value); + + audio_ = value; + onChanged(); return this; } /** - * optional uint32 audio = 5; + * uint32 audio = 5; + * @return This builder for chaining. */ public Builder clearAudio() { - copyOnWrite(); - instance.clearAudio(); + + audio_ = 0; + onChanged(); return this; } + private int voice_ ; /** - * optional uint32 voice = 6; + * uint32 voice = 6; + * @return The voice. */ + @java.lang.Override public int getVoice() { - return instance.getVoice(); + return voice_; } /** - * optional uint32 voice = 6; + * uint32 voice = 6; + * @param value The voice to set. + * @return This builder for chaining. */ public Builder setVoice(int value) { - copyOnWrite(); - instance.setVoice(value); + + voice_ = value; + onChanged(); return this; } /** - * optional uint32 voice = 6; + * uint32 voice = 6; + * @return This builder for chaining. */ public Builder clearVoice() { - copyOnWrite(); - instance.clearVoice(); + + voice_ = 0; + onChanged(); return this; } + private int gif_ ; /** - * optional uint32 gif = 7; + * uint32 gif = 7; + * @return The gif. */ + @java.lang.Override public int getGif() { - return instance.getGif(); + return gif_; } /** - * optional uint32 gif = 7; + * uint32 gif = 7; + * @param value The gif to set. + * @return This builder for chaining. */ public Builder setGif(int value) { - copyOnWrite(); - instance.setGif(value); + + gif_ = value; + onChanged(); return this; } /** - * optional uint32 gif = 7; + * uint32 gif = 7; + * @return This builder for chaining. */ public Builder clearGif() { - copyOnWrite(); - instance.clearGif(); + + gif_ = 0; + onChanged(); return this; } + private int file_ ; /** - * optional uint32 file = 8; + * uint32 file = 8; + * @return The file. */ + @java.lang.Override public int getFile() { - return instance.getFile(); + return file_; } /** - * optional uint32 file = 8; + * uint32 file = 8; + * @param value The file to set. + * @return This builder for chaining. */ public Builder setFile(int value) { - copyOnWrite(); - instance.setFile(value); + + file_ = value; + onChanged(); return this; } /** - * optional uint32 file = 8; + * uint32 file = 8; + * @return This builder for chaining. */ public Builder clearFile() { - copyOnWrite(); - instance.clearFile(); + + file_ = 0; + onChanged(); return this; } + private int url_ ; /** - * optional uint32 url = 9; + * uint32 url = 9; + * @return The url. */ + @java.lang.Override public int getUrl() { - return instance.getUrl(); + return url_; } /** - * optional uint32 url = 9; + * uint32 url = 9; + * @param value The url to set. + * @return This builder for chaining. */ public Builder setUrl(int value) { - copyOnWrite(); - instance.setUrl(value); + + url_ = value; + onChanged(); return this; } /** - * optional uint32 url = 9; + * uint32 url = 9; + * @return This builder for chaining. */ public Builder clearUrl() { - copyOnWrite(); - instance.clearUrl(); + + url_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientCountRoomHistoryResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse other = (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - media_ = visitor.visitInt(media_ != 0, media_, - other.media_ != 0, other.media_); - image_ = visitor.visitInt(image_ != 0, image_, - other.image_ != 0, other.image_); - video_ = visitor.visitInt(video_ != 0, video_, - other.video_ != 0, other.video_); - audio_ = visitor.visitInt(audio_ != 0, audio_, - other.audio_ != 0, other.audio_); - voice_ = visitor.visitInt(voice_ != 0, voice_, - other.voice_ != 0, other.voice_); - gif_ = visitor.visitInt(gif_ != 0, gif_, - other.gif_ != 0, other.gif_); - file_ = visitor.visitInt(file_ != 0, file_, - other.file_ != 0, other.file_); - url_ = visitor.visitInt(url_ != 0, url_, - other.url_ != 0, other.url_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - media_ = input.readUInt32(); - break; - } - case 24: { - - image_ = input.readUInt32(); - break; - } - case 32: { - - video_ = input.readUInt32(); - break; - } - case 40: { - - audio_ = input.readUInt32(); - break; - } - case 48: { - - voice_ = input.readUInt32(); - break; - } - case 56: { - - gif_ = input.readUInt32(); - break; - } - case 64: { - - file_ = input.readUInt32(); - break; - } - case 72: { - - url_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientCountRoomHistoryResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientCountRoomHistoryResponse) private static final net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientCountRoomHistoryResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse(); } public static net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCountRoomHistoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCountRoomHistoryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoClientCountRoomHistory.ClientCountRoomHistoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCountRoomHistory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCountRoomHistory_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientCountRoomHistoryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientCountRoomHistoryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034ClientCountRoomHistory.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"J\n\026ClientCo" + + "untRoomHistory\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\017\n\007room_id\030\002 \001(\004\"\266\001\n\036ClientCount" + + "RoomHistoryResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\r\n\005media\030\002 \001(\r\022\r\n\005image\030\003" + + " \001(\r\022\r\n\005video\030\004 \001(\r\022\r\n\005audio\030\005 \001(\r\022\r\n\005vo" + + "ice\030\006 \001(\r\022\013\n\003gif\030\007 \001(\r\022\014\n\004file\030\010 \001(\r\022\013\n\003" + + "url\030\t \001(\rB-\n\016net.iGap.protoB\033ProtoClient" + + "CountRoomHistoryb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientCountRoomHistory_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientCountRoomHistory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCountRoomHistory_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ClientCountRoomHistoryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientCountRoomHistoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientCountRoomHistoryResponse_descriptor, + new java.lang.String[] { "Response", "Media", "Image", "Video", "Audio", "Voice", "Gif", "File", "Url", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetDifference.java b/src/main/java/net/iGap/proto/ProtoClientGetDifference.java index 7433b16..ba1ee19 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetDifference.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetDifference.java @@ -8,137 +8,203 @@ private ProtoClientGetDifference() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetDifferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.ClientGetDifference) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return The pts. */ long getPts(); /** - * optional uint64 seq = 3; + * uint64 seq = 3; + * @return The seq. */ long getSeq(); } /** * Protobuf type {@code proto.updatequeue.ClientGetDifference} */ - public static final class ClientGetDifference extends - com.google.protobuf.GeneratedMessageLite< - ClientGetDifference, ClientGetDifference.Builder> implements + public static final class ClientGetDifference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.ClientGetDifference) ClientGetDifferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetDifference.newBuilder() to construct. + private ClientGetDifference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetDifference() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetDifference(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetDifference( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + pts_ = input.readUInt64(); + break; + } + case 24: { + + seq_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.class, net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PTS_FIELD_NUMBER = 2; private long pts_; /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return The pts. */ + @java.lang.Override public long getPts() { return pts_; } - /** - * optional uint64 pts = 2; - */ - private void setPts(long value) { - - pts_ = value; - } - /** - * optional uint64 pts = 2; - */ - private void clearPts() { - - pts_ = 0L; - } public static final int SEQ_FIELD_NUMBER = 3; private long seq_; /** - * optional uint64 seq = 3; + * uint64 seq = 3; + * @return The seq. */ + @java.lang.Override public long getSeq() { return seq_; } - /** - * optional uint64 seq = 3; - */ - private void setSeq(long value) { - - seq_ = value; - } - /** - * optional uint64 seq = 3; - */ - private void clearSeq() { - - seq_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (seq_ != 0L) { output.writeUInt64(3, seq_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,438 +237,747 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, seq_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetDifference.ClientGetDifference)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetDifference.ClientGetDifference other = (net.iGap.proto.ProtoClientGetDifference.ClientGetDifference) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPts() + != other.getPts()) return false; + if (getSeq() + != other.getSeq()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPts()); + hash = (37 * hash) + SEQ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSeq()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetDifference.ClientGetDifference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.ClientGetDifference} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetDifference.ClientGetDifference, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.ClientGetDifference) net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.class, net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + pts_ = 0L; + + seq_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifference_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifference getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifference build() { + net.iGap.proto.ProtoClientGetDifference.ClientGetDifference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifference buildPartial() { + net.iGap.proto.ProtoClientGetDifference.ClientGetDifference result = new net.iGap.proto.ProtoClientGetDifference.ClientGetDifference(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.pts_ = pts_; + result.seq_ = seq_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetDifference.ClientGetDifference) { + return mergeFrom((net.iGap.proto.ProtoClientGetDifference.ClientGetDifference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetDifference.ClientGetDifference other) { + if (other == net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPts() != 0L) { + setPts(other.getPts()); + } + if (other.getSeq() != 0L) { + setSeq(other.getSeq()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetDifference.ClientGetDifference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetDifference.ClientGetDifference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long pts_ ; /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return The pts. */ + @java.lang.Override public long getPts() { - return instance.getPts(); + return pts_; } /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @param value The pts to set. + * @return This builder for chaining. */ public Builder setPts(long value) { - copyOnWrite(); - instance.setPts(value); + + pts_ = value; + onChanged(); return this; } /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return This builder for chaining. */ public Builder clearPts() { - copyOnWrite(); - instance.clearPts(); + + pts_ = 0L; + onChanged(); return this; } + private long seq_ ; /** - * optional uint64 seq = 3; + * uint64 seq = 3; + * @return The seq. */ + @java.lang.Override public long getSeq() { - return instance.getSeq(); + return seq_; } /** - * optional uint64 seq = 3; + * uint64 seq = 3; + * @param value The seq to set. + * @return This builder for chaining. */ public Builder setSeq(long value) { - copyOnWrite(); - instance.setSeq(value); + + seq_ = value; + onChanged(); return this; } /** - * optional uint64 seq = 3; + * uint64 seq = 3; + * @return This builder for chaining. */ public Builder clearSeq() { - copyOnWrite(); - instance.clearSeq(); + + seq_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetDifference) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetDifference.ClientGetDifference(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetDifference.ClientGetDifference other = (net.iGap.proto.ProtoClientGetDifference.ClientGetDifference) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pts_ = visitor.visitLong(pts_ != 0L, pts_, - other.pts_ != 0L, other.pts_); - seq_ = visitor.visitLong(seq_ != 0L, seq_, - other.seq_ != 0L, other.seq_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - pts_ = input.readUInt64(); - break; - } - case 24: { - - seq_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetDifference.ClientGetDifference.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetDifference) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.ClientGetDifference) private static final net.iGap.proto.ProtoClientGetDifference.ClientGetDifference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetDifference(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetDifference.ClientGetDifference(); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetDifference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetDifference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientGetDifferenceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.ClientGetDifferenceResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; + * @return Whether the updates field is set. */ boolean hasUpdates(); /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; + * @return The updates. */ net.iGap.proto.ProtoClientUpdates.ClientUpdates getUpdates(); + /** + * .proto.updatequeue.ClientUpdates updates = 2; + */ + net.iGap.proto.ProtoClientUpdates.ClientUpdatesOrBuilder getUpdatesOrBuilder(); } /** * Protobuf type {@code proto.updatequeue.ClientGetDifferenceResponse} */ - public static final class ClientGetDifferenceResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetDifferenceResponse, ClientGetDifferenceResponse.Builder> implements + public static final class ClientGetDifferenceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.ClientGetDifferenceResponse) ClientGetDifferenceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetDifferenceResponse.newBuilder() to construct. + private ClientGetDifferenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetDifferenceResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetDifferenceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetDifferenceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder subBuilder = null; + if (updates_ != null) { + subBuilder = updates_.toBuilder(); + } + updates_ = input.readMessage(net.iGap.proto.ProtoClientUpdates.ClientUpdates.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updates_); + updates_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifferenceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifferenceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.class, net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int UPDATES_FIELD_NUMBER = 2; private net.iGap.proto.ProtoClientUpdates.ClientUpdates updates_; /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; + * @return Whether the updates field is set. */ + @java.lang.Override public boolean hasUpdates() { return updates_ != null; } /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; + * @return The updates. */ + @java.lang.Override public net.iGap.proto.ProtoClientUpdates.ClientUpdates getUpdates() { return updates_ == null ? net.iGap.proto.ProtoClientUpdates.ClientUpdates.getDefaultInstance() : updates_; } /** - * optional .proto.updatequeue.ClientUpdates updates = 2; - */ - private void setUpdates(net.iGap.proto.ProtoClientUpdates.ClientUpdates value) { - if (value == null) { - throw new NullPointerException(); - } - updates_ = value; - - } - /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; */ - private void setUpdates( - net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder builderForValue) { - updates_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoClientUpdates.ClientUpdatesOrBuilder getUpdatesOrBuilder() { + return getUpdates(); } - /** - * optional .proto.updatequeue.ClientUpdates updates = 2; - */ - private void mergeUpdates(net.iGap.proto.ProtoClientUpdates.ClientUpdates value) { - if (updates_ != null && - updates_ != net.iGap.proto.ProtoClientUpdates.ClientUpdates.getDefaultInstance()) { - updates_ = - net.iGap.proto.ProtoClientUpdates.ClientUpdates.newBuilder(updates_).mergeFrom(value).buildPartial(); - } else { - updates_ = value; - } - - } - /** - * optional .proto.updatequeue.ClientUpdates updates = 2; - */ - private void clearUpdates() { updates_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -609,10 +986,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updates_ != null) { output.writeMessage(2, getUpdates()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -624,303 +1003,655 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUpdates()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse other = (net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasUpdates() != other.hasUpdates()) return false; + if (hasUpdates()) { + if (!getUpdates() + .equals(other.getUpdates())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasUpdates()) { + hash = (37 * hash) + UPDATES_FIELD_NUMBER; + hash = (53 * hash) + getUpdates().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.ClientGetDifferenceResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.ClientGetDifferenceResponse) net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifferenceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifferenceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.class, net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (updatesBuilder_ == null) { + updates_ = null; + } else { + updates_ = null; + updatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetDifference.internal_static_proto_updatequeue_ClientGetDifferenceResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse build() { + net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse buildPartial() { + net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse result = new net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (updatesBuilder_ == null) { + result.updates_ = updates_; + } else { + result.updates_ = updatesBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse other) { + if (other == net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasUpdates()) { + mergeUpdates(other.getUpdates()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoClientUpdates.ClientUpdates updates_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoClientUpdates.ClientUpdates, net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder, net.iGap.proto.ProtoClientUpdates.ClientUpdatesOrBuilder> updatesBuilder_; /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; + * @return Whether the updates field is set. */ public boolean hasUpdates() { - return instance.hasUpdates(); + return updatesBuilder_ != null || updates_ != null; } /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; + * @return The updates. */ public net.iGap.proto.ProtoClientUpdates.ClientUpdates getUpdates() { - return instance.getUpdates(); + if (updatesBuilder_ == null) { + return updates_ == null ? net.iGap.proto.ProtoClientUpdates.ClientUpdates.getDefaultInstance() : updates_; + } else { + return updatesBuilder_.getMessage(); + } } /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; */ public Builder setUpdates(net.iGap.proto.ProtoClientUpdates.ClientUpdates value) { - copyOnWrite(); - instance.setUpdates(value); - return this; + if (updatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updates_ = value; + onChanged(); + } else { + updatesBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; */ public Builder setUpdates( net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder builderForValue) { - copyOnWrite(); - instance.setUpdates(builderForValue); + if (updatesBuilder_ == null) { + updates_ = builderForValue.build(); + onChanged(); + } else { + updatesBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; */ public Builder mergeUpdates(net.iGap.proto.ProtoClientUpdates.ClientUpdates value) { - copyOnWrite(); - instance.mergeUpdates(value); + if (updatesBuilder_ == null) { + if (updates_ != null) { + updates_ = + net.iGap.proto.ProtoClientUpdates.ClientUpdates.newBuilder(updates_).mergeFrom(value).buildPartial(); + } else { + updates_ = value; + } + onChanged(); + } else { + updatesBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.updatequeue.ClientUpdates updates = 2; + * .proto.updatequeue.ClientUpdates updates = 2; */ - public Builder clearUpdates() { copyOnWrite(); - instance.clearUpdates(); + public Builder clearUpdates() { + if (updatesBuilder_ == null) { + updates_ = null; + onChanged(); + } else { + updates_ = null; + updatesBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetDifferenceResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse other = (net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - updates_ = visitor.visitMessage(updates_, other.updates_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder subBuilder = null; - if (updates_ != null) { - subBuilder = updates_.toBuilder(); - } - updates_ = input.readMessage(net.iGap.proto.ProtoClientUpdates.ClientUpdates.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updates_); - updates_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.updatequeue.ClientUpdates updates = 2; + */ + public net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder getUpdatesBuilder() { + + onChanged(); + return getUpdatesFieldBuilder().getBuilder(); + } + /** + * .proto.updatequeue.ClientUpdates updates = 2; + */ + public net.iGap.proto.ProtoClientUpdates.ClientUpdatesOrBuilder getUpdatesOrBuilder() { + if (updatesBuilder_ != null) { + return updatesBuilder_.getMessageOrBuilder(); + } else { + return updates_ == null ? + net.iGap.proto.ProtoClientUpdates.ClientUpdates.getDefaultInstance() : updates_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.updatequeue.ClientUpdates updates = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoClientUpdates.ClientUpdates, net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder, net.iGap.proto.ProtoClientUpdates.ClientUpdatesOrBuilder> + getUpdatesFieldBuilder() { + if (updatesBuilder_ == null) { + updatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoClientUpdates.ClientUpdates, net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder, net.iGap.proto.ProtoClientUpdates.ClientUpdatesOrBuilder>( + getUpdates(), + getParentForChildren(), + isClean()); + updates_ = null; } + return updatesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetDifferenceResponse) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.ClientGetDifferenceResponse) private static final net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetDifferenceResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse(); } public static net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetDifferenceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetDifferenceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDifference.ClientGetDifferenceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_ClientGetDifference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_ClientGetDifference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_ClientGetDifferenceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_ClientGetDifferenceResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031ClientGetDifference.proto\022\021proto.updat" + + "equeue\032\rRequest.proto\032\016Response.proto\032\023C" + + "lientUpdates.proto\"P\n\023ClientGetDifferenc" + + "e\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\013\n\003pt" + + "s\030\002 \001(\004\022\013\n\003seq\030\003 \001(\004\"s\n\033ClientGetDiffere" + + "nceResponse\022!\n\010response\030\001 \001(\0132\017.proto.Re" + + "sponse\0221\n\007updates\030\002 \001(\0132 .proto.updatequ" + + "eue.ClientUpdatesB*\n\016net.iGap.protoB\030Pro" + + "toClientGetDifferenceb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoClientUpdates.getDescriptor(), + }); + internal_static_proto_updatequeue_ClientGetDifference_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_updatequeue_ClientGetDifference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_ClientGetDifference_descriptor, + new java.lang.String[] { "Request", "Pts", "Seq", }); + internal_static_proto_updatequeue_ClientGetDifferenceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_updatequeue_ClientGetDifferenceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_ClientGetDifferenceResponse_descriptor, + new java.lang.String[] { "Response", "Updates", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoClientUpdates.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetDiscovery.java b/src/main/java/net/iGap/proto/ProtoClientGetDiscovery.java index a8f92a8..d0b212e 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetDiscovery.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetDiscovery.java @@ -8,165 +8,225 @@ private ProtoClientGetDiscovery() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetDiscoveryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetDiscovery) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 page_id = 2; + * uint32 page_id = 2; + * @return The pageId. */ int getPageId(); /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return The projectId. */ int getProjectId(); /** - * optional uint32 item_id = 4; + * uint32 item_id = 4; + * @return The itemId. */ int getItemId(); } /** * Protobuf type {@code proto.ClientGetDiscovery} */ - public static final class ClientGetDiscovery extends - com.google.protobuf.GeneratedMessageLite< - ClientGetDiscovery, ClientGetDiscovery.Builder> implements + public static final class ClientGetDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetDiscovery) ClientGetDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetDiscovery.newBuilder() to construct. + private ClientGetDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetDiscovery() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetDiscovery(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + pageId_ = input.readUInt32(); + break; + } + case 24: { + + projectId_ = input.readUInt32(); + break; + } + case 32: { + + itemId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.class, net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PAGE_ID_FIELD_NUMBER = 2; private int pageId_; /** - * optional uint32 page_id = 2; + * uint32 page_id = 2; + * @return The pageId. */ + @java.lang.Override public int getPageId() { return pageId_; } - /** - * optional uint32 page_id = 2; - */ - private void setPageId(int value) { - - pageId_ = value; - } - /** - * optional uint32 page_id = 2; - */ - private void clearPageId() { - - pageId_ = 0; - } public static final int PROJECT_ID_FIELD_NUMBER = 3; private int projectId_; /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return The projectId. */ + @java.lang.Override public int getProjectId() { return projectId_; } - /** - * optional uint32 project_id = 3; - */ - private void setProjectId(int value) { - - projectId_ = value; - } - /** - * optional uint32 project_id = 3; - */ - private void clearProjectId() { - - projectId_ = 0; - } public static final int ITEM_ID_FIELD_NUMBER = 4; private int itemId_; /** - * optional uint32 item_id = 4; + * uint32 item_id = 4; + * @return The itemId. */ + @java.lang.Override public int getItemId() { return itemId_; } - /** - * optional uint32 item_id = 4; - */ - private void setItemId(int value) { - - itemId_ = value; - } - /** - * optional uint32 item_id = 4; - */ - private void clearItemId() { - - itemId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (itemId_ != 0) { output.writeUInt32(4, itemId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,351 +266,612 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, itemId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery other = (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPageId() + != other.getPageId()) return false; + if (getProjectId() + != other.getProjectId()) return false; + if (getItemId() + != other.getItemId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPageId(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId(); + hash = (37 * hash) + ITEM_ID_FIELD_NUMBER; + hash = (53 * hash) + getItemId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetDiscovery} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetDiscovery) net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.class, net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + pageId_ = 0; + + projectId_ = 0; + + itemId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscovery_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery build() { + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery buildPartial() { + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery result = new net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.pageId_ = pageId_; + result.projectId_ = projectId_; + result.itemId_ = itemId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery) { + return mergeFrom((net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery other) { + if (other == net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPageId() != 0) { + setPageId(other.getPageId()); + } + if (other.getProjectId() != 0) { + setProjectId(other.getProjectId()); + } + if (other.getItemId() != 0) { + setItemId(other.getItemId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int pageId_ ; /** - * optional uint32 page_id = 2; + * uint32 page_id = 2; + * @return The pageId. */ + @java.lang.Override public int getPageId() { - return instance.getPageId(); + return pageId_; } /** - * optional uint32 page_id = 2; + * uint32 page_id = 2; + * @param value The pageId to set. + * @return This builder for chaining. */ public Builder setPageId(int value) { - copyOnWrite(); - instance.setPageId(value); + + pageId_ = value; + onChanged(); return this; } /** - * optional uint32 page_id = 2; + * uint32 page_id = 2; + * @return This builder for chaining. */ public Builder clearPageId() { - copyOnWrite(); - instance.clearPageId(); + + pageId_ = 0; + onChanged(); return this; } + private int projectId_ ; /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return The projectId. */ + @java.lang.Override public int getProjectId() { - return instance.getProjectId(); + return projectId_; } /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @param value The projectId to set. + * @return This builder for chaining. */ public Builder setProjectId(int value) { - copyOnWrite(); - instance.setProjectId(value); + + projectId_ = value; + onChanged(); return this; } /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return This builder for chaining. */ public Builder clearProjectId() { - copyOnWrite(); - instance.clearProjectId(); + + projectId_ = 0; + onChanged(); return this; } + private int itemId_ ; /** - * optional uint32 item_id = 4; + * uint32 item_id = 4; + * @return The itemId. */ + @java.lang.Override public int getItemId() { - return instance.getItemId(); + return itemId_; } /** - * optional uint32 item_id = 4; + * uint32 item_id = 4; + * @param value The itemId to set. + * @return This builder for chaining. */ public Builder setItemId(int value) { - copyOnWrite(); - instance.setItemId(value); + + itemId_ = value; + onChanged(); return this; } /** - * optional uint32 item_id = 4; + * uint32 item_id = 4; + * @return This builder for chaining. */ public Builder clearItemId() { - copyOnWrite(); - instance.clearItemId(); + + itemId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientGetDiscovery) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery other = (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pageId_ = visitor.visitInt(pageId_ != 0, pageId_, - other.pageId_ != 0, other.pageId_); - projectId_ = visitor.visitInt(projectId_ != 0, projectId_, - other.projectId_ != 0, other.projectId_); - itemId_ = visitor.visitInt(itemId_ != 0, itemId_, - other.itemId_ != 0, other.itemId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - pageId_ = input.readUInt32(); - break; - } - case 24: { - - projectId_ = input.readUInt32(); - break; - } - case 32: { - - itemId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetDiscovery) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetDiscovery) private static final net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetDiscovery(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery(); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetDiscovery(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientGetDiscoveryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetDiscoveryResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string title = 2; + * string title = 2; + * @return The title. */ java.lang.String getTitle(); /** - * optional string title = 2; + * string title = 2; + * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); @@ -566,129 +889,205 @@ public interface ClientGetDiscoveryResponseOrBuilder extends * repeated .proto.Discovery discoveries = 3; */ int getDiscoveriesCount(); + /** + * repeated .proto.Discovery discoveries = 3; + */ + java.util.List + getDiscoveriesOrBuilderList(); + /** + * repeated .proto.Discovery discoveries = 3; + */ + net.iGap.proto.ProtoGlobal.DiscoveryOrBuilder getDiscoveriesOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientGetDiscoveryResponse} */ - public static final class ClientGetDiscoveryResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetDiscoveryResponse, ClientGetDiscoveryResponse.Builder> implements + public static final class ClientGetDiscoveryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetDiscoveryResponse) ClientGetDiscoveryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetDiscoveryResponse.newBuilder() to construct. + private ClientGetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetDiscoveryResponse() { title_ = ""; - discoveries_ = emptyProtobufList(); + discoveries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetDiscoveryResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetDiscoveryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + discoveries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + discoveries_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Discovery.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + discoveries_ = java.util.Collections.unmodifiableList(discoveries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscoveryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscoveryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.class, net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TITLE_FIELD_NUMBER = 2; - private java.lang.String title_; + private volatile java.lang.Object title_; /** - * optional string title = 2; + * string title = 2; + * @return The title. */ + @java.lang.Override public java.lang.String getTitle() { - return title_; + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } } /** - * optional string title = 2; + * string title = 2; + * @return The bytes for title. */ + @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(title_); - } - /** - * optional string title = 2; - */ - private void setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - } - /** - * optional string title = 2; - */ - private void clearTitle() { - - title_ = getDefaultInstance().getTitle(); - } - /** - * optional string title = 2; - */ - private void setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value.toStringUtf8(); + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DISCOVERIES_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList discoveries_; + private java.util.List discoveries_; /** * repeated .proto.Discovery discoveries = 3; */ + @java.lang.Override public java.util.List getDiscoveriesList() { return discoveries_; } /** * repeated .proto.Discovery discoveries = 3; */ + @java.lang.Override public java.util.List getDiscoveriesOrBuilderList() { return discoveries_; @@ -696,123 +1095,55 @@ public java.util.List getDiscoveriesList() /** * repeated .proto.Discovery discoveries = 3; */ + @java.lang.Override public int getDiscoveriesCount() { return discoveries_.size(); } /** * repeated .proto.Discovery discoveries = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Discovery getDiscoveries(int index) { return discoveries_.get(index); } /** * repeated .proto.Discovery discoveries = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.DiscoveryOrBuilder getDiscoveriesOrBuilder( int index) { return discoveries_.get(index); } - private void ensureDiscoveriesIsMutable() { - if (!discoveries_.isModifiable()) { - discoveries_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(discoveries_); - } - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void setDiscoveries( - int index, net.iGap.proto.ProtoGlobal.Discovery value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveriesIsMutable(); - discoveries_.set(index, value); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void setDiscoveries( - int index, net.iGap.proto.ProtoGlobal.Discovery.Builder builderForValue) { - ensureDiscoveriesIsMutable(); - discoveries_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void addDiscoveries(net.iGap.proto.ProtoGlobal.Discovery value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveriesIsMutable(); - discoveries_.add(value); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void addDiscoveries( - int index, net.iGap.proto.ProtoGlobal.Discovery value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveriesIsMutable(); - discoveries_.add(index, value); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void addDiscoveries( - net.iGap.proto.ProtoGlobal.Discovery.Builder builderForValue) { - ensureDiscoveriesIsMutable(); - discoveries_.add(builderForValue.build()); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void addDiscoveries( - int index, net.iGap.proto.ProtoGlobal.Discovery.Builder builderForValue) { - ensureDiscoveriesIsMutable(); - discoveries_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void addAllDiscoveries( - java.lang.Iterable values) { - ensureDiscoveriesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, discoveries_); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void clearDiscoveries() { - discoveries_ = emptyProtobufList(); - } - /** - * repeated .proto.Discovery discoveries = 3; - */ - private void removeDiscoveries(int index) { - ensureDiscoveriesIsMutable(); - discoveries_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!title_.isEmpty()) { - output.writeString(2, getTitle()); + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); } for (int i = 0; i < discoveries_.size(); i++) { output.writeMessage(3, discoveries_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -820,210 +1151,611 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!title_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getTitle()); + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } for (int i = 0; i < discoveries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, discoveries_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse other = (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getDiscoveriesList() + .equals(other.getDiscoveriesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getDiscoveriesCount() > 0) { + hash = (37 * hash) + DISCOVERIES_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetDiscoveryResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetDiscoveryResponse) net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscoveryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscoveryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.class, net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDiscoveriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + title_ = ""; + + if (discoveriesBuilder_ == null) { + discoveries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + discoveriesBuilder_.clear(); + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetDiscovery.internal_static_proto_ClientGetDiscoveryResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse build() { + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse buildPartial() { + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse result = new net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.title_ = title_; + if (discoveriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + discoveries_ = java.util.Collections.unmodifiableList(discoveries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.discoveries_ = discoveries_; + } else { + result.discoveries_ = discoveriesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse other) { + if (other == net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (discoveriesBuilder_ == null) { + if (!other.discoveries_.isEmpty()) { + if (discoveries_.isEmpty()) { + discoveries_ = other.discoveries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDiscoveriesIsMutable(); + discoveries_.addAll(other.discoveries_); + } + onChanged(); + } + } else { + if (!other.discoveries_.isEmpty()) { + if (discoveriesBuilder_.isEmpty()) { + discoveriesBuilder_.dispose(); + discoveriesBuilder_ = null; + discoveries_ = other.discoveries_; + bitField0_ = (bitField0_ & ~0x00000001); + discoveriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDiscoveriesFieldBuilder() : null; + } else { + discoveriesBuilder_.addAllMessages(other.discoveries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object title_ = ""; /** - * optional string title = 2; + * string title = 2; + * @return The title. */ public java.lang.String getTitle() { - return instance.getTitle(); + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string title = 2; + * string title = 2; + * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { - return instance.getTitleBytes(); + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string title = 2; + * string title = 2; + * @param value The title to set. + * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { - copyOnWrite(); - instance.setTitle(value); + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); return this; } /** - * optional string title = 2; + * string title = 2; + * @return This builder for chaining. */ public Builder clearTitle() { - copyOnWrite(); - instance.clearTitle(); + + title_ = getDefaultInstance().getTitle(); + onChanged(); return this; } /** - * optional string title = 2; + * string title = 2; + * @param value The bytes for title to set. + * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTitleBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); return this; } + private java.util.List discoveries_ = + java.util.Collections.emptyList(); + private void ensureDiscoveriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + discoveries_ = new java.util.ArrayList(discoveries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Discovery, net.iGap.proto.ProtoGlobal.Discovery.Builder, net.iGap.proto.ProtoGlobal.DiscoveryOrBuilder> discoveriesBuilder_; + /** * repeated .proto.Discovery discoveries = 3; */ public java.util.List getDiscoveriesList() { - return java.util.Collections.unmodifiableList( - instance.getDiscoveriesList()); + if (discoveriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(discoveries_); + } else { + return discoveriesBuilder_.getMessageList(); + } } /** * repeated .proto.Discovery discoveries = 3; */ public int getDiscoveriesCount() { - return instance.getDiscoveriesCount(); - }/** + if (discoveriesBuilder_ == null) { + return discoveries_.size(); + } else { + return discoveriesBuilder_.getCount(); + } + } + /** * repeated .proto.Discovery discoveries = 3; */ public net.iGap.proto.ProtoGlobal.Discovery getDiscoveries(int index) { - return instance.getDiscoveries(index); + if (discoveriesBuilder_ == null) { + return discoveries_.get(index); + } else { + return discoveriesBuilder_.getMessage(index); + } } /** * repeated .proto.Discovery discoveries = 3; */ public Builder setDiscoveries( int index, net.iGap.proto.ProtoGlobal.Discovery value) { - copyOnWrite(); - instance.setDiscoveries(index, value); + if (discoveriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveriesIsMutable(); + discoveries_.set(index, value); + onChanged(); + } else { + discoveriesBuilder_.setMessage(index, value); + } return this; } /** @@ -1031,16 +1763,29 @@ public Builder setDiscoveries( */ public Builder setDiscoveries( int index, net.iGap.proto.ProtoGlobal.Discovery.Builder builderForValue) { - copyOnWrite(); - instance.setDiscoveries(index, builderForValue); + if (discoveriesBuilder_ == null) { + ensureDiscoveriesIsMutable(); + discoveries_.set(index, builderForValue.build()); + onChanged(); + } else { + discoveriesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Discovery discoveries = 3; */ public Builder addDiscoveries(net.iGap.proto.ProtoGlobal.Discovery value) { - copyOnWrite(); - instance.addDiscoveries(value); + if (discoveriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveriesIsMutable(); + discoveries_.add(value); + onChanged(); + } else { + discoveriesBuilder_.addMessage(value); + } return this; } /** @@ -1048,8 +1793,16 @@ public Builder addDiscoveries(net.iGap.proto.ProtoGlobal.Discovery value) { */ public Builder addDiscoveries( int index, net.iGap.proto.ProtoGlobal.Discovery value) { - copyOnWrite(); - instance.addDiscoveries(index, value); + if (discoveriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveriesIsMutable(); + discoveries_.add(index, value); + onChanged(); + } else { + discoveriesBuilder_.addMessage(index, value); + } return this; } /** @@ -1057,8 +1810,13 @@ public Builder addDiscoveries( */ public Builder addDiscoveries( net.iGap.proto.ProtoGlobal.Discovery.Builder builderForValue) { - copyOnWrite(); - instance.addDiscoveries(builderForValue); + if (discoveriesBuilder_ == null) { + ensureDiscoveriesIsMutable(); + discoveries_.add(builderForValue.build()); + onChanged(); + } else { + discoveriesBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1066,8 +1824,13 @@ public Builder addDiscoveries( */ public Builder addDiscoveries( int index, net.iGap.proto.ProtoGlobal.Discovery.Builder builderForValue) { - copyOnWrite(); - instance.addDiscoveries(index, builderForValue); + if (discoveriesBuilder_ == null) { + ensureDiscoveriesIsMutable(); + discoveries_.add(index, builderForValue.build()); + onChanged(); + } else { + discoveriesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1075,154 +1838,210 @@ public Builder addDiscoveries( */ public Builder addAllDiscoveries( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllDiscoveries(values); + if (discoveriesBuilder_ == null) { + ensureDiscoveriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, discoveries_); + onChanged(); + } else { + discoveriesBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Discovery discoveries = 3; */ public Builder clearDiscoveries() { - copyOnWrite(); - instance.clearDiscoveries(); + if (discoveriesBuilder_ == null) { + discoveries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + discoveriesBuilder_.clear(); + } return this; } /** * repeated .proto.Discovery discoveries = 3; */ public Builder removeDiscoveries(int index) { - copyOnWrite(); - instance.removeDiscoveries(index); + if (discoveriesBuilder_ == null) { + ensureDiscoveriesIsMutable(); + discoveries_.remove(index); + onChanged(); + } else { + discoveriesBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetDiscoveryResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - discoveries_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse other = (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - title_ = visitor.visitString(!title_.isEmpty(), title_, - !other.title_.isEmpty(), other.title_); - discoveries_= visitor.visitList(discoveries_, other.discoveries_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 26: { - if (!discoveries_.isModifiable()) { - discoveries_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(discoveries_); - } - discoveries_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Discovery.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Discovery discoveries = 3; + */ + public net.iGap.proto.ProtoGlobal.Discovery.Builder getDiscoveriesBuilder( + int index) { + return getDiscoveriesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Discovery discoveries = 3; + */ + public net.iGap.proto.ProtoGlobal.DiscoveryOrBuilder getDiscoveriesOrBuilder( + int index) { + if (discoveriesBuilder_ == null) { + return discoveries_.get(index); } else { + return discoveriesBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Discovery discoveries = 3; + */ + public java.util.List + getDiscoveriesOrBuilderList() { + if (discoveriesBuilder_ != null) { + return discoveriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(discoveries_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Discovery discoveries = 3; + */ + public net.iGap.proto.ProtoGlobal.Discovery.Builder addDiscoveriesBuilder() { + return getDiscoveriesFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Discovery.getDefaultInstance()); + } + /** + * repeated .proto.Discovery discoveries = 3; + */ + public net.iGap.proto.ProtoGlobal.Discovery.Builder addDiscoveriesBuilder( + int index) { + return getDiscoveriesFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Discovery.getDefaultInstance()); + } + /** + * repeated .proto.Discovery discoveries = 3; + */ + public java.util.List + getDiscoveriesBuilderList() { + return getDiscoveriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Discovery, net.iGap.proto.ProtoGlobal.Discovery.Builder, net.iGap.proto.ProtoGlobal.DiscoveryOrBuilder> + getDiscoveriesFieldBuilder() { + if (discoveriesBuilder_ == null) { + discoveriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Discovery, net.iGap.proto.ProtoGlobal.Discovery.Builder, net.iGap.proto.ProtoGlobal.DiscoveryOrBuilder>( + discoveries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + discoveries_ = null; } + return discoveriesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetDiscoveryResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetDiscoveryResponse) private static final net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetDiscoveryResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse(); } public static net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetDiscoveryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetDiscovery.ClientGetDiscoveryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetDiscovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetDiscoveryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetDiscoveryResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030ClientGetDiscovery.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"k" + + "\n\022ClientGetDiscovery\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\017\n\007page_id\030\002 \001(\r\022\022\n\nprojec" + + "t_id\030\003 \001(\r\022\017\n\007item_id\030\004 \001(\r\"u\n\032ClientGet" + + "DiscoveryResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\r\n\005title\030\002 \001(\t\022%\n\013discoveri" + + "es\030\003 \003(\0132\020.proto.DiscoveryB)\n\016net.iGap.p" + + "rotoB\027ProtoClientGetDiscoveryb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientGetDiscovery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetDiscovery_descriptor, + new java.lang.String[] { "Request", "PageId", "ProjectId", "ItemId", }); + internal_static_proto_ClientGetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetDiscoveryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetDiscoveryResponse_descriptor, + new java.lang.String[] { "Response", "Title", "Discoveries", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetFavoriteMenu.java b/src/main/java/net/iGap/proto/ProtoClientGetFavoriteMenu.java index 3bb7e14..99cdd16 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetFavoriteMenu.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetFavoriteMenu.java @@ -8,90 +8,170 @@ private ProtoClientGetFavoriteMenu() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetFavoriteMenuOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetFavoriteMenu) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.ClientGetFavoriteMenu} */ - public static final class ClientGetFavoriteMenu extends - com.google.protobuf.GeneratedMessageLite< - ClientGetFavoriteMenu, ClientGetFavoriteMenu.Builder> implements + public static final class ClientGetFavoriteMenu extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetFavoriteMenu) ClientGetFavoriteMenuOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetFavoriteMenu.newBuilder() to construct. + private ClientGetFavoriteMenu(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetFavoriteMenu() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetFavoriteMenu(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetFavoriteMenu( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenu_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenu_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.class, net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,254 +179,480 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu other = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetFavoriteMenu} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetFavoriteMenu) net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenu_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenu_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.class, net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenu_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu build() { + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu buildPartial() { + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu result = new net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu) { + return mergeFrom((net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu other) { + if (other == net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetFavoriteMenu) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu other = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetFavoriteMenu) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetFavoriteMenu) private static final net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetFavoriteMenu(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu(); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetFavoriteMenu parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetFavoriteMenu(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientGetFavoriteMenuResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetFavoriteMenuResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Favorite favorites = 2; @@ -361,82 +667,160 @@ public interface ClientGetFavoriteMenuResponseOrBuilder extends * repeated .proto.Favorite favorites = 2; */ int getFavoritesCount(); + /** + * repeated .proto.Favorite favorites = 2; + */ + java.util.List + getFavoritesOrBuilderList(); + /** + * repeated .proto.Favorite favorites = 2; + */ + net.iGap.proto.ProtoGlobal.FavoriteOrBuilder getFavoritesOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientGetFavoriteMenuResponse} */ - public static final class ClientGetFavoriteMenuResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetFavoriteMenuResponse, ClientGetFavoriteMenuResponse.Builder> implements + public static final class ClientGetFavoriteMenuResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetFavoriteMenuResponse) ClientGetFavoriteMenuResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetFavoriteMenuResponse.newBuilder() to construct. + private ClientGetFavoriteMenuResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetFavoriteMenuResponse() { - favorites_ = emptyProtobufList(); + favorites_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetFavoriteMenuResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetFavoriteMenuResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + favorites_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + favorites_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Favorite.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + favorites_ = java.util.Collections.unmodifiableList(favorites_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenuResponse_descriptor; } - private int bitField0_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenuResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.class, net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int FAVORITES_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList favorites_; + private java.util.List favorites_; /** * repeated .proto.Favorite favorites = 2; */ + @java.lang.Override public java.util.List getFavoritesList() { return favorites_; } /** * repeated .proto.Favorite favorites = 2; */ + @java.lang.Override public java.util.List getFavoritesOrBuilderList() { return favorites_; @@ -444,108 +828,38 @@ public java.util.List getFavoritesList() { /** * repeated .proto.Favorite favorites = 2; */ + @java.lang.Override public int getFavoritesCount() { return favorites_.size(); } /** * repeated .proto.Favorite favorites = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Favorite getFavorites(int index) { return favorites_.get(index); } /** * repeated .proto.Favorite favorites = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.FavoriteOrBuilder getFavoritesOrBuilder( int index) { return favorites_.get(index); } - private void ensureFavoritesIsMutable() { - if (!favorites_.isModifiable()) { - favorites_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(favorites_); - } - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void setFavorites( - int index, net.iGap.proto.ProtoGlobal.Favorite value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFavoritesIsMutable(); - favorites_.set(index, value); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void setFavorites( - int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { - ensureFavoritesIsMutable(); - favorites_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void addFavorites(net.iGap.proto.ProtoGlobal.Favorite value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFavoritesIsMutable(); - favorites_.add(value); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void addFavorites( - int index, net.iGap.proto.ProtoGlobal.Favorite value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFavoritesIsMutable(); - favorites_.add(index, value); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void addFavorites( - net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { - ensureFavoritesIsMutable(); - favorites_.add(builderForValue.build()); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void addFavorites( - int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { - ensureFavoritesIsMutable(); - favorites_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void addAllFavorites( - java.lang.Iterable values) { - ensureFavoritesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, favorites_); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void clearFavorites() { - favorites_ = emptyProtobufList(); - } - /** - * repeated .proto.Favorite favorites = 2; - */ - private void removeFavorites(int index) { - ensureFavoritesIsMutable(); - favorites_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -554,10 +868,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < favorites_.size(); i++) { output.writeMessage(2, favorites_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -569,162 +885,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, favorites_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse other = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getFavoritesList() + .equals(other.getFavoritesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getFavoritesCount() > 0) { + hash = (37 * hash) + FAVORITES_FIELD_NUMBER; + hash = (53 * hash) + getFavoritesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetFavoriteMenuResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetFavoriteMenuResponse) net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenuResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenuResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.class, net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFavoritesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (favoritesBuilder_ == null) { + favorites_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + favoritesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.internal_static_proto_ClientGetFavoriteMenuResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse build() { + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse buildPartial() { + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse result = new net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (favoritesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + favorites_ = java.util.Collections.unmodifiableList(favorites_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.favorites_ = favorites_; + } else { + result.favorites_ = favoritesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse other) { + if (other == net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (favoritesBuilder_ == null) { + if (!other.favorites_.isEmpty()) { + if (favorites_.isEmpty()) { + favorites_ = other.favorites_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFavoritesIsMutable(); + favorites_.addAll(other.favorites_); + } + onChanged(); + } + } else { + if (!other.favorites_.isEmpty()) { + if (favoritesBuilder_.isEmpty()) { + favoritesBuilder_.dispose(); + favoritesBuilder_ = null; + favorites_ = other.favorites_; + bitField0_ = (bitField0_ & ~0x00000001); + favoritesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFavoritesFieldBuilder() : null; + } else { + favoritesBuilder_.addAllMessages(other.favorites_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List favorites_ = + java.util.Collections.emptyList(); + private void ensureFavoritesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + favorites_ = new java.util.ArrayList(favorites_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Favorite, net.iGap.proto.ProtoGlobal.Favorite.Builder, net.iGap.proto.ProtoGlobal.FavoriteOrBuilder> favoritesBuilder_; /** * repeated .proto.Favorite favorites = 2; */ public java.util.List getFavoritesList() { - return java.util.Collections.unmodifiableList( - instance.getFavoritesList()); + if (favoritesBuilder_ == null) { + return java.util.Collections.unmodifiableList(favorites_); + } else { + return favoritesBuilder_.getMessageList(); + } } /** * repeated .proto.Favorite favorites = 2; */ public int getFavoritesCount() { - return instance.getFavoritesCount(); - }/** + if (favoritesBuilder_ == null) { + return favorites_.size(); + } else { + return favoritesBuilder_.getCount(); + } + } + /** * repeated .proto.Favorite favorites = 2; */ public net.iGap.proto.ProtoGlobal.Favorite getFavorites(int index) { - return instance.getFavorites(index); + if (favoritesBuilder_ == null) { + return favorites_.get(index); + } else { + return favoritesBuilder_.getMessage(index); + } } /** * repeated .proto.Favorite favorites = 2; */ public Builder setFavorites( int index, net.iGap.proto.ProtoGlobal.Favorite value) { - copyOnWrite(); - instance.setFavorites(index, value); + if (favoritesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFavoritesIsMutable(); + favorites_.set(index, value); + onChanged(); + } else { + favoritesBuilder_.setMessage(index, value); + } return this; } /** @@ -732,16 +1403,29 @@ public Builder setFavorites( */ public Builder setFavorites( int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { - copyOnWrite(); - instance.setFavorites(index, builderForValue); + if (favoritesBuilder_ == null) { + ensureFavoritesIsMutable(); + favorites_.set(index, builderForValue.build()); + onChanged(); + } else { + favoritesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Favorite favorites = 2; */ public Builder addFavorites(net.iGap.proto.ProtoGlobal.Favorite value) { - copyOnWrite(); - instance.addFavorites(value); + if (favoritesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFavoritesIsMutable(); + favorites_.add(value); + onChanged(); + } else { + favoritesBuilder_.addMessage(value); + } return this; } /** @@ -749,8 +1433,16 @@ public Builder addFavorites(net.iGap.proto.ProtoGlobal.Favorite value) { */ public Builder addFavorites( int index, net.iGap.proto.ProtoGlobal.Favorite value) { - copyOnWrite(); - instance.addFavorites(index, value); + if (favoritesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFavoritesIsMutable(); + favorites_.add(index, value); + onChanged(); + } else { + favoritesBuilder_.addMessage(index, value); + } return this; } /** @@ -758,8 +1450,13 @@ public Builder addFavorites( */ public Builder addFavorites( net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { - copyOnWrite(); - instance.addFavorites(builderForValue); + if (favoritesBuilder_ == null) { + ensureFavoritesIsMutable(); + favorites_.add(builderForValue.build()); + onChanged(); + } else { + favoritesBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -767,8 +1464,13 @@ public Builder addFavorites( */ public Builder addFavorites( int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { - copyOnWrite(); - instance.addFavorites(index, builderForValue); + if (favoritesBuilder_ == null) { + ensureFavoritesIsMutable(); + favorites_.add(index, builderForValue.build()); + onChanged(); + } else { + favoritesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -776,146 +1478,209 @@ public Builder addFavorites( */ public Builder addAllFavorites( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllFavorites(values); + if (favoritesBuilder_ == null) { + ensureFavoritesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, favorites_); + onChanged(); + } else { + favoritesBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Favorite favorites = 2; */ public Builder clearFavorites() { - copyOnWrite(); - instance.clearFavorites(); + if (favoritesBuilder_ == null) { + favorites_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + favoritesBuilder_.clear(); + } return this; } /** * repeated .proto.Favorite favorites = 2; */ public Builder removeFavorites(int index) { - copyOnWrite(); - instance.removeFavorites(index); + if (favoritesBuilder_ == null) { + ensureFavoritesIsMutable(); + favorites_.remove(index); + onChanged(); + } else { + favoritesBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetFavoriteMenuResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - favorites_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse other = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - favorites_= visitor.visitList(favorites_, other.favorites_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!favorites_.isModifiable()) { - favorites_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(favorites_); - } - favorites_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Favorite.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Favorite favorites = 2; + */ + public net.iGap.proto.ProtoGlobal.Favorite.Builder getFavoritesBuilder( + int index) { + return getFavoritesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public net.iGap.proto.ProtoGlobal.FavoriteOrBuilder getFavoritesOrBuilder( + int index) { + if (favoritesBuilder_ == null) { + return favorites_.get(index); } else { + return favoritesBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public java.util.List + getFavoritesOrBuilderList() { + if (favoritesBuilder_ != null) { + return favoritesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(favorites_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public net.iGap.proto.ProtoGlobal.Favorite.Builder addFavoritesBuilder() { + return getFavoritesFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Favorite.getDefaultInstance()); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public net.iGap.proto.ProtoGlobal.Favorite.Builder addFavoritesBuilder( + int index) { + return getFavoritesFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Favorite.getDefaultInstance()); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public java.util.List + getFavoritesBuilderList() { + return getFavoritesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Favorite, net.iGap.proto.ProtoGlobal.Favorite.Builder, net.iGap.proto.ProtoGlobal.FavoriteOrBuilder> + getFavoritesFieldBuilder() { + if (favoritesBuilder_ == null) { + favoritesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Favorite, net.iGap.proto.ProtoGlobal.Favorite.Builder, net.iGap.proto.ProtoGlobal.FavoriteOrBuilder>( + favorites_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + favorites_ = null; } + return favoritesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ClientGetFavoriteMenuResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientGetFavoriteMenuResponse) private static final net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetFavoriteMenuResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse(); } public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetFavoriteMenuResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetFavoriteMenuResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetFavoriteMenu_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetFavoriteMenu_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetFavoriteMenuResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetFavoriteMenuResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033ClientGetFavoriteMenu.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\032\014Global.prot" + + "o\"8\n\025ClientGetFavoriteMenu\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\"f\n\035ClientGetFavorite" + + "MenuResponse\022!\n\010response\030\001 \001(\0132\017.proto.R" + + "esponse\022\"\n\tfavorites\030\002 \003(\0132\017.proto.Favor" + + "iteB,\n\016net.iGap.protoB\032ProtoClientGetFav" + + "oriteMenub\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientGetFavoriteMenu_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetFavoriteMenu_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetFavoriteMenu_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_ClientGetFavoriteMenuResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetFavoriteMenuResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetFavoriteMenuResponse_descriptor, + new java.lang.String[] { "Response", "Favorites", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetPoll.java b/src/main/java/net/iGap/proto/ProtoClientGetPoll.java index 013b972..86a52a3 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetPoll.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetPoll.java @@ -8,137 +8,203 @@ private ProtoClientGetPoll() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetPollOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetPoll) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 poll_id = 2; + * uint32 poll_id = 2; + * @return The pollId. */ int getPollId(); /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return The projectId. */ int getProjectId(); } /** * Protobuf type {@code proto.ClientGetPoll} */ - public static final class ClientGetPoll extends - com.google.protobuf.GeneratedMessageLite< - ClientGetPoll, ClientGetPoll.Builder> implements + public static final class ClientGetPoll extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetPoll) ClientGetPollOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetPoll.newBuilder() to construct. + private ClientGetPoll(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetPoll() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetPoll(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetPoll( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + pollId_ = input.readUInt32(); + break; + } + case 24: { + + projectId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPoll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPoll_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.class, net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int POLL_ID_FIELD_NUMBER = 2; private int pollId_; /** - * optional uint32 poll_id = 2; + * uint32 poll_id = 2; + * @return The pollId. */ + @java.lang.Override public int getPollId() { return pollId_; } - /** - * optional uint32 poll_id = 2; - */ - private void setPollId(int value) { - - pollId_ = value; - } - /** - * optional uint32 poll_id = 2; - */ - private void clearPollId() { - - pollId_ = 0; - } public static final int PROJECT_ID_FIELD_NUMBER = 3; private int projectId_; /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return The projectId. */ + @java.lang.Override public int getProjectId() { return projectId_; } - /** - * optional uint32 project_id = 3; - */ - private void setProjectId(int value) { - - projectId_ = value; - } - /** - * optional uint32 project_id = 3; - */ - private void clearProjectId() { - - projectId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (projectId_ != 0) { output.writeUInt32(3, projectId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,321 +237,571 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, projectId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetPoll.ClientGetPoll)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetPoll.ClientGetPoll other = (net.iGap.proto.ProtoClientGetPoll.ClientGetPoll) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPollId() + != other.getPollId()) return false; + if (getProjectId() + != other.getProjectId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + POLL_ID_FIELD_NUMBER; + hash = (53 * hash) + getPollId(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetPoll.ClientGetPoll prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetPoll} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetPoll.ClientGetPoll, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetPoll) net.iGap.proto.ProtoClientGetPoll.ClientGetPollOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPoll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPoll_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.class, net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + pollId_ = 0; + + projectId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPoll_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPoll getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPoll build() { + net.iGap.proto.ProtoClientGetPoll.ClientGetPoll result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPoll buildPartial() { + net.iGap.proto.ProtoClientGetPoll.ClientGetPoll result = new net.iGap.proto.ProtoClientGetPoll.ClientGetPoll(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.pollId_ = pollId_; + result.projectId_ = projectId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetPoll.ClientGetPoll) { + return mergeFrom((net.iGap.proto.ProtoClientGetPoll.ClientGetPoll)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetPoll.ClientGetPoll other) { + if (other == net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPollId() != 0) { + setPollId(other.getPollId()); + } + if (other.getProjectId() != 0) { + setProjectId(other.getProjectId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetPoll.ClientGetPoll parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetPoll.ClientGetPoll) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int pollId_ ; /** - * optional uint32 poll_id = 2; + * uint32 poll_id = 2; + * @return The pollId. */ + @java.lang.Override public int getPollId() { - return instance.getPollId(); + return pollId_; } /** - * optional uint32 poll_id = 2; + * uint32 poll_id = 2; + * @param value The pollId to set. + * @return This builder for chaining. */ public Builder setPollId(int value) { - copyOnWrite(); - instance.setPollId(value); + + pollId_ = value; + onChanged(); return this; } /** - * optional uint32 poll_id = 2; + * uint32 poll_id = 2; + * @return This builder for chaining. */ public Builder clearPollId() { - copyOnWrite(); - instance.clearPollId(); + + pollId_ = 0; + onChanged(); return this; } + private int projectId_ ; /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return The projectId. */ + @java.lang.Override public int getProjectId() { - return instance.getProjectId(); + return projectId_; } /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @param value The projectId to set. + * @return This builder for chaining. */ public Builder setProjectId(int value) { - copyOnWrite(); - instance.setProjectId(value); + + projectId_ = value; + onChanged(); return this; } /** - * optional uint32 project_id = 3; + * uint32 project_id = 3; + * @return This builder for chaining. */ public Builder clearProjectId() { - copyOnWrite(); - instance.clearProjectId(); + + projectId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientGetPoll) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetPoll.ClientGetPoll(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetPoll.ClientGetPoll other = (net.iGap.proto.ProtoClientGetPoll.ClientGetPoll) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pollId_ = visitor.visitInt(pollId_ != 0, pollId_, - other.pollId_ != 0, other.pollId_); - projectId_ = visitor.visitInt(projectId_ != 0, projectId_, - other.projectId_ != 0, other.projectId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - pollId_ = input.readUInt32(); - break; - } - case 24: { - - projectId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetPoll.ClientGetPoll.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetPoll) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetPoll) private static final net.iGap.proto.ProtoClientGetPoll.ClientGetPoll DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetPoll(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetPoll.ClientGetPoll(); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPoll getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetPoll parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetPoll(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPoll getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientGetPollResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetPollResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string title = 2; + * string title = 2; + * @return The title. */ java.lang.String getTitle(); /** - * optional string title = 2; + * string title = 2; + * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); @@ -501,129 +819,205 @@ public interface ClientGetPollResponseOrBuilder extends * repeated .proto.Poll polls = 3; */ int getPollsCount(); + /** + * repeated .proto.Poll polls = 3; + */ + java.util.List + getPollsOrBuilderList(); + /** + * repeated .proto.Poll polls = 3; + */ + net.iGap.proto.ProtoGlobal.PollOrBuilder getPollsOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientGetPollResponse} */ - public static final class ClientGetPollResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetPollResponse, ClientGetPollResponse.Builder> implements + public static final class ClientGetPollResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetPollResponse) ClientGetPollResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetPollResponse.newBuilder() to construct. + private ClientGetPollResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetPollResponse() { title_ = ""; - polls_ = emptyProtobufList(); + polls_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetPollResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetPollResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + polls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + polls_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Poll.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + polls_ = java.util.Collections.unmodifiableList(polls_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPollResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPollResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.class, net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TITLE_FIELD_NUMBER = 2; - private java.lang.String title_; + private volatile java.lang.Object title_; /** - * optional string title = 2; + * string title = 2; + * @return The title. */ + @java.lang.Override public java.lang.String getTitle() { - return title_; + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } } /** - * optional string title = 2; + * string title = 2; + * @return The bytes for title. */ + @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(title_); - } - /** - * optional string title = 2; - */ - private void setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - } - /** - * optional string title = 2; - */ - private void clearTitle() { - - title_ = getDefaultInstance().getTitle(); - } - /** - * optional string title = 2; - */ - private void setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value.toStringUtf8(); + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int POLLS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList polls_; + private java.util.List polls_; /** * repeated .proto.Poll polls = 3; */ + @java.lang.Override public java.util.List getPollsList() { return polls_; } /** * repeated .proto.Poll polls = 3; */ + @java.lang.Override public java.util.List getPollsOrBuilderList() { return polls_; @@ -631,123 +1025,55 @@ public java.util.List getPollsList() { /** * repeated .proto.Poll polls = 3; */ + @java.lang.Override public int getPollsCount() { return polls_.size(); } /** * repeated .proto.Poll polls = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Poll getPolls(int index) { return polls_.get(index); } /** * repeated .proto.Poll polls = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PollOrBuilder getPollsOrBuilder( int index) { return polls_.get(index); } - private void ensurePollsIsMutable() { - if (!polls_.isModifiable()) { - polls_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(polls_); - } - } - /** - * repeated .proto.Poll polls = 3; - */ - private void setPolls( - int index, net.iGap.proto.ProtoGlobal.Poll value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePollsIsMutable(); - polls_.set(index, value); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void setPolls( - int index, net.iGap.proto.ProtoGlobal.Poll.Builder builderForValue) { - ensurePollsIsMutable(); - polls_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void addPolls(net.iGap.proto.ProtoGlobal.Poll value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePollsIsMutable(); - polls_.add(value); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void addPolls( - int index, net.iGap.proto.ProtoGlobal.Poll value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePollsIsMutable(); - polls_.add(index, value); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void addPolls( - net.iGap.proto.ProtoGlobal.Poll.Builder builderForValue) { - ensurePollsIsMutable(); - polls_.add(builderForValue.build()); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void addPolls( - int index, net.iGap.proto.ProtoGlobal.Poll.Builder builderForValue) { - ensurePollsIsMutable(); - polls_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void addAllPolls( - java.lang.Iterable values) { - ensurePollsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, polls_); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void clearPolls() { - polls_ = emptyProtobufList(); - } - /** - * repeated .proto.Poll polls = 3; - */ - private void removePolls(int index) { - ensurePollsIsMutable(); - polls_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!title_.isEmpty()) { - output.writeString(2, getTitle()); + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); } for (int i = 0; i < polls_.size(); i++) { output.writeMessage(3, polls_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -755,210 +1081,611 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!title_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getTitle()); + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } for (int i = 0; i < polls_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, polls_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse other = (net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getPollsList() + .equals(other.getPollsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getPollsCount() > 0) { + hash = (37 * hash) + POLLS_FIELD_NUMBER; + hash = (53 * hash) + getPollsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetPollResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetPollResponse) net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPollResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPollResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.class, net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPollsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + title_ = ""; + + if (pollsBuilder_ == null) { + polls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pollsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetPoll.internal_static_proto_ClientGetPollResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse build() { + net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse buildPartial() { + net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse result = new net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.title_ = title_; + if (pollsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + polls_ = java.util.Collections.unmodifiableList(polls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.polls_ = polls_; + } else { + result.polls_ = pollsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse other) { + if (other == net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (pollsBuilder_ == null) { + if (!other.polls_.isEmpty()) { + if (polls_.isEmpty()) { + polls_ = other.polls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePollsIsMutable(); + polls_.addAll(other.polls_); + } + onChanged(); + } + } else { + if (!other.polls_.isEmpty()) { + if (pollsBuilder_.isEmpty()) { + pollsBuilder_.dispose(); + pollsBuilder_ = null; + polls_ = other.polls_; + bitField0_ = (bitField0_ & ~0x00000001); + pollsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPollsFieldBuilder() : null; + } else { + pollsBuilder_.addAllMessages(other.polls_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object title_ = ""; /** - * optional string title = 2; + * string title = 2; + * @return The title. */ public java.lang.String getTitle() { - return instance.getTitle(); + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string title = 2; + * string title = 2; + * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { - return instance.getTitleBytes(); + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string title = 2; + * string title = 2; + * @param value The title to set. + * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { - copyOnWrite(); - instance.setTitle(value); + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); return this; } /** - * optional string title = 2; + * string title = 2; + * @return This builder for chaining. */ public Builder clearTitle() { - copyOnWrite(); - instance.clearTitle(); + + title_ = getDefaultInstance().getTitle(); + onChanged(); return this; } /** - * optional string title = 2; + * string title = 2; + * @param value The bytes for title to set. + * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTitleBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); return this; } + private java.util.List polls_ = + java.util.Collections.emptyList(); + private void ensurePollsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + polls_ = new java.util.ArrayList(polls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Poll, net.iGap.proto.ProtoGlobal.Poll.Builder, net.iGap.proto.ProtoGlobal.PollOrBuilder> pollsBuilder_; + /** * repeated .proto.Poll polls = 3; */ public java.util.List getPollsList() { - return java.util.Collections.unmodifiableList( - instance.getPollsList()); + if (pollsBuilder_ == null) { + return java.util.Collections.unmodifiableList(polls_); + } else { + return pollsBuilder_.getMessageList(); + } } /** * repeated .proto.Poll polls = 3; */ public int getPollsCount() { - return instance.getPollsCount(); - }/** + if (pollsBuilder_ == null) { + return polls_.size(); + } else { + return pollsBuilder_.getCount(); + } + } + /** * repeated .proto.Poll polls = 3; */ public net.iGap.proto.ProtoGlobal.Poll getPolls(int index) { - return instance.getPolls(index); + if (pollsBuilder_ == null) { + return polls_.get(index); + } else { + return pollsBuilder_.getMessage(index); + } } /** * repeated .proto.Poll polls = 3; */ public Builder setPolls( int index, net.iGap.proto.ProtoGlobal.Poll value) { - copyOnWrite(); - instance.setPolls(index, value); + if (pollsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePollsIsMutable(); + polls_.set(index, value); + onChanged(); + } else { + pollsBuilder_.setMessage(index, value); + } return this; } /** @@ -966,16 +1693,29 @@ public Builder setPolls( */ public Builder setPolls( int index, net.iGap.proto.ProtoGlobal.Poll.Builder builderForValue) { - copyOnWrite(); - instance.setPolls(index, builderForValue); + if (pollsBuilder_ == null) { + ensurePollsIsMutable(); + polls_.set(index, builderForValue.build()); + onChanged(); + } else { + pollsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Poll polls = 3; */ public Builder addPolls(net.iGap.proto.ProtoGlobal.Poll value) { - copyOnWrite(); - instance.addPolls(value); + if (pollsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePollsIsMutable(); + polls_.add(value); + onChanged(); + } else { + pollsBuilder_.addMessage(value); + } return this; } /** @@ -983,8 +1723,16 @@ public Builder addPolls(net.iGap.proto.ProtoGlobal.Poll value) { */ public Builder addPolls( int index, net.iGap.proto.ProtoGlobal.Poll value) { - copyOnWrite(); - instance.addPolls(index, value); + if (pollsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePollsIsMutable(); + polls_.add(index, value); + onChanged(); + } else { + pollsBuilder_.addMessage(index, value); + } return this; } /** @@ -992,8 +1740,13 @@ public Builder addPolls( */ public Builder addPolls( net.iGap.proto.ProtoGlobal.Poll.Builder builderForValue) { - copyOnWrite(); - instance.addPolls(builderForValue); + if (pollsBuilder_ == null) { + ensurePollsIsMutable(); + polls_.add(builderForValue.build()); + onChanged(); + } else { + pollsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1001,8 +1754,13 @@ public Builder addPolls( */ public Builder addPolls( int index, net.iGap.proto.ProtoGlobal.Poll.Builder builderForValue) { - copyOnWrite(); - instance.addPolls(index, builderForValue); + if (pollsBuilder_ == null) { + ensurePollsIsMutable(); + polls_.add(index, builderForValue.build()); + onChanged(); + } else { + pollsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1010,154 +1768,209 @@ public Builder addPolls( */ public Builder addAllPolls( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPolls(values); + if (pollsBuilder_ == null) { + ensurePollsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, polls_); + onChanged(); + } else { + pollsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Poll polls = 3; */ public Builder clearPolls() { - copyOnWrite(); - instance.clearPolls(); + if (pollsBuilder_ == null) { + polls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pollsBuilder_.clear(); + } return this; } /** * repeated .proto.Poll polls = 3; */ public Builder removePolls(int index) { - copyOnWrite(); - instance.removePolls(index); + if (pollsBuilder_ == null) { + ensurePollsIsMutable(); + polls_.remove(index); + onChanged(); + } else { + pollsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetPollResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - polls_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse other = (net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - title_ = visitor.visitString(!title_.isEmpty(), title_, - !other.title_.isEmpty(), other.title_); - polls_= visitor.visitList(polls_, other.polls_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 26: { - if (!polls_.isModifiable()) { - polls_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(polls_); - } - polls_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Poll.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Poll polls = 3; + */ + public net.iGap.proto.ProtoGlobal.Poll.Builder getPollsBuilder( + int index) { + return getPollsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Poll polls = 3; + */ + public net.iGap.proto.ProtoGlobal.PollOrBuilder getPollsOrBuilder( + int index) { + if (pollsBuilder_ == null) { + return polls_.get(index); } else { + return pollsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Poll polls = 3; + */ + public java.util.List + getPollsOrBuilderList() { + if (pollsBuilder_ != null) { + return pollsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(polls_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Poll polls = 3; + */ + public net.iGap.proto.ProtoGlobal.Poll.Builder addPollsBuilder() { + return getPollsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Poll.getDefaultInstance()); + } + /** + * repeated .proto.Poll polls = 3; + */ + public net.iGap.proto.ProtoGlobal.Poll.Builder addPollsBuilder( + int index) { + return getPollsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Poll.getDefaultInstance()); + } + /** + * repeated .proto.Poll polls = 3; + */ + public java.util.List + getPollsBuilderList() { + return getPollsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Poll, net.iGap.proto.ProtoGlobal.Poll.Builder, net.iGap.proto.ProtoGlobal.PollOrBuilder> + getPollsFieldBuilder() { + if (pollsBuilder_ == null) { + pollsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Poll, net.iGap.proto.ProtoGlobal.Poll.Builder, net.iGap.proto.ProtoGlobal.PollOrBuilder>( + polls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + polls_ = null; } + return pollsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetPollResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetPollResponse) private static final net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetPollResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse(); } public static net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetPollResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetPollResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPoll.ClientGetPollResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetPoll_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetPoll_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetPollResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetPollResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023ClientGetPoll.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\032\014Global.proto\"U\n\rCli" + + "entGetPoll\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007poll_id\030\002 \001(\r\022\022\n\nproject_id\030\003 \001(\r" + + "\"e\n\025ClientGetPollResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022\r\n\005title\030\002 \001(\t\022\032\n\005p" + + "olls\030\003 \003(\0132\013.proto.PollB$\n\016net.iGap.prot" + + "oB\022ProtoClientGetPollb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientGetPoll_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetPoll_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetPoll_descriptor, + new java.lang.String[] { "Request", "PollId", "ProjectId", }); + internal_static_proto_ClientGetPollResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetPollResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetPollResponse_descriptor, + new java.lang.String[] { "Response", "Title", "Polls", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetPromote.java b/src/main/java/net/iGap/proto/ProtoClientGetPromote.java index 72eb9b0..2d80f0c 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetPromote.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetPromote.java @@ -8,90 +8,170 @@ private ProtoClientGetPromote() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetPromoteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetPromote) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.ClientGetPromote} */ - public static final class ClientGetPromote extends - com.google.protobuf.GeneratedMessageLite< - ClientGetPromote, ClientGetPromote.Builder> implements + public static final class ClientGetPromote extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetPromote) ClientGetPromoteOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetPromote.newBuilder() to construct. + private ClientGetPromote(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetPromote() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetPromote(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetPromote( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.class, net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,254 +179,480 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetPromote.ClientGetPromote)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetPromote.ClientGetPromote other = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromote) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetPromote.ClientGetPromote prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetPromote} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetPromote.ClientGetPromote, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetPromote) net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.class, net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromote_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromote getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromote build() { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromote result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromote buildPartial() { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromote result = new net.iGap.proto.ProtoClientGetPromote.ClientGetPromote(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetPromote.ClientGetPromote) { + return mergeFrom((net.iGap.proto.ProtoClientGetPromote.ClientGetPromote)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetPromote.ClientGetPromote other) { + if (other == net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromote parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromote) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetPromote) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetPromote.ClientGetPromote(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetPromote.ClientGetPromote other = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromote) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetPromote.ClientGetPromote.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientGetPromote) + } // @@protoc_insertion_point(class_scope:proto.ClientGetPromote) private static final net.iGap.proto.ProtoClientGetPromote.ClientGetPromote DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetPromote(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetPromote.ClientGetPromote(); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromote getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetPromote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetPromote(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromote getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientGetPromoteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetPromoteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; @@ -361,51 +667,236 @@ public interface ClientGetPromoteResponseOrBuilder extends * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ int getPromoteCount(); + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + java.util.List + getPromoteOrBuilderList(); + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.PromoteOrBuilder getPromoteOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientGetPromoteResponse} */ - public static final class ClientGetPromoteResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetPromoteResponse, ClientGetPromoteResponse.Builder> implements + public static final class ClientGetPromoteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetPromoteResponse) ClientGetPromoteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetPromoteResponse.newBuilder() to construct. + private ClientGetPromoteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetPromoteResponse() { - promote_ = emptyProtobufList(); + promote_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetPromoteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetPromoteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + promote_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + promote_.add( + input.readMessage(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + promote_ = java.util.Collections.unmodifiableList(promote_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.class, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Builder.class); } + public interface PromoteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetPromoteResponse.Promote) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @return The type. */ net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type getType(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); } /** * Protobuf type {@code proto.ClientGetPromoteResponse.Promote} */ - public static final class Promote extends - com.google.protobuf.GeneratedMessageLite< - Promote, Promote.Builder> implements + public static final class Promote extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetPromoteResponse.Promote) PromoteOrBuilder { + private static final long serialVersionUID = 0L; + // Use Promote.newBuilder() to construct. + private Promote(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Promote() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Promote(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Promote( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_Promote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_Promote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.class, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder.class); } + /** * Protobuf enum {@code proto.ClientGetPromoteResponse.Promote.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * USER = 0; */ @@ -428,10 +919,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -439,6 +936,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return USER; @@ -459,6 +960,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -471,65 +1003,45 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @return The type. */ - public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type getType() { - net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type result = net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type result = net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type.UNRECOGNIZED : result; } - /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; - */ - private void setType(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type.USER.getNumber()) { @@ -538,10 +1050,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (id_ != 0L) { output.writeUInt64(2, id_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -553,321 +1067,464 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, id_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } - public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote other = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote) obj; + + if (type_ != other.type_) return false; + if (getId() + != other.getId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } - public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetPromoteResponse.Promote} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetPromoteResponse.Promote) net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.PromoteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_Promote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_Promote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.class, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + id_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_Promote_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote build() { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote buildPartial() { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote result = new net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote(this); + result.type_ = type_; + result.id_ = id_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote) { + return mergeFrom((net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote other) { + if (other == net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type result = net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type.UNRECOGNIZED : result; } /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * .proto.ClientGetPromoteResponse.Promote.Type type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientGetPromoteResponse.Promote) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote other = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetPromoteResponse.Promote) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetPromoteResponse.Promote) private static final net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Promote(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote(); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Promote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Promote(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PROMOTE_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList promote_; + private java.util.List promote_; /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ + @java.lang.Override public java.util.List getPromoteList() { return promote_; } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ + @java.lang.Override public java.util.List getPromoteOrBuilderList() { return promote_; @@ -875,108 +1532,38 @@ public java.util.Listrepeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ + @java.lang.Override public int getPromoteCount() { return promote_.size(); } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote getPromote(int index) { return promote_.get(index); } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.PromoteOrBuilder getPromoteOrBuilder( int index) { return promote_.get(index); } - private void ensurePromoteIsMutable() { - if (!promote_.isModifiable()) { - promote_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(promote_); - } - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void setPromote( - int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePromoteIsMutable(); - promote_.set(index, value); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void setPromote( - int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder builderForValue) { - ensurePromoteIsMutable(); - promote_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void addPromote(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePromoteIsMutable(); - promote_.add(value); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void addPromote( - int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePromoteIsMutable(); - promote_.add(index, value); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void addPromote( - net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder builderForValue) { - ensurePromoteIsMutable(); - promote_.add(builderForValue.build()); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void addPromote( - int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder builderForValue) { - ensurePromoteIsMutable(); - promote_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void addAllPromote( - java.lang.Iterable values) { - ensurePromoteIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, promote_); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void clearPromote() { - promote_ = emptyProtobufList(); - } - /** - * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; - */ - private void removePromote(int index) { - ensurePromoteIsMutable(); - promote_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -985,10 +1572,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < promote_.size(); i++) { output.writeMessage(2, promote_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1000,162 +1589,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, promote_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse other = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getPromoteList() + .equals(other.getPromoteList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getPromoteCount() > 0) { + hash = (37 * hash) + PROMOTE_FIELD_NUMBER; + hash = (53 * hash) + getPromoteList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetPromoteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetPromoteResponse) net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.class, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPromoteFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (promoteBuilder_ == null) { + promote_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + promoteBuilder_.clear(); + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetPromote.internal_static_proto_ClientGetPromoteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse build() { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse buildPartial() { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse result = new net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (promoteBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + promote_ = java.util.Collections.unmodifiableList(promote_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.promote_ = promote_; + } else { + result.promote_ = promoteBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse other) { + if (other == net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (promoteBuilder_ == null) { + if (!other.promote_.isEmpty()) { + if (promote_.isEmpty()) { + promote_ = other.promote_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePromoteIsMutable(); + promote_.addAll(other.promote_); + } + onChanged(); + } + } else { + if (!other.promote_.isEmpty()) { + if (promoteBuilder_.isEmpty()) { + promoteBuilder_.dispose(); + promoteBuilder_ = null; + promote_ = other.promote_; + bitField0_ = (bitField0_ & ~0x00000001); + promoteBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPromoteFieldBuilder() : null; + } else { + promoteBuilder_.addAllMessages(other.promote_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List promote_ = + java.util.Collections.emptyList(); + private void ensurePromoteIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + promote_ = new java.util.ArrayList(promote_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.PromoteOrBuilder> promoteBuilder_; /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ public java.util.List getPromoteList() { - return java.util.Collections.unmodifiableList( - instance.getPromoteList()); + if (promoteBuilder_ == null) { + return java.util.Collections.unmodifiableList(promote_); + } else { + return promoteBuilder_.getMessageList(); + } } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ public int getPromoteCount() { - return instance.getPromoteCount(); - }/** + if (promoteBuilder_ == null) { + return promote_.size(); + } else { + return promoteBuilder_.getCount(); + } + } + /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote getPromote(int index) { - return instance.getPromote(index); + if (promoteBuilder_ == null) { + return promote_.get(index); + } else { + return promoteBuilder_.getMessage(index); + } } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ public Builder setPromote( int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote value) { - copyOnWrite(); - instance.setPromote(index, value); + if (promoteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromoteIsMutable(); + promote_.set(index, value); + onChanged(); + } else { + promoteBuilder_.setMessage(index, value); + } return this; } /** @@ -1163,16 +2107,29 @@ public Builder setPromote( */ public Builder setPromote( int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder builderForValue) { - copyOnWrite(); - instance.setPromote(index, builderForValue); + if (promoteBuilder_ == null) { + ensurePromoteIsMutable(); + promote_.set(index, builderForValue.build()); + onChanged(); + } else { + promoteBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ public Builder addPromote(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote value) { - copyOnWrite(); - instance.addPromote(value); + if (promoteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromoteIsMutable(); + promote_.add(value); + onChanged(); + } else { + promoteBuilder_.addMessage(value); + } return this; } /** @@ -1180,8 +2137,16 @@ public Builder addPromote(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteR */ public Builder addPromote( int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote value) { - copyOnWrite(); - instance.addPromote(index, value); + if (promoteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromoteIsMutable(); + promote_.add(index, value); + onChanged(); + } else { + promoteBuilder_.addMessage(index, value); + } return this; } /** @@ -1189,8 +2154,13 @@ public Builder addPromote( */ public Builder addPromote( net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder builderForValue) { - copyOnWrite(); - instance.addPromote(builderForValue); + if (promoteBuilder_ == null) { + ensurePromoteIsMutable(); + promote_.add(builderForValue.build()); + onChanged(); + } else { + promoteBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1198,8 +2168,13 @@ public Builder addPromote( */ public Builder addPromote( int index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder builderForValue) { - copyOnWrite(); - instance.addPromote(index, builderForValue); + if (promoteBuilder_ == null) { + ensurePromoteIsMutable(); + promote_.add(index, builderForValue.build()); + onChanged(); + } else { + promoteBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1207,146 +2182,221 @@ public Builder addPromote( */ public Builder addAllPromote( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPromote(values); + if (promoteBuilder_ == null) { + ensurePromoteIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, promote_); + onChanged(); + } else { + promoteBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ public Builder clearPromote() { - copyOnWrite(); - instance.clearPromote(); + if (promoteBuilder_ == null) { + promote_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + promoteBuilder_.clear(); + } return this; } /** * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; */ public Builder removePromote(int index) { - copyOnWrite(); - instance.removePromote(index); + if (promoteBuilder_ == null) { + ensurePromoteIsMutable(); + promote_.remove(index); + onChanged(); + } else { + promoteBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetPromoteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - promote_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse other = (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - promote_= visitor.visitList(promote_, other.promote_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!promote_.isModifiable()) { - promote_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(promote_); - } - promote_.add( - input.readMessage(net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder getPromoteBuilder( + int index) { + return getPromoteFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.PromoteOrBuilder getPromoteOrBuilder( + int index) { + if (promoteBuilder_ == null) { + return promote_.get(index); } else { + return promoteBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + public java.util.List + getPromoteOrBuilderList() { + if (promoteBuilder_ != null) { + return promoteBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(promote_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder addPromoteBuilder() { + return getPromoteFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.getDefaultInstance()); + } + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder addPromoteBuilder( + int index) { + return getPromoteFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.getDefaultInstance()); + } + /** + * repeated .proto.ClientGetPromoteResponse.Promote promote = 2; + */ + public java.util.List + getPromoteBuilderList() { + return getPromoteFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.PromoteOrBuilder> + getPromoteFieldBuilder() { + if (promoteBuilder_ == null) { + promoteBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.Promote.Builder, net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse.PromoteOrBuilder>( + promote_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + promote_ = null; } + return promoteBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientGetPromoteResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientGetPromoteResponse) private static final net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetPromoteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse(); } public static net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetPromoteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetPromoteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoClientGetPromote.ClientGetPromoteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetPromote_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetPromote_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetPromoteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetPromoteResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetPromoteResponse_Promote_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetPromoteResponse_Promote_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ClientGetPromote.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"3\n\020ClientGetPromo" + + "te\022\037\n\007request\030\001 \001(\0132\016.proto.Request\"\355\001\n\030" + + "ClientGetPromoteResponse\022!\n\010response\030\001 \001" + + "(\0132\017.proto.Response\0228\n\007promote\030\002 \003(\0132\'.p" + + "roto.ClientGetPromoteResponse.Promote\032t\n" + + "\007Promote\022:\n\004type\030\001 \001(\0162,.proto.ClientGet" + + "PromoteResponse.Promote.Type\022\n\n\002id\030\002 \001(\004" + + "\"!\n\004Type\022\010\n\004USER\020\000\022\017\n\013PUBLIC_ROOM\020\001B\'\n\016n" + + "et.iGap.protoB\025ProtoClientGetPromoteb\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientGetPromote_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetPromote_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetPromote_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_ClientGetPromoteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetPromoteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetPromoteResponse_descriptor, + new java.lang.String[] { "Response", "Promote", }); + internal_static_proto_ClientGetPromoteResponse_Promote_descriptor = + internal_static_proto_ClientGetPromoteResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientGetPromoteResponse_Promote_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetPromoteResponse_Promote_descriptor, + new java.lang.String[] { "Type", "Id", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetRoom.java b/src/main/java/net/iGap/proto/ProtoClientGetRoom.java index d7b8cf7..ceeed0b 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetRoom.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetRoom.java @@ -8,109 +8,181 @@ private ProtoClientGetRoom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ClientGetRoom} */ - public static final class ClientGetRoom extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoom, ClientGetRoom.Builder> implements + public static final class ClientGetRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoom) ClientGetRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoom.newBuilder() to construct. + private ClientGetRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.class, net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,408 +208,705 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoom.ClientGetRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoom.ClientGetRoom other = (net.iGap.proto.ProtoClientGetRoom.ClientGetRoom) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoom.ClientGetRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoom.ClientGetRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoom) net.iGap.proto.ProtoClientGetRoom.ClientGetRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.class, net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoom build() { + net.iGap.proto.ProtoClientGetRoom.ClientGetRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoom buildPartial() { + net.iGap.proto.ProtoClientGetRoom.ClientGetRoom result = new net.iGap.proto.ProtoClientGetRoom.ClientGetRoom(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoom.ClientGetRoom) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoom.ClientGetRoom)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoom.ClientGetRoom other) { + if (other == net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoom.ClientGetRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoom.ClientGetRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoom.ClientGetRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoom.ClientGetRoom other = (net.iGap.proto.ProtoClientGetRoom.ClientGetRoom) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoom.ClientGetRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoom) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoom) private static final net.iGap.proto.ProtoClientGetRoom.ClientGetRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoom.ClientGetRoom(); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientGetRoomResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoomResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * .proto.Room room = 2; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ClientGetRoomResponse} */ - public static final class ClientGetRoomResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoomResponse, ClientGetRoomResponse.Builder> implements + public static final class ClientGetRoomResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoomResponse) ClientGetRoomResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoomResponse.newBuilder() to construct. + private ClientGetRoomResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoomResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoomResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoomResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.class, net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Room room_; /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } /** - * optional .proto.Room room = 2; - */ - private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.Room room = 2; - */ - private void setRoom( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - room_ = builderForValue.build(); - - } - /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.Room room = 2; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -544,10 +915,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(2, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -559,303 +932,653 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse other = (net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoomResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoomResponse) net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.class, net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoom.internal_static_proto_ClientGetRoomResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse build() { + net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse buildPartial() { + net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse result = new net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse other) { + if (other == net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; + * @return The room. */ public net.iGap.proto.ProtoGlobal.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Room room = 2; + * .proto.Room room = 2; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse other = (net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Room room = 2; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.Room room = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Room room = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } + return roomBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoomResponse) private static final net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoomResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse(); } public static net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoomResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoomResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoom.ClientGetRoomResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoomResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoomResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023ClientGetRoom.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\032\014Global.proto\"A\n\rCli" + + "entGetRoom\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007room_id\030\002 \001(\004\"U\n\025ClientGetRoomRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "\022\031\n\004room\030\002 \001(\0132\013.proto.RoomB$\n\016net.iGap." + + "protoB\022ProtoClientGetRoomb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientGetRoom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoom_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ClientGetRoomResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetRoomResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoomResponse_descriptor, + new java.lang.String[] { "Response", "Room", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java b/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java index 9939a56..88b5ef8 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java @@ -8,63 +8,188 @@ private ProtoClientGetRoomHistory() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetRoomHistoryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoomHistory) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 first_message_id = 3; + * uint64 first_message_id = 3; + * @return The firstMessageId. */ long getFirstMessageId(); /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @return The enum numeric value on the wire for direction. */ int getDirectionValue(); /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @return The direction. */ net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction getDirection(); /** - * optional uint32 limit = 5; + * uint32 limit = 5; + * @return The limit. */ int getLimit(); /** - * optional uint64 documentId = 6; + * uint64 documentId = 6; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ClientGetRoomHistory} */ - public static final class ClientGetRoomHistory extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoomHistory, ClientGetRoomHistory.Builder> implements + public static final class ClientGetRoomHistory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoomHistory) ClientGetRoomHistoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoomHistory.newBuilder() to construct. + private ClientGetRoomHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoomHistory() { + direction_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoomHistory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoomHistory( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + firstMessageId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + case 40: { + + limit_ = input.readUInt32(); + break; + } + case 48: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.class, net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Builder.class); + } + /** * Protobuf enum {@code proto.ClientGetRoomHistory.Direction} */ public enum Direction - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UP = 0; */ @@ -87,10 +212,16 @@ public enum Direction public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -98,6 +229,10 @@ public static Direction valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Direction forNumber(int value) { switch (value) { case 0: return UP; @@ -118,6 +253,37 @@ public Direction findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Direction(int value) { @@ -130,186 +296,104 @@ private Direction(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int FIRST_MESSAGE_ID_FIELD_NUMBER = 3; private long firstMessageId_; /** - * optional uint64 first_message_id = 3; + * uint64 first_message_id = 3; + * @return The firstMessageId. */ + @java.lang.Override public long getFirstMessageId() { return firstMessageId_; } - /** - * optional uint64 first_message_id = 3; - */ - private void setFirstMessageId(long value) { - - firstMessageId_ = value; - } - /** - * optional uint64 first_message_id = 3; - */ - private void clearFirstMessageId() { - - firstMessageId_ = 0L; - } public static final int DIRECTION_FIELD_NUMBER = 4; private int direction_; /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @return The enum numeric value on the wire for direction. */ - public int getDirectionValue() { + @java.lang.Override public int getDirectionValue() { return direction_; } /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @return The direction. */ - public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction getDirection() { - net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction result = net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction.forNumber(direction_); + @java.lang.Override public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction getDirection() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction result = net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction.valueOf(direction_); return result == null ? net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction.UNRECOGNIZED : result; } - /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; - */ - private void setDirectionValue(int value) { - direction_ = value; - } - /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; - */ - private void setDirection(net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction value) { - if (value == null) { - throw new NullPointerException(); - } - - direction_ = value.getNumber(); - } - /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; - */ - private void clearDirection() { - - direction_ = 0; - } public static final int LIMIT_FIELD_NUMBER = 5; private int limit_; /** - * optional uint32 limit = 5; + * uint32 limit = 5; + * @return The limit. */ + @java.lang.Override public int getLimit() { return limit_; } - /** - * optional uint32 limit = 5; - */ - private void setLimit(int value) { - - limit_ = value; - } - /** - * optional uint32 limit = 5; - */ - private void clearLimit() { - - limit_ = 0; - } public static final int DOCUMENTID_FIELD_NUMBER = 6; private long documentId_; /** - * optional uint64 documentId = 6; + * uint64 documentId = 6; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 documentId = 6; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 documentId = 6; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -330,10 +414,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(6, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -361,418 +447,710 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory other = (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getFirstMessageId() + != other.getFirstMessageId()) return false; + if (direction_ != other.direction_) return false; + if (getLimit() + != other.getLimit()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + FIRST_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstMessageId()); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoomHistory} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoomHistory) net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.class, net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + firstMessageId_ = 0L; + + direction_ = 0; + + limit_ = 0; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistory_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory build() { + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory buildPartial() { + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory result = new net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.firstMessageId_ = firstMessageId_; + result.direction_ = direction_; + result.limit_ = limit_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory other) { + if (other == net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getFirstMessageId() != 0L) { + setFirstMessageId(other.getFirstMessageId()); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long firstMessageId_ ; /** - * optional uint64 first_message_id = 3; + * uint64 first_message_id = 3; + * @return The firstMessageId. */ + @java.lang.Override public long getFirstMessageId() { - return instance.getFirstMessageId(); + return firstMessageId_; } /** - * optional uint64 first_message_id = 3; + * uint64 first_message_id = 3; + * @param value The firstMessageId to set. + * @return This builder for chaining. */ public Builder setFirstMessageId(long value) { - copyOnWrite(); - instance.setFirstMessageId(value); + + firstMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 first_message_id = 3; + * uint64 first_message_id = 3; + * @return This builder for chaining. */ public Builder clearFirstMessageId() { - copyOnWrite(); - instance.clearFirstMessageId(); + + firstMessageId_ = 0L; + onChanged(); return this; } + private int direction_ = 0; /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @return The enum numeric value on the wire for direction. */ - public int getDirectionValue() { - return instance.getDirectionValue(); + @java.lang.Override public int getDirectionValue() { + return direction_; } /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @param value The enum numeric value on the wire for direction to set. + * @return This builder for chaining. */ public Builder setDirectionValue(int value) { - copyOnWrite(); - instance.setDirectionValue(value); + + direction_ = value; + onChanged(); return this; } /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @return The direction. */ + @java.lang.Override public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction getDirection() { - return instance.getDirection(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction result = net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction.valueOf(direction_); + return result == null ? net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction.UNRECOGNIZED : result; } /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @param value The direction to set. + * @return This builder for chaining. */ public Builder setDirection(net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.Direction value) { - copyOnWrite(); - instance.setDirection(value); + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientGetRoomHistory.Direction direction = 4; + * .proto.ClientGetRoomHistory.Direction direction = 4; + * @return This builder for chaining. */ public Builder clearDirection() { - copyOnWrite(); - instance.clearDirection(); + + direction_ = 0; + onChanged(); return this; } + private int limit_ ; /** - * optional uint32 limit = 5; + * uint32 limit = 5; + * @return The limit. */ + @java.lang.Override public int getLimit() { - return instance.getLimit(); + return limit_; } /** - * optional uint32 limit = 5; + * uint32 limit = 5; + * @param value The limit to set. + * @return This builder for chaining. */ public Builder setLimit(int value) { - copyOnWrite(); - instance.setLimit(value); + + limit_ = value; + onChanged(); return this; } /** - * optional uint32 limit = 5; + * uint32 limit = 5; + * @return This builder for chaining. */ public Builder clearLimit() { - copyOnWrite(); - instance.clearLimit(); + + limit_ = 0; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 documentId = 6; + * uint64 documentId = 6; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 documentId = 6; + * uint64 documentId = 6; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 documentId = 6; + * uint64 documentId = 6; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomHistory) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory other = (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - firstMessageId_ = visitor.visitLong(firstMessageId_ != 0L, firstMessageId_, - other.firstMessageId_ != 0L, other.firstMessageId_); - direction_ = visitor.visitInt(direction_ != 0, direction_, other.direction_ != 0, other.direction_); - limit_ = visitor.visitInt(limit_ != 0, limit_, - other.limit_ != 0, other.limit_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - firstMessageId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - direction_ = rawValue; - break; - } - case 40: { - - limit_ = input.readUInt32(); - break; - } - case 48: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomHistory) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoomHistory) private static final net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoomHistory(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory(); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoomHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoomHistory(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientGetRoomHistoryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoomHistoryResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.RoomMessage message = 2; @@ -787,82 +1165,160 @@ public interface ClientGetRoomHistoryResponseOrBuilder extends * repeated .proto.RoomMessage message = 2; */ int getMessageCount(); + /** + * repeated .proto.RoomMessage message = 2; + */ + java.util.List + getMessageOrBuilderList(); + /** + * repeated .proto.RoomMessage message = 2; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientGetRoomHistoryResponse} */ - public static final class ClientGetRoomHistoryResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoomHistoryResponse, ClientGetRoomHistoryResponse.Builder> implements + public static final class ClientGetRoomHistoryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoomHistoryResponse) ClientGetRoomHistoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoomHistoryResponse.newBuilder() to construct. + private ClientGetRoomHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoomHistoryResponse() { - message_ = emptyProtobufList(); + message_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoomHistoryResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoomHistoryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + message_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + message_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + message_ = java.util.Collections.unmodifiableList(message_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.class, net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int MESSAGE_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList message_; + private java.util.List message_; /** * repeated .proto.RoomMessage message = 2; */ + @java.lang.Override public java.util.List getMessageList() { return message_; } /** * repeated .proto.RoomMessage message = 2; */ + @java.lang.Override public java.util.List getMessageOrBuilderList() { return message_; @@ -870,108 +1326,38 @@ public java.util.List getMessageList() { /** * repeated .proto.RoomMessage message = 2; */ + @java.lang.Override public int getMessageCount() { return message_.size(); } /** * repeated .proto.RoomMessage message = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getMessage(int index) { return message_.get(index); } /** * repeated .proto.RoomMessage message = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder( int index) { return message_.get(index); } - private void ensureMessageIsMutable() { - if (!message_.isModifiable()) { - message_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(message_); - } - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void setMessage( - int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIsMutable(); - message_.set(index, value); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void setMessage( - int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - ensureMessageIsMutable(); - message_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void addMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIsMutable(); - message_.add(value); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void addMessage( - int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIsMutable(); - message_.add(index, value); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void addMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - ensureMessageIsMutable(); - message_.add(builderForValue.build()); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void addMessage( - int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - ensureMessageIsMutable(); - message_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void addAllMessage( - java.lang.Iterable values) { - ensureMessageIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, message_); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void clearMessage() { - message_ = emptyProtobufList(); - } - /** - * repeated .proto.RoomMessage message = 2; - */ - private void removeMessage(int index) { - ensureMessageIsMutable(); - message_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -980,10 +1366,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < message_.size(); i++) { output.writeMessage(2, message_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -995,162 +1383,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, message_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse other = (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getMessageList() + .equals(other.getMessageList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getMessageCount() > 0) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessageList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoomHistoryResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoomHistoryResponse) net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.class, net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (messageBuilder_ == null) { + message_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + messageBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoomHistory.internal_static_proto_ClientGetRoomHistoryResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse build() { + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse buildPartial() { + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse result = new net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + message_ = java.util.Collections.unmodifiableList(message_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse other) { + if (other == net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (messageBuilder_ == null) { + if (!other.message_.isEmpty()) { + if (message_.isEmpty()) { + message_ = other.message_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessageIsMutable(); + message_.addAll(other.message_); + } + onChanged(); + } + } else { + if (!other.message_.isEmpty()) { + if (messageBuilder_.isEmpty()) { + messageBuilder_.dispose(); + messageBuilder_ = null; + message_ = other.message_; + bitField0_ = (bitField0_ & ~0x00000001); + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessageFieldBuilder() : null; + } else { + messageBuilder_.addAllMessages(other.message_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List message_ = + java.util.Collections.emptyList(); + private void ensureMessageIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + message_ = new java.util.ArrayList(message_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> messageBuilder_; /** * repeated .proto.RoomMessage message = 2; */ public java.util.List getMessageList() { - return java.util.Collections.unmodifiableList( - instance.getMessageList()); + if (messageBuilder_ == null) { + return java.util.Collections.unmodifiableList(message_); + } else { + return messageBuilder_.getMessageList(); + } } /** * repeated .proto.RoomMessage message = 2; */ public int getMessageCount() { - return instance.getMessageCount(); - }/** + if (messageBuilder_ == null) { + return message_.size(); + } else { + return messageBuilder_.getCount(); + } + } + /** * repeated .proto.RoomMessage message = 2; */ public net.iGap.proto.ProtoGlobal.RoomMessage getMessage(int index) { - return instance.getMessage(index); + if (messageBuilder_ == null) { + return message_.get(index); + } else { + return messageBuilder_.getMessage(index); + } } /** * repeated .proto.RoomMessage message = 2; */ public Builder setMessage( int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setMessage(index, value); + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.set(index, value); + onChanged(); + } else { + messageBuilder_.setMessage(index, value); + } return this; } /** @@ -1158,16 +1901,29 @@ public Builder setMessage( */ public Builder setMessage( int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setMessage(index, builderForValue); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.set(index, builderForValue.build()); + onChanged(); + } else { + messageBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RoomMessage message = 2; */ public Builder addMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.addMessage(value); + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.add(value); + onChanged(); + } else { + messageBuilder_.addMessage(value); + } return this; } /** @@ -1175,8 +1931,16 @@ public Builder addMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { */ public Builder addMessage( int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.addMessage(index, value); + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.add(index, value); + onChanged(); + } else { + messageBuilder_.addMessage(index, value); + } return this; } /** @@ -1184,8 +1948,13 @@ public Builder addMessage( */ public Builder addMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.addMessage(builderForValue); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(builderForValue.build()); + onChanged(); + } else { + messageBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1193,8 +1962,13 @@ public Builder addMessage( */ public Builder addMessage( int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.addMessage(index, builderForValue); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(index, builderForValue.build()); + onChanged(); + } else { + messageBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1202,146 +1976,213 @@ public Builder addMessage( */ public Builder addAllMessage( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllMessage(values); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, message_); + onChanged(); + } else { + messageBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.RoomMessage message = 2; */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + if (messageBuilder_ == null) { + message_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messageBuilder_.clear(); + } return this; } /** * repeated .proto.RoomMessage message = 2; */ public Builder removeMessage(int index) { - copyOnWrite(); - instance.removeMessage(index); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.remove(index); + onChanged(); + } else { + messageBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomHistoryResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - message_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse other = (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - message_= visitor.visitList(message_, other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!message_.isModifiable()) { - message_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(message_); - } - message_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getMessageBuilder( + int index) { + return getMessageFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder( + int index) { + if (messageBuilder_ == null) { + return message_.get(index); } else { + return messageBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.RoomMessage message = 2; + */ + public java.util.List + getMessageOrBuilderList() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(message_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder addMessageBuilder() { + return getMessageFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder addMessageBuilder( + int index) { + return getMessageFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessage message = 2; + */ + public java.util.List + getMessageBuilderList() { + return getMessageFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + message_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + message_ = null; } + return messageBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomHistoryResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoomHistoryResponse) private static final net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoomHistoryResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse(); } public static net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoomHistoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoomHistoryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoomHistory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoomHistory_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoomHistoryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoomHistoryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ClientGetRoomHistory.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\032\014Global.proto" + + "\"\336\001\n\024ClientGetRoomHistory\022\037\n\007request\030\001 \001" + + "(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\030\n\020f" + + "irst_message_id\030\003 \001(\004\0228\n\tdirection\030\004 \001(\016" + + "2%.proto.ClientGetRoomHistory.Direction\022" + + "\r\n\005limit\030\005 \001(\r\022\022\n\ndocumentId\030\006 \001(\004\"\035\n\tDi" + + "rection\022\006\n\002UP\020\000\022\010\n\004DOWN\020\001\"f\n\034ClientGetRo" + + "omHistoryResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022#\n\007message\030\002 \003(\0132\022.proto.Ro" + + "omMessageB+\n\016net.iGap.protoB\031ProtoClient" + + "GetRoomHistoryb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientGetRoomHistory_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetRoomHistory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoomHistory_descriptor, + new java.lang.String[] { "Request", "RoomId", "FirstMessageId", "Direction", "Limit", "DocumentId", }); + internal_static_proto_ClientGetRoomHistoryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetRoomHistoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoomHistoryResponse_descriptor, + new java.lang.String[] { "Response", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetRoomList.java b/src/main/java/net/iGap/proto/ProtoClientGetRoomList.java index 5060904..f7ceace 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetRoomList.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetRoomList.java @@ -8,142 +8,213 @@ private ProtoClientGetRoomList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetRoomListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoomList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 2; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.ClientGetRoomList} */ - public static final class ClientGetRoomList extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoomList, ClientGetRoomList.Builder> implements + public static final class ClientGetRoomList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoomList) ClientGetRoomListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoomList.newBuilder() to construct. + private ClientGetRoomList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoomList() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoomList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoomList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.class, net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PAGINATION_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 2; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -152,10 +223,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(2, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -167,313 +240,622 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList other = (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoomList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoomList) net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.class, net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList build() { + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList buildPartial() { + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList result = new net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList other) { + if (other == net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList other = (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomList) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoomList) private static final net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoomList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList(); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoomList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoomList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientGetRoomListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoomListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Room rooms = 2; @@ -488,82 +870,160 @@ public interface ClientGetRoomListResponseOrBuilder extends * repeated .proto.Room rooms = 2; */ int getRoomsCount(); + /** + * repeated .proto.Room rooms = 2; + */ + java.util.List + getRoomsOrBuilderList(); + /** + * repeated .proto.Room rooms = 2; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomsOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientGetRoomListResponse} */ - public static final class ClientGetRoomListResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoomListResponse, ClientGetRoomListResponse.Builder> implements + public static final class ClientGetRoomListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoomListResponse) ClientGetRoomListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoomListResponse.newBuilder() to construct. + private ClientGetRoomListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoomListResponse() { - rooms_ = emptyProtobufList(); + rooms_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoomListResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoomListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rooms_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rooms_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + rooms_ = java.util.Collections.unmodifiableList(rooms_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.class, net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOMS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList rooms_; + private java.util.List rooms_; /** * repeated .proto.Room rooms = 2; */ + @java.lang.Override public java.util.List getRoomsList() { return rooms_; } /** * repeated .proto.Room rooms = 2; */ + @java.lang.Override public java.util.List getRoomsOrBuilderList() { return rooms_; @@ -571,108 +1031,38 @@ public java.util.List getRoomsList() { /** * repeated .proto.Room rooms = 2; */ + @java.lang.Override public int getRoomsCount() { return rooms_.size(); } /** * repeated .proto.Room rooms = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRooms(int index) { return rooms_.get(index); } /** * repeated .proto.Room rooms = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomsOrBuilder( int index) { return rooms_.get(index); } - private void ensureRoomsIsMutable() { - if (!rooms_.isModifiable()) { - rooms_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(rooms_); - } - } - /** - * repeated .proto.Room rooms = 2; - */ - private void setRooms( - int index, net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoomsIsMutable(); - rooms_.set(index, value); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void setRooms( - int index, net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - ensureRoomsIsMutable(); - rooms_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void addRooms(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoomsIsMutable(); - rooms_.add(value); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void addRooms( - int index, net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoomsIsMutable(); - rooms_.add(index, value); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void addRooms( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - ensureRoomsIsMutable(); - rooms_.add(builderForValue.build()); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void addRooms( - int index, net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - ensureRoomsIsMutable(); - rooms_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void addAllRooms( - java.lang.Iterable values) { - ensureRoomsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, rooms_); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void clearRooms() { - rooms_ = emptyProtobufList(); - } - /** - * repeated .proto.Room rooms = 2; - */ - private void removeRooms(int index) { - ensureRoomsIsMutable(); - rooms_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -681,10 +1071,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < rooms_.size(); i++) { output.writeMessage(2, rooms_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -696,162 +1088,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rooms_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse other = (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getRoomsList() + .equals(other.getRoomsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getRoomsCount() > 0) { + hash = (37 * hash) + ROOMS_FIELD_NUMBER; + hash = (53 * hash) + getRoomsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoomListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoomListResponse) net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.class, net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRoomsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (roomsBuilder_ == null) { + rooms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + roomsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoomList.internal_static_proto_ClientGetRoomListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse build() { + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse buildPartial() { + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse result = new net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (roomsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rooms_ = java.util.Collections.unmodifiableList(rooms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rooms_ = rooms_; + } else { + result.rooms_ = roomsBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse other) { + if (other == net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (roomsBuilder_ == null) { + if (!other.rooms_.isEmpty()) { + if (rooms_.isEmpty()) { + rooms_ = other.rooms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRoomsIsMutable(); + rooms_.addAll(other.rooms_); + } + onChanged(); + } + } else { + if (!other.rooms_.isEmpty()) { + if (roomsBuilder_.isEmpty()) { + roomsBuilder_.dispose(); + roomsBuilder_ = null; + rooms_ = other.rooms_; + bitField0_ = (bitField0_ & ~0x00000001); + roomsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoomsFieldBuilder() : null; + } else { + roomsBuilder_.addAllMessages(other.rooms_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List rooms_ = + java.util.Collections.emptyList(); + private void ensureRoomsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rooms_ = new java.util.ArrayList(rooms_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomsBuilder_; /** * repeated .proto.Room rooms = 2; */ public java.util.List getRoomsList() { - return java.util.Collections.unmodifiableList( - instance.getRoomsList()); + if (roomsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rooms_); + } else { + return roomsBuilder_.getMessageList(); + } } /** * repeated .proto.Room rooms = 2; */ public int getRoomsCount() { - return instance.getRoomsCount(); - }/** + if (roomsBuilder_ == null) { + return rooms_.size(); + } else { + return roomsBuilder_.getCount(); + } + } + /** * repeated .proto.Room rooms = 2; */ public net.iGap.proto.ProtoGlobal.Room getRooms(int index) { - return instance.getRooms(index); + if (roomsBuilder_ == null) { + return rooms_.get(index); + } else { + return roomsBuilder_.getMessage(index); + } } /** * repeated .proto.Room rooms = 2; */ public Builder setRooms( int index, net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRooms(index, value); + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.set(index, value); + onChanged(); + } else { + roomsBuilder_.setMessage(index, value); + } return this; } /** @@ -859,16 +1606,29 @@ public Builder setRooms( */ public Builder setRooms( int index, net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRooms(index, builderForValue); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.set(index, builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Room rooms = 2; */ public Builder addRooms(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.addRooms(value); + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.add(value); + onChanged(); + } else { + roomsBuilder_.addMessage(value); + } return this; } /** @@ -876,8 +1636,16 @@ public Builder addRooms(net.iGap.proto.ProtoGlobal.Room value) { */ public Builder addRooms( int index, net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.addRooms(index, value); + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.add(index, value); + onChanged(); + } else { + roomsBuilder_.addMessage(index, value); + } return this; } /** @@ -885,8 +1653,13 @@ public Builder addRooms( */ public Builder addRooms( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.addRooms(builderForValue); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.add(builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -894,8 +1667,13 @@ public Builder addRooms( */ public Builder addRooms( int index, net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.addRooms(index, builderForValue); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.add(index, builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -903,146 +1681,209 @@ public Builder addRooms( */ public Builder addAllRooms( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllRooms(values); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rooms_); + onChanged(); + } else { + roomsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Room rooms = 2; */ public Builder clearRooms() { - copyOnWrite(); - instance.clearRooms(); + if (roomsBuilder_ == null) { + rooms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + roomsBuilder_.clear(); + } return this; } /** * repeated .proto.Room rooms = 2; */ public Builder removeRooms(int index) { - copyOnWrite(); - instance.removeRooms(index); + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.remove(index); + onChanged(); + } else { + roomsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - rooms_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse other = (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - rooms_= visitor.visitList(rooms_, other.rooms_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!rooms_.isModifiable()) { - rooms_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(rooms_); - } - rooms_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Room rooms = 2; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomsBuilder( + int index) { + return getRoomsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Room rooms = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomsOrBuilder( + int index) { + if (roomsBuilder_ == null) { + return rooms_.get(index); } else { + return roomsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Room rooms = 2; + */ + public java.util.List + getRoomsOrBuilderList() { + if (roomsBuilder_ != null) { + return roomsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rooms_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Room rooms = 2; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder addRoomsBuilder() { + return getRoomsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()); + } + /** + * repeated .proto.Room rooms = 2; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder addRoomsBuilder( + int index) { + return getRoomsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()); + } + /** + * repeated .proto.Room rooms = 2; + */ + public java.util.List + getRoomsBuilderList() { + return getRoomsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomsFieldBuilder() { + if (roomsBuilder_ == null) { + roomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + rooms_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rooms_ = null; } + return roomsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomListResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoomListResponse) private static final net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoomListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse(); } public static net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoomListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoomListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomList.ClientGetRoomListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoomList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoomList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoomListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoomListResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027ClientGetRoomList.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\032\014Global.proto\"[\n" + + "\021ClientGetRoomList\022\037\n\007request\030\001 \001(\0132\016.pr" + + "oto.Request\022%\n\npagination\030\002 \001(\0132\021.proto." + + "Pagination\"Z\n\031ClientGetRoomListResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\022\032\n\005ro" + + "oms\030\002 \003(\0132\013.proto.RoomB(\n\016net.iGap.proto" + + "B\026ProtoClientGetRoomListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientGetRoomList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetRoomList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoomList_descriptor, + new java.lang.String[] { "Request", "Pagination", }); + internal_static_proto_ClientGetRoomListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetRoomListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoomListResponse_descriptor, + new java.lang.String[] { "Response", "Rooms", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java b/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java index 78a7c37..cc63184 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java @@ -8,165 +8,225 @@ private ProtoClientGetRoomMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetRoomMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoomMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 documentId = 4; + * uint64 documentId = 4; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ClientGetRoomMessage} */ - public static final class ClientGetRoomMessage extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoomMessage, ClientGetRoomMessage.Builder> implements + public static final class ClientGetRoomMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoomMessage) ClientGetRoomMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoomMessage.newBuilder() to construct. + private ClientGetRoomMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoomMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoomMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoomMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.class, net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENTID_FIELD_NUMBER = 4; private long documentId_; /** - * optional uint64 documentId = 4; + * uint64 documentId = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 documentId = 4; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 documentId = 4; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(4, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,468 +266,789 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage other = (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoomMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoomMessage) net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.class, net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage build() { + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage buildPartial() { + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage result = new net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage other) { + if (other == net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 documentId = 4; + * uint64 documentId = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 documentId = 4; + * uint64 documentId = 4; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 documentId = 4; + * uint64 documentId = 4; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage other = (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomMessage) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoomMessage) private static final net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoomMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage(); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoomMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoomMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientGetRoomMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientGetRoomMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return Whether the message field is set. */ boolean hasMessage(); /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return The message. */ net.iGap.proto.ProtoGlobal.RoomMessage getMessage(); + /** + * .proto.RoomMessage message = 2; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder(); } /** * Protobuf type {@code proto.ClientGetRoomMessageResponse} */ - public static final class ClientGetRoomMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetRoomMessageResponse, ClientGetRoomMessageResponse.Builder> implements + public static final class ClientGetRoomMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientGetRoomMessageResponse) ClientGetRoomMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetRoomMessageResponse.newBuilder() to construct. + private ClientGetRoomMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetRoomMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetRoomMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetRoomMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.class, net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int MESSAGE_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomMessage message_; /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return Whether the message field is set. */ + @java.lang.Override public boolean hasMessage() { return message_ != null; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return The message. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getMessage() { return message_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ - private void setMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - message_ = value; - - } - /** - * optional .proto.RoomMessage message = 2; - */ - private void setMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - message_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder() { + return getMessage(); } - /** - * optional .proto.RoomMessage message = 2; - */ - private void mergeMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (message_ != null && - message_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - message_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(message_).mergeFrom(value).buildPartial(); - } else { - message_ = value; - } - - } - /** - * optional .proto.RoomMessage message = 2; - */ - private void clearMessage() { message_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -674,10 +1057,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (message_ != null) { output.writeMessage(2, getMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -689,303 +1074,655 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse other = (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage() + .equals(other.getMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientGetRoomMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientGetRoomMessageResponse) net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.class, net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (messageBuilder_ == null) { + message_ = null; + } else { + message_ = null; + messageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetRoomMessage.internal_static_proto_ClientGetRoomMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse build() { + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse buildPartial() { + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse result = new net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (messageBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse other) { + if (other == net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessage message_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> messageBuilder_; /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return Whether the message field is set. */ public boolean hasMessage() { - return instance.hasMessage(); + return messageBuilder_ != null || message_ != null; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return The message. */ public net.iGap.proto.ProtoGlobal.RoomMessage getMessage() { - return instance.getMessage(); + if (messageBuilder_ == null) { + return message_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ public Builder setMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setMessage(value); - return this; + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + messageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ public Builder setMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setMessage(builderForValue); + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ public Builder mergeMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeMessage(value); + if (messageBuilder_ == null) { + if (message_ != null) { + message_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(message_).mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + messageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ - public Builder clearMessage() { copyOnWrite(); - instance.clearMessage(); + public Builder clearMessage() { + if (messageBuilder_ == null) { + message_ = null; + onChanged(); + } else { + message_ = null; + messageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse other = (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - message_ = visitor.visitMessage(message_, other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); - } - message_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getMessageBuilder() { + + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage message = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); + message_ = null; } + return messageBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientGetRoomMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientGetRoomMessageResponse) private static final net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetRoomMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse(); } public static net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetRoomMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetRoomMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoomMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoomMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetRoomMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetRoomMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ClientGetRoomMessage.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\032\014Global.proto" + + "\"p\n\024ClientGetRoomMessage\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nme" + + "ssage_id\030\003 \001(\004\022\022\n\ndocumentId\030\004 \001(\004\"f\n\034Cl" + + "ientGetRoomMessageResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022#\n\007message\030\002 \001(\0132\022" + + ".proto.RoomMessageB+\n\016net.iGap.protoB\031Pr" + + "otoClientGetRoomMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientGetRoomMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetRoomMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoomMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_ClientGetRoomMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetRoomMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetRoomMessageResponse_descriptor, + new java.lang.String[] { "Response", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetState.java b/src/main/java/net/iGap/proto/ProtoClientGetState.java index f70656c..806b7cd 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetState.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetState.java @@ -8,90 +8,170 @@ private ProtoClientGetState() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientGetStateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.ClientGetState) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.updatequeue.ClientGetState} */ - public static final class ClientGetState extends - com.google.protobuf.GeneratedMessageLite< - ClientGetState, ClientGetState.Builder> implements + public static final class ClientGetState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.ClientGetState) ClientGetStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetState.newBuilder() to construct. + private ClientGetState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetState() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetState.ClientGetState.class, net.iGap.proto.ProtoClientGetState.ClientGetState.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,345 +179,631 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetState.ClientGetState)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetState.ClientGetState other = (net.iGap.proto.ProtoClientGetState.ClientGetState) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetState.ClientGetState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetState.ClientGetState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.ClientGetState} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetState.ClientGetState, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.ClientGetState) net.iGap.proto.ProtoClientGetState.ClientGetStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetState.ClientGetState.class, net.iGap.proto.ProtoClientGetState.ClientGetState.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetState.ClientGetState.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetState_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetState getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetState.ClientGetState.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetState build() { + net.iGap.proto.ProtoClientGetState.ClientGetState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetState buildPartial() { + net.iGap.proto.ProtoClientGetState.ClientGetState result = new net.iGap.proto.ProtoClientGetState.ClientGetState(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetState.ClientGetState) { + return mergeFrom((net.iGap.proto.ProtoClientGetState.ClientGetState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetState.ClientGetState other) { + if (other == net.iGap.proto.ProtoClientGetState.ClientGetState.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetState.ClientGetState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetState.ClientGetState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetState) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetState.ClientGetState(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetState.ClientGetState other = (net.iGap.proto.ProtoClientGetState.ClientGetState) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetState.ClientGetState.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetState) + } // @@protoc_insertion_point(class_scope:proto.updatequeue.ClientGetState) private static final net.iGap.proto.ProtoClientGetState.ClientGetState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetState(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetState.ClientGetState(); } public static net.iGap.proto.ProtoClientGetState.ClientGetState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientGetStateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.ClientGetStateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return The pts. */ long getPts(); } /** * Protobuf type {@code proto.updatequeue.ClientGetStateResponse} */ - public static final class ClientGetStateResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientGetStateResponse, ClientGetStateResponse.Builder> implements + public static final class ClientGetStateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.ClientGetStateResponse) ClientGetStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientGetStateResponse.newBuilder() to construct. + private ClientGetStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientGetStateResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientGetStateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientGetStateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + pts_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.class, net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PTS_FIELD_NUMBER = 2; private long pts_; /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return The pts. */ + @java.lang.Override public long getPts() { return pts_; } - /** - * optional uint64 pts = 2; - */ - private void setPts(long value) { - - pts_ = value; - } - /** - * optional uint64 pts = 2; - */ - private void clearPts() { - - pts_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -446,10 +812,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pts_ != 0L) { output.writeUInt64(2, pts_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -461,274 +829,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, pts_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientGetState.ClientGetStateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetState.ClientGetStateResponse other = (net.iGap.proto.ProtoClientGetState.ClientGetStateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getPts() + != other.getPts()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPts()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientGetState.ClientGetStateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.ClientGetStateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientGetState.ClientGetStateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.ClientGetStateResponse) net.iGap.proto.ProtoClientGetState.ClientGetStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.class, net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + pts_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetState.internal_static_proto_updatequeue_ClientGetStateResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetStateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetStateResponse build() { + net.iGap.proto.ProtoClientGetState.ClientGetStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetStateResponse buildPartial() { + net.iGap.proto.ProtoClientGetState.ClientGetStateResponse result = new net.iGap.proto.ProtoClientGetState.ClientGetStateResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.pts_ = pts_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientGetState.ClientGetStateResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetState.ClientGetStateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetState.ClientGetStateResponse other) { + if (other == net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getPts() != 0L) { + setPts(other.getPts()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientGetState.ClientGetStateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetState.ClientGetStateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long pts_ ; /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return The pts. */ + @java.lang.Override public long getPts() { - return instance.getPts(); + return pts_; } /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @param value The pts to set. + * @return This builder for chaining. */ public Builder setPts(long value) { - copyOnWrite(); - instance.setPts(value); + + pts_ = value; + onChanged(); return this; } /** - * optional uint64 pts = 2; + * uint64 pts = 2; + * @return This builder for chaining. */ public Builder clearPts() { - copyOnWrite(); - instance.clearPts(); + + pts_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetStateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientGetState.ClientGetStateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientGetState.ClientGetStateResponse other = (net.iGap.proto.ProtoClientGetState.ClientGetStateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - pts_ = visitor.visitLong(pts_ != 0L, pts_, - other.pts_ != 0L, other.pts_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - pts_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientGetState.ClientGetStateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientGetStateResponse) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.ClientGetStateResponse) private static final net.iGap.proto.ProtoClientGetState.ClientGetStateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientGetStateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetState.ClientGetStateResponse(); } public static net.iGap.proto.ProtoClientGetState.ClientGetStateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientGetStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetStateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientGetState.ClientGetStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_ClientGetState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_ClientGetState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_ClientGetStateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_ClientGetStateResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024ClientGetState.proto\022\021proto.updatequeu" + + "e\032\rRequest.proto\032\016Response.proto\"1\n\016Clie" + + "ntGetState\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\"H\n\026ClientGetStateResponse\022!\n\010respons" + + "e\030\001 \001(\0132\017.proto.Response\022\013\n\003pts\030\002 \001(\004B%\n" + + "\016net.iGap.protoB\023ProtoClientGetStateb\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_updatequeue_ClientGetState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_updatequeue_ClientGetState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_ClientGetState_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_updatequeue_ClientGetStateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_updatequeue_ClientGetStateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_ClientGetStateResponse_descriptor, + new java.lang.String[] { "Response", "Pts", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientJoinByInviteLink.java b/src/main/java/net/iGap/proto/ProtoClientJoinByInviteLink.java index a7fe234..f34ac8f 100644 --- a/src/main/java/net/iGap/proto/ProtoClientJoinByInviteLink.java +++ b/src/main/java/net/iGap/proto/ProtoClientJoinByInviteLink.java @@ -8,25 +8,39 @@ private ProtoClientJoinByInviteLink() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientJoinByInviteLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientJoinByInviteLink) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ java.lang.String getInviteToken(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ com.google.protobuf.ByteString getInviteTokenBytes(); @@ -34,124 +48,190 @@ public interface ClientJoinByInviteLinkOrBuilder extends /** * Protobuf type {@code proto.ClientJoinByInviteLink} */ - public static final class ClientJoinByInviteLink extends - com.google.protobuf.GeneratedMessageLite< - ClientJoinByInviteLink, ClientJoinByInviteLink.Builder> implements + public static final class ClientJoinByInviteLink extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientJoinByInviteLink) ClientJoinByInviteLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientJoinByInviteLink.newBuilder() to construct. + private ClientJoinByInviteLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientJoinByInviteLink() { inviteToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientJoinByInviteLink(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientJoinByInviteLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.class, net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int INVITE_TOKEN_FIELD_NUMBER = 2; - private java.lang.String inviteToken_; + private volatile java.lang.Object inviteToken_; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ + @java.lang.Override public java.lang.String getInviteToken() { - return inviteToken_; + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteToken_); - } - /** - * optional string invite_token = 2; - */ - private void setInviteToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteToken_ = value; - } - /** - * optional string invite_token = 2; - */ - private void clearInviteToken() { - - inviteToken_ = getDefaultInstance().getInviteToken(); + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_token = 2; - */ - private void setInviteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!inviteToken_.isEmpty()) { - output.writeString(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inviteToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,425 +239,743 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!inviteToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inviteToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink other = (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getInviteToken() + .equals(other.getInviteToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + INVITE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getInviteToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientJoinByInviteLink} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientJoinByInviteLink) net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.class, net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + inviteToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLink_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink build() { + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink buildPartial() { + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink result = new net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.inviteToken_ = inviteToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink) { + return mergeFrom((net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink other) { + if (other == net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getInviteToken().isEmpty()) { + inviteToken_ = other.inviteToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object inviteToken_ = ""; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ public java.lang.String getInviteToken() { - return instance.getInviteToken(); + java.lang.Object ref = inviteToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ public com.google.protobuf.ByteString getInviteTokenBytes() { - return instance.getInviteTokenBytes(); + java.lang.Object ref = inviteToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteToken( java.lang.String value) { - copyOnWrite(); - instance.setInviteToken(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteToken_ = value; + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return This builder for chaining. */ public Builder clearInviteToken() { - copyOnWrite(); - instance.clearInviteToken(); + + inviteToken_ = getDefaultInstance().getInviteToken(); + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The bytes for inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientJoinByInviteLink) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink other = (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink) arg1; - request_ = visitor.visitMessage(request_, other.request_); - inviteToken_ = visitor.visitString(!inviteToken_.isEmpty(), inviteToken_, - !other.inviteToken_.isEmpty(), other.inviteToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - inviteToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientJoinByInviteLink) + } + // @@protoc_insertion_point(class_scope:proto.ClientJoinByInviteLink) private static final net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientJoinByInviteLink(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink(); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientJoinByInviteLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientJoinByInviteLink(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientJoinByInviteLinkResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientJoinByInviteLinkResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.ClientJoinByInviteLinkResponse} */ - public static final class ClientJoinByInviteLinkResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientJoinByInviteLinkResponse, ClientJoinByInviteLinkResponse.Builder> implements + public static final class ClientJoinByInviteLinkResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientJoinByInviteLinkResponse) ClientJoinByInviteLinkResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientJoinByInviteLinkResponse.newBuilder() to construct. + private ClientJoinByInviteLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientJoinByInviteLinkResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientJoinByInviteLinkResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientJoinByInviteLinkResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.class, net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -589,10 +987,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(3, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -608,304 +1008,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse other = (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientJoinByInviteLinkResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientJoinByInviteLinkResponse) net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.class, net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientJoinByInviteLink.internal_static_proto_ClientJoinByInviteLinkResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse build() { + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse buildPartial() { + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse result = new net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse) { + return mergeFrom((net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse other) { + if (other == net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientJoinByInviteLinkResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse other = (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientJoinByInviteLinkResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientJoinByInviteLinkResponse) private static final net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientJoinByInviteLinkResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse(); } public static net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientJoinByInviteLinkResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientJoinByInviteLinkResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByInviteLink.ClientJoinByInviteLinkResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientJoinByInviteLink_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientJoinByInviteLink_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientJoinByInviteLinkResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientJoinByInviteLinkResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034ClientJoinByInviteLink.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"O\n\026ClientJo" + + "inByInviteLink\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\024\n\014invite_token\030\002 \001(\t\"e\n\036ClientJ" + + "oinByInviteLinkResponse\022!\n\010response\030\001 \001(" + + "\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\017\n\007u" + + "ser_id\030\003 \001(\004B-\n\016net.iGap.protoB\033ProtoCli" + + "entJoinByInviteLinkb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientJoinByInviteLink_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientJoinByInviteLink_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientJoinByInviteLink_descriptor, + new java.lang.String[] { "Request", "InviteToken", }); + internal_static_proto_ClientJoinByInviteLinkResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientJoinByInviteLinkResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientJoinByInviteLinkResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java b/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java index 6b91efe..9f340e5 100644 --- a/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java +++ b/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java @@ -8,25 +8,39 @@ private ProtoClientJoinByUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientJoinByUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientJoinByUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -34,124 +48,190 @@ public interface ClientJoinByUsernameOrBuilder extends /** * Protobuf type {@code proto.ClientJoinByUsername} */ - public static final class ClientJoinByUsername extends - com.google.protobuf.GeneratedMessageLite< - ClientJoinByUsername, ClientJoinByUsername.Builder> implements + public static final class ClientJoinByUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientJoinByUsername) ClientJoinByUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientJoinByUsername.newBuilder() to construct. + private ClientJoinByUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientJoinByUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientJoinByUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientJoinByUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.class, net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,425 +239,743 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername other = (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientJoinByUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientJoinByUsername) net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.class, net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername build() { + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername buildPartial() { + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername result = new net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername) { + return mergeFrom((net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername other) { + if (other == net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientJoinByUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername other = (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientJoinByUsername) + } + // @@protoc_insertion_point(class_scope:proto.ClientJoinByUsername) private static final net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientJoinByUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername(); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientJoinByUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientJoinByUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientJoinByUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientJoinByUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.ClientJoinByUsernameResponse} */ - public static final class ClientJoinByUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientJoinByUsernameResponse, ClientJoinByUsernameResponse.Builder> implements + public static final class ClientJoinByUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientJoinByUsernameResponse) ClientJoinByUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientJoinByUsernameResponse.newBuilder() to construct. + private ClientJoinByUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientJoinByUsernameResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientJoinByUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientJoinByUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.class, net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -589,10 +987,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(3, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -608,304 +1008,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse other = (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientJoinByUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientJoinByUsernameResponse) net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.class, net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientJoinByUsername.internal_static_proto_ClientJoinByUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse build() { + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse buildPartial() { + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse result = new net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse other) { + if (other == net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientJoinByUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse other = (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientJoinByUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientJoinByUsernameResponse) private static final net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientJoinByUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse(); } public static net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientJoinByUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientJoinByUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientJoinByUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientJoinByUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientJoinByUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientJoinByUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ClientJoinByUsername.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"I\n\024ClientJoin" + + "ByUsername\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\020\n\010username\030\002 \001(\t\"c\n\034ClientJoinByUse" + + "rnameResponse\022!\n\010response\030\001 \001(\0132\017.proto." + + "Response\022\017\n\007room_id\030\002 \001(\004\022\017\n\007user_id\030\003 \001" + + "(\004B+\n\016net.iGap.protoB\031ProtoClientJoinByU" + + "sernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientJoinByUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientJoinByUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientJoinByUsername_descriptor, + new java.lang.String[] { "Request", "Username", }); + internal_static_proto_ClientJoinByUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientJoinByUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientJoinByUsernameResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientMuteRoom.java b/src/main/java/net/iGap/proto/ProtoClientMuteRoom.java index 0b77500..4261813 100644 --- a/src/main/java/net/iGap/proto/ProtoClientMuteRoom.java +++ b/src/main/java/net/iGap/proto/ProtoClientMuteRoom.java @@ -8,157 +8,218 @@ private ProtoClientMuteRoom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientMuteRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientMuteRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The enum numeric value on the wire for roomMute. */ int getRoomMuteValue(); /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The roomMute. */ net.iGap.proto.ProtoGlobal.RoomMute getRoomMute(); } /** * Protobuf type {@code proto.ClientMuteRoom} */ - public static final class ClientMuteRoom extends - com.google.protobuf.GeneratedMessageLite< - ClientMuteRoom, ClientMuteRoom.Builder> implements + public static final class ClientMuteRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientMuteRoom) ClientMuteRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientMuteRoom.newBuilder() to construct. + private ClientMuteRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientMuteRoom() { + roomMute_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientMuteRoom(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientMuteRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + roomMute_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.class, net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ROOM_MUTE_FIELD_NUMBER = 3; private int roomMute_; /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The enum numeric value on the wire for roomMute. */ - public int getRoomMuteValue() { + @java.lang.Override public int getRoomMuteValue() { return roomMute_; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The roomMute. */ - public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { - net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.forNumber(roomMute_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.valueOf(roomMute_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMute.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMute room_mute = 3; - */ - private void setRoomMuteValue(int value) { - roomMute_ = value; - } - /** - * optional .proto.RoomMute room_mute = 3; - */ - private void setRoomMute(net.iGap.proto.ProtoGlobal.RoomMute value) { - if (value == null) { - throw new NullPointerException(); - } - - roomMute_ = value.getNumber(); - } - /** - * optional .proto.RoomMute room_mute = 3; - */ - private void clearRoomMute() { - - roomMute_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -170,10 +231,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomMute_ != net.iGap.proto.ProtoGlobal.RoomMute.UNMUTE.getNumber()) { output.writeEnum(3, roomMute_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -189,467 +252,773 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, roomMute_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom other = (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (roomMute_ != other.roomMute_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ROOM_MUTE_FIELD_NUMBER; + hash = (53 * hash) + roomMute_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientMuteRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientMuteRoom) net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.class, net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + roomMute_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom build() { + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom buildPartial() { + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom result = new net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.roomMute_ = roomMute_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom) { + return mergeFrom((net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom other) { + if (other == net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.roomMute_ != 0) { + setRoomMuteValue(other.getRoomMuteValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int roomMute_ = 0; /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The enum numeric value on the wire for roomMute. */ - public int getRoomMuteValue() { - return instance.getRoomMuteValue(); + @java.lang.Override public int getRoomMuteValue() { + return roomMute_; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @param value The enum numeric value on the wire for roomMute to set. + * @return This builder for chaining. */ public Builder setRoomMuteValue(int value) { - copyOnWrite(); - instance.setRoomMuteValue(value); + + roomMute_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The roomMute. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { - return instance.getRoomMute(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.valueOf(roomMute_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMute.UNRECOGNIZED : result; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @param value The roomMute to set. + * @return This builder for chaining. */ public Builder setRoomMute(net.iGap.proto.ProtoGlobal.RoomMute value) { - copyOnWrite(); - instance.setRoomMute(value); + if (value == null) { + throw new NullPointerException(); + } + + roomMute_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return This builder for chaining. */ public Builder clearRoomMute() { - copyOnWrite(); - instance.clearRoomMute(); + + roomMute_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientMuteRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom other = (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - roomMute_ = visitor.visitInt(roomMute_ != 0, roomMute_, other.roomMute_ != 0, other.roomMute_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - roomMute_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientMuteRoom) + } + // @@protoc_insertion_point(class_scope:proto.ClientMuteRoom) private static final net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientMuteRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom(); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientMuteRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientMuteRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientMuteRoomResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientMuteRoomResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The enum numeric value on the wire for roomMute. */ int getRoomMuteValue(); /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The roomMute. */ net.iGap.proto.ProtoGlobal.RoomMute getRoomMute(); } /** * Protobuf type {@code proto.ClientMuteRoomResponse} */ - public static final class ClientMuteRoomResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientMuteRoomResponse, ClientMuteRoomResponse.Builder> implements + public static final class ClientMuteRoomResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientMuteRoomResponse) ClientMuteRoomResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientMuteRoomResponse.newBuilder() to construct. + private ClientMuteRoomResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientMuteRoomResponse() { + roomMute_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientMuteRoomResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } + private ClientMuteRoomResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + roomMute_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.class, net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ROOM_MUTE_FIELD_NUMBER = 3; private int roomMute_; /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The enum numeric value on the wire for roomMute. */ - public int getRoomMuteValue() { + @java.lang.Override public int getRoomMuteValue() { return roomMute_; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The roomMute. */ - public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { - net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.forNumber(roomMute_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.valueOf(roomMute_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMute.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMute room_mute = 3; - */ - private void setRoomMuteValue(int value) { - roomMute_ = value; - } - /** - * optional .proto.RoomMute room_mute = 3; - */ - private void setRoomMute(net.iGap.proto.ProtoGlobal.RoomMute value) { - if (value == null) { - throw new NullPointerException(); - } - - roomMute_ = value.getNumber(); - } - /** - * optional .proto.RoomMute room_mute = 3; - */ - private void clearRoomMute() { - - roomMute_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -661,10 +1030,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomMute_ != net.iGap.proto.ProtoGlobal.RoomMute.UNMUTE.getNumber()) { output.writeEnum(3, roomMute_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -680,318 +1051,618 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, roomMute_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse other = (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (roomMute_ != other.roomMute_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ROOM_MUTE_FIELD_NUMBER; + hash = (53 * hash) + roomMute_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientMuteRoomResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientMuteRoomResponse) net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.class, net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + roomMute_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientMuteRoom.internal_static_proto_ClientMuteRoomResponse_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse build() { + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse buildPartial() { + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse result = new net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.roomMute_ = roomMute_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse) { + return mergeFrom((net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse other) { + if (other == net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.roomMute_ != 0) { + setRoomMuteValue(other.getRoomMuteValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int roomMute_ = 0; /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The enum numeric value on the wire for roomMute. */ - public int getRoomMuteValue() { - return instance.getRoomMuteValue(); + @java.lang.Override public int getRoomMuteValue() { + return roomMute_; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @param value The enum numeric value on the wire for roomMute to set. + * @return This builder for chaining. */ public Builder setRoomMuteValue(int value) { - copyOnWrite(); - instance.setRoomMuteValue(value); + + roomMute_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return The roomMute. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { - return instance.getRoomMute(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.valueOf(roomMute_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMute.UNRECOGNIZED : result; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @param value The roomMute to set. + * @return This builder for chaining. */ public Builder setRoomMute(net.iGap.proto.ProtoGlobal.RoomMute value) { - copyOnWrite(); - instance.setRoomMute(value); + if (value == null) { + throw new NullPointerException(); + } + + roomMute_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMute room_mute = 3; + * .proto.RoomMute room_mute = 3; + * @return This builder for chaining. */ public Builder clearRoomMute() { - copyOnWrite(); - instance.clearRoomMute(); + + roomMute_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientMuteRoomResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse other = (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - roomMute_ = visitor.visitInt(roomMute_ != 0, roomMute_, other.roomMute_ != 0, other.roomMute_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - roomMute_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientMuteRoomResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientMuteRoomResponse) private static final net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientMuteRoomResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse(); } public static net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientMuteRoomResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientMuteRoomResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientMuteRoom.ClientMuteRoomResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientMuteRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientMuteRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientMuteRoomResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientMuteRoomResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024ClientMuteRoom.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\032\014Global.proto\"f\n\016Cl" + + "ientMuteRoom\022\037\n\007request\030\001 \001(\0132\016.proto.Re" + + "quest\022\017\n\007room_id\030\002 \001(\004\022\"\n\troom_mute\030\003 \001(" + + "\0162\017.proto.RoomMute\"p\n\026ClientMuteRoomResp" + + "onse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022" + + "\017\n\007room_id\030\002 \001(\004\022\"\n\troom_mute\030\003 \001(\0162\017.pr" + + "oto.RoomMuteB%\n\016net.iGap.protoB\023ProtoCli" + + "entMuteRoomb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientMuteRoom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientMuteRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientMuteRoom_descriptor, + new java.lang.String[] { "Request", "RoomId", "RoomMute", }); + internal_static_proto_ClientMuteRoomResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientMuteRoomResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientMuteRoomResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "RoomMute", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientPinRoom.java b/src/main/java/net/iGap/proto/ProtoClientPinRoom.java index bacf5eb..b2484b2 100644 --- a/src/main/java/net/iGap/proto/ProtoClientPinRoom.java +++ b/src/main/java/net/iGap/proto/ProtoClientPinRoom.java @@ -8,137 +8,203 @@ private ProtoClientPinRoom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientPinRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientPinRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional bool pin = 3; + * bool pin = 3; + * @return The pin. */ boolean getPin(); } /** * Protobuf type {@code proto.ClientPinRoom} */ - public static final class ClientPinRoom extends - com.google.protobuf.GeneratedMessageLite< - ClientPinRoom, ClientPinRoom.Builder> implements + public static final class ClientPinRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientPinRoom) ClientPinRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientPinRoom.newBuilder() to construct. + private ClientPinRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientPinRoom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientPinRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientPinRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + pin_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.class, net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int PIN_FIELD_NUMBER = 3; private boolean pin_; /** - * optional bool pin = 3; + * bool pin = 3; + * @return The pin. */ + @java.lang.Override public boolean getPin() { return pin_; } - /** - * optional bool pin = 3; - */ - private void setPin(boolean value) { - - pin_ = value; - } - /** - * optional bool pin = 3; - */ - private void clearPin() { - - pin_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pin_ != false) { output.writeBool(3, pin_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,494 +237,791 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, pin_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientPinRoom.ClientPinRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientPinRoom.ClientPinRoom other = (net.iGap.proto.ProtoClientPinRoom.ClientPinRoom) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getPin() + != other.getPin()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + PIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPin()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientPinRoom.ClientPinRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientPinRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientPinRoom.ClientPinRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientPinRoom) net.iGap.proto.ProtoClientPinRoom.ClientPinRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.class, net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + pin_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoom build() { + net.iGap.proto.ProtoClientPinRoom.ClientPinRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoom buildPartial() { + net.iGap.proto.ProtoClientPinRoom.ClientPinRoom result = new net.iGap.proto.ProtoClientPinRoom.ClientPinRoom(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.pin_ = pin_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientPinRoom.ClientPinRoom) { + return mergeFrom((net.iGap.proto.ProtoClientPinRoom.ClientPinRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientPinRoom.ClientPinRoom other) { + if (other == net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getPin() != false) { + setPin(other.getPin()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientPinRoom.ClientPinRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientPinRoom.ClientPinRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private boolean pin_ ; /** - * optional bool pin = 3; + * bool pin = 3; + * @return The pin. */ + @java.lang.Override public boolean getPin() { - return instance.getPin(); + return pin_; } /** - * optional bool pin = 3; + * bool pin = 3; + * @param value The pin to set. + * @return This builder for chaining. */ public Builder setPin(boolean value) { - copyOnWrite(); - instance.setPin(value); + + pin_ = value; + onChanged(); return this; } /** - * optional bool pin = 3; + * bool pin = 3; + * @return This builder for chaining. */ public Builder clearPin() { - copyOnWrite(); - instance.clearPin(); + + pin_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientPinRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientPinRoom.ClientPinRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientPinRoom.ClientPinRoom other = (net.iGap.proto.ProtoClientPinRoom.ClientPinRoom) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - pin_ = visitor.visitBoolean(pin_ != false, pin_, - other.pin_ != false, other.pin_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - pin_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientPinRoom.ClientPinRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientPinRoom) + } + // @@protoc_insertion_point(class_scope:proto.ClientPinRoom) private static final net.iGap.proto.ProtoClientPinRoom.ClientPinRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientPinRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientPinRoom.ClientPinRoom(); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientPinRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientPinRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientPinRoomResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientPinRoomResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2 [deprecated = true]; + * uint64 room_id = 2 [deprecated = true]; + * @return The roomId. */ @java.lang.Deprecated long getRoomId(); /** - * optional uint64 pin_id = 3; + * uint64 pin_id = 3; + * @return The pinId. */ long getPinId(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * .proto.Room room = 4; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ClientPinRoomResponse} */ - public static final class ClientPinRoomResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientPinRoomResponse, ClientPinRoomResponse.Builder> implements + public static final class ClientPinRoomResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientPinRoomResponse) ClientPinRoomResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientPinRoomResponse.newBuilder() to construct. + private ClientPinRoomResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientPinRoomResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientPinRoomResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientPinRoomResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + pinId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.class, net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2 [deprecated = true]; + * uint64 room_id = 2 [deprecated = true]; + * @return The roomId. */ + @java.lang.Override @java.lang.Deprecated public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2 [deprecated = true]; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2 [deprecated = true]; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int PIN_ID_FIELD_NUMBER = 3; private long pinId_; /** - * optional uint64 pin_id = 3; + * uint64 pin_id = 3; + * @return The pinId. */ + @java.lang.Override public long getPinId() { return pinId_; } - /** - * optional uint64 pin_id = 3; - */ - private void setPinId(long value) { - - pinId_ = value; - } - /** - * optional uint64 pin_id = 3; - */ - private void clearPinId() { - - pinId_ = 0L; - } public static final int ROOM_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.Room room_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.Room room = 4; - */ - private void setRoom( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - room_ = builderForValue.build(); - - } - /** - * optional .proto.Room room = 4; - */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.Room room = 4; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -671,10 +1036,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(4, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -694,363 +1061,739 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse other = (net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getPinId() + != other.getPinId()) return false; + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + PIN_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPinId()); + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientPinRoomResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientPinRoomResponse) net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.class, net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + pinId_ = 0L; + + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientPinRoom.internal_static_proto_ClientPinRoomResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse build() { + net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse buildPartial() { + net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse result = new net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.pinId_ = pinId_; + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse) { + return mergeFrom((net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse other) { + if (other == net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getPinId() != 0L) { + setPinId(other.getPinId()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2 [deprecated = true]; + * uint64 room_id = 2 [deprecated = true]; + * @return The roomId. */ + @java.lang.Override @java.lang.Deprecated public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2 [deprecated = true]; + * uint64 room_id = 2 [deprecated = true]; + * @param value The roomId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2 [deprecated = true]; + * uint64 room_id = 2 [deprecated = true]; + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long pinId_ ; /** - * optional uint64 pin_id = 3; + * uint64 pin_id = 3; + * @return The pinId. */ + @java.lang.Override public long getPinId() { - return instance.getPinId(); + return pinId_; } /** - * optional uint64 pin_id = 3; + * uint64 pin_id = 3; + * @param value The pinId to set. + * @return This builder for chaining. */ public Builder setPinId(long value) { - copyOnWrite(); - instance.setPinId(value); + + pinId_ = value; + onChanged(); return this; } /** - * optional uint64 pin_id = 3; + * uint64 pin_id = 3; + * @return This builder for chaining. */ public Builder clearPinId() { - copyOnWrite(); - instance.clearPinId(); + + pinId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ public net.iGap.proto.ProtoGlobal.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientPinRoomResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse other = (net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - pinId_ = visitor.visitLong(pinId_ != 0L, pinId_, - other.pinId_ != 0L, other.pinId_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - pinId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Room room = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } + return roomBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientPinRoomResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientPinRoomResponse) private static final net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientPinRoomResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse(); } public static net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientPinRoomResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientPinRoomResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientPinRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientPinRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientPinRoomResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientPinRoomResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023ClientPinRoom.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\032\014Global.proto\"N\n\rCli" + + "entPinRoom\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007room_id\030\002 \001(\004\022\013\n\003pin\030\003 \001(\010\"z\n\025Cli" + + "entPinRoomResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.Response\022\023\n\007room_id\030\002 \001(\004B\002\030\001\022\016\n\006pi" + + "n_id\030\003 \001(\004\022\031\n\004room\030\004 \001(\0132\013.proto.RoomB$\n" + + "\016net.iGap.protoB\022ProtoClientPinRoomb\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientPinRoom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientPinRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientPinRoom_descriptor, + new java.lang.String[] { "Request", "RoomId", "Pin", }); + internal_static_proto_ClientPinRoomResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientPinRoomResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientPinRoomResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "PinId", "Room", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientRegisterDevice.java b/src/main/java/net/iGap/proto/ProtoClientRegisterDevice.java index 5f3581d..16fcbc7 100644 --- a/src/main/java/net/iGap/proto/ProtoClientRegisterDevice.java +++ b/src/main/java/net/iGap/proto/ProtoClientRegisterDevice.java @@ -8,44 +8,62 @@ private ProtoClientRegisterDevice() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientRegisterDeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRegisterDevice) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @return The type. */ net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type getType(); /** - * optional string metrix = 4; + * string metrix = 4; + * @return The metrix. */ java.lang.String getMetrix(); /** - * optional string metrix = 4; + * string metrix = 4; + * @return The bytes for metrix. */ com.google.protobuf.ByteString getMetrixBytes(); @@ -53,20 +71,119 @@ public interface ClientRegisterDeviceOrBuilder extends /** * Protobuf type {@code proto.ClientRegisterDevice} */ - public static final class ClientRegisterDevice extends - com.google.protobuf.GeneratedMessageLite< - ClientRegisterDevice, ClientRegisterDevice.Builder> implements + public static final class ClientRegisterDevice extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRegisterDevice) ClientRegisterDeviceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRegisterDevice.newBuilder() to construct. + private ClientRegisterDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRegisterDevice() { token_ = ""; + type_ = 0; metrix_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRegisterDevice(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRegisterDevice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + metrix_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.class, net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Builder.class); + } + /** * Protobuf enum {@code proto.ClientRegisterDevice.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * GENERIC = 0; */ @@ -105,10 +222,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -116,6 +239,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return GENERIC; @@ -138,6 +265,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -150,204 +308,156 @@ private Type(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @return The type. */ - public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type getType() { - net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type result = net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type result = net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type.UNRECOGNIZED : result; } - /** - * optional .proto.ClientRegisterDevice.Type type = 3; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.ClientRegisterDevice.Type type = 3; - */ - private void setType(net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.ClientRegisterDevice.Type type = 3; - */ - private void clearType() { - - type_ = 0; - } public static final int METRIX_FIELD_NUMBER = 4; - private java.lang.String metrix_; + private volatile java.lang.Object metrix_; /** - * optional string metrix = 4; + * string metrix = 4; + * @return The metrix. */ + @java.lang.Override public java.lang.String getMetrix() { - return metrix_; + java.lang.Object ref = metrix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metrix_ = s; + return s; + } } /** - * optional string metrix = 4; + * string metrix = 4; + * @return The bytes for metrix. */ + @java.lang.Override public com.google.protobuf.ByteString getMetrixBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(metrix_); - } - /** - * optional string metrix = 4; - */ - private void setMetrix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metrix_ = value; - } - /** - * optional string metrix = 4; - */ - private void clearMetrix() { - - metrix_ = getDefaultInstance().getMetrix(); + java.lang.Object ref = metrix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metrix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string metrix = 4; - */ - private void setMetrixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metrix_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } if (type_ != net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type.GENERIC.getNumber()) { output.writeEnum(3, type_); } - if (!metrix_.isEmpty()) { - output.writeString(4, getMetrix()); + if (!getMetrixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, metrix_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -355,478 +465,867 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } if (type_ != net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type.GENERIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } - if (!metrix_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMetrix()); + if (!getMetrixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, metrix_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice other = (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (type_ != other.type_) return false; + if (!getMetrix() + .equals(other.getMetrix())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + METRIX_FIELD_NUMBER; + hash = (53 * hash) + getMetrix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRegisterDevice} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRegisterDevice) net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.class, net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + type_ = 0; + + metrix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDevice_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice build() { + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice buildPartial() { + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice result = new net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + result.type_ = type_; + result.metrix_ = metrix_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice) { + return mergeFrom((net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice other) { + if (other == net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getMetrix().isEmpty()) { + metrix_ = other.metrix_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type result = net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type.UNRECOGNIZED : result; } /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientRegisterDevice.Type type = 3; + * .proto.ClientRegisterDevice.Type type = 3; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private java.lang.Object metrix_ = ""; /** - * optional string metrix = 4; + * string metrix = 4; + * @return The metrix. */ public java.lang.String getMetrix() { - return instance.getMetrix(); + java.lang.Object ref = metrix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metrix_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string metrix = 4; + * string metrix = 4; + * @return The bytes for metrix. */ public com.google.protobuf.ByteString getMetrixBytes() { - return instance.getMetrixBytes(); + java.lang.Object ref = metrix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metrix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string metrix = 4; + * string metrix = 4; + * @param value The metrix to set. + * @return This builder for chaining. */ public Builder setMetrix( java.lang.String value) { - copyOnWrite(); - instance.setMetrix(value); + if (value == null) { + throw new NullPointerException(); + } + + metrix_ = value; + onChanged(); return this; } /** - * optional string metrix = 4; + * string metrix = 4; + * @return This builder for chaining. */ public Builder clearMetrix() { - copyOnWrite(); - instance.clearMetrix(); + + metrix_ = getDefaultInstance().getMetrix(); + onChanged(); return this; } /** - * optional string metrix = 4; + * string metrix = 4; + * @param value The bytes for metrix to set. + * @return This builder for chaining. */ public Builder setMetrixBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMetrixBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metrix_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientRegisterDevice) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice other = (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - metrix_ = visitor.visitString(!metrix_.isEmpty(), metrix_, - !other.metrix_.isEmpty(), other.metrix_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - metrix_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientRegisterDevice) + } + // @@protoc_insertion_point(class_scope:proto.ClientRegisterDevice) private static final net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRegisterDevice(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice(); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRegisterDevice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRegisterDevice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDevice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientRegisterDeviceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRegisterDeviceResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientRegisterDeviceResponse} */ - public static final class ClientRegisterDeviceResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientRegisterDeviceResponse, ClientRegisterDeviceResponse.Builder> implements + public static final class ClientRegisterDeviceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRegisterDeviceResponse) ClientRegisterDeviceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRegisterDeviceResponse.newBuilder() to construct. + private ClientRegisterDeviceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRegisterDeviceResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRegisterDeviceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRegisterDeviceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.class, net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -834,244 +1333,512 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse other = (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRegisterDeviceResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRegisterDeviceResponse) net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.class, net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRegisterDevice.internal_static_proto_ClientRegisterDeviceResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse build() { + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse buildPartial() { + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse result = new net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse) { + return mergeFrom((net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse other) { + if (other == net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientRegisterDeviceResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse other = (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ClientRegisterDeviceResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientRegisterDeviceResponse) private static final net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRegisterDeviceResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse(); } public static net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRegisterDeviceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRegisterDeviceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRegisterDevice.ClientRegisterDeviceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRegisterDevice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRegisterDevice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRegisterDeviceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRegisterDeviceResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ClientRegisterDevice.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"\272\001\n\024ClientReg" + + "isterDevice\022\037\n\007request\030\001 \001(\0132\016.proto.Req" + + "uest\022\r\n\005token\030\002 \001(\t\022.\n\004type\030\003 \001(\0162 .prot" + + "o.ClientRegisterDevice.Type\022\016\n\006metrix\030\004 " + + "\001(\t\"2\n\004Type\022\013\n\007GENERIC\020\000\022\013\n\007ANDROID\020\001\022\007\n" + + "\003IOS\020\002\022\007\n\003WEB\020\003\"A\n\034ClientRegisterDeviceR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "seB+\n\016net.iGap.protoB\031ProtoClientRegiste" + + "rDeviceb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientRegisterDevice_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientRegisterDevice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRegisterDevice_descriptor, + new java.lang.String[] { "Request", "Token", "Type", "Metrix", }); + internal_static_proto_ClientRegisterDeviceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientRegisterDeviceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRegisterDeviceResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientResolveUsername.java b/src/main/java/net/iGap/proto/ProtoClientResolveUsername.java index a7226ca..504dc77 100644 --- a/src/main/java/net/iGap/proto/ProtoClientResolveUsername.java +++ b/src/main/java/net/iGap/proto/ProtoClientResolveUsername.java @@ -8,25 +8,39 @@ private ProtoClientResolveUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientResolveUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientResolveUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -34,124 +48,190 @@ public interface ClientResolveUsernameOrBuilder extends /** * Protobuf type {@code proto.ClientResolveUsername} */ - public static final class ClientResolveUsername extends - com.google.protobuf.GeneratedMessageLite< - ClientResolveUsername, ClientResolveUsername.Builder> implements + public static final class ClientResolveUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientResolveUsername) ClientResolveUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientResolveUsername.newBuilder() to construct. + private ClientResolveUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientResolveUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientResolveUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientResolveUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.class, net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,349 +239,740 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername other = (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientResolveUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientResolveUsername) net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.class, net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsername_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername build() { + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername buildPartial() { + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername result = new net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername) { + return mergeFrom((net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername other) { + if (other == net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientResolveUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername other = (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientResolveUsername) + } + // @@protoc_insertion_point(class_scope:proto.ClientResolveUsername) private static final net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientResolveUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername(); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientResolveUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientResolveUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientResolveUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientResolveUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @return The type. */ net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type getType(); /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ boolean hasUser(); /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ net.iGap.proto.ProtoGlobal.RegisteredUser getUser(); + /** + * .proto.RegisteredUser user = 3; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * .proto.Room room = 4; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ClientResolveUsernameResponse} */ - public static final class ClientResolveUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientResolveUsernameResponse, ClientResolveUsernameResponse.Builder> implements + public static final class ClientResolveUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientResolveUsernameResponse) ClientResolveUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientResolveUsernameResponse.newBuilder() to construct. + private ClientResolveUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientResolveUsernameResponse() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientResolveUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } + private ClientResolveUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.class, net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Builder.class); + } + /** * Protobuf enum {@code proto.ClientResolveUsernameResponse.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * USER = 0; */ @@ -524,10 +995,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -535,6 +1012,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return USER; @@ -555,6 +1036,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -567,198 +1079,112 @@ private Type(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @return The type. */ - public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type getType() { - net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type result = net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type result = net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type.UNRECOGNIZED : result; } - /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; - */ - private void setType(net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; - */ - private void clearType() { - - type_ = 0; - } public static final int USER_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RegisteredUser user_; /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ + @java.lang.Override public boolean hasUser() { return user_ != null; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; } /** - * optional .proto.RegisteredUser user = 3; - */ - private void setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - - } - /** - * optional .proto.RegisteredUser user = 3; - */ - private void setUser( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - user_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser user = 3; - */ - private void mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (user_ != null && - user_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - user_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); - } else { - user_ = value; - } - - } - /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ - private void clearUser() { user_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + return getUser(); } public static final int ROOM_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.Room room_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.Room room = 4; - */ - private void setRoom( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - room_ = builderForValue.build(); - - } - /** - * optional .proto.Room room = 4; - */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.Room room = 4; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -773,10 +1199,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(4, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -796,406 +1224,862 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse other = (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (type_ != other.type_) return false; + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientResolveUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientResolveUsernameResponse) net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.class, net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + type_ = 0; + + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientResolveUsername.internal_static_proto_ClientResolveUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse build() { + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse buildPartial() { + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse result = new net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.type_ = type_; + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse other) { + if (other == net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasUser()) { + mergeUser(other.getUser()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int type_ = 0; /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type result = net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type.UNRECOGNIZED : result; } /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientResolveUsernameResponse.Type type = 2; + * .proto.ClientResolveUsernameResponse.Type type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RegisteredUser user_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userBuilder_; /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ public boolean hasUser() { - return instance.hasUser(); + return userBuilder_ != null || user_ != null; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { - return instance.getUser(); + if (userBuilder_ == null) { + return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUser(value); - return this; + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder setUser( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUser(builderForValue); + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergeUser(value); + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ - public Builder clearUser() { copyOnWrite(); - instance.clearUser(); + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + return this; } + /** + * .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } + } + /** + * .proto.RegisteredUser user = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + private net.iGap.proto.ProtoGlobal.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ public net.iGap.proto.ProtoGlobal.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientResolveUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse other = (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - user_ = visitor.visitMessage(user_, other.user_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (user_ != null) { - subBuilder = user_.toBuilder(); - } - user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(user_); - user_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Room room = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } + return roomBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ClientResolveUsernameResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientResolveUsernameResponse) private static final net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientResolveUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse(); } public static net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientResolveUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientResolveUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoClientResolveUsername.ClientResolveUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientResolveUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientResolveUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientResolveUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientResolveUsernameResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033ClientResolveUsername.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\032\014Global.prot" + + "o\"J\n\025ClientResolveUsername\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022\020\n\010username\030\002 \001(\t\"\327\001" + + "\n\035ClientResolveUsernameResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\0227\n\004type\030\002 \001(\016" + + "2).proto.ClientResolveUsernameResponse.T" + + "ype\022#\n\004user\030\003 \001(\0132\025.proto.RegisteredUser" + + "\022\031\n\004room\030\004 \001(\0132\013.proto.Room\"\032\n\004Type\022\010\n\004U" + + "SER\020\000\022\010\n\004ROOM\020\001B,\n\016net.iGap.protoB\032Proto" + + "ClientResolveUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientResolveUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientResolveUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientResolveUsername_descriptor, + new java.lang.String[] { "Request", "Username", }); + internal_static_proto_ClientResolveUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientResolveUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientResolveUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Type", "User", "Room", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java b/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java index 318db81..1cabaac 100644 --- a/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java +++ b/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java @@ -8,137 +8,203 @@ private ProtoClientRoomChangeOwner() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientRoomChangeOwnerOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRoomChangeOwner) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ClientRoomChangeOwner} */ - public static final class ClientRoomChangeOwner extends - com.google.protobuf.GeneratedMessageLite< - ClientRoomChangeOwner, ClientRoomChangeOwner.Builder> implements + public static final class ClientRoomChangeOwner extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRoomChangeOwner) ClientRoomChangeOwnerOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRoomChangeOwner.newBuilder() to construct. + private ClientRoomChangeOwner(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRoomChangeOwner() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRoomChangeOwner(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRoomChangeOwner( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwner_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwner_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.class, net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,522 +237,813 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner other = (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRoomChangeOwner} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRoomChangeOwner) net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwner_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwner_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.class, net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + userId_ = 0L; + + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwner_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner build() { + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner buildPartial() { + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner result = new net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner) { + return mergeFrom((net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner other) { + if (other == net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientRoomChangeOwner) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner other = (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner) arg1; - request_ = visitor.visitMessage(request_, other.request_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientRoomChangeOwner) + } + // @@protoc_insertion_point(class_scope:proto.ClientRoomChangeOwner) private static final net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRoomChangeOwner(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner(); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRoomChangeOwner parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRoomChangeOwner(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwner getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientRoomChangeOwnerResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRoomChangeOwnerResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 old_owner_id = 2; + * uint64 old_owner_id = 2; + * @return The oldOwnerId. */ long getOldOwnerId(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; + * @return The permission. */ net.iGap.proto.ProtoGlobal.RoomAccess getPermission(); + /** + * .proto.RoomAccess permission = 4; + */ + net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder(); /** - * optional uint64 new_owner_id = 5; + * uint64 new_owner_id = 5; + * @return The newOwnerId. */ long getNewOwnerId(); } /** * Protobuf type {@code proto.ClientRoomChangeOwnerResponse} */ - public static final class ClientRoomChangeOwnerResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientRoomChangeOwnerResponse, ClientRoomChangeOwnerResponse.Builder> implements + public static final class ClientRoomChangeOwnerResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRoomChangeOwnerResponse) ClientRoomChangeOwnerResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRoomChangeOwnerResponse.newBuilder() to construct. + private ClientRoomChangeOwnerResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRoomChangeOwnerResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRoomChangeOwnerResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRoomChangeOwnerResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + oldOwnerId_ = input.readUInt64(); + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.RoomAccess.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomAccess.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + newOwnerId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwnerResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwnerResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.class, net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int OLD_OWNER_ID_FIELD_NUMBER = 2; private long oldOwnerId_; /** - * optional uint64 old_owner_id = 2; + * uint64 old_owner_id = 2; + * @return The oldOwnerId. */ + @java.lang.Override public long getOldOwnerId() { return oldOwnerId_; } - /** - * optional uint64 old_owner_id = 2; - */ - private void setOldOwnerId(long value) { - - oldOwnerId_ = value; - } - /** - * optional uint64 old_owner_id = 2; - */ - private void clearOldOwnerId() { - - oldOwnerId_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.RoomAccess permission_; /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomAccess getPermission() { return permission_ == null ? net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : permission_; } /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; */ - private void setPermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.RoomAccess permission = 4; - */ - private void setPermission( - net.iGap.proto.ProtoGlobal.RoomAccess.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.RoomAccess permission = 4; - */ - private void mergePermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoGlobal.RoomAccess.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - - } - /** - * optional .proto.RoomAccess permission = 4; - */ - private void clearPermission() { permission_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder() { + return getPermission(); } public static final int NEW_OWNER_ID_FIELD_NUMBER = 5; private long newOwnerId_; /** - * optional uint64 new_owner_id = 5; + * uint64 new_owner_id = 5; + * @return The newOwnerId. */ + @java.lang.Override public long getNewOwnerId() { return newOwnerId_; } - /** - * optional uint64 new_owner_id = 5; - */ - private void setNewOwnerId(long value) { - - newOwnerId_ = value; - } - /** - * optional uint64 new_owner_id = 5; - */ - private void clearNewOwnerId() { - - newOwnerId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -702,10 +1061,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (newOwnerId_ != 0L) { output.writeUInt64(5, newOwnerId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -729,393 +1090,782 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, newOwnerId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse other = (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getOldOwnerId() + != other.getOldOwnerId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (getNewOwnerId() + != other.getNewOwnerId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + OLD_OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOldOwnerId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (37 * hash) + NEW_OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNewOwnerId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRoomChangeOwnerResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRoomChangeOwnerResponse) net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwnerResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwnerResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.class, net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + oldOwnerId_ = 0L; + + roomId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + newOwnerId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRoomChangeOwner.internal_static_proto_ClientRoomChangeOwnerResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse build() { + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse buildPartial() { + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse result = new net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.oldOwnerId_ = oldOwnerId_; + result.roomId_ = roomId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + result.newOwnerId_ = newOwnerId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse) { + return mergeFrom((net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse other) { + if (other == net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getOldOwnerId() != 0L) { + setOldOwnerId(other.getOldOwnerId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + if (other.getNewOwnerId() != 0L) { + setNewOwnerId(other.getNewOwnerId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long oldOwnerId_ ; /** - * optional uint64 old_owner_id = 2; + * uint64 old_owner_id = 2; + * @return The oldOwnerId. */ + @java.lang.Override public long getOldOwnerId() { - return instance.getOldOwnerId(); + return oldOwnerId_; } /** - * optional uint64 old_owner_id = 2; + * uint64 old_owner_id = 2; + * @param value The oldOwnerId to set. + * @return This builder for chaining. */ public Builder setOldOwnerId(long value) { - copyOnWrite(); - instance.setOldOwnerId(value); + + oldOwnerId_ = value; + onChanged(); return this; } /** - * optional uint64 old_owner_id = 2; + * uint64 old_owner_id = 2; + * @return This builder for chaining. */ public Builder clearOldOwnerId() { - copyOnWrite(); - instance.clearOldOwnerId(); + + oldOwnerId_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomAccess permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder> permissionBuilder_; /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoGlobal.RoomAccess getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoGlobal.RoomAccess.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoGlobal.RoomAccess.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomAccess permission = 4; + * .proto.RoomAccess permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; } + /** + * .proto.RoomAccess permission = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomAccess.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.RoomAccess permission = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : permission_; + } + } + /** + * .proto.RoomAccess permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; + } + return permissionBuilder_; + } + private long newOwnerId_ ; /** - * optional uint64 new_owner_id = 5; + * uint64 new_owner_id = 5; + * @return The newOwnerId. */ + @java.lang.Override public long getNewOwnerId() { - return instance.getNewOwnerId(); + return newOwnerId_; } /** - * optional uint64 new_owner_id = 5; + * uint64 new_owner_id = 5; + * @param value The newOwnerId to set. + * @return This builder for chaining. */ public Builder setNewOwnerId(long value) { - copyOnWrite(); - instance.setNewOwnerId(value); + + newOwnerId_ = value; + onChanged(); return this; } /** - * optional uint64 new_owner_id = 5; + * uint64 new_owner_id = 5; + * @return This builder for chaining. */ public Builder clearNewOwnerId() { - copyOnWrite(); - instance.clearNewOwnerId(); + + newOwnerId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientRoomChangeOwnerResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse other = (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - oldOwnerId_ = visitor.visitLong(oldOwnerId_ != 0L, oldOwnerId_, - other.oldOwnerId_ != 0L, other.oldOwnerId_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - newOwnerId_ = visitor.visitLong(newOwnerId_ != 0L, newOwnerId_, - other.newOwnerId_ != 0L, other.newOwnerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - oldOwnerId_ = input.readUInt64(); - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.RoomAccess.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomAccess.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - newOwnerId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientRoomChangeOwnerResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientRoomChangeOwnerResponse) private static final net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRoomChangeOwnerResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse(); } public static net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRoomChangeOwnerResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRoomChangeOwnerResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRoomChangeOwner_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRoomChangeOwner_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRoomChangeOwnerResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRoomChangeOwnerResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033ClientRoomChangeOwner.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\032\014Global.prot" + + "o\"Z\n\025ClientRoomChangeOwner\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022\017\n\007user_id\030\002 \001(\004\022\017\n\007" + + "room_id\030\003 \001(\004\"\246\001\n\035ClientRoomChangeOwnerR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "se\022\024\n\014old_owner_id\030\002 \001(\004\022\017\n\007room_id\030\003 \001(" + + "\004\022%\n\npermission\030\004 \001(\0132\021.proto.RoomAccess" + + "\022\024\n\014new_owner_id\030\005 \001(\004B,\n\016net.iGap.proto" + + "B\032ProtoClientRoomChangeOwnerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientRoomChangeOwner_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientRoomChangeOwner_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRoomChangeOwner_descriptor, + new java.lang.String[] { "Request", "UserId", "RoomId", }); + internal_static_proto_ClientRoomChangeOwnerResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientRoomChangeOwnerResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRoomChangeOwnerResponse_descriptor, + new java.lang.String[] { "Response", "OldOwnerId", "RoomId", "Permission", "NewOwnerId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientRoomMemberSearch.java b/src/main/java/net/iGap/proto/ProtoClientRoomMemberSearch.java index 1d69f1c..e878433 100644 --- a/src/main/java/net/iGap/proto/ProtoClientRoomMemberSearch.java +++ b/src/main/java/net/iGap/proto/ProtoClientRoomMemberSearch.java @@ -8,11 +8,17 @@ private ProtoClientRoomMemberSearch() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } /** * Protobuf enum {@code proto.Role} */ public enum Role - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MEMBER = 0; */ @@ -51,10 +57,16 @@ public enum Role public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -62,6 +74,10 @@ public static Role valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Role forNumber(int value) { switch (value) { case 0: return MEMBER; @@ -84,6 +100,37 @@ public Role findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomMemberSearch.getDescriptor().getEnumTypes().get(0); + } + + private static final Role[] VALUES = values(); + + public static Role valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Role(int value) { @@ -95,212 +142,267 @@ private Role(int value) { public interface ClientRoomMemberSearchOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRoomMemberSearch) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string query = 3; + * string query = 3; + * @return The query. */ java.lang.String getQuery(); /** - * optional string query = 3; + * string query = 3; + * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @return The role. */ net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole(); } /** * Protobuf type {@code proto.ClientRoomMemberSearch} */ - public static final class ClientRoomMemberSearch extends - com.google.protobuf.GeneratedMessageLite< - ClientRoomMemberSearch, ClientRoomMemberSearch.Builder> implements + public static final class ClientRoomMemberSearch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRoomMemberSearch) ClientRoomMemberSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRoomMemberSearch.newBuilder() to construct. + private ClientRoomMemberSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRoomMemberSearch() { query_ = ""; + role_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRoomMemberSearch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRoomMemberSearch( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearch_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.class, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int QUERY_FIELD_NUMBER = 3; - private java.lang.String query_; + private volatile java.lang.Object query_; /** - * optional string query = 3; + * string query = 3; + * @return The query. */ + @java.lang.Override public java.lang.String getQuery() { - return query_; + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } } /** - * optional string query = 3; + * string query = 3; + * @return The bytes for query. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(query_); - } - /** - * optional string query = 3; - */ - private void setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - } - /** - * optional string query = 3; - */ - private void clearQuery() { - - query_ = getDefaultInstance().getQuery(); - } - /** - * optional string query = 3; - */ - private void setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value.toStringUtf8(); + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROLE_FIELD_NUMBER = 4; private int role_; /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @return The role. */ - public net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole() { - net.iGap.proto.ProtoClientRoomMemberSearch.Role result = net.iGap.proto.ProtoClientRoomMemberSearch.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRoomMemberSearch.Role result = net.iGap.proto.ProtoClientRoomMemberSearch.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoClientRoomMemberSearch.Role.UNRECOGNIZED : result; } - /** - * optional .proto.Role role = 4; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.Role role = 4; - */ - private void setRole(net.iGap.proto.ProtoClientRoomMemberSearch.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.Role role = 4; - */ - private void clearRole() { - - role_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -309,16 +411,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!query_.isEmpty()) { - output.writeString(3, getQuery()); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); } if (role_ != net.iGap.proto.ProtoClientRoomMemberSearch.Role.MEMBER.getNumber()) { output.writeEnum(4, role_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -330,387 +434,683 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!query_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getQuery()); + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); } if (role_ != net.iGap.proto.ProtoClientRoomMemberSearch.Role.MEMBER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, role_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch other = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (role_ != other.role_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRoomMemberSearch} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRoomMemberSearch) net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.class, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + query_ = ""; + + role_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearch_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch build() { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch buildPartial() { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch result = new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.query_ = query_; + result.role_ = role_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch) { + return mergeFrom((net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch other) { + if (other == net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object query_ = ""; /** - * optional string query = 3; + * string query = 3; + * @return The query. */ public java.lang.String getQuery() { - return instance.getQuery(); + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string query = 3; + * string query = 3; + * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { - return instance.getQueryBytes(); + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string query = 3; + * string query = 3; + * @param value The query to set. + * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { - copyOnWrite(); - instance.setQuery(value); + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); return this; } /** - * optional string query = 3; + * string query = 3; + * @return This builder for chaining. */ public Builder clearQuery() { - copyOnWrite(); - instance.clearQuery(); + + query_ = getDefaultInstance().getQuery(); + onChanged(); return this; } /** - * optional string query = 3; + * string query = 3; + * @param value The bytes for query to set. + * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQueryBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRoomMemberSearch.Role result = net.iGap.proto.ProtoClientRoomMemberSearch.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoClientRoomMemberSearch.Role.UNRECOGNIZED : result; } /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoClientRoomMemberSearch.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Role role = 4; + * .proto.Role role = 4; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientRoomMemberSearch) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch other = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - query_ = visitor.visitString(!query_.isEmpty(), query_, - !other.query_.isEmpty(), other.query_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - query_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - role_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.ClientRoomMemberSearch) } - // @@protoc_insertion_point(class_scope:proto.ClientRoomMemberSearch) private static final net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRoomMemberSearch(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch(); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRoomMemberSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRoomMemberSearch(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } - public interface ClientRoomMemberSearchResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ClientRoomMemberSearchResponse) - com.google.protobuf.MessageLiteOrBuilder { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClientRoomMemberSearchResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientRoomMemberSearchResponse) + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); @@ -727,202 +1127,364 @@ public interface ClientRoomMemberSearchResponseOrBuilder extends * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ int getInfosCount(); + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + java.util.List + getInfosOrBuilderList(); + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.InfoOrBuilder getInfosOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientRoomMemberSearchResponse} */ - public static final class ClientRoomMemberSearchResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientRoomMemberSearchResponse, ClientRoomMemberSearchResponse.Builder> implements + public static final class ClientRoomMemberSearchResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRoomMemberSearchResponse) ClientRoomMemberSearchResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRoomMemberSearchResponse.newBuilder() to construct. + private ClientRoomMemberSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRoomMemberSearchResponse() { - infos_ = emptyProtobufList(); + infos_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRoomMemberSearchResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRoomMemberSearchResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + infos_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + infos_.add( + input.readMessage(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + infos_ = java.util.Collections.unmodifiableList(infos_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.class, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Builder.class); } + public interface InfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRoomMemberSearchResponse.Info) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; + * @return Whether the user field is set. */ boolean hasUser(); /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; + * @return The user. */ net.iGap.proto.ProtoGlobal.RegisteredUser getUser(); + /** + * .proto.RegisteredUser user = 1; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder(); /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; + * @return Whether the roomAccess field is set. */ boolean hasRoomAccess(); /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; + * @return The roomAccess. */ net.iGap.proto.ProtoGlobal.RoomAccess getRoomAccess(); + /** + * .proto.RoomAccess room_access = 2; + */ + net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getRoomAccessOrBuilder(); /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @return The role. */ net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole(); } /** * Protobuf type {@code proto.ClientRoomMemberSearchResponse.Info} */ - public static final class Info extends - com.google.protobuf.GeneratedMessageLite< - Info, Info.Builder> implements + public static final class Info extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRoomMemberSearchResponse.Info) InfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use Info.newBuilder() to construct. + private Info(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Info() { + role_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Info(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Info( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomAccess.Builder subBuilder = null; + if (roomAccess_ != null) { + subBuilder = roomAccess_.toBuilder(); + } + roomAccess_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomAccess.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(roomAccess_); + roomAccess_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_Info_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_Info_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.class, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder.class); + } + public static final int USER_FIELD_NUMBER = 1; private net.iGap.proto.ProtoGlobal.RegisteredUser user_; /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; + * @return Whether the user field is set. */ + @java.lang.Override public boolean hasUser() { return user_ != null; } /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; + * @return The user. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; } /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; */ - private void setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - - } - /** - * optional .proto.RegisteredUser user = 1; - */ - private void setUser( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - user_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser user = 1; - */ - private void mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (user_ != null && - user_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - user_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); - } else { - user_ = value; - } - - } - /** - * optional .proto.RegisteredUser user = 1; - */ - private void clearUser() { user_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + return getUser(); } public static final int ROOM_ACCESS_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomAccess roomAccess_; /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; + * @return Whether the roomAccess field is set. */ + @java.lang.Override public boolean hasRoomAccess() { return roomAccess_ != null; } /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; + * @return The roomAccess. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomAccess getRoomAccess() { return roomAccess_ == null ? net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : roomAccess_; } /** - * optional .proto.RoomAccess room_access = 2; - */ - private void setRoomAccess(net.iGap.proto.ProtoGlobal.RoomAccess value) { - if (value == null) { - throw new NullPointerException(); - } - roomAccess_ = value; - - } - /** - * optional .proto.RoomAccess room_access = 2; - */ - private void setRoomAccess( - net.iGap.proto.ProtoGlobal.RoomAccess.Builder builderForValue) { - roomAccess_ = builderForValue.build(); - - } - /** - * optional .proto.RoomAccess room_access = 2; - */ - private void mergeRoomAccess(net.iGap.proto.ProtoGlobal.RoomAccess value) { - if (roomAccess_ != null && - roomAccess_ != net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance()) { - roomAccess_ = - net.iGap.proto.ProtoGlobal.RoomAccess.newBuilder(roomAccess_).mergeFrom(value).buildPartial(); - } else { - roomAccess_ = value; - } - - } - /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; */ - private void clearRoomAccess() { roomAccess_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getRoomAccessOrBuilder() { + return getRoomAccess(); } public static final int ROLE_FIELD_NUMBER = 3; private int role_; /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @return The role. */ - public net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole() { - net.iGap.proto.ProtoClientRoomMemberSearch.Role result = net.iGap.proto.ProtoClientRoomMemberSearch.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRoomMemberSearch.Role result = net.iGap.proto.ProtoClientRoomMemberSearch.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoClientRoomMemberSearch.Role.UNRECOGNIZED : result; } - /** - * optional .proto.Role role = 3; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.Role role = 3; - */ - private void setRole(net.iGap.proto.ProtoClientRoomMemberSearch.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.Role role = 3; - */ - private void clearRole() { - - role_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (user_ != null) { @@ -934,10 +1496,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (role_ != net.iGap.proto.ProtoClientRoomMemberSearch.Role.MEMBER.getNumber()) { output.writeEnum(3, role_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -953,432 +1517,717 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, role_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info other = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (hasRoomAccess() != other.hasRoomAccess()) return false; + if (hasRoomAccess()) { + if (!getRoomAccess() + .equals(other.getRoomAccess())) return false; + } + if (role_ != other.role_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasRoomAccess()) { + hash = (37 * hash) + ROOM_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getRoomAccess().hashCode(); + } + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRoomMemberSearchResponse.Info} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRoomMemberSearchResponse.Info) net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.InfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_Info_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_Info_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.class, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + if (roomAccessBuilder_ == null) { + roomAccess_ = null; + } else { + roomAccess_ = null; + roomAccessBuilder_ = null; + } + role_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_Info_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info build() { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info buildPartial() { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info result = new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info(this); + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + if (roomAccessBuilder_ == null) { + result.roomAccess_ = roomAccess_; + } else { + result.roomAccess_ = roomAccessBuilder_.build(); + } + result.role_ = role_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info) { + return mergeFrom((net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info other) { + if (other == net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + if (other.hasRoomAccess()) { + mergeRoomAccess(other.getRoomAccess()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoGlobal.RegisteredUser user_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userBuilder_; /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; + * @return Whether the user field is set. */ public boolean hasUser() { - return instance.hasUser(); + return userBuilder_ != null || user_ != null; } /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; + * @return The user. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { - return instance.getUser(); + if (userBuilder_ == null) { + return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; */ public Builder setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUser(value); - return this; + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; */ public Builder setUser( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUser(builderForValue); + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; */ public Builder mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergeUser(value); + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser user = 1; + * .proto.RegisteredUser user = 1; */ - public Builder clearUser() { copyOnWrite(); - instance.clearUser(); + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + return this; } + /** + * .proto.RegisteredUser user = 1; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser user = 1; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } + } + /** + * .proto.RegisteredUser user = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomAccess roomAccess_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder> roomAccessBuilder_; /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; + * @return Whether the roomAccess field is set. */ public boolean hasRoomAccess() { - return instance.hasRoomAccess(); + return roomAccessBuilder_ != null || roomAccess_ != null; } /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; + * @return The roomAccess. */ public net.iGap.proto.ProtoGlobal.RoomAccess getRoomAccess() { - return instance.getRoomAccess(); + if (roomAccessBuilder_ == null) { + return roomAccess_ == null ? net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : roomAccess_; + } else { + return roomAccessBuilder_.getMessage(); + } } /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; */ public Builder setRoomAccess(net.iGap.proto.ProtoGlobal.RoomAccess value) { - copyOnWrite(); - instance.setRoomAccess(value); - return this; + if (roomAccessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + roomAccess_ = value; + onChanged(); + } else { + roomAccessBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; */ public Builder setRoomAccess( net.iGap.proto.ProtoGlobal.RoomAccess.Builder builderForValue) { - copyOnWrite(); - instance.setRoomAccess(builderForValue); + if (roomAccessBuilder_ == null) { + roomAccess_ = builderForValue.build(); + onChanged(); + } else { + roomAccessBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; */ public Builder mergeRoomAccess(net.iGap.proto.ProtoGlobal.RoomAccess value) { - copyOnWrite(); - instance.mergeRoomAccess(value); + if (roomAccessBuilder_ == null) { + if (roomAccess_ != null) { + roomAccess_ = + net.iGap.proto.ProtoGlobal.RoomAccess.newBuilder(roomAccess_).mergeFrom(value).buildPartial(); + } else { + roomAccess_ = value; + } + onChanged(); + } else { + roomAccessBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomAccess room_access = 2; + * .proto.RoomAccess room_access = 2; */ - public Builder clearRoomAccess() { copyOnWrite(); - instance.clearRoomAccess(); + public Builder clearRoomAccess() { + if (roomAccessBuilder_ == null) { + roomAccess_ = null; + onChanged(); + } else { + roomAccess_ = null; + roomAccessBuilder_ = null; + } + return this; } + /** + * .proto.RoomAccess room_access = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomAccess.Builder getRoomAccessBuilder() { + + onChanged(); + return getRoomAccessFieldBuilder().getBuilder(); + } + /** + * .proto.RoomAccess room_access = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getRoomAccessOrBuilder() { + if (roomAccessBuilder_ != null) { + return roomAccessBuilder_.getMessageOrBuilder(); + } else { + return roomAccess_ == null ? + net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : roomAccess_; + } + } + /** + * .proto.RoomAccess room_access = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder> + getRoomAccessFieldBuilder() { + if (roomAccessBuilder_ == null) { + roomAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder>( + getRoomAccess(), + getParentForChildren(), + isClean()); + roomAccess_ = null; + } + return roomAccessBuilder_; + } + private int role_ = 0; /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoClientRoomMemberSearch.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRoomMemberSearch.Role result = net.iGap.proto.ProtoClientRoomMemberSearch.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoClientRoomMemberSearch.Role.UNRECOGNIZED : result; } /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoClientRoomMemberSearch.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Role role = 3; + * .proto.Role role = 3; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientRoomMemberSearchResponse.Info) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info other = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info) arg1; - user_ = visitor.visitMessage(user_, other.user_); - roomAccess_ = visitor.visitMessage(roomAccess_, other.roomAccess_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (user_ != null) { - subBuilder = user_.toBuilder(); - } - user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(user_); - user_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomAccess.Builder subBuilder = null; - if (roomAccess_ != null) { - subBuilder = roomAccess_.toBuilder(); - } - roomAccess_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomAccess.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roomAccess_); - roomAccess_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - role_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientRoomMemberSearchResponse.Info) + } + // @@protoc_insertion_point(class_scope:proto.ClientRoomMemberSearchResponse.Info) private static final net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Info(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info(); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Info parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Info(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } - private int bitField0_; - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - response_ = value; - + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public boolean hasResponse() { + return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int INFOS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList infos_; + private java.util.List infos_; /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ + @java.lang.Override public java.util.List getInfosList() { return infos_; } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ + @java.lang.Override public java.util.List getInfosOrBuilderList() { return infos_; @@ -1386,108 +2235,38 @@ public java.util.Listrepeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ + @java.lang.Override public int getInfosCount() { return infos_.size(); } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ + @java.lang.Override public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info getInfos(int index) { return infos_.get(index); } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ + @java.lang.Override public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.InfoOrBuilder getInfosOrBuilder( int index) { return infos_.get(index); } - private void ensureInfosIsMutable() { - if (!infos_.isModifiable()) { - infos_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(infos_); - } - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void setInfos( - int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfosIsMutable(); - infos_.set(index, value); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void setInfos( - int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder builderForValue) { - ensureInfosIsMutable(); - infos_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void addInfos(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfosIsMutable(); - infos_.add(value); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void addInfos( - int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfosIsMutable(); - infos_.add(index, value); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void addInfos( - net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder builderForValue) { - ensureInfosIsMutable(); - infos_.add(builderForValue.build()); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void addInfos( - int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder builderForValue) { - ensureInfosIsMutable(); - infos_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void addAllInfos( - java.lang.Iterable values) { - ensureInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, infos_); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void clearInfos() { - infos_ = emptyProtobufList(); - } - /** - * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; - */ - private void removeInfos(int index) { - ensureInfosIsMutable(); - infos_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1499,10 +2278,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < infos_.size(); i++) { output.writeMessage(3, infos_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1518,185 +2299,559 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, infos_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse other = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getInfosList() + .equals(other.getInfosList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (getInfosCount() > 0) { + hash = (37 * hash) + INFOS_FIELD_NUMBER; + hash = (53 * hash) + getInfosList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRoomMemberSearchResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRoomMemberSearchResponse) net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.class, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInfosFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (infosBuilder_ == null) { + infos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + infosBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRoomMemberSearch.internal_static_proto_ClientRoomMemberSearchResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse build() { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse buildPartial() { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse result = new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (infosBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + infos_ = java.util.Collections.unmodifiableList(infos_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.infos_ = infos_; + } else { + result.infos_ = infosBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse) { + return mergeFrom((net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse other) { + if (other == net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (infosBuilder_ == null) { + if (!other.infos_.isEmpty()) { + if (infos_.isEmpty()) { + infos_ = other.infos_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfosIsMutable(); + infos_.addAll(other.infos_); + } + onChanged(); + } + } else { + if (!other.infos_.isEmpty()) { + if (infosBuilder_.isEmpty()) { + infosBuilder_.dispose(); + infosBuilder_ = null; + infos_ = other.infos_; + bitField0_ = (bitField0_ & ~0x00000001); + infosBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInfosFieldBuilder() : null; + } else { + infosBuilder_.addAllMessages(other.infos_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.util.List infos_ = + java.util.Collections.emptyList(); + private void ensureInfosIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + infos_ = new java.util.ArrayList(infos_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.InfoOrBuilder> infosBuilder_; + /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ public java.util.List getInfosList() { - return java.util.Collections.unmodifiableList( - instance.getInfosList()); + if (infosBuilder_ == null) { + return java.util.Collections.unmodifiableList(infos_); + } else { + return infosBuilder_.getMessageList(); + } } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ public int getInfosCount() { - return instance.getInfosCount(); - }/** + if (infosBuilder_ == null) { + return infos_.size(); + } else { + return infosBuilder_.getCount(); + } + } + /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info getInfos(int index) { - return instance.getInfos(index); + if (infosBuilder_ == null) { + return infos_.get(index); + } else { + return infosBuilder_.getMessage(index); + } } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ public Builder setInfos( int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info value) { - copyOnWrite(); - instance.setInfos(index, value); + if (infosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfosIsMutable(); + infos_.set(index, value); + onChanged(); + } else { + infosBuilder_.setMessage(index, value); + } return this; } /** @@ -1704,16 +2859,29 @@ public Builder setInfos( */ public Builder setInfos( int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder builderForValue) { - copyOnWrite(); - instance.setInfos(index, builderForValue); + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.set(index, builderForValue.build()); + onChanged(); + } else { + infosBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ public Builder addInfos(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info value) { - copyOnWrite(); - instance.addInfos(value); + if (infosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfosIsMutable(); + infos_.add(value); + onChanged(); + } else { + infosBuilder_.addMessage(value); + } return this; } /** @@ -1721,8 +2889,16 @@ public Builder addInfos(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMem */ public Builder addInfos( int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info value) { - copyOnWrite(); - instance.addInfos(index, value); + if (infosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfosIsMutable(); + infos_.add(index, value); + onChanged(); + } else { + infosBuilder_.addMessage(index, value); + } return this; } /** @@ -1730,8 +2906,13 @@ public Builder addInfos( */ public Builder addInfos( net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder builderForValue) { - copyOnWrite(); - instance.addInfos(builderForValue); + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.add(builderForValue.build()); + onChanged(); + } else { + infosBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1739,8 +2920,13 @@ public Builder addInfos( */ public Builder addInfos( int index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder builderForValue) { - copyOnWrite(); - instance.addInfos(index, builderForValue); + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.add(index, builderForValue.build()); + onChanged(); + } else { + infosBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1748,153 +2934,227 @@ public Builder addInfos( */ public Builder addAllInfos( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllInfos(values); + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, infos_); + onChanged(); + } else { + infosBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ public Builder clearInfos() { - copyOnWrite(); - instance.clearInfos(); + if (infosBuilder_ == null) { + infos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infosBuilder_.clear(); + } return this; } /** * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; */ public Builder removeInfos(int index) { - copyOnWrite(); - instance.removeInfos(index); + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.remove(index); + onChanged(); + } else { + infosBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientRoomMemberSearchResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - infos_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse other = (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - infos_= visitor.visitList(infos_, other.infos_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - if (!infos_.isModifiable()) { - infos_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(infos_); - } - infos_.add( - input.readMessage(net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder getInfosBuilder( + int index) { + return getInfosFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.InfoOrBuilder getInfosOrBuilder( + int index) { + if (infosBuilder_ == null) { + return infos_.get(index); } else { + return infosBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + public java.util.List + getInfosOrBuilderList() { + if (infosBuilder_ != null) { + return infosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(infos_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder addInfosBuilder() { + return getInfosFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.getDefaultInstance()); + } + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder addInfosBuilder( + int index) { + return getInfosFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.getDefaultInstance()); + } + /** + * repeated .proto.ClientRoomMemberSearchResponse.Info infos = 3; + */ + public java.util.List + getInfosBuilderList() { + return getInfosFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.InfoOrBuilder> + getInfosFieldBuilder() { + if (infosBuilder_ == null) { + infosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.Info.Builder, net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse.InfoOrBuilder>( + infos_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + infos_ = null; } + return infosBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientRoomMemberSearchResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientRoomMemberSearchResponse) private static final net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRoomMemberSearchResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse(); } public static net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRoomMemberSearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRoomMemberSearchResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomMemberSearch.ClientRoomMemberSearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRoomMemberSearch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRoomMemberSearch_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRoomMemberSearchResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRoomMemberSearchResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRoomMemberSearchResponse_Info_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRoomMemberSearchResponse_Info_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034ClientRoomMemberSearch.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\032\014Global.pro" + + "to\"t\n\026ClientRoomMemberSearch\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\r" + + "\n\005query\030\003 \001(\t\022\031\n\004role\030\004 \001(\0162\013.proto.Role" + + "\"\377\001\n\036ClientRoomMemberSearchResponse\022!\n\010r" + + "esponse\030\001 \001(\0132\017.proto.Response\022\017\n\007room_i" + + "d\030\002 \001(\004\0229\n\005infos\030\003 \003(\0132*.proto.ClientRoo" + + "mMemberSearchResponse.Info\032n\n\004Info\022#\n\004us" + + "er\030\001 \001(\0132\025.proto.RegisteredUser\022&\n\013room_" + + "access\030\002 \001(\0132\021.proto.RoomAccess\022\031\n\004role\030" + + "\003 \001(\0162\013.proto.Role*7\n\004Role\022\n\n\006MEMBER\020\000\022\r" + + "\n\tMODERATOR\020\001\022\t\n\005ADMIN\020\002\022\t\n\005OWNER\020\003B-\n\016n" + + "et.iGap.protoB\033ProtoClientRoomMemberSear" + + "chb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientRoomMemberSearch_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientRoomMemberSearch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRoomMemberSearch_descriptor, + new java.lang.String[] { "Request", "RoomId", "Query", "Role", }); + internal_static_proto_ClientRoomMemberSearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientRoomMemberSearchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRoomMemberSearchResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Infos", }); + internal_static_proto_ClientRoomMemberSearchResponse_Info_descriptor = + internal_static_proto_ClientRoomMemberSearchResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientRoomMemberSearchResponse_Info_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRoomMemberSearchResponse_Info_descriptor, + new java.lang.String[] { "User", "RoomAccess", "Role", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientRoomReport.java b/src/main/java/net/iGap/proto/ProtoClientRoomReport.java index 930352b..e019b5c 100644 --- a/src/main/java/net/iGap/proto/ProtoClientRoomReport.java +++ b/src/main/java/net/iGap/proto/ProtoClientRoomReport.java @@ -8,69 +8,196 @@ private ProtoClientRoomReport() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientRoomReportOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRoomReport) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @return The reason. */ net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason getReason(); /** - * optional string description = 5; + * string description = 5; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 5; + * string description = 5; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * optional uint64 document_id = 6; + * uint64 document_id = 6; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.ClientRoomReport} */ - public static final class ClientRoomReport extends - com.google.protobuf.GeneratedMessageLite< - ClientRoomReport, ClientRoomReport.Builder> implements + public static final class ClientRoomReport extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRoomReport) ClientRoomReportOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRoomReport.newBuilder() to construct. + private ClientRoomReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRoomReport() { + reason_ = 0; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRoomReport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRoomReport( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + reason_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 48: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.class, net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Builder.class); + } + /** * Protobuf enum {@code proto.ClientRoomReport.Reason} */ public enum Reason - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * OTHER = 0; */ @@ -117,10 +244,16 @@ public enum Reason public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -128,6 +261,10 @@ public static Reason valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Reason forNumber(int value) { switch (value) { case 0: return OTHER; @@ -151,6 +288,37 @@ public Reason findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.getDescriptor().getEnumTypes().get(0); + } + + private static final Reason[] VALUES = values(); + + public static Reason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Reason(int value) { @@ -163,209 +331,131 @@ private Reason(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int REASON_FIELD_NUMBER = 4; private int reason_; /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @return The enum numeric value on the wire for reason. */ - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @return The reason. */ - public net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason getReason() { - net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason result = net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason.forNumber(reason_); + @java.lang.Override public net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason getReason() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason result = net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason.valueOf(reason_); return result == null ? net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason.UNRECOGNIZED : result; } - /** - * optional .proto.ClientRoomReport.Reason reason = 4; - */ - private void setReasonValue(int value) { - reason_ = value; - } - /** - * optional .proto.ClientRoomReport.Reason reason = 4; - */ - private void setReason(net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value.getNumber(); - } - /** - * optional .proto.ClientRoomReport.Reason reason = 4; - */ - private void clearReason() { - - reason_ = 0; - } public static final int DESCRIPTION_FIELD_NUMBER = 5; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 5; + * string description = 5; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 5; + * string description = 5; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 5; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 5; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); - } - /** - * optional string description = 5; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 6; private long documentId_; /** - * optional uint64 document_id = 6; + * uint64 document_id = 6; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 6; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 6; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -380,16 +470,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reason_ != net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason.OTHER.getNumber()) { output.writeEnum(4, reason_); } - if (!description_.isEmpty()) { - output.writeString(5, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (documentId_ != 0L) { output.writeUInt64(6, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -409,516 +501,903 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, reason_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRoomReport.ClientRoomReport)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport other = (net.iGap.proto.ProtoClientRoomReport.ClientRoomReport) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (reason_ != other.reason_) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + reason_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRoomReport.ClientRoomReport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRoomReport} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRoomReport.ClientRoomReport, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRoomReport) net.iGap.proto.ProtoClientRoomReport.ClientRoomReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.class, net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + reason_ = 0; + + description_ = ""; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReport_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReport getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReport build() { + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReport buildPartial() { + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport result = new net.iGap.proto.ProtoClientRoomReport.ClientRoomReport(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.reason_ = reason_; + result.description_ = description_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRoomReport.ClientRoomReport) { + return mergeFrom((net.iGap.proto.ProtoClientRoomReport.ClientRoomReport)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRoomReport.ClientRoomReport other) { + if (other == net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.reason_ != 0) { + setReasonValue(other.getReasonValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRoomReport.ClientRoomReport) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private int reason_ = 0; /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @return The enum numeric value on the wire for reason. */ - public int getReasonValue() { - return instance.getReasonValue(); + @java.lang.Override public int getReasonValue() { + return reason_; } /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @param value The enum numeric value on the wire for reason to set. + * @return This builder for chaining. */ public Builder setReasonValue(int value) { - copyOnWrite(); - instance.setReasonValue(value); + + reason_ = value; + onChanged(); return this; } /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @return The reason. */ + @java.lang.Override public net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason getReason() { - return instance.getReason(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason result = net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason.valueOf(reason_); + return result == null ? net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason.UNRECOGNIZED : result; } /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @param value The reason to set. + * @return This builder for chaining. */ public Builder setReason(net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.Reason value) { - copyOnWrite(); - instance.setReason(value); + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientRoomReport.Reason reason = 4; + * .proto.ClientRoomReport.Reason reason = 4; + * @return This builder for chaining. */ public Builder clearReason() { - copyOnWrite(); - instance.clearReason(); + + reason_ = 0; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 5; + * string description = 5; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 5; + * string description = 5; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 5; + * string description = 5; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 5; + * string description = 5; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 5; + * string description = 5; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 6; + * uint64 document_id = 6; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 6; + * uint64 document_id = 6; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 6; + * uint64 document_id = 6; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientRoomReport) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRoomReport.ClientRoomReport(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRoomReport.ClientRoomReport other = (net.iGap.proto.ProtoClientRoomReport.ClientRoomReport) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - reason_ = visitor.visitInt(reason_ != 0, reason_, other.reason_ != 0, other.reason_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 48: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRoomReport.ClientRoomReport.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientRoomReport) + } + // @@protoc_insertion_point(class_scope:proto.ClientRoomReport) private static final net.iGap.proto.ProtoClientRoomReport.ClientRoomReport DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRoomReport(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRoomReport.ClientRoomReport(); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReport getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRoomReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRoomReport(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientRoomReportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientRoomReportResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientRoomReportResponse} */ - public static final class ClientRoomReportResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientRoomReportResponse, ClientRoomReportResponse.Builder> implements + public static final class ClientRoomReportResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientRoomReportResponse) ClientRoomReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientRoomReportResponse.newBuilder() to construct. + private ClientRoomReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientRoomReportResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientRoomReportResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientRoomReportResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.class, net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -926,244 +1405,513 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse other = (net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientRoomReportResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientRoomReportResponse) net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.class, net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientRoomReport.internal_static_proto_ClientRoomReportResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse build() { + net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse buildPartial() { + net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse result = new net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse) { + return mergeFrom((net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse other) { + if (other == net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientRoomReportResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse other = (net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientRoomReportResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientRoomReportResponse) private static final net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientRoomReportResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse(); } public static net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientRoomReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientRoomReportResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientRoomReport.ClientRoomReportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRoomReport_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRoomReport_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientRoomReportResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientRoomReportResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026ClientRoomReport.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"\373\001\n\020ClientRoomRep" + + "ort\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007" + + "room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022.\n\006rea" + + "son\030\004 \001(\0162\036.proto.ClientRoomReport.Reaso" + + "n\022\023\n\013description\030\005 \001(\t\022\023\n\013document_id\030\006 " + + "\001(\004\"G\n\006Reason\022\t\n\005OTHER\020\000\022\010\n\004SPAM\020\001\022\017\n\013PO" + + "RNOGRAPHY\020\002\022\014\n\010VIOLENCE\020\003\022\t\n\005ABUSE\020\004\"=\n\030" + + "ClientRoomReportResponse\022!\n\010response\030\001 \001" + + "(\0132\017.proto.ResponseB\'\n\016net.iGap.protoB\025P" + + "rotoClientRoomReportb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientRoomReport_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientRoomReport_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRoomReport_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Reason", "Description", "DocumentId", }); + internal_static_proto_ClientRoomReportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientRoomReportResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientRoomReportResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSearch.java b/src/main/java/net/iGap/proto/ProtoClientSearch.java index 22faf9d..34bb3a9 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSearch.java +++ b/src/main/java/net/iGap/proto/ProtoClientSearch.java @@ -8,214 +8,287 @@ private ProtoClientSearch() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSearchOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearch) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string query = 2; + * string query = 2; + * @return The query. */ java.lang.String getQuery(); /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 3; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.ClientSearch} */ - public static final class ClientSearch extends - com.google.protobuf.GeneratedMessageLite< - ClientSearch, ClientSearch.Builder> implements + public static final class ClientSearch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearch) ClientSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearch.newBuilder() to construct. + private ClientSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearch() { query_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearch( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearch.ClientSearch.class, net.iGap.proto.ProtoClientSearch.ClientSearch.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int QUERY_FIELD_NUMBER = 2; - private java.lang.String query_; + private volatile java.lang.Object query_; /** - * optional string query = 2; + * string query = 2; + * @return The query. */ + @java.lang.Override public java.lang.String getQuery() { - return query_; + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } } /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(query_); - } - /** - * optional string query = 2; - */ - private void setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - } - /** - * optional string query = 2; - */ - private void clearQuery() { - - query_ = getDefaultInstance().getQuery(); - } - /** - * optional string query = 2; - */ - private void setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value.toStringUtf8(); + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PAGINATION_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 3; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 3; - */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 3; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!query_.isEmpty()) { - output.writeString(2, getQuery()); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); } if (pagination_ != null) { output.writeMessage(3, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -223,369 +296,716 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!query_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getQuery()); + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } if (pagination_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearch.ClientSearch)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearch.ClientSearch other = (net.iGap.proto.ProtoClientSearch.ClientSearch) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getQuery() + .equals(other.getQuery())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearch.ClientSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearch} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearch.ClientSearch, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearch) net.iGap.proto.ProtoClientSearch.ClientSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearch.ClientSearch.class, net.iGap.proto.ProtoClientSearch.ClientSearch.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearch.ClientSearch.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + query_ = ""; + + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearch_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearch getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearch.ClientSearch.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearch build() { + net.iGap.proto.ProtoClientSearch.ClientSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearch buildPartial() { + net.iGap.proto.ProtoClientSearch.ClientSearch result = new net.iGap.proto.ProtoClientSearch.ClientSearch(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.query_ = query_; + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearch.ClientSearch) { + return mergeFrom((net.iGap.proto.ProtoClientSearch.ClientSearch)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientSearch.ClientSearch other) { + if (other == net.iGap.proto.ProtoClientSearch.ClientSearch.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearch.ClientSearch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearch.ClientSearch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object query_ = ""; /** - * optional string query = 2; + * string query = 2; + * @return The query. */ public java.lang.String getQuery() { - return instance.getQuery(); + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { - return instance.getQueryBytes(); + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string query = 2; + * string query = 2; + * @param value The query to set. + * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { - copyOnWrite(); - instance.setQuery(value); + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); return this; } /** - * optional string query = 2; + * string query = 2; + * @return This builder for chaining. */ public Builder clearQuery() { - copyOnWrite(); - instance.clearQuery(); + + query_ = getDefaultInstance().getQuery(); + onChanged(); return this; } /** - * optional string query = 2; + * string query = 2; + * @param value The bytes for query to set. + * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQueryBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.ClientSearch) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearch.ClientSearch(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearch.ClientSearch other = (net.iGap.proto.ProtoClientSearch.ClientSearch) arg1; - request_ = visitor.visitMessage(request_, other.request_); - query_ = visitor.visitString(!query_.isEmpty(), query_, - !other.query_.isEmpty(), other.query_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - query_ = s; - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearch.ClientSearch.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ClientSearch) + } // @@protoc_insertion_point(class_scope:proto.ClientSearch) private static final net.iGap.proto.ProtoClientSearch.ClientSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearch(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearch.ClientSearch(); } public static net.iGap.proto.ProtoClientSearch.ClientSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearch(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientSearchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.ClientSearchResponse.Info info = 2; @@ -600,73 +1020,299 @@ public interface ClientSearchResponseOrBuilder extends * repeated .proto.ClientSearchResponse.Info info = 2; */ int getInfoCount(); + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + java.util.List + getInfoOrBuilderList(); + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder getInfoOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientSearchResponse} */ - public static final class ClientSearchResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSearchResponse, ClientSearchResponse.Builder> implements + public static final class ClientSearchResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchResponse) ClientSearchResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearchResponse.newBuilder() to construct. + private ClientSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearchResponse() { - info_ = emptyProtobufList(); + info_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearchResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearchResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + info_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + info_.add( + input.readMessage(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + info_ = java.util.Collections.unmodifiableList(info_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.class, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Builder.class); + } + public interface InfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchResponse.Info) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @return The enum numeric value on the wire for category. */ int getCategoryValue(); /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @return The category. */ net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category getCategory(); /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @return The type. */ net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type getType(); /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ boolean hasUser(); /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ net.iGap.proto.ProtoGlobal.RegisteredUser getUser(); + /** + * .proto.RegisteredUser user = 3; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * .proto.Room room = 4; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ClientSearchResponse.Info} */ - public static final class Info extends - com.google.protobuf.GeneratedMessageLite< - Info, Info.Builder> implements + public static final class Info extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchResponse.Info) InfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use Info.newBuilder() to construct. + private Info(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Info() { + category_ = 0; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Info(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Info( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + category_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_Info_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_Info_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.class, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder.class); + } + /** * Protobuf enum {@code proto.ClientSearchResponse.Info.Category} */ public enum Category - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MINE = 0; */ @@ -689,10 +1335,16 @@ public enum Category public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -700,6 +1352,10 @@ public static Category valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Category forNumber(int value) { switch (value) { case 0: return MINE; @@ -720,6 +1376,37 @@ public Category findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.getDescriptor().getEnumTypes().get(0); + } + + private static final Category[] VALUES = values(); + + public static Category valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Category(int value) { @@ -733,7 +1420,7 @@ private Category(int value) { * Protobuf enum {@code proto.ClientSearchResponse.Info.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * USER = 0; */ @@ -756,10 +1443,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -767,6 +1460,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return USER; @@ -787,6 +1484,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.getDescriptor().getEnumTypes().get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -799,185 +1527,105 @@ private Type(int value) { public static final int CATEGORY_FIELD_NUMBER = 1; private int category_; /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @return The enum numeric value on the wire for category. */ - public int getCategoryValue() { + @java.lang.Override public int getCategoryValue() { return category_; } /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @return The category. */ - public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category getCategory() { - net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.forNumber(category_); + @java.lang.Override public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category getCategory() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.valueOf(category_); return result == null ? net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.UNRECOGNIZED : result; } - /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; - */ - private void setCategoryValue(int value) { - category_ = value; - } - /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; - */ - private void setCategory(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category value) { - if (value == null) { - throw new NullPointerException(); - } - - category_ = value.getNumber(); - } - /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; - */ - private void clearCategory() { - - category_ = 0; - } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @return The type. */ - public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type getType() { - net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.UNRECOGNIZED : result; } - /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; - */ - private void setType(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; - */ - private void clearType() { - - type_ = 0; - } public static final int USER_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RegisteredUser user_; /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ + @java.lang.Override public boolean hasUser() { return user_ != null; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; } /** - * optional .proto.RegisteredUser user = 3; - */ - private void setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - - } - /** - * optional .proto.RegisteredUser user = 3; - */ - private void setUser( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - user_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser user = 3; - */ - private void mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (user_ != null && - user_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - user_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); - } else { - user_ = value; - } - - } - /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ - private void clearUser() { user_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + return getUser(); } public static final int ROOM_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.Room room_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } /** - * optional .proto.Room room = 4; - */ - private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.Room room = 4; - */ - private void setRoom( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - room_ = builderForValue.build(); - - } - /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.Room room = 4; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (category_ != net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.MINE.getNumber()) { @@ -992,10 +1640,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(4, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1015,453 +1665,769 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info other = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info) obj; + + if (category_ != other.category_) return false; + if (type_ != other.type_) return false; + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchResponse.Info} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchResponse.Info) net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_Info_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_Info_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.class, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + category_ = 0; + + type_ = 0; + + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_Info_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info build() { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info buildPartial() { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info result = new net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info(this); + result.category_ = category_; + result.type_ = type_; + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info) { + return mergeFrom((net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info other) { + if (other == net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.getDefaultInstance()) return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasUser()) { + mergeUser(other.getUser()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int category_ = 0; /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @return The enum numeric value on the wire for category. */ - public int getCategoryValue() { - return instance.getCategoryValue(); + @java.lang.Override public int getCategoryValue() { + return category_; } /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. */ public Builder setCategoryValue(int value) { - copyOnWrite(); - instance.setCategoryValue(value); + + category_ = value; + onChanged(); return this; } /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @return The category. */ + @java.lang.Override public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category getCategory() { - return instance.getCategory(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.valueOf(category_); + return result == null ? net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.UNRECOGNIZED : result; } /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @param value The category to set. + * @return This builder for chaining. */ public Builder setCategory(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category value) { - copyOnWrite(); - instance.setCategory(value); + if (value == null) { + throw new NullPointerException(); + } + + category_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientSearchResponse.Info.Category category = 1; + * .proto.ClientSearchResponse.Info.Category category = 1; + * @return This builder for chaining. */ public Builder clearCategory() { - copyOnWrite(); - instance.clearCategory(); + + category_ = 0; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.UNRECOGNIZED : result; } /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientSearchResponse.Info.Type type = 2; + * .proto.ClientSearchResponse.Info.Type type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RegisteredUser user_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userBuilder_; /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ public boolean hasUser() { - return instance.hasUser(); + return userBuilder_ != null || user_ != null; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { - return instance.getUser(); + if (userBuilder_ == null) { + return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUser(value); - return this; + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder setUser( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUser(builderForValue); + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergeUser(value); + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ - public Builder clearUser() { copyOnWrite(); - instance.clearUser(); + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + return this; } + /** + * .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } + } + /** + * .proto.RegisteredUser user = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + private net.iGap.proto.ProtoGlobal.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ public net.iGap.proto.ProtoGlobal.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSearchResponse.Info) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info other = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info) arg1; - category_ = visitor.visitInt(category_ != 0, category_, other.category_ != 0, other.category_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - user_ = visitor.visitMessage(user_, other.user_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - category_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (user_ != null) { - subBuilder = user_.toBuilder(); - } - user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(user_); - user_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Room room = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } + return roomBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientSearchResponse.Info) + } // @@protoc_insertion_point(class_scope:proto.ClientSearchResponse.Info) private static final net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Info(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info(); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Info parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Info(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int INFO_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList info_; + private java.util.List info_; /** * repeated .proto.ClientSearchResponse.Info info = 2; */ + @java.lang.Override public java.util.List getInfoList() { return info_; } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ + @java.lang.Override public java.util.List getInfoOrBuilderList() { return info_; @@ -1469,108 +2435,38 @@ public java.util.Listrepeated .proto.ClientSearchResponse.Info info = 2; */ + @java.lang.Override public int getInfoCount() { return info_.size(); } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getInfo(int index) { return info_.get(index); } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder getInfoOrBuilder( int index) { return info_.get(index); } - private void ensureInfoIsMutable() { - if (!info_.isModifiable()) { - info_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(info_); - } - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void setInfo( - int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.set(index, value); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void setInfo( - int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { - ensureInfoIsMutable(); - info_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void addInfo(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.add(value); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void addInfo( - int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.add(index, value); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void addInfo( - net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { - ensureInfoIsMutable(); - info_.add(builderForValue.build()); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void addInfo( - int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { - ensureInfoIsMutable(); - info_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void addAllInfo( - java.lang.Iterable values) { - ensureInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, info_); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void clearInfo() { - info_ = emptyProtobufList(); - } - /** - * repeated .proto.ClientSearchResponse.Info info = 2; - */ - private void removeInfo(int index) { - ensureInfoIsMutable(); - info_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1579,10 +2475,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < info_.size(); i++) { output.writeMessage(2, info_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1594,162 +2492,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, info_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearch.ClientSearchResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearch.ClientSearchResponse other = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getInfoList() + .equals(other.getInfoList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getInfoCount() > 0) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfoList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearch.ClientSearchResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearch.ClientSearchResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchResponse) net.iGap.proto.ProtoClientSearch.ClientSearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.class, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearch.ClientSearchResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (infoBuilder_ == null) { + info_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + infoBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearch.internal_static_proto_ClientSearchResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearch.ClientSearchResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse build() { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse buildPartial() { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse result = new net.iGap.proto.ProtoClientSearch.ClientSearchResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (infoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + info_ = java.util.Collections.unmodifiableList(info_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearch.ClientSearchResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSearch.ClientSearchResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearch.ClientSearchResponse other) { + if (other == net.iGap.proto.ProtoClientSearch.ClientSearchResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (infoBuilder_ == null) { + if (!other.info_.isEmpty()) { + if (info_.isEmpty()) { + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoIsMutable(); + info_.addAll(other.info_); + } + onChanged(); + } + } else { + if (!other.info_.isEmpty()) { + if (infoBuilder_.isEmpty()) { + infoBuilder_.dispose(); + infoBuilder_ = null; + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + infoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInfoFieldBuilder() : null; + } else { + infoBuilder_.addAllMessages(other.info_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List info_ = + java.util.Collections.emptyList(); + private void ensureInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + info_ = new java.util.ArrayList(info_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder> infoBuilder_; /** * repeated .proto.ClientSearchResponse.Info info = 2; */ public java.util.List getInfoList() { - return java.util.Collections.unmodifiableList( - instance.getInfoList()); + if (infoBuilder_ == null) { + return java.util.Collections.unmodifiableList(info_); + } else { + return infoBuilder_.getMessageList(); + } } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ public int getInfoCount() { - return instance.getInfoCount(); - }/** + if (infoBuilder_ == null) { + return info_.size(); + } else { + return infoBuilder_.getCount(); + } + } + /** * repeated .proto.ClientSearchResponse.Info info = 2; */ public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getInfo(int index) { - return instance.getInfo(index); + if (infoBuilder_ == null) { + return info_.get(index); + } else { + return infoBuilder_.getMessage(index); + } } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ public Builder setInfo( int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { - copyOnWrite(); - instance.setInfo(index, value); + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.set(index, value); + onChanged(); + } else { + infoBuilder_.setMessage(index, value); + } return this; } /** @@ -1757,16 +3010,29 @@ public Builder setInfo( */ public Builder setInfo( int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { - copyOnWrite(); - instance.setInfo(index, builderForValue); + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.set(index, builderForValue.build()); + onChanged(); + } else { + infoBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ public Builder addInfo(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { - copyOnWrite(); - instance.addInfo(value); + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(value); + onChanged(); + } else { + infoBuilder_.addMessage(value); + } return this; } /** @@ -1774,8 +3040,16 @@ public Builder addInfo(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Inf */ public Builder addInfo( int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { - copyOnWrite(); - instance.addInfo(index, value); + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(index, value); + onChanged(); + } else { + infoBuilder_.addMessage(index, value); + } return this; } /** @@ -1783,8 +3057,13 @@ public Builder addInfo( */ public Builder addInfo( net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { - copyOnWrite(); - instance.addInfo(builderForValue); + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.add(builderForValue.build()); + onChanged(); + } else { + infoBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1792,8 +3071,13 @@ public Builder addInfo( */ public Builder addInfo( int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { - copyOnWrite(); - instance.addInfo(index, builderForValue); + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.add(index, builderForValue.build()); + onChanged(); + } else { + infoBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1801,146 +3085,227 @@ public Builder addInfo( */ public Builder addAllInfo( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllInfo(values); + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, info_); + onChanged(); + } else { + infoBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ public Builder clearInfo() { - copyOnWrite(); - instance.clearInfo(); + if (infoBuilder_ == null) { + info_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infoBuilder_.clear(); + } return this; } /** * repeated .proto.ClientSearchResponse.Info info = 2; */ public Builder removeInfo(int index) { - copyOnWrite(); - instance.removeInfo(index); + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.remove(index); + onChanged(); + } else { + infoBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSearchResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearch.ClientSearchResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - info_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearch.ClientSearchResponse other = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - info_= visitor.visitList(info_, other.info_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!info_.isModifiable()) { - info_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(info_); - } - info_.add( - input.readMessage(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder getInfoBuilder( + int index) { + return getInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder getInfoOrBuilder( + int index) { + if (infoBuilder_ == null) { + return info_.get(index); } else { + return infoBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public java.util.List + getInfoOrBuilderList() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(info_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder addInfoBuilder() { + return getInfoFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder addInfoBuilder( + int index) { + return getInfoFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public java.util.List + getInfoBuilderList() { + return getInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder>( + info_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + info_ = null; } + return infoBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientSearchResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientSearchResponse) private static final net.iGap.proto.ProtoClientSearch.ClientSearchResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearchResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearch.ClientSearchResponse(); } public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearch_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchResponse_Info_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchResponse_Info_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022ClientSearch.proto\022\005proto\032\rRequest.pro" + + "to\032\016Response.proto\032\014Global.proto\"e\n\014Clie" + + "ntSearch\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\r\n\005query\030\002 \001(\t\022%\n\npagination\030\003 \001(\0132\021.p" + + "roto.Pagination\"\342\002\n\024ClientSearchResponse" + + "\022!\n\010response\030\001 \001(\0132\017.proto.Response\022.\n\004i" + + "nfo\030\002 \003(\0132 .proto.ClientSearchResponse.I" + + "nfo\032\366\001\n\004Info\022;\n\010category\030\001 \001(\0162).proto.C" + + "lientSearchResponse.Info.Category\0223\n\004typ" + + "e\030\002 \001(\0162%.proto.ClientSearchResponse.Inf" + + "o.Type\022#\n\004user\030\003 \001(\0132\025.proto.RegisteredU" + + "ser\022\031\n\004room\030\004 \001(\0132\013.proto.Room\" \n\010Catego" + + "ry\022\010\n\004MINE\020\000\022\n\n\006GLOBAL\020\001\"\032\n\004Type\022\010\n\004USER" + + "\020\000\022\010\n\004ROOM\020\001B#\n\016net.iGap.protoB\021ProtoCli" + + "entSearchb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientSearch_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSearch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearch_descriptor, + new java.lang.String[] { "Request", "Query", "Pagination", }); + internal_static_proto_ClientSearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSearchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchResponse_descriptor, + new java.lang.String[] { "Response", "Info", }); + internal_static_proto_ClientSearchResponse_Info_descriptor = + internal_static_proto_ClientSearchResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientSearchResponse_Info_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchResponse_Info_descriptor, + new java.lang.String[] { "Category", "Type", "User", "Room", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSearchMessage.java b/src/main/java/net/iGap/proto/ProtoClientSearchMessage.java index 7a5cde8..17d855a 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSearchMessage.java +++ b/src/main/java/net/iGap/proto/ProtoClientSearchMessage.java @@ -8,333 +8,370 @@ private ProtoClientSearchMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSearchMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string query = 2; + * string query = 2; + * @return The query. */ java.lang.String getQuery(); /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); /** - * optional uint64 roomId = 3; + * uint64 roomId = 3; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 start_time = 4; + * uint64 start_time = 4; + * @return The startTime. */ long getStartTime(); /** - * optional uint64 end_time = 5; + * uint64 end_time = 5; + * @return The endTime. */ long getEndTime(); /** - * optional uint32 room_offset = 6; + * uint32 room_offset = 6; + * @return The roomOffset. */ int getRoomOffset(); /** - * optional uint32 room_limit = 7; + * uint32 room_limit = 7; + * @return The roomLimit. */ int getRoomLimit(); /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @return The type. */ net.iGap.proto.ProtoGlobal.SearchType getType(); } /** * Protobuf type {@code proto.ClientSearchMessage} */ - public static final class ClientSearchMessage extends - com.google.protobuf.GeneratedMessageLite< - ClientSearchMessage, ClientSearchMessage.Builder> implements + public static final class ClientSearchMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchMessage) ClientSearchMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearchMessage.newBuilder() to construct. + private ClientSearchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearchMessage() { query_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearchMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearchMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + case 32: { + + startTime_ = input.readUInt64(); + break; + } + case 40: { + + endTime_ = input.readUInt64(); + break; + } + case 48: { + + roomOffset_ = input.readUInt32(); + break; + } + case 56: { + + roomLimit_ = input.readUInt32(); + break; + } + case 64: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.Builder.class); } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int QUERY_FIELD_NUMBER = 2; - private java.lang.String query_; + private volatile java.lang.Object query_; /** - * optional string query = 2; + * string query = 2; + * @return The query. */ + @java.lang.Override public java.lang.String getQuery() { - return query_; + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } } /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(query_); - } - /** - * optional string query = 2; - */ - private void setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - } - /** - * optional string query = 2; - */ - private void clearQuery() { - - query_ = getDefaultInstance().getQuery(); - } - /** - * optional string query = 2; - */ - private void setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value.toStringUtf8(); + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOMID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 roomId = 3; + * uint64 roomId = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 roomId = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 roomId = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int START_TIME_FIELD_NUMBER = 4; private long startTime_; /** - * optional uint64 start_time = 4; + * uint64 start_time = 4; + * @return The startTime. */ + @java.lang.Override public long getStartTime() { return startTime_; } - /** - * optional uint64 start_time = 4; - */ - private void setStartTime(long value) { - - startTime_ = value; - } - /** - * optional uint64 start_time = 4; - */ - private void clearStartTime() { - - startTime_ = 0L; - } public static final int END_TIME_FIELD_NUMBER = 5; private long endTime_; /** - * optional uint64 end_time = 5; + * uint64 end_time = 5; + * @return The endTime. */ + @java.lang.Override public long getEndTime() { return endTime_; } - /** - * optional uint64 end_time = 5; - */ - private void setEndTime(long value) { - - endTime_ = value; - } - /** - * optional uint64 end_time = 5; - */ - private void clearEndTime() { - - endTime_ = 0L; - } public static final int ROOM_OFFSET_FIELD_NUMBER = 6; private int roomOffset_; /** - * optional uint32 room_offset = 6; + * uint32 room_offset = 6; + * @return The roomOffset. */ + @java.lang.Override public int getRoomOffset() { return roomOffset_; } - /** - * optional uint32 room_offset = 6; - */ - private void setRoomOffset(int value) { - - roomOffset_ = value; - } - /** - * optional uint32 room_offset = 6; - */ - private void clearRoomOffset() { - - roomOffset_ = 0; - } public static final int ROOM_LIMIT_FIELD_NUMBER = 7; private int roomLimit_; /** - * optional uint32 room_limit = 7; + * uint32 room_limit = 7; + * @return The roomLimit. */ + @java.lang.Override public int getRoomLimit() { return roomLimit_; } - /** - * optional uint32 room_limit = 7; - */ - private void setRoomLimit(int value) { - - roomLimit_ = value; - } - /** - * optional uint32 room_limit = 7; - */ - private void clearRoomLimit() { - - roomLimit_ = 0; - } public static final int TYPE_FIELD_NUMBER = 8; private int type_; /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.SearchType getType() { - net.iGap.proto.ProtoGlobal.SearchType result = net.iGap.proto.ProtoGlobal.SearchType.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.SearchType getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.SearchType result = net.iGap.proto.ProtoGlobal.SearchType.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.SearchType.UNRECOGNIZED : result; } - /** - * optional .proto.SearchType type = 8; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.SearchType type = 8; - */ - private void setType(net.iGap.proto.ProtoGlobal.SearchType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.SearchType type = 8; - */ - private void clearType() { - - type_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!query_.isEmpty()) { - output.writeString(2, getQuery()); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); @@ -354,10 +391,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoGlobal.SearchType.SEARCH_ALL_TYPES.getNumber()) { output.writeEnum(8, type_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -365,9 +404,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!query_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getQuery()); + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -393,496 +431,838 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, type_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getQuery() + .equals(other.getQuery())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (getStartTime() + != other.getStartTime()) return false; + if (getEndTime() + != other.getEndTime()) return false; + if (getRoomOffset() + != other.getRoomOffset()) return false; + if (getRoomLimit() + != other.getRoomLimit()) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + ROOMID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartTime()); + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEndTime()); + hash = (37 * hash) + ROOM_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getRoomOffset(); + hash = (37 * hash) + ROOM_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getRoomLimit(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchMessage) net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + query_ = ""; + + roomId_ = 0L; + + startTime_ = 0L; + + endTime_ = 0L; + + roomOffset_ = 0; + + roomLimit_ = 0; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage build() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage buildPartial() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage result = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.query_ = query_; + result.roomId_ = roomId_; + result.startTime_ = startTime_; + result.endTime_ = endTime_; + result.roomOffset_ = roomOffset_; + result.roomLimit_ = roomLimit_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage) { + return mergeFrom((net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage other) { + if (other == net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getStartTime() != 0L) { + setStartTime(other.getStartTime()); + } + if (other.getEndTime() != 0L) { + setEndTime(other.getEndTime()); + } + if (other.getRoomOffset() != 0) { + setRoomOffset(other.getRoomOffset()); + } + if (other.getRoomLimit() != 0) { + setRoomLimit(other.getRoomLimit()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object query_ = ""; /** - * optional string query = 2; + * string query = 2; + * @return The query. */ public java.lang.String getQuery() { - return instance.getQuery(); + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { - return instance.getQueryBytes(); + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string query = 2; + * string query = 2; + * @param value The query to set. + * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { - copyOnWrite(); - instance.setQuery(value); + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); return this; } /** - * optional string query = 2; + * string query = 2; + * @return This builder for chaining. */ public Builder clearQuery() { - copyOnWrite(); - instance.clearQuery(); + + query_ = getDefaultInstance().getQuery(); + onChanged(); return this; } /** - * optional string query = 2; + * string query = 2; + * @param value The bytes for query to set. + * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQueryBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 roomId = 3; + * uint64 roomId = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 roomId = 3; + * uint64 roomId = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 roomId = 3; + * uint64 roomId = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long startTime_ ; /** - * optional uint64 start_time = 4; + * uint64 start_time = 4; + * @return The startTime. */ + @java.lang.Override public long getStartTime() { - return instance.getStartTime(); + return startTime_; } /** - * optional uint64 start_time = 4; + * uint64 start_time = 4; + * @param value The startTime to set. + * @return This builder for chaining. */ public Builder setStartTime(long value) { - copyOnWrite(); - instance.setStartTime(value); + + startTime_ = value; + onChanged(); return this; } /** - * optional uint64 start_time = 4; + * uint64 start_time = 4; + * @return This builder for chaining. */ public Builder clearStartTime() { - copyOnWrite(); - instance.clearStartTime(); + + startTime_ = 0L; + onChanged(); return this; } + private long endTime_ ; /** - * optional uint64 end_time = 5; + * uint64 end_time = 5; + * @return The endTime. */ + @java.lang.Override public long getEndTime() { - return instance.getEndTime(); + return endTime_; } /** - * optional uint64 end_time = 5; + * uint64 end_time = 5; + * @param value The endTime to set. + * @return This builder for chaining. */ public Builder setEndTime(long value) { - copyOnWrite(); - instance.setEndTime(value); + + endTime_ = value; + onChanged(); return this; } /** - * optional uint64 end_time = 5; + * uint64 end_time = 5; + * @return This builder for chaining. */ public Builder clearEndTime() { - copyOnWrite(); - instance.clearEndTime(); + + endTime_ = 0L; + onChanged(); return this; } + private int roomOffset_ ; /** - * optional uint32 room_offset = 6; + * uint32 room_offset = 6; + * @return The roomOffset. */ + @java.lang.Override public int getRoomOffset() { - return instance.getRoomOffset(); + return roomOffset_; } /** - * optional uint32 room_offset = 6; + * uint32 room_offset = 6; + * @param value The roomOffset to set. + * @return This builder for chaining. */ public Builder setRoomOffset(int value) { - copyOnWrite(); - instance.setRoomOffset(value); + + roomOffset_ = value; + onChanged(); return this; } /** - * optional uint32 room_offset = 6; + * uint32 room_offset = 6; + * @return This builder for chaining. */ public Builder clearRoomOffset() { - copyOnWrite(); - instance.clearRoomOffset(); + + roomOffset_ = 0; + onChanged(); return this; } + private int roomLimit_ ; /** - * optional uint32 room_limit = 7; + * uint32 room_limit = 7; + * @return The roomLimit. */ + @java.lang.Override public int getRoomLimit() { - return instance.getRoomLimit(); + return roomLimit_; } /** - * optional uint32 room_limit = 7; + * uint32 room_limit = 7; + * @param value The roomLimit to set. + * @return This builder for chaining. */ public Builder setRoomLimit(int value) { - copyOnWrite(); - instance.setRoomLimit(value); + + roomLimit_ = value; + onChanged(); return this; } /** - * optional uint32 room_limit = 7; + * uint32 room_limit = 7; + * @return This builder for chaining. */ public Builder clearRoomLimit() { - copyOnWrite(); - instance.clearRoomLimit(); + + roomLimit_ = 0; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.SearchType getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.SearchType result = net.iGap.proto.ProtoGlobal.SearchType.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.SearchType.UNRECOGNIZED : result; } /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.SearchType value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.SearchType type = 8; + * .proto.SearchType type = 8; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:proto.ClientSearchMessage) } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - query_ = visitor.visitString(!query_.isEmpty(), query_, - !other.query_.isEmpty(), other.query_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - startTime_ = visitor.visitLong(startTime_ != 0L, startTime_, - other.startTime_ != 0L, other.startTime_); - endTime_ = visitor.visitLong(endTime_ != 0L, endTime_, - other.endTime_ != 0L, other.endTime_); - roomOffset_ = visitor.visitInt(roomOffset_ != 0, roomOffset_, - other.roomOffset_ != 0, other.roomOffset_); - roomLimit_ = visitor.visitInt(roomLimit_ != 0, roomLimit_, - other.roomLimit_ != 0, other.roomLimit_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - case 32: { - - startTime_ = input.readUInt64(); - break; - } - case 40: { - - endTime_ = input.readUInt64(); - break; - } - case 48: { - - roomOffset_ = input.readUInt32(); - break; - } - case 56: { - - roomLimit_ = input.readUInt32(); - break; - } - case 64: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - // @@protoc_insertion_point(class_scope:proto.ClientSearchMessage) private static final net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearchMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage(); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearchMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientSearchMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; @@ -897,131 +1277,312 @@ public interface ClientSearchMessageResponseOrBuilder extends * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ int getResultCount(); + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder getResultOrBuilder( + int index); /** - * optional bool rooms_continues = 3; + * bool rooms_continues = 3; + * @return The roomsContinues. */ boolean getRoomsContinues(); /** - * optional uint32 total = 4; + * uint32 total = 4; + * @return The total. */ int getTotal(); } /** * Protobuf type {@code proto.ClientSearchMessageResponse} */ - public static final class ClientSearchMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSearchMessageResponse, ClientSearchMessageResponse.Builder> implements + public static final class ClientSearchMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchMessageResponse) ClientSearchMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearchMessageResponse.newBuilder() to construct. + private ClientSearchMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearchMessageResponse() { - result_ = emptyProtobufList(); + result_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearchMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearchMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + result_.add( + input.readMessage(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.parser(), extensionRegistry)); + break; + } + case 24: { + + roomsContinues_ = input.readBool(); + break; + } + case 32: { + + total_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Builder.class); + } + public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchMessageResponse.Result) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 room_id = 1; + * uint64 room_id = 1; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return Whether the message field is set. */ boolean hasMessage(); /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return The message. */ net.iGap.proto.ProtoGlobal.RoomMessage getMessage(); + /** + * .proto.RoomMessage message = 2; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder(); } /** * Protobuf type {@code proto.ClientSearchMessageResponse.Result} */ - public static final class Result extends - com.google.protobuf.GeneratedMessageLite< - Result, Result.Builder> implements + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchMessageResponse.Result) ResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use Result.newBuilder() to construct. + private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Result() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Result(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Result( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + roomId_ = input.readUInt64(); + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder.class); + } + public static final int ROOM_ID_FIELD_NUMBER = 1; private long roomId_; /** - * optional uint64 room_id = 1; + * uint64 room_id = 1; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 1; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 1; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomMessage message_; /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return Whether the message field is set. */ + @java.lang.Override public boolean hasMessage() { return message_ != null; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return The message. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getMessage() { return message_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ - private void setMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - message_ = value; - - } - /** - * optional .proto.RoomMessage message = 2; - */ - private void setMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - message_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder() { + return getMessage(); } - /** - * optional .proto.RoomMessage message = 2; - */ - private void mergeMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (message_ != null && - message_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - message_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(message_).mergeFrom(value).buildPartial(); - } else { - message_ = value; - } - - } - /** - * optional .proto.RoomMessage message = 2; - */ - private void clearMessage() { message_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (roomId_ != 0L) { @@ -1030,10 +1591,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (message_ != null) { output.writeMessage(2, getMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1045,491 +1608,604 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result) obj; + + if (getRoomId() + != other.getRoomId()) return false; + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage() + .equals(other.getMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchMessageResponse.Result} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchMessageResponse.Result) net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + roomId_ = 0L; + + if (messageBuilder_ == null) { + message_ = null; + } else { + message_ = null; + messageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result build() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result buildPartial() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result result = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result(this); + result.roomId_ = roomId_; + if (messageBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result) { + return mergeFrom((net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result other) { + if (other == net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance()) return this; + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long roomId_ ; /** - * optional uint64 room_id = 1; + * uint64 room_id = 1; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 1; + * uint64 room_id = 1; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 1; + * uint64 room_id = 1; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage message_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> messageBuilder_; /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return Whether the message field is set. */ public boolean hasMessage() { - return instance.hasMessage(); + return messageBuilder_ != null || message_ != null; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; + * @return The message. */ public net.iGap.proto.ProtoGlobal.RoomMessage getMessage() { - return instance.getMessage(); + if (messageBuilder_ == null) { + return message_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ public Builder setMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setMessage(value); - return this; + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + messageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ public Builder setMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setMessage(builderForValue); + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ public Builder mergeMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeMessage(value); + if (messageBuilder_ == null) { + if (message_ != null) { + message_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(message_).mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + messageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage message = 2; + * .proto.RoomMessage message = 2; */ - public Builder clearMessage() { copyOnWrite(); - instance.clearMessage(); + public Builder clearMessage() { + if (messageBuilder_ == null) { + message_ = null; + onChanged(); + } else { + message_ = null; + messageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSearchMessageResponse.Result) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result) arg1; - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - message_ = visitor.visitMessage(message_, other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - roomId_ = input.readUInt64(); - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); - } - message_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getMessageBuilder() { + + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage message = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); + message_ = null; } + return messageBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.ClientSearchMessageResponse.Result) + } // @@protoc_insertion_point(class_scope:proto.ClientSearchMessageResponse.Result) private static final net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Result(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result(); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - private int bitField0_; - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - - } - - public static final int RESULT_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList result_; - /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; - */ - public java.util.List getResultList() { - return result_; - } - /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; - */ - public java.util.List - getResultOrBuilderList() { - return result_; - } - /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; - */ - public int getResultCount() { - return result_.size(); - } - /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; - */ - public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getResult(int index) { - return result_.get(index); - } - /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; - */ - public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder getResultOrBuilder( - int index) { - return result_.get(index); - } - private void ensureResultIsMutable() { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - } + return PARSER; + } - /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; - */ - private void setResult( - int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - ensureResultIsMutable(); - result_.set(index, value); + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; + * .proto.Response response = 1; + * @return Whether the response field is set. */ - private void setResult( - int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.set(index, builderForValue.build()); + @java.lang.Override + public boolean hasResponse() { + return response_ != null; } /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; + * .proto.Response response = 1; + * @return The response. */ - private void addResult(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(value); + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * repeated .proto.ClientSearchMessageResponse.Result result = 2; + * .proto.Response response = 1; */ - private void addResult( - int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(index, value); + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } + + public static final int RESULT_FIELD_NUMBER = 2; + private java.util.List result_; /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ - private void addResult( - net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(builderForValue.build()); + @java.lang.Override + public java.util.List getResultList() { + return result_; } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ - private void addResult( - int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(index, builderForValue.build()); + @java.lang.Override + public java.util.List + getResultOrBuilderList() { + return result_; } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ - private void addAllResult( - java.lang.Iterable values) { - ensureResultIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, result_); + @java.lang.Override + public int getResultCount() { + return result_.size(); } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ - private void clearResult() { - result_ = emptyProtobufList(); + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getResult(int index) { + return result_.get(index); } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ - private void removeResult(int index) { - ensureResultIsMutable(); - result_.remove(index); + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder getResultOrBuilder( + int index) { + return result_.get(index); } public static final int ROOMS_CONTINUES_FIELD_NUMBER = 3; private boolean roomsContinues_; /** - * optional bool rooms_continues = 3; + * bool rooms_continues = 3; + * @return The roomsContinues. */ + @java.lang.Override public boolean getRoomsContinues() { return roomsContinues_; } - /** - * optional bool rooms_continues = 3; - */ - private void setRoomsContinues(boolean value) { - - roomsContinues_ = value; - } - /** - * optional bool rooms_continues = 3; - */ - private void clearRoomsContinues() { - - roomsContinues_ = false; - } public static final int TOTAL_FIELD_NUMBER = 4; private int total_; /** - * optional uint32 total = 4; + * uint32 total = 4; + * @return The total. */ + @java.lang.Override public int getTotal() { return total_; } - /** - * optional uint32 total = 4; - */ - private void setTotal(int value) { - - total_ = value; - } - /** - * optional uint32 total = 4; - */ - private void clearTotal() { - - total_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1544,10 +2220,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (total_ != 0) { output.writeUInt32(4, total_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1567,162 +2245,538 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, total_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getResultList() + .equals(other.getResultList())) return false; + if (getRoomsContinues() + != other.getRoomsContinues()) return false; + if (getTotal() + != other.getTotal()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (37 * hash) + ROOMS_CONTINUES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRoomsContinues()); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchMessageResponse) net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultBuilder_.clear(); + } + roomsContinues_ = false; + + total_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse build() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse buildPartial() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse result = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + result.roomsContinues_ = roomsContinues_; + result.total_ = total_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse other) { + if (other == net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + resultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + if (other.getRoomsContinues() != false) { + setRoomsContinues(other.getRoomsContinues()); + } + if (other.getTotal() != 0) { + setTotal(other.getTotal()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder> resultBuilder_; /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ public java.util.List getResultList() { - return java.util.Collections.unmodifiableList( - instance.getResultList()); + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ public int getResultCount() { - return instance.getResultCount(); - }/** + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getResult(int index) { - return instance.getResult(index); + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ public Builder setResult( int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { - copyOnWrite(); - instance.setResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } return this; } /** @@ -1730,16 +2784,29 @@ public Builder setResult( */ public Builder setResult( int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.setResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ public Builder addResult(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { - copyOnWrite(); - instance.addResult(value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } return this; } /** @@ -1747,8 +2814,16 @@ public Builder addResult(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMes */ public Builder addResult( int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { - copyOnWrite(); - instance.addResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } return this; } /** @@ -1756,8 +2831,13 @@ public Builder addResult( */ public Builder addResult( net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1765,8 +2845,13 @@ public Builder addResult( */ public Builder addResult( int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1774,206 +2859,289 @@ public Builder addResult( */ public Builder addAllResult( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllResult(values); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ public Builder clearResult() { - copyOnWrite(); - instance.clearResult(); + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultBuilder_.clear(); + } return this; } /** * repeated .proto.ClientSearchMessageResponse.Result result = 2; */ public Builder removeResult(int index) { - copyOnWrite(); - instance.removeResult(index); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } return this; } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); + } + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder>( + result_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + private boolean roomsContinues_ ; /** - * optional bool rooms_continues = 3; + * bool rooms_continues = 3; + * @return The roomsContinues. */ + @java.lang.Override public boolean getRoomsContinues() { - return instance.getRoomsContinues(); + return roomsContinues_; } /** - * optional bool rooms_continues = 3; + * bool rooms_continues = 3; + * @param value The roomsContinues to set. + * @return This builder for chaining. */ public Builder setRoomsContinues(boolean value) { - copyOnWrite(); - instance.setRoomsContinues(value); + + roomsContinues_ = value; + onChanged(); return this; } /** - * optional bool rooms_continues = 3; + * bool rooms_continues = 3; + * @return This builder for chaining. */ public Builder clearRoomsContinues() { - copyOnWrite(); - instance.clearRoomsContinues(); + + roomsContinues_ = false; + onChanged(); return this; } + private int total_ ; /** - * optional uint32 total = 4; + * uint32 total = 4; + * @return The total. */ + @java.lang.Override public int getTotal() { - return instance.getTotal(); + return total_; } /** - * optional uint32 total = 4; + * uint32 total = 4; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal(int value) { - copyOnWrite(); - instance.setTotal(value); + + total_ = value; + onChanged(); return this; } /** - * optional uint32 total = 4; + * uint32 total = 4; + * @return This builder for chaining. */ public Builder clearTotal() { - copyOnWrite(); - instance.clearTotal(); + + total_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientSearchMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - result_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - result_= visitor.visitList(result_, other.result_); - roomsContinues_ = visitor.visitBoolean(roomsContinues_ != false, roomsContinues_, - other.roomsContinues_ != false, other.roomsContinues_); - total_ = visitor.visitInt(total_ != 0, total_, - other.total_ != 0, other.total_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - result_.add( - input.readMessage(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.parser(), extensionRegistry)); - break; - } - case 24: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - roomsContinues_ = input.readBool(); - break; - } - case 32: { - total_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.ClientSearchMessageResponse) } - // @@protoc_insertion_point(class_scope:proto.ClientSearchMessageResponse) private static final net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearchMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse(); } public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearchMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchMessageResponse_Result_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchMessageResponse_Result_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031ClientSearchMessage.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\032\014Global.proto\"" + + "\305\001\n\023ClientSearchMessage\022\037\n\007request\030\001 \001(\013" + + "2\016.proto.Request\022\r\n\005query\030\002 \001(\t\022\016\n\006roomI" + + "d\030\003 \001(\004\022\022\n\nstart_time\030\004 \001(\004\022\020\n\010end_time\030" + + "\005 \001(\004\022\023\n\013room_offset\030\006 \001(\r\022\022\n\nroom_limit" + + "\030\007 \001(\r\022\037\n\004type\030\010 \001(\0162\021.proto.SearchType\"" + + "\343\001\n\033ClientSearchMessageResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\0229\n\006result\030\002 \003" + + "(\0132).proto.ClientSearchMessageResponse.R" + + "esult\022\027\n\017rooms_continues\030\003 \001(\010\022\r\n\005total\030" + + "\004 \001(\r\032>\n\006Result\022\017\n\007room_id\030\001 \001(\004\022#\n\007mess" + + "age\030\002 \001(\0132\022.proto.RoomMessageB*\n\016net.iGa" + + "p.protoB\030ProtoClientSearchMessageb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientSearchMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSearchMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchMessage_descriptor, + new java.lang.String[] { "Request", "Query", "RoomId", "StartTime", "EndTime", "RoomOffset", "RoomLimit", "Type", }); + internal_static_proto_ClientSearchMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchMessageResponse_descriptor, + new java.lang.String[] { "Response", "Result", "RoomsContinues", "Total", }); + internal_static_proto_ClientSearchMessageResponse_Result_descriptor = + internal_static_proto_ClientSearchMessageResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientSearchMessageResponse_Result_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchMessageResponse_Result_descriptor, + new java.lang.String[] { "RoomId", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSearchRoomHistory.java b/src/main/java/net/iGap/proto/ProtoClientSearchRoomHistory.java index f9b0070..701523f 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSearchRoomHistory.java +++ b/src/main/java/net/iGap/proto/ProtoClientSearchRoomHistory.java @@ -8,21 +8,34 @@ private ProtoClientSearchRoomHistory() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSearchRoomHistoryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchRoomHistory) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); @@ -31,44 +44,156 @@ public interface ClientSearchRoomHistoryOrBuilder extends *Deprecated * * - * optional uint32 offset = 3; + * uint32 offset = 3; + * @return The offset. */ int getOffset(); /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @return The enum numeric value on the wire for filter. */ int getFilterValue(); /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @return The filter. */ net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter getFilter(); /** - * optional uint64 offset_message_id = 5; + * uint64 offset_message_id = 5; + * @return The offsetMessageId. */ long getOffsetMessageId(); /** - * optional uint64 offset_document_id = 6; + * uint64 offset_document_id = 6; + * @return The offsetDocumentId. */ long getOffsetDocumentId(); } /** * Protobuf type {@code proto.ClientSearchRoomHistory} */ - public static final class ClientSearchRoomHistory extends - com.google.protobuf.GeneratedMessageLite< - ClientSearchRoomHistory, ClientSearchRoomHistory.Builder> implements + public static final class ClientSearchRoomHistory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchRoomHistory) ClientSearchRoomHistoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearchRoomHistory.newBuilder() to construct. + private ClientSearchRoomHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearchRoomHistory() { + filter_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearchRoomHistory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearchRoomHistory( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + offset_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + filter_ = rawValue; + break; + } + case 40: { + + offsetMessageId_ = input.readUInt64(); + break; + } + case 48: { + + offsetDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.class, net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Builder.class); + } + /** * Protobuf enum {@code proto.ClientSearchRoomHistory.Filter} */ public enum Filter - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * IMAGE = 0; */ @@ -131,10 +256,16 @@ public enum Filter public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -142,6 +273,10 @@ public static Filter valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Filter forNumber(int value) { switch (value) { case 0: return IMAGE; @@ -167,6 +302,37 @@ public Filter findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.getDescriptor().getEnumTypes().get(0); + } + + private static final Filter[] VALUES = values(); + + public static Filter valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Filter(int value) { @@ -179,77 +345,39 @@ private Filter(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int OFFSET_FIELD_NUMBER = 3; private int offset_; @@ -258,119 +386,67 @@ private void clearRoomId() { *Deprecated * * - * optional uint32 offset = 3; + * uint32 offset = 3; + * @return The offset. */ + @java.lang.Override public int getOffset() { return offset_; } - /** - *
-     *Deprecated
-     * 
- * - * optional uint32 offset = 3; - */ - private void setOffset(int value) { - - offset_ = value; - } - /** - *
-     *Deprecated
-     * 
- * - * optional uint32 offset = 3; - */ - private void clearOffset() { - - offset_ = 0; - } public static final int FILTER_FIELD_NUMBER = 4; private int filter_; /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @return The enum numeric value on the wire for filter. */ - public int getFilterValue() { + @java.lang.Override public int getFilterValue() { return filter_; } /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @return The filter. */ - public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter getFilter() { - net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter result = net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter.forNumber(filter_); + @java.lang.Override public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter getFilter() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter result = net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter.valueOf(filter_); return result == null ? net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter.UNRECOGNIZED : result; } - /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; - */ - private void setFilterValue(int value) { - filter_ = value; - } - /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; - */ - private void setFilter(net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value.getNumber(); - } - /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; - */ - private void clearFilter() { - - filter_ = 0; - } public static final int OFFSET_MESSAGE_ID_FIELD_NUMBER = 5; private long offsetMessageId_; /** - * optional uint64 offset_message_id = 5; + * uint64 offset_message_id = 5; + * @return The offsetMessageId. */ + @java.lang.Override public long getOffsetMessageId() { return offsetMessageId_; } - /** - * optional uint64 offset_message_id = 5; - */ - private void setOffsetMessageId(long value) { - - offsetMessageId_ = value; - } - /** - * optional uint64 offset_message_id = 5; - */ - private void clearOffsetMessageId() { - - offsetMessageId_ = 0L; - } public static final int OFFSET_DOCUMENT_ID_FIELD_NUMBER = 6; private long offsetDocumentId_; /** - * optional uint64 offset_document_id = 6; + * uint64 offset_document_id = 6; + * @return The offsetDocumentId. */ + @java.lang.Override public long getOffsetDocumentId() { return offsetDocumentId_; } - /** - * optional uint64 offset_document_id = 6; - */ - private void setOffsetDocumentId(long value) { - - offsetDocumentId_ = value; - } - /** - * optional uint64 offset_document_id = 6; - */ - private void clearOffsetDocumentId() { - - offsetDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -391,10 +467,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (offsetDocumentId_ != 0L) { output.writeUInt64(6, offsetDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -422,180 +500,519 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, offsetDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory other = (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getOffset() + != other.getOffset()) return false; + if (filter_ != other.filter_) return false; + if (getOffsetMessageId() + != other.getOffsetMessageId()) return false; + if (getOffsetDocumentId() + != other.getOffsetDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + filter_; + hash = (37 * hash) + OFFSET_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffsetMessageId()); + hash = (37 * hash) + OFFSET_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffsetDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchRoomHistory} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchRoomHistory) net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.class, net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + offset_ = 0; + + filter_ = 0; + + offsetMessageId_ = 0L; + + offsetDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistory_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory build() { + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory buildPartial() { + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory result = new net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.offset_ = offset_; + result.filter_ = filter_; + result.offsetMessageId_ = offsetMessageId_; + result.offsetDocumentId_ = offsetDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory) { + return mergeFrom((net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory other) { + if (other == net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.filter_ != 0) { + setFilterValue(other.getFilterValue()); + } + if (other.getOffsetMessageId() != 0L) { + setOffsetMessageId(other.getOffsetMessageId()); + } + if (other.getOffsetDocumentId() != 0L) { + setOffsetDocumentId(other.getOffsetDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int offset_ ; /** *
        *Deprecated
        * 
* - * optional uint32 offset = 3; + * uint32 offset = 3; + * @return The offset. */ + @java.lang.Override public int getOffset() { - return instance.getOffset(); + return offset_; } /** *
        *Deprecated
        * 
* - * optional uint32 offset = 3; + * uint32 offset = 3; + * @param value The offset to set. + * @return This builder for chaining. */ public Builder setOffset(int value) { - copyOnWrite(); - instance.setOffset(value); + + offset_ = value; + onChanged(); return this; } /** @@ -603,257 +1020,212 @@ public Builder setOffset(int value) { *Deprecated * * - * optional uint32 offset = 3; + * uint32 offset = 3; + * @return This builder for chaining. */ public Builder clearOffset() { - copyOnWrite(); - instance.clearOffset(); + + offset_ = 0; + onChanged(); return this; } + private int filter_ = 0; /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @return The enum numeric value on the wire for filter. */ - public int getFilterValue() { - return instance.getFilterValue(); + @java.lang.Override public int getFilterValue() { + return filter_; } /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @param value The enum numeric value on the wire for filter to set. + * @return This builder for chaining. */ public Builder setFilterValue(int value) { - copyOnWrite(); - instance.setFilterValue(value); + + filter_ = value; + onChanged(); return this; } /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @return The filter. */ + @java.lang.Override public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter getFilter() { - return instance.getFilter(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter result = net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter.valueOf(filter_); + return result == null ? net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter.UNRECOGNIZED : result; } /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.Filter value) { - copyOnWrite(); - instance.setFilter(value); + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientSearchRoomHistory.Filter filter = 4; + * .proto.ClientSearchRoomHistory.Filter filter = 4; + * @return This builder for chaining. */ public Builder clearFilter() { - copyOnWrite(); - instance.clearFilter(); + + filter_ = 0; + onChanged(); return this; } + private long offsetMessageId_ ; /** - * optional uint64 offset_message_id = 5; + * uint64 offset_message_id = 5; + * @return The offsetMessageId. */ + @java.lang.Override public long getOffsetMessageId() { - return instance.getOffsetMessageId(); + return offsetMessageId_; } /** - * optional uint64 offset_message_id = 5; + * uint64 offset_message_id = 5; + * @param value The offsetMessageId to set. + * @return This builder for chaining. */ public Builder setOffsetMessageId(long value) { - copyOnWrite(); - instance.setOffsetMessageId(value); + + offsetMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 offset_message_id = 5; + * uint64 offset_message_id = 5; + * @return This builder for chaining. */ public Builder clearOffsetMessageId() { - copyOnWrite(); - instance.clearOffsetMessageId(); + + offsetMessageId_ = 0L; + onChanged(); return this; } + private long offsetDocumentId_ ; /** - * optional uint64 offset_document_id = 6; + * uint64 offset_document_id = 6; + * @return The offsetDocumentId. */ + @java.lang.Override public long getOffsetDocumentId() { - return instance.getOffsetDocumentId(); + return offsetDocumentId_; } /** - * optional uint64 offset_document_id = 6; + * uint64 offset_document_id = 6; + * @param value The offsetDocumentId to set. + * @return This builder for chaining. */ public Builder setOffsetDocumentId(long value) { - copyOnWrite(); - instance.setOffsetDocumentId(value); + + offsetDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 offset_document_id = 6; + * uint64 offset_document_id = 6; + * @return This builder for chaining. */ public Builder clearOffsetDocumentId() { - copyOnWrite(); - instance.clearOffsetDocumentId(); + + offsetDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientSearchRoomHistory) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory other = (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - offset_ = visitor.visitInt(offset_ != 0, offset_, - other.offset_ != 0, other.offset_); - filter_ = visitor.visitInt(filter_ != 0, filter_, other.filter_ != 0, other.filter_); - offsetMessageId_ = visitor.visitLong(offsetMessageId_ != 0L, offsetMessageId_, - other.offsetMessageId_ != 0L, other.offsetMessageId_); - offsetDocumentId_ = visitor.visitLong(offsetDocumentId_ != 0L, offsetDocumentId_, - other.offsetDocumentId_ != 0L, other.offsetDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - offset_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - filter_ = rawValue; - break; - } - case 40: { - - offsetMessageId_ = input.readUInt64(); - break; - } - case 48: { - - offsetDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSearchRoomHistory) + } + // @@protoc_insertion_point(class_scope:proto.ClientSearchRoomHistory) private static final net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearchRoomHistory(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory(); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearchRoomHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchRoomHistory(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientSearchRoomHistoryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchRoomHistoryResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 totalCount = 2; + * uint32 totalCount = 2; + * @return The totalCount. */ int getTotalCount(); /** - * optional uint32 notDeletedCount = 3; + * uint32 notDeletedCount = 3; + * @return The notDeletedCount. */ int getNotDeletedCount(); @@ -870,128 +1242,192 @@ public interface ClientSearchRoomHistoryResponseOrBuilder extends * repeated .proto.RoomMessage result = 4; */ int getResultCount(); + /** + * repeated .proto.RoomMessage result = 4; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .proto.RoomMessage result = 4; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getResultOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientSearchRoomHistoryResponse} */ - public static final class ClientSearchRoomHistoryResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSearchRoomHistoryResponse, ClientSearchRoomHistoryResponse.Builder> implements + public static final class ClientSearchRoomHistoryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchRoomHistoryResponse) ClientSearchRoomHistoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearchRoomHistoryResponse.newBuilder() to construct. + private ClientSearchRoomHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearchRoomHistoryResponse() { - result_ = emptyProtobufList(); + result_ = java.util.Collections.emptyList(); } - private int bitField0_; + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearchRoomHistoryResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearchRoomHistoryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + totalCount_ = input.readUInt32(); + break; + } + case 24: { + + notDeletedCount_ = input.readUInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + result_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.class, net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOTALCOUNT_FIELD_NUMBER = 2; private int totalCount_; /** - * optional uint32 totalCount = 2; + * uint32 totalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } - /** - * optional uint32 totalCount = 2; - */ - private void setTotalCount(int value) { - - totalCount_ = value; - } - /** - * optional uint32 totalCount = 2; - */ - private void clearTotalCount() { - - totalCount_ = 0; - } public static final int NOTDELETEDCOUNT_FIELD_NUMBER = 3; private int notDeletedCount_; /** - * optional uint32 notDeletedCount = 3; + * uint32 notDeletedCount = 3; + * @return The notDeletedCount. */ + @java.lang.Override public int getNotDeletedCount() { return notDeletedCount_; } - /** - * optional uint32 notDeletedCount = 3; - */ - private void setNotDeletedCount(int value) { - - notDeletedCount_ = value; - } - /** - * optional uint32 notDeletedCount = 3; - */ - private void clearNotDeletedCount() { - - notDeletedCount_ = 0; - } public static final int RESULT_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.ProtobufList result_; + private java.util.List result_; /** * repeated .proto.RoomMessage result = 4; */ + @java.lang.Override public java.util.List getResultList() { return result_; } /** * repeated .proto.RoomMessage result = 4; */ + @java.lang.Override public java.util.List getResultOrBuilderList() { return result_; @@ -999,108 +1435,38 @@ public java.util.List getResultList() { /** * repeated .proto.RoomMessage result = 4; */ + @java.lang.Override public int getResultCount() { return result_.size(); } /** * repeated .proto.RoomMessage result = 4; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getResult(int index) { return result_.get(index); } /** * repeated .proto.RoomMessage result = 4; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getResultOrBuilder( int index) { return result_.get(index); } - private void ensureResultIsMutable() { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void setResult( - int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.set(index, value); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void setResult( - int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - ensureResultIsMutable(); - result_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void addResult(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(value); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void addResult( - int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(index, value); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void addResult( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(builderForValue.build()); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void addResult( - int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void addAllResult( - java.lang.Iterable values) { - ensureResultIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, result_); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void clearResult() { - result_ = emptyProtobufList(); - } - /** - * repeated .proto.RoomMessage result = 4; - */ - private void removeResult(int index) { - ensureResultIsMutable(); - result_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1115,10 +1481,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < result_.size(); i++) { output.writeMessage(4, result_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1138,208 +1506,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, result_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse other = (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getTotalCount() + != other.getTotalCount()) return false; + if (getNotDeletedCount() + != other.getNotDeletedCount()) return false; + if (!getResultList() + .equals(other.getResultList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + hash = (37 * hash) + NOTDELETEDCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getNotDeletedCount(); + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchRoomHistoryResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchRoomHistoryResponse) net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.class, net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + totalCount_ = 0; + + notDeletedCount_ = 0; + + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchRoomHistory.internal_static_proto_ClientSearchRoomHistoryResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse build() { + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse buildPartial() { + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse result = new net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.totalCount_ = totalCount_; + result.notDeletedCount_ = notDeletedCount_; + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse other) { + if (other == net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getTotalCount() != 0) { + setTotalCount(other.getTotalCount()); + } + if (other.getNotDeletedCount() != 0) { + setNotDeletedCount(other.getNotDeletedCount()); + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + resultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int totalCount_ ; /** - * optional uint32 totalCount = 2; + * uint32 totalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { - return instance.getTotalCount(); + return totalCount_; } /** - * optional uint32 totalCount = 2; + * uint32 totalCount = 2; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - copyOnWrite(); - instance.setTotalCount(value); + + totalCount_ = value; + onChanged(); return this; } /** - * optional uint32 totalCount = 2; + * uint32 totalCount = 2; + * @return This builder for chaining. */ public Builder clearTotalCount() { - copyOnWrite(); - instance.clearTotalCount(); + + totalCount_ = 0; + onChanged(); return this; } + private int notDeletedCount_ ; /** - * optional uint32 notDeletedCount = 3; + * uint32 notDeletedCount = 3; + * @return The notDeletedCount. */ + @java.lang.Override public int getNotDeletedCount() { - return instance.getNotDeletedCount(); + return notDeletedCount_; } /** - * optional uint32 notDeletedCount = 3; + * uint32 notDeletedCount = 3; + * @param value The notDeletedCount to set. + * @return This builder for chaining. */ public Builder setNotDeletedCount(int value) { - copyOnWrite(); - instance.setNotDeletedCount(value); + + notDeletedCount_ = value; + onChanged(); return this; } /** - * optional uint32 notDeletedCount = 3; + * uint32 notDeletedCount = 3; + * @return This builder for chaining. */ public Builder clearNotDeletedCount() { - copyOnWrite(); - instance.clearNotDeletedCount(); + + notDeletedCount_ = 0; + onChanged(); return this; } + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> resultBuilder_; + /** * repeated .proto.RoomMessage result = 4; */ public java.util.List getResultList() { - return java.util.Collections.unmodifiableList( - instance.getResultList()); + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } } /** * repeated .proto.RoomMessage result = 4; */ public int getResultCount() { - return instance.getResultCount(); - }/** + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** * repeated .proto.RoomMessage result = 4; */ public net.iGap.proto.ProtoGlobal.RoomMessage getResult(int index) { - return instance.getResult(index); + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } } /** * repeated .proto.RoomMessage result = 4; */ public Builder setResult( int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } return this; } /** @@ -1347,16 +2106,29 @@ public Builder setResult( */ public Builder setResult( int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RoomMessage result = 4; */ public Builder addResult(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.addResult(value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } return this; } /** @@ -1364,8 +2136,16 @@ public Builder addResult(net.iGap.proto.ProtoGlobal.RoomMessage value) { */ public Builder addResult( int index, net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.addResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } return this; } /** @@ -1373,8 +2153,13 @@ public Builder addResult( */ public Builder addResult( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.addResult(builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1382,8 +2167,13 @@ public Builder addResult( */ public Builder addResult( int index, net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.addResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1391,160 +2181,216 @@ public Builder addResult( */ public Builder addAllResult( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllResult(values); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.RoomMessage result = 4; */ public Builder clearResult() { - copyOnWrite(); - instance.clearResult(); + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultBuilder_.clear(); + } return this; } /** * repeated .proto.RoomMessage result = 4; */ public Builder removeResult(int index) { - copyOnWrite(); - instance.removeResult(index); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSearchRoomHistoryResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - result_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse other = (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - totalCount_ = visitor.visitInt(totalCount_ != 0, totalCount_, - other.totalCount_ != 0, other.totalCount_); - notDeletedCount_ = visitor.visitInt(notDeletedCount_ != 0, notDeletedCount_, - other.notDeletedCount_ != 0, other.notDeletedCount_); - result_= visitor.visitList(result_, other.result_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - totalCount_ = input.readUInt32(); - break; - } - case 24: { - - notDeletedCount_ = input.readUInt32(); - break; - } - case 34: { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - result_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.RoomMessage result = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessage result = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.RoomMessage result = 4; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.RoomMessage result = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessage result = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessage result = 4; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + result_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + result_ = null; } + return resultBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSearchRoomHistoryResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientSearchRoomHistoryResponse) private static final net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearchRoomHistoryResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse(); } public static net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearchRoomHistoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchRoomHistoryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchRoomHistory.ClientSearchRoomHistoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchRoomHistory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchRoomHistory_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchRoomHistoryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchRoomHistoryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\035ClientSearchRoomHistory.proto\022\005proto\032\r" + + "Request.proto\032\016Response.proto\032\014Global.pr" + + "oto\"\233\002\n\027ClientSearchRoomHistory\022\037\n\007reque" + + "st\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(" + + "\004\022\016\n\006offset\030\003 \001(\r\0225\n\006filter\030\004 \001(\0162%.prot" + + "o.ClientSearchRoomHistory.Filter\022\031\n\021offs" + + "et_message_id\030\005 \001(\004\022\032\n\022offset_document_i" + + "d\030\006 \001(\004\"P\n\006Filter\022\t\n\005IMAGE\020\000\022\t\n\005VIDEO\020\001\022" + + "\t\n\005AUDIO\020\002\022\t\n\005VOICE\020\003\022\007\n\003GIF\020\004\022\010\n\004FILE\020\005" + + "\022\007\n\003URL\020\006\"\225\001\n\037ClientSearchRoomHistoryRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "\022\022\n\ntotalCount\030\002 \001(\r\022\027\n\017notDeletedCount\030" + + "\003 \001(\r\022\"\n\006result\030\004 \003(\0132\022.proto.RoomMessag" + + "eB.\n\016net.iGap.protoB\034ProtoClientSearchRo" + + "omHistoryb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientSearchRoomHistory_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSearchRoomHistory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchRoomHistory_descriptor, + new java.lang.String[] { "Request", "RoomId", "Offset", "Filter", "OffsetMessageId", "OffsetDocumentId", }); + internal_static_proto_ClientSearchRoomHistoryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSearchRoomHistoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchRoomHistoryResponse_descriptor, + new java.lang.String[] { "Response", "TotalCount", "NotDeletedCount", "Result", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSearchUsername.java b/src/main/java/net/iGap/proto/ProtoClientSearchUsername.java index 564f2ea..f8cf4f5 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSearchUsername.java +++ b/src/main/java/net/iGap/proto/ProtoClientSearchUsername.java @@ -8,25 +8,39 @@ private ProtoClientSearchUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSearchUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string query = 2; + * string query = 2; + * @return The query. */ java.lang.String getQuery(); /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); @@ -34,124 +48,190 @@ public interface ClientSearchUsernameOrBuilder extends /** * Protobuf type {@code proto.ClientSearchUsername} */ - public static final class ClientSearchUsername extends - com.google.protobuf.GeneratedMessageLite< - ClientSearchUsername, ClientSearchUsername.Builder> implements + public static final class ClientSearchUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchUsername) ClientSearchUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearchUsername.newBuilder() to construct. + private ClientSearchUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearchUsername() { query_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearchUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearchUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.class, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int QUERY_FIELD_NUMBER = 2; - private java.lang.String query_; + private volatile java.lang.Object query_; /** - * optional string query = 2; + * string query = 2; + * @return The query. */ + @java.lang.Override public java.lang.String getQuery() { - return query_; + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } } /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(query_); - } - /** - * optional string query = 2; - */ - private void setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - } - /** - * optional string query = 2; - */ - private void clearQuery() { - - query_ = getDefaultInstance().getQuery(); + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string query = 2; - */ - private void setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!query_.isEmpty()) { - output.writeString(2, getQuery()); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,306 +239,570 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!query_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getQuery()); + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername other = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getQuery() + .equals(other.getQuery())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchUsername) net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.class, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + query_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername build() { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername buildPartial() { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername result = new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.query_ = query_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername) { + return mergeFrom((net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername other) { + if (other == net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object query_ = ""; /** - * optional string query = 2; + * string query = 2; + * @return The query. */ public java.lang.String getQuery() { - return instance.getQuery(); + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string query = 2; + * string query = 2; + * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { - return instance.getQueryBytes(); + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string query = 2; + * string query = 2; + * @param value The query to set. + * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { - copyOnWrite(); - instance.setQuery(value); + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); return this; } /** - * optional string query = 2; + * string query = 2; + * @return This builder for chaining. */ public Builder clearQuery() { - copyOnWrite(); - instance.clearQuery(); + + query_ = getDefaultInstance().getQuery(); + onChanged(); return this; } /** - * optional string query = 2; + * string query = 2; + * @param value The bytes for query to set. + * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQueryBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientSearchUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername other = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - query_ = visitor.visitString(!query_.isEmpty(), query_, - !other.query_.isEmpty(), other.query_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSearchUsername) + } + // @@protoc_insertion_point(class_scope:proto.ClientSearchUsername) private static final net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearchUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername(); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearchUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ClientSearchUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; @@ -473,69 +817,292 @@ public interface ClientSearchUsernameResponseOrBuilder extends * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ int getResultCount(); + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.ResultOrBuilder getResultOrBuilder( + int index); } /** * Protobuf type {@code proto.ClientSearchUsernameResponse} */ - public static final class ClientSearchUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSearchUsernameResponse, ClientSearchUsernameResponse.Builder> implements + public static final class ClientSearchUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchUsernameResponse) ClientSearchUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSearchUsernameResponse.newBuilder() to construct. + private ClientSearchUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSearchUsernameResponse() { - result_ = emptyProtobufList(); + result_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSearchUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSearchUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + result_.add( + input.readMessage(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.class, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Builder.class); + } + public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSearchUsernameResponse.Result) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return The type. */ net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type getType(); /** - * optional bool exact_match = 2; + * bool exact_match = 2; + * @return The exactMatch. */ boolean getExactMatch(); /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ boolean hasUser(); /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ net.iGap.proto.ProtoGlobal.RegisteredUser getUser(); + /** + * .proto.RegisteredUser user = 3; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * .proto.Room room = 4; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ClientSearchUsernameResponse.Result} */ - public static final class Result extends - com.google.protobuf.GeneratedMessageLite< - Result, Result.Builder> implements + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSearchUsernameResponse.Result) ResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use Result.newBuilder() to construct. + private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Result() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Result(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Result( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + + exactMatch_ = input.readBool(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.class, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder.class); } + /** * Protobuf enum {@code proto.ClientSearchUsernameResponse.Result.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * USER = 0; */ @@ -558,10 +1125,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -569,6 +1142,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return USER; @@ -589,6 +1166,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -601,169 +1209,97 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return The type. */ - public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type getType() { - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type result = net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type result = net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type.UNRECOGNIZED : result; } - /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; - */ - private void setType(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int EXACT_MATCH_FIELD_NUMBER = 2; private boolean exactMatch_; /** - * optional bool exact_match = 2; + * bool exact_match = 2; + * @return The exactMatch. */ + @java.lang.Override public boolean getExactMatch() { return exactMatch_; } - /** - * optional bool exact_match = 2; - */ - private void setExactMatch(boolean value) { - - exactMatch_ = value; - } - /** - * optional bool exact_match = 2; - */ - private void clearExactMatch() { - - exactMatch_ = false; - } public static final int USER_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RegisteredUser user_; /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ + @java.lang.Override public boolean hasUser() { return user_ != null; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; } /** - * optional .proto.RegisteredUser user = 3; - */ - private void setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - - } - /** - * optional .proto.RegisteredUser user = 3; - */ - private void setUser( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - user_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ - private void mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (user_ != null && - user_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - user_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); - } else { - user_ = value; - } - - } - /** - * optional .proto.RegisteredUser user = 3; - */ - private void clearUser() { user_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + return getUser(); } public static final int ROOM_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.Room room_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } /** - * optional .proto.Room room = 4; - */ - private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.Room room = 4; - */ - private void setRoom( - net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - room_ = builderForValue.build(); - - } - /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.Room room = 4; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type.USER.getNumber()) { @@ -778,10 +1314,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(4, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -801,439 +1339,748 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result other = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result) obj; + + if (type_ != other.type_) return false; + if (getExactMatch() + != other.getExactMatch()) return false; + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + EXACT_MATCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExactMatch()); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchUsernameResponse.Result} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchUsernameResponse.Result) net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.class, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + exactMatch_ = false; + + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_Result_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result build() { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result buildPartial() { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result result = new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result(this); + result.type_ = type_; + result.exactMatch_ = exactMatch_; + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result) { + return mergeFrom((net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result other) { + if (other == net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getExactMatch() != false) { + setExactMatch(other.getExactMatch()); + } + if (other.hasUser()) { + mergeUser(other.getUser()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int type_ = 0; /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type result = net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type.UNRECOGNIZED : result; } /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private boolean exactMatch_ ; /** - * optional bool exact_match = 2; + * bool exact_match = 2; + * @return The exactMatch. */ + @java.lang.Override public boolean getExactMatch() { - return instance.getExactMatch(); + return exactMatch_; } /** - * optional bool exact_match = 2; + * bool exact_match = 2; + * @param value The exactMatch to set. + * @return This builder for chaining. */ public Builder setExactMatch(boolean value) { - copyOnWrite(); - instance.setExactMatch(value); + + exactMatch_ = value; + onChanged(); return this; } /** - * optional bool exact_match = 2; + * bool exact_match = 2; + * @return This builder for chaining. */ public Builder clearExactMatch() { - copyOnWrite(); - instance.clearExactMatch(); + + exactMatch_ = false; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RegisteredUser user_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userBuilder_; /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return Whether the user field is set. */ public boolean hasUser() { - return instance.hasUser(); + return userBuilder_ != null || user_ != null; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; + * @return The user. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { - return instance.getUser(); + if (userBuilder_ == null) { + return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUser(value); - return this; + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder setUser( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUser(builderForValue); + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ public Builder mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergeUser(value); + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser user = 3; + * .proto.RegisteredUser user = 3; */ - public Builder clearUser() { copyOnWrite(); - instance.clearUser(); + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + return this; } + /** + * .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } + } + /** + * .proto.RegisteredUser user = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + private net.iGap.proto.ProtoGlobal.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; + * @return The room. */ public net.iGap.proto.ProtoGlobal.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Room room = 4; + * .proto.Room room = 4; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSearchUsernameResponse.Result) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result other = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - exactMatch_ = visitor.visitBoolean(exactMatch_ != false, exactMatch_, - other.exactMatch_ != false, other.exactMatch_); - user_ = visitor.visitMessage(user_, other.user_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - - exactMatch_ = input.readBool(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (user_ != null) { - subBuilder = user_.toBuilder(); - } - user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(user_); - user_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Room room = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } + return roomBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientSearchUsernameResponse.Result) + } // @@protoc_insertion_point(class_scope:proto.ClientSearchUsernameResponse.Result) private static final net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Result(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result(); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int RESULT_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList result_; + private java.util.List result_; /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ + @java.lang.Override public java.util.List getResultList() { return result_; } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ + @java.lang.Override public java.util.List getResultOrBuilderList() { return result_; @@ -1241,108 +2088,38 @@ public java.util.Listrepeated .proto.ClientSearchUsernameResponse.Result result = 2; */ + @java.lang.Override public int getResultCount() { return result_.size(); } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result getResult(int index) { return result_.get(index); } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ + @java.lang.Override public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.ResultOrBuilder getResultOrBuilder( int index) { return result_.get(index); } - private void ensureResultIsMutable() { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void setResult( - int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.set(index, value); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void setResult( - int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.set(index, builderForValue.build()); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void addResult(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(value); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void addResult( - int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(index, value); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void addResult( - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(builderForValue.build()); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void addResult( - int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(index, builderForValue.build()); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void addAllResult( - java.lang.Iterable values) { - ensureResultIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, result_); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void clearResult() { - result_ = emptyProtobufList(); - } - /** - * repeated .proto.ClientSearchUsernameResponse.Result result = 2; - */ - private void removeResult(int index) { - ensureResultIsMutable(); - result_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1351,10 +2128,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < result_.size(); i++) { output.writeMessage(2, result_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1366,162 +2145,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, result_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse other = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getResultList() + .equals(other.getResultList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSearchUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSearchUsernameResponse) net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.class, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchUsername.internal_static_proto_ClientSearchUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse build() { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse buildPartial() { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse result = new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse other) { + if (other == net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + resultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.ResultOrBuilder> resultBuilder_; /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ public java.util.List getResultList() { - return java.util.Collections.unmodifiableList( - instance.getResultList()); + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ public int getResultCount() { - return instance.getResultCount(); - }/** + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result getResult(int index) { - return instance.getResult(index); + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ public Builder setResult( int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result value) { - copyOnWrite(); - instance.setResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } return this; } /** @@ -1529,16 +2663,29 @@ public Builder setResult( */ public Builder setResult( int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.setResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ public Builder addResult(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result value) { - copyOnWrite(); - instance.addResult(value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } return this; } /** @@ -1546,8 +2693,16 @@ public Builder addResult(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUs */ public Builder addResult( int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result value) { - copyOnWrite(); - instance.addResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } return this; } /** @@ -1555,8 +2710,13 @@ public Builder addResult( */ public Builder addResult( net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1564,8 +2724,13 @@ public Builder addResult( */ public Builder addResult( int index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1573,146 +2738,225 @@ public Builder addResult( */ public Builder addAllResult( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllResult(values); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ public Builder clearResult() { - copyOnWrite(); - instance.clearResult(); + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultBuilder_.clear(); + } return this; } /** * repeated .proto.ClientSearchUsernameResponse.Result result = 2; */ public Builder removeResult(int index) { - copyOnWrite(); - instance.removeResult(index); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSearchUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - result_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse other = (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - result_= visitor.visitList(result_, other.result_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - result_.add( - input.readMessage(net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.ResultOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchUsernameResponse.Result result = 2; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.ResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.Result.Builder, net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse.ResultOrBuilder>( + result_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + result_ = null; } + return resultBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ClientSearchUsernameResponse) + } // @@protoc_insertion_point(class_scope:proto.ClientSearchUsernameResponse) private static final net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSearchUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse(); } public static net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSearchUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSearchUsername.ClientSearchUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchUsernameResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchUsernameResponse_Result_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchUsernameResponse_Result_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ClientSearchUsername.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\032\014Global.proto" + + "\"F\n\024ClientSearchUsername\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\r\n\005query\030\002 \001(\t\"\270\002\n\034Cli" + + "entSearchUsernameResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022:\n\006result\030\002 \003(\0132*.p" + + "roto.ClientSearchUsernameResponse.Result" + + "\032\270\001\n\006Result\022=\n\004type\030\001 \001(\0162/.proto.Client" + + "SearchUsernameResponse.Result.Type\022\023\n\013ex" + + "act_match\030\002 \001(\010\022#\n\004user\030\003 \001(\0132\025.proto.Re" + + "gisteredUser\022\031\n\004room\030\004 \001(\0132\013.proto.Room\"" + + "\032\n\004Type\022\010\n\004USER\020\000\022\010\n\004ROOM\020\001B+\n\016net.iGap." + + "protoB\031ProtoClientSearchUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_ClientSearchUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSearchUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchUsername_descriptor, + new java.lang.String[] { "Request", "Query", }); + internal_static_proto_ClientSearchUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSearchUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Result", }); + internal_static_proto_ClientSearchUsernameResponse_Result_descriptor = + internal_static_proto_ClientSearchUsernameResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientSearchUsernameResponse_Result_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchUsernameResponse_Result_descriptor, + new java.lang.String[] { "Type", "ExactMatch", "User", "Room", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemAgreement.java b/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemAgreement.java index 815ffd9..fc0f085 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemAgreement.java +++ b/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemAgreement.java @@ -8,109 +8,181 @@ private ProtoClientSetDiscoveryItemAgreement() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSetDiscoveryItemAgreementOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSetDiscoveryItemAgreement) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ int getItemId(); } /** * Protobuf type {@code proto.ClientSetDiscoveryItemAgreement} */ - public static final class ClientSetDiscoveryItemAgreement extends - com.google.protobuf.GeneratedMessageLite< - ClientSetDiscoveryItemAgreement, ClientSetDiscoveryItemAgreement.Builder> implements + public static final class ClientSetDiscoveryItemAgreement extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSetDiscoveryItemAgreement) ClientSetDiscoveryItemAgreementOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSetDiscoveryItemAgreement.newBuilder() to construct. + private ClientSetDiscoveryItemAgreement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSetDiscoveryItemAgreement() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSetDiscoveryItemAgreement(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSetDiscoveryItemAgreement( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + itemId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.class, net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ITEM_ID_FIELD_NUMBER = 2; private int itemId_; /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ + @java.lang.Override public int getItemId() { return itemId_; } - /** - * optional uint32 item_id = 2; - */ - private void setItemId(int value) { - - itemId_ = value; - } - /** - * optional uint32 item_id = 2; - */ - private void clearItemId() { - - itemId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (itemId_ != 0) { output.writeUInt32(2, itemId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,356 +208,661 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, itemId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement other = (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getItemId() + != other.getItemId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ITEM_ID_FIELD_NUMBER; + hash = (53 * hash) + getItemId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSetDiscoveryItemAgreement} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSetDiscoveryItemAgreement) net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.class, net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + itemId_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreement_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement build() { + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement buildPartial() { + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement result = new net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.itemId_ = itemId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement) { + return mergeFrom((net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement other) { + if (other == net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getItemId() != 0) { + setItemId(other.getItemId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int itemId_ ; /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ + @java.lang.Override public int getItemId() { - return instance.getItemId(); + return itemId_; } /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @param value The itemId to set. + * @return This builder for chaining. */ public Builder setItemId(int value) { - copyOnWrite(); - instance.setItemId(value); + + itemId_ = value; + onChanged(); return this; } /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return This builder for chaining. */ public Builder clearItemId() { - copyOnWrite(); - instance.clearItemId(); + + itemId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemAgreement) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement other = (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement) arg1; - request_ = visitor.visitMessage(request_, other.request_); - itemId_ = visitor.visitInt(itemId_ != 0, itemId_, - other.itemId_ != 0, other.itemId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - itemId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemAgreement) + } + // @@protoc_insertion_point(class_scope:proto.ClientSetDiscoveryItemAgreement) private static final net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSetDiscoveryItemAgreement(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement(); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSetDiscoveryItemAgreement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSetDiscoveryItemAgreement(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientSetDiscoveryItemAgreementResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSetDiscoveryItemAgreementResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientSetDiscoveryItemAgreementResponse} */ - public static final class ClientSetDiscoveryItemAgreementResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSetDiscoveryItemAgreementResponse, ClientSetDiscoveryItemAgreementResponse.Builder> implements + public static final class ClientSetDiscoveryItemAgreementResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSetDiscoveryItemAgreementResponse) ClientSetDiscoveryItemAgreementResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSetDiscoveryItemAgreementResponse.newBuilder() to construct. + private ClientSetDiscoveryItemAgreementResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSetDiscoveryItemAgreementResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSetDiscoveryItemAgreementResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSetDiscoveryItemAgreementResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreementResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreementResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.class, net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -491,244 +870,510 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse other = (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSetDiscoveryItemAgreementResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSetDiscoveryItemAgreementResponse) net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreementResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreementResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.class, net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.internal_static_proto_ClientSetDiscoveryItemAgreementResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse build() { + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse buildPartial() { + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse result = new net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse other) { + if (other == net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemAgreementResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse other = (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemAgreementResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientSetDiscoveryItemAgreementResponse) private static final net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSetDiscoveryItemAgreementResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse(); } public static net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSetDiscoveryItemAgreementResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSetDiscoveryItemAgreementResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemAgreement.ClientSetDiscoveryItemAgreementResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSetDiscoveryItemAgreement_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSetDiscoveryItemAgreement_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSetDiscoveryItemAgreementResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSetDiscoveryItemAgreementResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n%ClientSetDiscoveryItemAgreement.proto\022" + + "\005proto\032\rRequest.proto\032\016Response.proto\"S\n" + + "\037ClientSetDiscoveryItemAgreement\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\017\n\007item_id\030\002 \001" + + "(\r\"L\n\'ClientSetDiscoveryItemAgreementRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "B6\n\016net.iGap.protoB$ProtoClientSetDiscov" + + "eryItemAgreementb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientSetDiscoveryItemAgreement_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSetDiscoveryItemAgreement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSetDiscoveryItemAgreement_descriptor, + new java.lang.String[] { "Request", "ItemId", }); + internal_static_proto_ClientSetDiscoveryItemAgreementResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSetDiscoveryItemAgreementResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSetDiscoveryItemAgreementResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemClick.java b/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemClick.java index 2e11c2d..8a68712 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemClick.java +++ b/src/main/java/net/iGap/proto/ProtoClientSetDiscoveryItemClick.java @@ -8,109 +8,181 @@ private ProtoClientSetDiscoveryItemClick() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSetDiscoveryItemClickOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSetDiscoveryItemClick) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ int getItemId(); } /** * Protobuf type {@code proto.ClientSetDiscoveryItemClick} */ - public static final class ClientSetDiscoveryItemClick extends - com.google.protobuf.GeneratedMessageLite< - ClientSetDiscoveryItemClick, ClientSetDiscoveryItemClick.Builder> implements + public static final class ClientSetDiscoveryItemClick extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSetDiscoveryItemClick) ClientSetDiscoveryItemClickOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSetDiscoveryItemClick.newBuilder() to construct. + private ClientSetDiscoveryItemClick(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSetDiscoveryItemClick() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSetDiscoveryItemClick(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSetDiscoveryItemClick( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + itemId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClick_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClick_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.class, net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ITEM_ID_FIELD_NUMBER = 2; private int itemId_; /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ + @java.lang.Override public int getItemId() { return itemId_; } - /** - * optional uint32 item_id = 2; - */ - private void setItemId(int value) { - - itemId_ = value; - } - /** - * optional uint32 item_id = 2; - */ - private void clearItemId() { - - itemId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (itemId_ != 0) { output.writeUInt32(2, itemId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,356 +208,661 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, itemId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick other = (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getItemId() + != other.getItemId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ITEM_ID_FIELD_NUMBER; + hash = (53 * hash) + getItemId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSetDiscoveryItemClick} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSetDiscoveryItemClick) net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClick_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClick_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.class, net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + itemId_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClick_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick build() { + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick buildPartial() { + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick result = new net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.itemId_ = itemId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick) { + return mergeFrom((net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick other) { + if (other == net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getItemId() != 0) { + setItemId(other.getItemId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int itemId_ ; /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ + @java.lang.Override public int getItemId() { - return instance.getItemId(); + return itemId_; } /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @param value The itemId to set. + * @return This builder for chaining. */ public Builder setItemId(int value) { - copyOnWrite(); - instance.setItemId(value); + + itemId_ = value; + onChanged(); return this; } /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return This builder for chaining. */ public Builder clearItemId() { - copyOnWrite(); - instance.clearItemId(); + + itemId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemClick) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick other = (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick) arg1; - request_ = visitor.visitMessage(request_, other.request_); - itemId_ = visitor.visitInt(itemId_ != 0, itemId_, - other.itemId_ != 0, other.itemId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - itemId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemClick) + } + // @@protoc_insertion_point(class_scope:proto.ClientSetDiscoveryItemClick) private static final net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSetDiscoveryItemClick(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick(); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSetDiscoveryItemClick parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSetDiscoveryItemClick(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClick getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientSetDiscoveryItemClickResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSetDiscoveryItemClickResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientSetDiscoveryItemClickResponse} */ - public static final class ClientSetDiscoveryItemClickResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSetDiscoveryItemClickResponse, ClientSetDiscoveryItemClickResponse.Builder> implements + public static final class ClientSetDiscoveryItemClickResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSetDiscoveryItemClickResponse) ClientSetDiscoveryItemClickResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSetDiscoveryItemClickResponse.newBuilder() to construct. + private ClientSetDiscoveryItemClickResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSetDiscoveryItemClickResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSetDiscoveryItemClickResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSetDiscoveryItemClickResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClickResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClickResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.class, net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -491,244 +870,510 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse other = (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSetDiscoveryItemClickResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSetDiscoveryItemClickResponse) net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClickResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClickResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.class, net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.internal_static_proto_ClientSetDiscoveryItemClickResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse build() { + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse buildPartial() { + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse result = new net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse other) { + if (other == net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemClickResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse other = (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSetDiscoveryItemClickResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientSetDiscoveryItemClickResponse) private static final net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSetDiscoveryItemClickResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse(); } public static net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSetDiscoveryItemClickResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSetDiscoveryItemClickResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetDiscoveryItemClick.ClientSetDiscoveryItemClickResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSetDiscoveryItemClick_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSetDiscoveryItemClick_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSetDiscoveryItemClickResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSetDiscoveryItemClickResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n!ClientSetDiscoveryItemClick.proto\022\005pro" + + "to\032\rRequest.proto\032\016Response.proto\"O\n\033Cli" + + "entSetDiscoveryItemClick\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\017\n\007item_id\030\002 \001(\r\"H\n#Cl" + + "ientSetDiscoveryItemClickResponse\022!\n\010res" + + "ponse\030\001 \001(\0132\017.proto.ResponseB2\n\016net.iGap" + + ".protoB ProtoClientSetDiscoveryItemClick" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientSetDiscoveryItemClick_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSetDiscoveryItemClick_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSetDiscoveryItemClick_descriptor, + new java.lang.String[] { "Request", "ItemId", }); + internal_static_proto_ClientSetDiscoveryItemClickResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSetDiscoveryItemClickResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSetDiscoveryItemClickResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSetPollItemClick.java b/src/main/java/net/iGap/proto/ProtoClientSetPollItemClick.java index 12c5d23..f05fbc1 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSetPollItemClick.java +++ b/src/main/java/net/iGap/proto/ProtoClientSetPollItemClick.java @@ -8,109 +8,181 @@ private ProtoClientSetPollItemClick() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSetPollItemClickOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSetPollItemClick) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ int getItemId(); } /** * Protobuf type {@code proto.ClientSetPollItemClick} */ - public static final class ClientSetPollItemClick extends - com.google.protobuf.GeneratedMessageLite< - ClientSetPollItemClick, ClientSetPollItemClick.Builder> implements + public static final class ClientSetPollItemClick extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSetPollItemClick) ClientSetPollItemClickOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSetPollItemClick.newBuilder() to construct. + private ClientSetPollItemClick(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSetPollItemClick() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSetPollItemClick(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSetPollItemClick( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + itemId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClick_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClick_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.class, net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ITEM_ID_FIELD_NUMBER = 2; private int itemId_; /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ + @java.lang.Override public int getItemId() { return itemId_; } - /** - * optional uint32 item_id = 2; - */ - private void setItemId(int value) { - - itemId_ = value; - } - /** - * optional uint32 item_id = 2; - */ - private void clearItemId() { - - itemId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (itemId_ != 0) { output.writeUInt32(2, itemId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,356 +208,661 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, itemId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick other = (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getItemId() + != other.getItemId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ITEM_ID_FIELD_NUMBER; + hash = (53 * hash) + getItemId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSetPollItemClick} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSetPollItemClick) net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClick_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClick_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.class, net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + itemId_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClick_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick build() { + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick buildPartial() { + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick result = new net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.itemId_ = itemId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick) { + return mergeFrom((net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick other) { + if (other == net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getItemId() != 0) { + setItemId(other.getItemId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int itemId_ ; /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return The itemId. */ + @java.lang.Override public int getItemId() { - return instance.getItemId(); + return itemId_; } /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @param value The itemId to set. + * @return This builder for chaining. */ public Builder setItemId(int value) { - copyOnWrite(); - instance.setItemId(value); + + itemId_ = value; + onChanged(); return this; } /** - * optional uint32 item_id = 2; + * uint32 item_id = 2; + * @return This builder for chaining. */ public Builder clearItemId() { - copyOnWrite(); - instance.clearItemId(); + + itemId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientSetPollItemClick) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick other = (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick) arg1; - request_ = visitor.visitMessage(request_, other.request_); - itemId_ = visitor.visitInt(itemId_ != 0, itemId_, - other.itemId_ != 0, other.itemId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - itemId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSetPollItemClick) + } + // @@protoc_insertion_point(class_scope:proto.ClientSetPollItemClick) private static final net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSetPollItemClick(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick(); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSetPollItemClick parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSetPollItemClick(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClick getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientSetPollItemClickResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSetPollItemClickResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientSetPollItemClickResponse} */ - public static final class ClientSetPollItemClickResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSetPollItemClickResponse, ClientSetPollItemClickResponse.Builder> implements + public static final class ClientSetPollItemClickResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSetPollItemClickResponse) ClientSetPollItemClickResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSetPollItemClickResponse.newBuilder() to construct. + private ClientSetPollItemClickResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSetPollItemClickResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSetPollItemClickResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSetPollItemClickResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClickResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClickResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.class, net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -491,244 +870,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse other = (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSetPollItemClickResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSetPollItemClickResponse) net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClickResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClickResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.class, net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSetPollItemClick.internal_static_proto_ClientSetPollItemClickResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse build() { + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse buildPartial() { + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse result = new net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse other) { + if (other == net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSetPollItemClickResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse other = (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSetPollItemClickResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientSetPollItemClickResponse) private static final net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSetPollItemClickResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse(); } public static net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSetPollItemClickResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSetPollItemClickResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSetPollItemClick.ClientSetPollItemClickResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSetPollItemClick_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSetPollItemClick_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSetPollItemClickResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSetPollItemClickResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034ClientSetPollItemClick.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"J\n\026ClientSe" + + "tPollItemClick\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\017\n\007item_id\030\002 \001(\r\"C\n\036ClientSetPol" + + "lItemClickResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.ResponseB-\n\016net.iGap.protoB\033ProtoCl" + + "ientSetPollItemClickb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientSetPollItemClick_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSetPollItemClick_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSetPollItemClick_descriptor, + new java.lang.String[] { "Request", "ItemId", }); + internal_static_proto_ClientSetPollItemClickResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSetPollItemClickResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSetPollItemClickResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientSubscribeToRoom.java b/src/main/java/net/iGap/proto/ProtoClientSubscribeToRoom.java index c79e1a8..fc54090 100644 --- a/src/main/java/net/iGap/proto/ProtoClientSubscribeToRoom.java +++ b/src/main/java/net/iGap/proto/ProtoClientSubscribeToRoom.java @@ -8,109 +8,181 @@ private ProtoClientSubscribeToRoom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientSubscribeToRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSubscribeToRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ClientSubscribeToRoom} */ - public static final class ClientSubscribeToRoom extends - com.google.protobuf.GeneratedMessageLite< - ClientSubscribeToRoom, ClientSubscribeToRoom.Builder> implements + public static final class ClientSubscribeToRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSubscribeToRoom) ClientSubscribeToRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSubscribeToRoom.newBuilder() to construct. + private ClientSubscribeToRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSubscribeToRoom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSubscribeToRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSubscribeToRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.class, net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,356 +208,662 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom other = (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSubscribeToRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSubscribeToRoom) net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.class, net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom build() { + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom buildPartial() { + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom result = new net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom) { + return mergeFrom((net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom other) { + if (other == net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientSubscribeToRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom other = (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSubscribeToRoom) + } + // @@protoc_insertion_point(class_scope:proto.ClientSubscribeToRoom) private static final net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSubscribeToRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom(); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSubscribeToRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSubscribeToRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientSubscribeToRoomResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientSubscribeToRoomResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientSubscribeToRoomResponse} */ - public static final class ClientSubscribeToRoomResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientSubscribeToRoomResponse, ClientSubscribeToRoomResponse.Builder> implements + public static final class ClientSubscribeToRoomResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientSubscribeToRoomResponse) ClientSubscribeToRoomResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientSubscribeToRoomResponse.newBuilder() to construct. + private ClientSubscribeToRoomResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientSubscribeToRoomResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientSubscribeToRoomResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientSubscribeToRoomResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.class, net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -491,244 +871,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse other = (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientSubscribeToRoomResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientSubscribeToRoomResponse) net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.class, net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSubscribeToRoom.internal_static_proto_ClientSubscribeToRoomResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse build() { + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse buildPartial() { + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse result = new net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse other) { + if (other == net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientSubscribeToRoomResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse other = (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientSubscribeToRoomResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientSubscribeToRoomResponse) private static final net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientSubscribeToRoomResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse(); } public static net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSubscribeToRoomResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSubscribeToRoomResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientSubscribeToRoom.ClientSubscribeToRoomResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSubscribeToRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSubscribeToRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSubscribeToRoomResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSubscribeToRoomResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033ClientSubscribeToRoom.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\"I\n\025ClientSub" + + "scribeToRoom\022\037\n\007request\030\001 \001(\0132\016.proto.Re" + + "quest\022\017\n\007room_id\030\002 \001(\004\"B\n\035ClientSubscrib" + + "eToRoomResponse\022!\n\010response\030\001 \001(\0132\017.prot" + + "o.ResponseB,\n\016net.iGap.protoB\032ProtoClien" + + "tSubscribeToRoomb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientSubscribeToRoom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSubscribeToRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSubscribeToRoom_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ClientSubscribeToRoomResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSubscribeToRoomResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSubscribeToRoomResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientUnsubscribeFromRoom.java b/src/main/java/net/iGap/proto/ProtoClientUnsubscribeFromRoom.java index 17ee2d1..d1a211b 100644 --- a/src/main/java/net/iGap/proto/ProtoClientUnsubscribeFromRoom.java +++ b/src/main/java/net/iGap/proto/ProtoClientUnsubscribeFromRoom.java @@ -8,109 +8,181 @@ private ProtoClientUnsubscribeFromRoom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientUnsubscribeFromRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientUnsubscribeFromRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.ClientUnsubscribeFromRoom} */ - public static final class ClientUnsubscribeFromRoom extends - com.google.protobuf.GeneratedMessageLite< - ClientUnsubscribeFromRoom, ClientUnsubscribeFromRoom.Builder> implements + public static final class ClientUnsubscribeFromRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientUnsubscribeFromRoom) ClientUnsubscribeFromRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientUnsubscribeFromRoom.newBuilder() to construct. + private ClientUnsubscribeFromRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientUnsubscribeFromRoom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientUnsubscribeFromRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientUnsubscribeFromRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.class, net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,356 +208,662 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom other = (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientUnsubscribeFromRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientUnsubscribeFromRoom) net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.class, net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom build() { + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom buildPartial() { + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom result = new net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom) { + return mergeFrom((net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom other) { + if (other == net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ClientUnsubscribeFromRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom other = (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientUnsubscribeFromRoom) + } + // @@protoc_insertion_point(class_scope:proto.ClientUnsubscribeFromRoom) private static final net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientUnsubscribeFromRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom(); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientUnsubscribeFromRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientUnsubscribeFromRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ClientUnsubscribeFromRoomResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ClientUnsubscribeFromRoomResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.ClientUnsubscribeFromRoomResponse} */ - public static final class ClientUnsubscribeFromRoomResponse extends - com.google.protobuf.GeneratedMessageLite< - ClientUnsubscribeFromRoomResponse, ClientUnsubscribeFromRoomResponse.Builder> implements + public static final class ClientUnsubscribeFromRoomResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ClientUnsubscribeFromRoomResponse) ClientUnsubscribeFromRoomResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientUnsubscribeFromRoomResponse.newBuilder() to construct. + private ClientUnsubscribeFromRoomResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientUnsubscribeFromRoomResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientUnsubscribeFromRoomResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientUnsubscribeFromRoomResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.class, net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -491,244 +871,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse other = (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ClientUnsubscribeFromRoomResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ClientUnsubscribeFromRoomResponse) net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoomResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoomResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.class, net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.internal_static_proto_ClientUnsubscribeFromRoomResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse build() { + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse buildPartial() { + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse result = new net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse) { + return mergeFrom((net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse other) { + if (other == net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ClientUnsubscribeFromRoomResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse other = (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ClientUnsubscribeFromRoomResponse) + } + // @@protoc_insertion_point(class_scope:proto.ClientUnsubscribeFromRoomResponse) private static final net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientUnsubscribeFromRoomResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse(); } public static net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientUnsubscribeFromRoomResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientUnsubscribeFromRoomResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUnsubscribeFromRoom.ClientUnsubscribeFromRoomResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientUnsubscribeFromRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientUnsubscribeFromRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientUnsubscribeFromRoomResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientUnsubscribeFromRoomResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\037ClientUnsubscribeFromRoom.proto\022\005proto" + + "\032\rRequest.proto\032\016Response.proto\"M\n\031Clien" + + "tUnsubscribeFromRoom\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\017\n\007room_id\030\002 \001(\004\"F\n!Client" + + "UnsubscribeFromRoomResponse\022!\n\010response\030" + + "\001 \001(\0132\017.proto.ResponseB0\n\016net.iGap.proto" + + "B\036ProtoClientUnsubscribeFromRoomb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ClientUnsubscribeFromRoom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientUnsubscribeFromRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientUnsubscribeFromRoom_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_ClientUnsubscribeFromRoomResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientUnsubscribeFromRoomResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientUnsubscribeFromRoomResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientUpdate.java b/src/main/java/net/iGap/proto/ProtoClientUpdate.java index ee77ea9..002fd7c 100644 --- a/src/main/java/net/iGap/proto/ProtoClientUpdate.java +++ b/src/main/java/net/iGap/proto/ProtoClientUpdate.java @@ -8,136 +8,194 @@ private ProtoClientUpdate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.Update) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 pts = 1; + * uint64 pts = 1; + * @return The pts. */ long getPts(); /** - * optional uint64 seq = 2; + * uint64 seq = 2; + * @return The seq. */ long getSeq(); /** - * optional uint64 action_id = 3; + * uint64 action_id = 3; + * @return The actionId. */ long getActionId(); /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return The wrappedProto. */ com.google.protobuf.ByteString getWrappedProto(); } /** * Protobuf type {@code proto.updatequeue.Update} */ - public static final class Update extends - com.google.protobuf.GeneratedMessageLite< - Update, Update.Builder> implements + public static final class Update extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.Update) UpdateOrBuilder { + private static final long serialVersionUID = 0L; + // Use Update.newBuilder() to construct. + private Update(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Update() { wrappedProto_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Update(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Update( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pts_ = input.readUInt64(); + break; + } + case 16: { + + seq_ = input.readUInt64(); + break; + } + case 24: { + + actionId_ = input.readUInt64(); + break; + } + case 34: { + + wrappedProto_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUpdate.internal_static_proto_updatequeue_Update_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUpdate.internal_static_proto_updatequeue_Update_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUpdate.Update.class, net.iGap.proto.ProtoClientUpdate.Update.Builder.class); + } + public static final int PTS_FIELD_NUMBER = 1; private long pts_; /** - * optional uint64 pts = 1; + * uint64 pts = 1; + * @return The pts. */ + @java.lang.Override public long getPts() { return pts_; } - /** - * optional uint64 pts = 1; - */ - private void setPts(long value) { - - pts_ = value; - } - /** - * optional uint64 pts = 1; - */ - private void clearPts() { - - pts_ = 0L; - } public static final int SEQ_FIELD_NUMBER = 2; private long seq_; /** - * optional uint64 seq = 2; + * uint64 seq = 2; + * @return The seq. */ + @java.lang.Override public long getSeq() { return seq_; } - /** - * optional uint64 seq = 2; - */ - private void setSeq(long value) { - - seq_ = value; - } - /** - * optional uint64 seq = 2; - */ - private void clearSeq() { - - seq_ = 0L; - } public static final int ACTION_ID_FIELD_NUMBER = 3; private long actionId_; /** - * optional uint64 action_id = 3; + * uint64 action_id = 3; + * @return The actionId. */ + @java.lang.Override public long getActionId() { return actionId_; } - /** - * optional uint64 action_id = 3; - */ - private void setActionId(long value) { - - actionId_ = value; - } - /** - * optional uint64 action_id = 3; - */ - private void clearActionId() { - - actionId_ = 0L; - } public static final int WRAPPED_PROTO_FIELD_NUMBER = 4; private com.google.protobuf.ByteString wrappedProto_; /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { return wrappedProto_; } - /** - * optional bytes wrapped_proto = 4; - */ - private void setWrappedProto(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - wrappedProto_ = value; - } - /** - * optional bytes wrapped_proto = 4; - */ - private void clearWrappedProto() { - - wrappedProto_ = getDefaultInstance().getWrappedProto(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pts_ != 0L) { @@ -152,10 +210,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!wrappedProto_.isEmpty()) { output.writeBytes(4, wrappedProto_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -175,305 +235,520 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, wrappedProto_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientUpdate.Update)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientUpdate.Update other = (net.iGap.proto.ProtoClientUpdate.Update) obj; + + if (getPts() + != other.getPts()) return false; + if (getSeq() + != other.getSeq()) return false; + if (getActionId() + != other.getActionId()) return false; + if (!getWrappedProto() + .equals(other.getWrappedProto())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPts()); + hash = (37 * hash) + SEQ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSeq()); + hash = (37 * hash) + ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getActionId()); + hash = (37 * hash) + WRAPPED_PROTO_FIELD_NUMBER; + hash = (53 * hash) + getWrappedProto().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdate.Update parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdate.Update parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdate.Update parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientUpdate.Update prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.Update} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientUpdate.Update, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.Update) net.iGap.proto.ProtoClientUpdate.UpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUpdate.internal_static_proto_updatequeue_Update_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUpdate.internal_static_proto_updatequeue_Update_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUpdate.Update.class, net.iGap.proto.ProtoClientUpdate.Update.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientUpdate.Update.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pts_ = 0L; + + seq_ = 0L; + + actionId_ = 0L; + + wrappedProto_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientUpdate.internal_static_proto_updatequeue_Update_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdate.Update getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientUpdate.Update.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdate.Update build() { + net.iGap.proto.ProtoClientUpdate.Update result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdate.Update buildPartial() { + net.iGap.proto.ProtoClientUpdate.Update result = new net.iGap.proto.ProtoClientUpdate.Update(this); + result.pts_ = pts_; + result.seq_ = seq_; + result.actionId_ = actionId_; + result.wrappedProto_ = wrappedProto_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientUpdate.Update) { + return mergeFrom((net.iGap.proto.ProtoClientUpdate.Update)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientUpdate.Update other) { + if (other == net.iGap.proto.ProtoClientUpdate.Update.getDefaultInstance()) return this; + if (other.getPts() != 0L) { + setPts(other.getPts()); + } + if (other.getSeq() != 0L) { + setSeq(other.getSeq()); + } + if (other.getActionId() != 0L) { + setActionId(other.getActionId()); + } + if (other.getWrappedProto() != com.google.protobuf.ByteString.EMPTY) { + setWrappedProto(other.getWrappedProto()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientUpdate.Update parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientUpdate.Update) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long pts_ ; /** - * optional uint64 pts = 1; + * uint64 pts = 1; + * @return The pts. */ + @java.lang.Override public long getPts() { - return instance.getPts(); + return pts_; } /** - * optional uint64 pts = 1; + * uint64 pts = 1; + * @param value The pts to set. + * @return This builder for chaining. */ public Builder setPts(long value) { - copyOnWrite(); - instance.setPts(value); + + pts_ = value; + onChanged(); return this; } /** - * optional uint64 pts = 1; + * uint64 pts = 1; + * @return This builder for chaining. */ public Builder clearPts() { - copyOnWrite(); - instance.clearPts(); + + pts_ = 0L; + onChanged(); return this; } + private long seq_ ; /** - * optional uint64 seq = 2; + * uint64 seq = 2; + * @return The seq. */ + @java.lang.Override public long getSeq() { - return instance.getSeq(); + return seq_; } /** - * optional uint64 seq = 2; + * uint64 seq = 2; + * @param value The seq to set. + * @return This builder for chaining. */ public Builder setSeq(long value) { - copyOnWrite(); - instance.setSeq(value); + + seq_ = value; + onChanged(); return this; } /** - * optional uint64 seq = 2; + * uint64 seq = 2; + * @return This builder for chaining. */ public Builder clearSeq() { - copyOnWrite(); - instance.clearSeq(); + + seq_ = 0L; + onChanged(); return this; } + private long actionId_ ; /** - * optional uint64 action_id = 3; + * uint64 action_id = 3; + * @return The actionId. */ + @java.lang.Override public long getActionId() { - return instance.getActionId(); + return actionId_; } /** - * optional uint64 action_id = 3; + * uint64 action_id = 3; + * @param value The actionId to set. + * @return This builder for chaining. */ public Builder setActionId(long value) { - copyOnWrite(); - instance.setActionId(value); + + actionId_ = value; + onChanged(); return this; } /** - * optional uint64 action_id = 3; + * uint64 action_id = 3; + * @return This builder for chaining. */ public Builder clearActionId() { - copyOnWrite(); - instance.clearActionId(); + + actionId_ = 0L; + onChanged(); return this; } + private com.google.protobuf.ByteString wrappedProto_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { - return instance.getWrappedProto(); + return wrappedProto_; } /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @param value The wrappedProto to set. + * @return This builder for chaining. */ public Builder setWrappedProto(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setWrappedProto(value); + if (value == null) { + throw new NullPointerException(); + } + + wrappedProto_ = value; + onChanged(); return this; } /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return This builder for chaining. */ public Builder clearWrappedProto() { - copyOnWrite(); - instance.clearWrappedProto(); + + wrappedProto_ = getDefaultInstance().getWrappedProto(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.updatequeue.Update) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientUpdate.Update(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientUpdate.Update other = (net.iGap.proto.ProtoClientUpdate.Update) arg1; - pts_ = visitor.visitLong(pts_ != 0L, pts_, - other.pts_ != 0L, other.pts_); - seq_ = visitor.visitLong(seq_ != 0L, seq_, - other.seq_ != 0L, other.seq_); - actionId_ = visitor.visitLong(actionId_ != 0L, actionId_, - other.actionId_ != 0L, other.actionId_); - wrappedProto_ = visitor.visitByteString(wrappedProto_ != com.google.protobuf.ByteString.EMPTY, wrappedProto_, - other.wrappedProto_ != com.google.protobuf.ByteString.EMPTY, other.wrappedProto_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - pts_ = input.readUInt64(); - break; - } - case 16: { - - seq_ = input.readUInt64(); - break; - } - case 24: { - - actionId_ = input.readUInt64(); - break; - } - case 34: { - - wrappedProto_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientUpdate.Update.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.Update) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.Update) private static final net.iGap.proto.ProtoClientUpdate.Update DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Update(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientUpdate.Update(); } public static net.iGap.proto.ProtoClientUpdate.Update getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Update parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Update(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdate.Update getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_Update_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_Update_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022ClientUpdate.proto\022\021proto.updatequeue\"" + + "L\n\006Update\022\013\n\003pts\030\001 \001(\004\022\013\n\003seq\030\002 \001(\004\022\021\n\ta" + + "ction_id\030\003 \001(\004\022\025\n\rwrapped_proto\030\004 \001(\014B#\n" + + "\016net.iGap.protoB\021ProtoClientUpdateb\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_proto_updatequeue_Update_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_updatequeue_Update_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_Update_descriptor, + new java.lang.String[] { "Pts", "Seq", "ActionId", "WrappedProto", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientUpdates.java b/src/main/java/net/iGap/proto/ProtoClientUpdates.java index 923a6b1..feeaef5 100644 --- a/src/main/java/net/iGap/proto/ProtoClientUpdates.java +++ b/src/main/java/net/iGap/proto/ProtoClientUpdates.java @@ -8,27 +8,37 @@ private ProtoClientUpdates() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientUpdatesOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.ClientUpdates) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ long getUserId(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 last_pts = 3; + * uint64 last_pts = 3; + * @return The lastPts. */ long getLastPts(); /** - * optional uint32 pts_count = 4; + * uint32 pts_count = 4; + * @return The ptsCount. */ int getPtsCount(); @@ -45,122 +55,185 @@ public interface ClientUpdatesOrBuilder extends * repeated .proto.updatequeue.Update updates = 5; */ int getUpdatesCount(); + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + java.util.List + getUpdatesOrBuilderList(); + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + net.iGap.proto.ProtoClientUpdate.UpdateOrBuilder getUpdatesOrBuilder( + int index); } /** * Protobuf type {@code proto.updatequeue.ClientUpdates} */ - public static final class ClientUpdates extends - com.google.protobuf.GeneratedMessageLite< - ClientUpdates, ClientUpdates.Builder> implements + public static final class ClientUpdates extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.ClientUpdates) ClientUpdatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientUpdates.newBuilder() to construct. + private ClientUpdates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientUpdates() { - updates_ = emptyProtobufList(); + updates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientUpdates(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientUpdates( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + lastPts_ = input.readUInt64(); + break; + } + case 32: { + + ptsCount_ = input.readUInt32(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + updates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + updates_.add( + input.readMessage(net.iGap.proto.ProtoClientUpdate.Update.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + updates_ = java.util.Collections.unmodifiableList(updates_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUpdates.internal_static_proto_updatequeue_ClientUpdates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUpdates.internal_static_proto_updatequeue_ClientUpdates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUpdates.ClientUpdates.class, net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int LAST_PTS_FIELD_NUMBER = 3; private long lastPts_; /** - * optional uint64 last_pts = 3; + * uint64 last_pts = 3; + * @return The lastPts. */ + @java.lang.Override public long getLastPts() { return lastPts_; } - /** - * optional uint64 last_pts = 3; - */ - private void setLastPts(long value) { - - lastPts_ = value; - } - /** - * optional uint64 last_pts = 3; - */ - private void clearLastPts() { - - lastPts_ = 0L; - } public static final int PTS_COUNT_FIELD_NUMBER = 4; private int ptsCount_; /** - * optional uint32 pts_count = 4; + * uint32 pts_count = 4; + * @return The ptsCount. */ + @java.lang.Override public int getPtsCount() { return ptsCount_; } - /** - * optional uint32 pts_count = 4; - */ - private void setPtsCount(int value) { - - ptsCount_ = value; - } - /** - * optional uint32 pts_count = 4; - */ - private void clearPtsCount() { - - ptsCount_ = 0; - } public static final int UPDATES_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.ProtobufList updates_; + private java.util.List updates_; /** * repeated .proto.updatequeue.Update updates = 5; */ + @java.lang.Override public java.util.List getUpdatesList() { return updates_; } /** * repeated .proto.updatequeue.Update updates = 5; */ + @java.lang.Override public java.util.List getUpdatesOrBuilderList() { return updates_; @@ -168,108 +241,38 @@ public java.util.List getUpdatesList() /** * repeated .proto.updatequeue.Update updates = 5; */ + @java.lang.Override public int getUpdatesCount() { return updates_.size(); } /** * repeated .proto.updatequeue.Update updates = 5; */ + @java.lang.Override public net.iGap.proto.ProtoClientUpdate.Update getUpdates(int index) { return updates_.get(index); } /** * repeated .proto.updatequeue.Update updates = 5; */ + @java.lang.Override public net.iGap.proto.ProtoClientUpdate.UpdateOrBuilder getUpdatesOrBuilder( int index) { return updates_.get(index); } - private void ensureUpdatesIsMutable() { - if (!updates_.isModifiable()) { - updates_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(updates_); - } - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void setUpdates( - int index, net.iGap.proto.ProtoClientUpdate.Update value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpdatesIsMutable(); - updates_.set(index, value); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void setUpdates( - int index, net.iGap.proto.ProtoClientUpdate.Update.Builder builderForValue) { - ensureUpdatesIsMutable(); - updates_.set(index, builderForValue.build()); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void addUpdates(net.iGap.proto.ProtoClientUpdate.Update value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpdatesIsMutable(); - updates_.add(value); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void addUpdates( - int index, net.iGap.proto.ProtoClientUpdate.Update value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpdatesIsMutable(); - updates_.add(index, value); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void addUpdates( - net.iGap.proto.ProtoClientUpdate.Update.Builder builderForValue) { - ensureUpdatesIsMutable(); - updates_.add(builderForValue.build()); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void addUpdates( - int index, net.iGap.proto.ProtoClientUpdate.Update.Builder builderForValue) { - ensureUpdatesIsMutable(); - updates_.add(index, builderForValue.build()); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void addAllUpdates( - java.lang.Iterable values) { - ensureUpdatesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, updates_); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void clearUpdates() { - updates_ = emptyProtobufList(); - } - /** - * repeated .proto.updatequeue.Update updates = 5; - */ - private void removeUpdates(int index) { - ensureUpdatesIsMutable(); - updates_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { @@ -287,10 +290,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < updates_.size(); i++) { output.writeMessage(5, updates_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -314,209 +319,542 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, updates_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientUpdates.ClientUpdates)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientUpdates.ClientUpdates other = (net.iGap.proto.ProtoClientUpdates.ClientUpdates) obj; + + if (getUserId() + != other.getUserId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (getLastPts() + != other.getLastPts()) return false; + if (getPtsCount() + != other.getPtsCount()) return false; + if (!getUpdatesList() + .equals(other.getUpdatesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + LAST_PTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastPts()); + hash = (37 * hash) + PTS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPtsCount(); + if (getUpdatesCount() > 0) { + hash = (37 * hash) + UPDATES_FIELD_NUMBER; + hash = (53 * hash) + getUpdatesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientUpdates.ClientUpdates prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.ClientUpdates} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientUpdates.ClientUpdates, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.ClientUpdates) net.iGap.proto.ProtoClientUpdates.ClientUpdatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUpdates.internal_static_proto_updatequeue_ClientUpdates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUpdates.internal_static_proto_updatequeue_ClientUpdates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUpdates.ClientUpdates.class, net.iGap.proto.ProtoClientUpdates.ClientUpdates.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientUpdates.ClientUpdates.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUpdatesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + roomId_ = 0L; + + lastPts_ = 0L; + + ptsCount_ = 0; + + if (updatesBuilder_ == null) { + updates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + updatesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientUpdates.internal_static_proto_updatequeue_ClientUpdates_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdates.ClientUpdates getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientUpdates.ClientUpdates.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdates.ClientUpdates build() { + net.iGap.proto.ProtoClientUpdates.ClientUpdates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdates.ClientUpdates buildPartial() { + net.iGap.proto.ProtoClientUpdates.ClientUpdates result = new net.iGap.proto.ProtoClientUpdates.ClientUpdates(this); + int from_bitField0_ = bitField0_; + result.userId_ = userId_; + result.roomId_ = roomId_; + result.lastPts_ = lastPts_; + result.ptsCount_ = ptsCount_; + if (updatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + updates_ = java.util.Collections.unmodifiableList(updates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.updates_ = updates_; + } else { + result.updates_ = updatesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientUpdates.ClientUpdates) { + return mergeFrom((net.iGap.proto.ProtoClientUpdates.ClientUpdates)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoClientUpdates.ClientUpdates other) { + if (other == net.iGap.proto.ProtoClientUpdates.ClientUpdates.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getLastPts() != 0L) { + setLastPts(other.getLastPts()); + } + if (other.getPtsCount() != 0) { + setPtsCount(other.getPtsCount()); + } + if (updatesBuilder_ == null) { + if (!other.updates_.isEmpty()) { + if (updates_.isEmpty()) { + updates_ = other.updates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUpdatesIsMutable(); + updates_.addAll(other.updates_); + } + onChanged(); + } + } else { + if (!other.updates_.isEmpty()) { + if (updatesBuilder_.isEmpty()) { + updatesBuilder_.dispose(); + updatesBuilder_ = null; + updates_ = other.updates_; + bitField0_ = (bitField0_ & ~0x00000001); + updatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUpdatesFieldBuilder() : null; + } else { + updatesBuilder_.addAllMessages(other.updates_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientUpdates.ClientUpdates parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientUpdates.ClientUpdates) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long userId_ ; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long lastPts_ ; /** - * optional uint64 last_pts = 3; + * uint64 last_pts = 3; + * @return The lastPts. */ + @java.lang.Override public long getLastPts() { - return instance.getLastPts(); + return lastPts_; } /** - * optional uint64 last_pts = 3; + * uint64 last_pts = 3; + * @param value The lastPts to set. + * @return This builder for chaining. */ public Builder setLastPts(long value) { - copyOnWrite(); - instance.setLastPts(value); + + lastPts_ = value; + onChanged(); return this; } /** - * optional uint64 last_pts = 3; + * uint64 last_pts = 3; + * @return This builder for chaining. */ public Builder clearLastPts() { - copyOnWrite(); - instance.clearLastPts(); + + lastPts_ = 0L; + onChanged(); return this; } + private int ptsCount_ ; /** - * optional uint32 pts_count = 4; + * uint32 pts_count = 4; + * @return The ptsCount. */ + @java.lang.Override public int getPtsCount() { - return instance.getPtsCount(); + return ptsCount_; } /** - * optional uint32 pts_count = 4; + * uint32 pts_count = 4; + * @param value The ptsCount to set. + * @return This builder for chaining. */ public Builder setPtsCount(int value) { - copyOnWrite(); - instance.setPtsCount(value); + + ptsCount_ = value; + onChanged(); return this; } /** - * optional uint32 pts_count = 4; + * uint32 pts_count = 4; + * @return This builder for chaining. */ public Builder clearPtsCount() { - copyOnWrite(); - instance.clearPtsCount(); + + ptsCount_ = 0; + onChanged(); return this; } + private java.util.List updates_ = + java.util.Collections.emptyList(); + private void ensureUpdatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + updates_ = new java.util.ArrayList(updates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientUpdate.Update, net.iGap.proto.ProtoClientUpdate.Update.Builder, net.iGap.proto.ProtoClientUpdate.UpdateOrBuilder> updatesBuilder_; + /** * repeated .proto.updatequeue.Update updates = 5; */ public java.util.List getUpdatesList() { - return java.util.Collections.unmodifiableList( - instance.getUpdatesList()); + if (updatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(updates_); + } else { + return updatesBuilder_.getMessageList(); + } } /** * repeated .proto.updatequeue.Update updates = 5; */ public int getUpdatesCount() { - return instance.getUpdatesCount(); - }/** + if (updatesBuilder_ == null) { + return updates_.size(); + } else { + return updatesBuilder_.getCount(); + } + } + /** * repeated .proto.updatequeue.Update updates = 5; */ public net.iGap.proto.ProtoClientUpdate.Update getUpdates(int index) { - return instance.getUpdates(index); + if (updatesBuilder_ == null) { + return updates_.get(index); + } else { + return updatesBuilder_.getMessage(index); + } } /** * repeated .proto.updatequeue.Update updates = 5; */ public Builder setUpdates( int index, net.iGap.proto.ProtoClientUpdate.Update value) { - copyOnWrite(); - instance.setUpdates(index, value); + if (updatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpdatesIsMutable(); + updates_.set(index, value); + onChanged(); + } else { + updatesBuilder_.setMessage(index, value); + } return this; } /** @@ -524,16 +862,29 @@ public Builder setUpdates( */ public Builder setUpdates( int index, net.iGap.proto.ProtoClientUpdate.Update.Builder builderForValue) { - copyOnWrite(); - instance.setUpdates(index, builderForValue); + if (updatesBuilder_ == null) { + ensureUpdatesIsMutable(); + updates_.set(index, builderForValue.build()); + onChanged(); + } else { + updatesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.updatequeue.Update updates = 5; */ public Builder addUpdates(net.iGap.proto.ProtoClientUpdate.Update value) { - copyOnWrite(); - instance.addUpdates(value); + if (updatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpdatesIsMutable(); + updates_.add(value); + onChanged(); + } else { + updatesBuilder_.addMessage(value); + } return this; } /** @@ -541,8 +892,16 @@ public Builder addUpdates(net.iGap.proto.ProtoClientUpdate.Update value) { */ public Builder addUpdates( int index, net.iGap.proto.ProtoClientUpdate.Update value) { - copyOnWrite(); - instance.addUpdates(index, value); + if (updatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpdatesIsMutable(); + updates_.add(index, value); + onChanged(); + } else { + updatesBuilder_.addMessage(index, value); + } return this; } /** @@ -550,8 +909,13 @@ public Builder addUpdates( */ public Builder addUpdates( net.iGap.proto.ProtoClientUpdate.Update.Builder builderForValue) { - copyOnWrite(); - instance.addUpdates(builderForValue); + if (updatesBuilder_ == null) { + ensureUpdatesIsMutable(); + updates_.add(builderForValue.build()); + onChanged(); + } else { + updatesBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -559,8 +923,13 @@ public Builder addUpdates( */ public Builder addUpdates( int index, net.iGap.proto.ProtoClientUpdate.Update.Builder builderForValue) { - copyOnWrite(); - instance.addUpdates(index, builderForValue); + if (updatesBuilder_ == null) { + ensureUpdatesIsMutable(); + updates_.add(index, builderForValue.build()); + onChanged(); + } else { + updatesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -568,160 +937,192 @@ public Builder addUpdates( */ public Builder addAllUpdates( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllUpdates(values); + if (updatesBuilder_ == null) { + ensureUpdatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, updates_); + onChanged(); + } else { + updatesBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.updatequeue.Update updates = 5; */ public Builder clearUpdates() { - copyOnWrite(); - instance.clearUpdates(); + if (updatesBuilder_ == null) { + updates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + updatesBuilder_.clear(); + } return this; } /** * repeated .proto.updatequeue.Update updates = 5; */ public Builder removeUpdates(int index) { - copyOnWrite(); - instance.removeUpdates(index); + if (updatesBuilder_ == null) { + ensureUpdatesIsMutable(); + updates_.remove(index); + onChanged(); + } else { + updatesBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientUpdates) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientUpdates.ClientUpdates(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - updates_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientUpdates.ClientUpdates other = (net.iGap.proto.ProtoClientUpdates.ClientUpdates) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - lastPts_ = visitor.visitLong(lastPts_ != 0L, lastPts_, - other.lastPts_ != 0L, other.lastPts_); - ptsCount_ = visitor.visitInt(ptsCount_ != 0, ptsCount_, - other.ptsCount_ != 0, other.ptsCount_); - updates_= visitor.visitList(updates_, other.updates_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - lastPts_ = input.readUInt64(); - break; - } - case 32: { - - ptsCount_ = input.readUInt32(); - break; - } - case 42: { - if (!updates_.isModifiable()) { - updates_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(updates_); - } - updates_.add( - input.readMessage(net.iGap.proto.ProtoClientUpdate.Update.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + public net.iGap.proto.ProtoClientUpdate.Update.Builder getUpdatesBuilder( + int index) { + return getUpdatesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + public net.iGap.proto.ProtoClientUpdate.UpdateOrBuilder getUpdatesOrBuilder( + int index) { + if (updatesBuilder_ == null) { + return updates_.get(index); } else { + return updatesBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + public java.util.List + getUpdatesOrBuilderList() { + if (updatesBuilder_ != null) { + return updatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(updates_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientUpdates.ClientUpdates.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + public net.iGap.proto.ProtoClientUpdate.Update.Builder addUpdatesBuilder() { + return getUpdatesFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientUpdate.Update.getDefaultInstance()); + } + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + public net.iGap.proto.ProtoClientUpdate.Update.Builder addUpdatesBuilder( + int index) { + return getUpdatesFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientUpdate.Update.getDefaultInstance()); + } + /** + * repeated .proto.updatequeue.Update updates = 5; + */ + public java.util.List + getUpdatesBuilderList() { + return getUpdatesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientUpdate.Update, net.iGap.proto.ProtoClientUpdate.Update.Builder, net.iGap.proto.ProtoClientUpdate.UpdateOrBuilder> + getUpdatesFieldBuilder() { + if (updatesBuilder_ == null) { + updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientUpdate.Update, net.iGap.proto.ProtoClientUpdate.Update.Builder, net.iGap.proto.ProtoClientUpdate.UpdateOrBuilder>( + updates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + updates_ = null; } + return updatesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientUpdates) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.ClientUpdates) private static final net.iGap.proto.ProtoClientUpdates.ClientUpdates DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientUpdates(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientUpdates.ClientUpdates(); } public static net.iGap.proto.ProtoClientUpdates.ClientUpdates getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientUpdates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientUpdates(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdates.ClientUpdates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_ClientUpdates_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_ClientUpdates_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023ClientUpdates.proto\022\021proto.updatequeue" + + "\032\022ClientUpdate.proto\"\202\001\n\rClientUpdates\022\017" + + "\n\007user_id\030\001 \001(\004\022\017\n\007room_id\030\002 \001(\004\022\020\n\010last" + + "_pts\030\003 \001(\004\022\021\n\tpts_count\030\004 \001(\r\022*\n\007updates" + + "\030\005 \003(\0132\031.proto.updatequeue.UpdateB$\n\016net" + + ".iGap.protoB\022ProtoClientUpdatesb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoClientUpdate.getDescriptor(), + }); + internal_static_proto_updatequeue_ClientUpdates_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_updatequeue_ClientUpdates_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_ClientUpdates_descriptor, + new java.lang.String[] { "UserId", "RoomId", "LastPts", "PtsCount", "Updates", }); + net.iGap.proto.ProtoClientUpdate.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientUpdatesTooLong.java b/src/main/java/net/iGap/proto/ProtoClientUpdatesTooLong.java index 5c6b8a3..ba59073 100644 --- a/src/main/java/net/iGap/proto/ProtoClientUpdatesTooLong.java +++ b/src/main/java/net/iGap/proto/ProtoClientUpdatesTooLong.java @@ -8,57 +8,138 @@ private ProtoClientUpdatesTooLong() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ClientUpdatesTooLongOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.ClientUpdatesTooLong) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.updatequeue.ClientUpdatesTooLong} */ - public static final class ClientUpdatesTooLong extends - com.google.protobuf.GeneratedMessageLite< - ClientUpdatesTooLong, ClientUpdatesTooLong.Builder> implements + public static final class ClientUpdatesTooLong extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.ClientUpdatesTooLong) ClientUpdatesTooLongOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientUpdatesTooLong.newBuilder() to construct. + private ClientUpdatesTooLong(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ClientUpdatesTooLong() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClientUpdatesTooLong(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientUpdatesTooLong( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUpdatesTooLong.internal_static_proto_updatequeue_ClientUpdatesTooLong_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUpdatesTooLong.internal_static_proto_updatequeue_ClientUpdatesTooLong_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.class, net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { output.writeUInt64(1, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -66,215 +147,391 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong other = (net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong) obj; + + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.ClientUpdatesTooLong} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.ClientUpdatesTooLong) net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLongOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientUpdatesTooLong.internal_static_proto_updatequeue_ClientUpdatesTooLong_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientUpdatesTooLong.internal_static_proto_updatequeue_ClientUpdatesTooLong_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.class, net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.Builder.class); + } + // Construct using net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientUpdatesTooLong.internal_static_proto_updatequeue_ClientUpdatesTooLong_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong build() { + net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong buildPartial() { + net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong result = new net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong(this); + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong) { + return mergeFrom((net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong other) { + if (other == net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long userId_ ; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientUpdatesTooLong) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong other = (net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.ClientUpdatesTooLong) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.ClientUpdatesTooLong) private static final net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ClientUpdatesTooLong(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong(); } public static net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientUpdatesTooLong parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientUpdatesTooLong(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoClientUpdatesTooLong.ClientUpdatesTooLong getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_ClientUpdatesTooLong_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_ClientUpdatesTooLong_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032ClientUpdatesTooLong.proto\022\021proto.upda" + + "tequeue\"\'\n\024ClientUpdatesTooLong\022\017\n\007user_" + + "id\030\001 \001(\004B+\n\016net.iGap.protoB\031ProtoClientU" + + "pdatesTooLongb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_proto_updatequeue_ClientUpdatesTooLong_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_updatequeue_ClientUpdatesTooLong_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_ClientUpdatesTooLong_descriptor, + new java.lang.String[] { "UserId", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoConnectionSecuring.java b/src/main/java/net/iGap/proto/ProtoConnectionSecuring.java index bcadb8a..c847207 100644 --- a/src/main/java/net/iGap/proto/ProtoConnectionSecuring.java +++ b/src/main/java/net/iGap/proto/ProtoConnectionSecuring.java @@ -8,286 +8,346 @@ private ProtoConnectionSecuring() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ConnectionSecuringResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ConnectionSecuringResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string public_key = 2; + * string public_key = 2; + * @return The publicKey. */ java.lang.String getPublicKey(); /** - * optional string public_key = 2; + * string public_key = 2; + * @return The bytes for publicKey. */ com.google.protobuf.ByteString getPublicKeyBytes(); /** - * optional uint32 symmetric_key_length = 3; + * uint32 symmetric_key_length = 3; + * @return The symmetricKeyLength. */ int getSymmetricKeyLength(); /** - * optional uint32 heartbeat_interval = 4; + * uint32 heartbeat_interval = 4; + * @return The heartbeatInterval. */ int getHeartbeatInterval(); /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @return The primaryNodeName. */ java.lang.String getPrimaryNodeName(); /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @return The bytes for primaryNodeName. */ com.google.protobuf.ByteString getPrimaryNodeNameBytes(); /** - * optional uint32 secondary_chunk_size = 6; + * uint32 secondary_chunk_size = 6; + * @return The secondaryChunkSize. */ int getSecondaryChunkSize(); } /** * Protobuf type {@code proto.ConnectionSecuringResponse} */ - public static final class ConnectionSecuringResponse extends - com.google.protobuf.GeneratedMessageLite< - ConnectionSecuringResponse, ConnectionSecuringResponse.Builder> implements + public static final class ConnectionSecuringResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ConnectionSecuringResponse) ConnectionSecuringResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionSecuringResponse.newBuilder() to construct. + private ConnectionSecuringResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ConnectionSecuringResponse() { publicKey_ = ""; primaryNodeName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectionSecuringResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionSecuringResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + publicKey_ = s; + break; + } + case 24: { + + symmetricKeyLength_ = input.readUInt32(); + break; + } + case 32: { + + heartbeatInterval_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + primaryNodeName_ = s; + break; + } + case 48: { + + secondaryChunkSize_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSecuringResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSecuringResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.class, net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PUBLIC_KEY_FIELD_NUMBER = 2; - private java.lang.String publicKey_; + private volatile java.lang.Object publicKey_; /** - * optional string public_key = 2; + * string public_key = 2; + * @return The publicKey. */ + @java.lang.Override public java.lang.String getPublicKey() { - return publicKey_; + java.lang.Object ref = publicKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicKey_ = s; + return s; + } } /** - * optional string public_key = 2; + * string public_key = 2; + * @return The bytes for publicKey. */ + @java.lang.Override public com.google.protobuf.ByteString getPublicKeyBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(publicKey_); - } - /** - * optional string public_key = 2; - */ - private void setPublicKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicKey_ = value; - } - /** - * optional string public_key = 2; - */ - private void clearPublicKey() { - - publicKey_ = getDefaultInstance().getPublicKey(); - } - /** - * optional string public_key = 2; - */ - private void setPublicKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicKey_ = value.toStringUtf8(); + java.lang.Object ref = publicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SYMMETRIC_KEY_LENGTH_FIELD_NUMBER = 3; private int symmetricKeyLength_; /** - * optional uint32 symmetric_key_length = 3; + * uint32 symmetric_key_length = 3; + * @return The symmetricKeyLength. */ + @java.lang.Override public int getSymmetricKeyLength() { return symmetricKeyLength_; } - /** - * optional uint32 symmetric_key_length = 3; - */ - private void setSymmetricKeyLength(int value) { - - symmetricKeyLength_ = value; - } - /** - * optional uint32 symmetric_key_length = 3; - */ - private void clearSymmetricKeyLength() { - - symmetricKeyLength_ = 0; - } public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 4; private int heartbeatInterval_; /** - * optional uint32 heartbeat_interval = 4; + * uint32 heartbeat_interval = 4; + * @return The heartbeatInterval. */ + @java.lang.Override public int getHeartbeatInterval() { return heartbeatInterval_; } - /** - * optional uint32 heartbeat_interval = 4; - */ - private void setHeartbeatInterval(int value) { - - heartbeatInterval_ = value; - } - /** - * optional uint32 heartbeat_interval = 4; - */ - private void clearHeartbeatInterval() { - - heartbeatInterval_ = 0; - } public static final int PRIMARY_NODE_NAME_FIELD_NUMBER = 5; - private java.lang.String primaryNodeName_; + private volatile java.lang.Object primaryNodeName_; /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @return The primaryNodeName. */ + @java.lang.Override public java.lang.String getPrimaryNodeName() { - return primaryNodeName_; + java.lang.Object ref = primaryNodeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryNodeName_ = s; + return s; + } } /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @return The bytes for primaryNodeName. */ + @java.lang.Override public com.google.protobuf.ByteString getPrimaryNodeNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(primaryNodeName_); - } - /** - * optional string primary_node_name = 5; - */ - private void setPrimaryNodeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - primaryNodeName_ = value; - } - /** - * optional string primary_node_name = 5; - */ - private void clearPrimaryNodeName() { - - primaryNodeName_ = getDefaultInstance().getPrimaryNodeName(); - } - /** - * optional string primary_node_name = 5; - */ - private void setPrimaryNodeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - primaryNodeName_ = value.toStringUtf8(); + java.lang.Object ref = primaryNodeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryNodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SECONDARY_CHUNK_SIZE_FIELD_NUMBER = 6; private int secondaryChunkSize_; /** - * optional uint32 secondary_chunk_size = 6; + * uint32 secondary_chunk_size = 6; + * @return The secondaryChunkSize. */ + @java.lang.Override public int getSecondaryChunkSize() { return secondaryChunkSize_; } - /** - * optional uint32 secondary_chunk_size = 6; - */ - private void setSecondaryChunkSize(int value) { - - secondaryChunkSize_ = value; - } - /** - * optional uint32 secondary_chunk_size = 6; - */ - private void clearSecondaryChunkSize() { - - secondaryChunkSize_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!publicKey_.isEmpty()) { - output.writeString(2, getPublicKey()); + if (!getPublicKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, publicKey_); } if (symmetricKeyLength_ != 0) { output.writeUInt32(3, symmetricKeyLength_); @@ -295,16 +355,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (heartbeatInterval_ != 0) { output.writeUInt32(4, heartbeatInterval_); } - if (!primaryNodeName_.isEmpty()) { - output.writeString(5, getPrimaryNodeName()); + if (!getPrimaryNodeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, primaryNodeName_); } if (secondaryChunkSize_ != 0) { output.writeUInt32(6, secondaryChunkSize_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -312,9 +374,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!publicKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPublicKey()); + if (!getPublicKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, publicKey_); } if (symmetricKeyLength_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -324,571 +385,958 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, heartbeatInterval_); } - if (!primaryNodeName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getPrimaryNodeName()); + if (!getPrimaryNodeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, primaryNodeName_); } if (secondaryChunkSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, secondaryChunkSize_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse other = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getPublicKey() + .equals(other.getPublicKey())) return false; + if (getSymmetricKeyLength() + != other.getSymmetricKeyLength()) return false; + if (getHeartbeatInterval() + != other.getHeartbeatInterval()) return false; + if (!getPrimaryNodeName() + .equals(other.getPrimaryNodeName())) return false; + if (getSecondaryChunkSize() + != other.getSecondaryChunkSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPublicKey().hashCode(); + hash = (37 * hash) + SYMMETRIC_KEY_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getSymmetricKeyLength(); + hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getHeartbeatInterval(); + hash = (37 * hash) + PRIMARY_NODE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryNodeName().hashCode(); + hash = (37 * hash) + SECONDARY_CHUNK_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryChunkSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ConnectionSecuringResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConnectionSecuringResponse) net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSecuringResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSecuringResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.class, net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + publicKey_ = ""; + + symmetricKeyLength_ = 0; + + heartbeatInterval_ = 0; + + primaryNodeName_ = ""; + + secondaryChunkSize_ = 0; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSecuringResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse build() { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse buildPartial() { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse result = new net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.publicKey_ = publicKey_; + result.symmetricKeyLength_ = symmetricKeyLength_; + result.heartbeatInterval_ = heartbeatInterval_; + result.primaryNodeName_ = primaryNodeName_; + result.secondaryChunkSize_ = secondaryChunkSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse) { + return mergeFrom((net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse other) { + if (other == net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getPublicKey().isEmpty()) { + publicKey_ = other.publicKey_; + onChanged(); + } + if (other.getSymmetricKeyLength() != 0) { + setSymmetricKeyLength(other.getSymmetricKeyLength()); + } + if (other.getHeartbeatInterval() != 0) { + setHeartbeatInterval(other.getHeartbeatInterval()); + } + if (!other.getPrimaryNodeName().isEmpty()) { + primaryNodeName_ = other.primaryNodeName_; + onChanged(); + } + if (other.getSecondaryChunkSize() != 0) { + setSecondaryChunkSize(other.getSecondaryChunkSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object publicKey_ = ""; /** - * optional string public_key = 2; + * string public_key = 2; + * @return The publicKey. */ public java.lang.String getPublicKey() { - return instance.getPublicKey(); + java.lang.Object ref = publicKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string public_key = 2; + * string public_key = 2; + * @return The bytes for publicKey. */ public com.google.protobuf.ByteString getPublicKeyBytes() { - return instance.getPublicKeyBytes(); + java.lang.Object ref = publicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string public_key = 2; + * string public_key = 2; + * @param value The publicKey to set. + * @return This builder for chaining. */ public Builder setPublicKey( java.lang.String value) { - copyOnWrite(); - instance.setPublicKey(value); + if (value == null) { + throw new NullPointerException(); + } + + publicKey_ = value; + onChanged(); return this; } /** - * optional string public_key = 2; + * string public_key = 2; + * @return This builder for chaining. */ public Builder clearPublicKey() { - copyOnWrite(); - instance.clearPublicKey(); + + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); return this; } /** - * optional string public_key = 2; + * string public_key = 2; + * @param value The bytes for publicKey to set. + * @return This builder for chaining. */ public Builder setPublicKeyBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPublicKeyBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicKey_ = value; + onChanged(); return this; } + private int symmetricKeyLength_ ; /** - * optional uint32 symmetric_key_length = 3; + * uint32 symmetric_key_length = 3; + * @return The symmetricKeyLength. */ + @java.lang.Override public int getSymmetricKeyLength() { - return instance.getSymmetricKeyLength(); + return symmetricKeyLength_; } /** - * optional uint32 symmetric_key_length = 3; + * uint32 symmetric_key_length = 3; + * @param value The symmetricKeyLength to set. + * @return This builder for chaining. */ public Builder setSymmetricKeyLength(int value) { - copyOnWrite(); - instance.setSymmetricKeyLength(value); + + symmetricKeyLength_ = value; + onChanged(); return this; } /** - * optional uint32 symmetric_key_length = 3; + * uint32 symmetric_key_length = 3; + * @return This builder for chaining. */ public Builder clearSymmetricKeyLength() { - copyOnWrite(); - instance.clearSymmetricKeyLength(); + + symmetricKeyLength_ = 0; + onChanged(); return this; } + private int heartbeatInterval_ ; /** - * optional uint32 heartbeat_interval = 4; + * uint32 heartbeat_interval = 4; + * @return The heartbeatInterval. */ + @java.lang.Override public int getHeartbeatInterval() { - return instance.getHeartbeatInterval(); + return heartbeatInterval_; } /** - * optional uint32 heartbeat_interval = 4; + * uint32 heartbeat_interval = 4; + * @param value The heartbeatInterval to set. + * @return This builder for chaining. */ public Builder setHeartbeatInterval(int value) { - copyOnWrite(); - instance.setHeartbeatInterval(value); + + heartbeatInterval_ = value; + onChanged(); return this; } /** - * optional uint32 heartbeat_interval = 4; + * uint32 heartbeat_interval = 4; + * @return This builder for chaining. */ public Builder clearHeartbeatInterval() { - copyOnWrite(); - instance.clearHeartbeatInterval(); + + heartbeatInterval_ = 0; + onChanged(); return this; } + private java.lang.Object primaryNodeName_ = ""; /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @return The primaryNodeName. */ public java.lang.String getPrimaryNodeName() { - return instance.getPrimaryNodeName(); + java.lang.Object ref = primaryNodeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryNodeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @return The bytes for primaryNodeName. */ public com.google.protobuf.ByteString getPrimaryNodeNameBytes() { - return instance.getPrimaryNodeNameBytes(); + java.lang.Object ref = primaryNodeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryNodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @param value The primaryNodeName to set. + * @return This builder for chaining. */ public Builder setPrimaryNodeName( java.lang.String value) { - copyOnWrite(); - instance.setPrimaryNodeName(value); + if (value == null) { + throw new NullPointerException(); + } + + primaryNodeName_ = value; + onChanged(); return this; } /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @return This builder for chaining. */ public Builder clearPrimaryNodeName() { - copyOnWrite(); - instance.clearPrimaryNodeName(); + + primaryNodeName_ = getDefaultInstance().getPrimaryNodeName(); + onChanged(); return this; } /** - * optional string primary_node_name = 5; + * string primary_node_name = 5; + * @param value The bytes for primaryNodeName to set. + * @return This builder for chaining. */ public Builder setPrimaryNodeNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPrimaryNodeNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + primaryNodeName_ = value; + onChanged(); return this; } + private int secondaryChunkSize_ ; /** - * optional uint32 secondary_chunk_size = 6; + * uint32 secondary_chunk_size = 6; + * @return The secondaryChunkSize. */ + @java.lang.Override public int getSecondaryChunkSize() { - return instance.getSecondaryChunkSize(); + return secondaryChunkSize_; } /** - * optional uint32 secondary_chunk_size = 6; + * uint32 secondary_chunk_size = 6; + * @param value The secondaryChunkSize to set. + * @return This builder for chaining. */ public Builder setSecondaryChunkSize(int value) { - copyOnWrite(); - instance.setSecondaryChunkSize(value); + + secondaryChunkSize_ = value; + onChanged(); return this; } /** - * optional uint32 secondary_chunk_size = 6; + * uint32 secondary_chunk_size = 6; + * @return This builder for chaining. */ public Builder clearSecondaryChunkSize() { - copyOnWrite(); - instance.clearSecondaryChunkSize(); + + secondaryChunkSize_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ConnectionSecuringResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse other = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - publicKey_ = visitor.visitString(!publicKey_.isEmpty(), publicKey_, - !other.publicKey_.isEmpty(), other.publicKey_); - symmetricKeyLength_ = visitor.visitInt(symmetricKeyLength_ != 0, symmetricKeyLength_, - other.symmetricKeyLength_ != 0, other.symmetricKeyLength_); - heartbeatInterval_ = visitor.visitInt(heartbeatInterval_ != 0, heartbeatInterval_, - other.heartbeatInterval_ != 0, other.heartbeatInterval_); - primaryNodeName_ = visitor.visitString(!primaryNodeName_.isEmpty(), primaryNodeName_, - !other.primaryNodeName_.isEmpty(), other.primaryNodeName_); - secondaryChunkSize_ = visitor.visitInt(secondaryChunkSize_ != 0, secondaryChunkSize_, - other.secondaryChunkSize_ != 0, other.secondaryChunkSize_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - publicKey_ = s; - break; - } - case 24: { - - symmetricKeyLength_ = input.readUInt32(); - break; - } - case 32: { - - heartbeatInterval_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - primaryNodeName_ = s; - break; - } - case 48: { - - secondaryChunkSize_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ConnectionSecuringResponse) + } + // @@protoc_insertion_point(class_scope:proto.ConnectionSecuringResponse) private static final net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ConnectionSecuringResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse(); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSecuringResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionSecuringResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSecuringResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ConnectionSymmetricKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ConnectionSymmetricKey) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional bytes symmetric_key = 2; + * bytes symmetric_key = 2; + * @return The symmetricKey. */ com.google.protobuf.ByteString getSymmetricKey(); /** - * optional uint32 version = 3; + * uint32 version = 3; + * @return The version. */ int getVersion(); } /** * Protobuf type {@code proto.ConnectionSymmetricKey} */ - public static final class ConnectionSymmetricKey extends - com.google.protobuf.GeneratedMessageLite< - ConnectionSymmetricKey, ConnectionSymmetricKey.Builder> implements + public static final class ConnectionSymmetricKey extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ConnectionSymmetricKey) ConnectionSymmetricKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionSymmetricKey.newBuilder() to construct. + private ConnectionSymmetricKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ConnectionSymmetricKey() { symmetricKey_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectionSymmetricKey(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionSymmetricKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + symmetricKey_ = input.readBytes(); + break; + } + case 24: { + + version_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.class, net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int SYMMETRIC_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString symmetricKey_; /** - * optional bytes symmetric_key = 2; + * bytes symmetric_key = 2; + * @return The symmetricKey. */ + @java.lang.Override public com.google.protobuf.ByteString getSymmetricKey() { return symmetricKey_; } - /** - * optional bytes symmetric_key = 2; - */ - private void setSymmetricKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - symmetricKey_ = value; - } - /** - * optional bytes symmetric_key = 2; - */ - private void clearSymmetricKey() { - - symmetricKey_ = getDefaultInstance().getSymmetricKey(); - } public static final int VERSION_FIELD_NUMBER = 3; private int version_; /** - * optional uint32 version = 3; + * uint32 version = 3; + * @return The version. */ + @java.lang.Override public int getVersion() { return version_; } - /** - * optional uint32 version = 3; - */ - private void setVersion(int value) { - - version_ = value; - } - /** - * optional uint32 version = 3; - */ - private void clearVersion() { - - version_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -900,10 +1348,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (version_ != 0) { output.writeUInt32(3, version_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -919,360 +1369,720 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, version_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey)) { + return super.equals(obj); + } + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey other = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getSymmetricKey() + .equals(other.getSymmetricKey())) return false; + if (getVersion() + != other.getVersion()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + SYMMETRIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getSymmetricKey().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ConnectionSymmetricKey} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConnectionSymmetricKey) net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.class, net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.Builder.class); + } + // Construct using net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + symmetricKey_ = com.google.protobuf.ByteString.EMPTY; + + version_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKey_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey getDefaultInstanceForType() { + return net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey build() { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey buildPartial() { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey result = new net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.symmetricKey_ = symmetricKey_; + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey) { + return mergeFrom((net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey other) { + if (other == net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getSymmetricKey() != com.google.protobuf.ByteString.EMPTY) { + setSymmetricKey(other.getSymmetricKey()); + } + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); - return this; + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); - return this; + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; } + private com.google.protobuf.ByteString symmetricKey_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes symmetric_key = 2; + * bytes symmetric_key = 2; + * @return The symmetricKey. */ + @java.lang.Override public com.google.protobuf.ByteString getSymmetricKey() { - return instance.getSymmetricKey(); + return symmetricKey_; } /** - * optional bytes symmetric_key = 2; + * bytes symmetric_key = 2; + * @param value The symmetricKey to set. + * @return This builder for chaining. */ public Builder setSymmetricKey(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSymmetricKey(value); + if (value == null) { + throw new NullPointerException(); + } + + symmetricKey_ = value; + onChanged(); return this; } /** - * optional bytes symmetric_key = 2; + * bytes symmetric_key = 2; + * @return This builder for chaining. */ public Builder clearSymmetricKey() { - copyOnWrite(); - instance.clearSymmetricKey(); + + symmetricKey_ = getDefaultInstance().getSymmetricKey(); + onChanged(); return this; } + private int version_ ; /** - * optional uint32 version = 3; + * uint32 version = 3; + * @return The version. */ + @java.lang.Override public int getVersion() { - return instance.getVersion(); + return version_; } /** - * optional uint32 version = 3; + * uint32 version = 3; + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion(int value) { - copyOnWrite(); - instance.setVersion(value); + + version_ = value; + onChanged(); return this; } /** - * optional uint32 version = 3; + * uint32 version = 3; + * @return This builder for chaining. */ public Builder clearVersion() { - copyOnWrite(); - instance.clearVersion(); + + version_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ConnectionSymmetricKey) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey other = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey) arg1; - request_ = visitor.visitMessage(request_, other.request_); - symmetricKey_ = visitor.visitByteString(symmetricKey_ != com.google.protobuf.ByteString.EMPTY, symmetricKey_, - other.symmetricKey_ != com.google.protobuf.ByteString.EMPTY, other.symmetricKey_); - version_ = visitor.visitInt(version_ != 0, version_, - other.version_ != 0, other.version_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - symmetricKey_ = input.readBytes(); - break; - } - case 24: { - - version_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ConnectionSymmetricKey) + } + // @@protoc_insertion_point(class_scope:proto.ConnectionSymmetricKey) private static final net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ConnectionSymmetricKey(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey(); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSymmetricKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionSymmetricKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ConnectionSymmetricKeyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ConnectionSymmetricKeyResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status getStatus(); /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @return The symmetricMethod. */ java.lang.String getSymmetricMethod(); /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @return The bytes for symmetricMethod. */ com.google.protobuf.ByteString getSymmetricMethodBytes(); /** - * optional uint32 symmetric_iv_size = 4; + * uint32 symmetric_iv_size = 4; + * @return The symmetricIvSize. */ int getSymmetricIvSize(); /** - * optional bool security_issue = 5; + * bool security_issue = 5; + * @return The securityIssue. */ boolean getSecurityIssue(); } /** * Protobuf type {@code proto.ConnectionSymmetricKeyResponse} */ - public static final class ConnectionSymmetricKeyResponse extends - com.google.protobuf.GeneratedMessageLite< - ConnectionSymmetricKeyResponse, ConnectionSymmetricKeyResponse.Builder> implements + public static final class ConnectionSymmetricKeyResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ConnectionSymmetricKeyResponse) ConnectionSymmetricKeyResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionSymmetricKeyResponse.newBuilder() to construct. + private ConnectionSymmetricKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ConnectionSymmetricKeyResponse() { + status_ = 0; symmetricMethod_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectionSymmetricKeyResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionSymmetricKeyResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + symmetricMethod_ = s; + break; + } + case 32: { + + symmetricIvSize_ = input.readUInt32(); + break; + } + case 40: { + + securityIssue_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.class, net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Builder.class); + } + /** * Protobuf enum {@code proto.ConnectionSymmetricKeyResponse.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * REJECTED = 0; */ @@ -1295,10 +2105,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -1306,6 +2122,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return REJECTED; @@ -1326,6 +2146,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -1338,186 +2189,120 @@ private Status(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status getStatus() { - net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status result = net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status result = net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status.UNRECOGNIZED : result; } - /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int SYMMETRIC_METHOD_FIELD_NUMBER = 3; - private java.lang.String symmetricMethod_; + private volatile java.lang.Object symmetricMethod_; /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @return The symmetricMethod. */ + @java.lang.Override public java.lang.String getSymmetricMethod() { - return symmetricMethod_; + java.lang.Object ref = symmetricMethod_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symmetricMethod_ = s; + return s; + } } /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @return The bytes for symmetricMethod. */ + @java.lang.Override public com.google.protobuf.ByteString getSymmetricMethodBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(symmetricMethod_); - } - /** - * optional string symmetric_method = 3; - */ - private void setSymmetricMethod( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symmetricMethod_ = value; - } - /** - * optional string symmetric_method = 3; - */ - private void clearSymmetricMethod() { - - symmetricMethod_ = getDefaultInstance().getSymmetricMethod(); - } - /** - * optional string symmetric_method = 3; - */ - private void setSymmetricMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symmetricMethod_ = value.toStringUtf8(); + java.lang.Object ref = symmetricMethod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + symmetricMethod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SYMMETRIC_IV_SIZE_FIELD_NUMBER = 4; private int symmetricIvSize_; /** - * optional uint32 symmetric_iv_size = 4; + * uint32 symmetric_iv_size = 4; + * @return The symmetricIvSize. */ + @java.lang.Override public int getSymmetricIvSize() { return symmetricIvSize_; } - /** - * optional uint32 symmetric_iv_size = 4; - */ - private void setSymmetricIvSize(int value) { - - symmetricIvSize_ = value; - } - /** - * optional uint32 symmetric_iv_size = 4; - */ - private void clearSymmetricIvSize() { - - symmetricIvSize_ = 0; - } public static final int SECURITY_ISSUE_FIELD_NUMBER = 5; private boolean securityIssue_; /** - * optional bool security_issue = 5; + * bool security_issue = 5; + * @return The securityIssue. */ + @java.lang.Override public boolean getSecurityIssue() { return securityIssue_; } - /** - * optional bool security_issue = 5; - */ - private void setSecurityIssue(boolean value) { - - securityIssue_ = value; - } - /** - * optional bool security_issue = 5; - */ - private void clearSecurityIssue() { - - securityIssue_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1526,8 +2311,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status.REJECTED.getNumber()) { output.writeEnum(2, status_); } - if (!symmetricMethod_.isEmpty()) { - output.writeString(3, getSymmetricMethod()); + if (!getSymmetricMethodBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, symmetricMethod_); } if (symmetricIvSize_ != 0) { output.writeUInt32(4, symmetricIvSize_); @@ -1535,10 +2320,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (securityIssue_ != false) { output.writeBool(5, securityIssue_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1550,9 +2337,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } - if (!symmetricMethod_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getSymmetricMethod()); + if (!getSymmetricMethodBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, symmetricMethod_); } if (symmetricIvSize_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1562,396 +2348,763 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, securityIssue_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse other = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (status_ != other.status_) return false; + if (!getSymmetricMethod() + .equals(other.getSymmetricMethod())) return false; + if (getSymmetricIvSize() + != other.getSymmetricIvSize()) return false; + if (getSecurityIssue() + != other.getSecurityIssue()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + SYMMETRIC_METHOD_FIELD_NUMBER; + hash = (53 * hash) + getSymmetricMethod().hashCode(); + hash = (37 * hash) + SYMMETRIC_IV_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSymmetricIvSize(); + hash = (37 * hash) + SECURITY_ISSUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSecurityIssue()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ConnectionSymmetricKeyResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConnectionSymmetricKeyResponse) net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.class, net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + symmetricMethod_ = ""; + + symmetricIvSize_ = 0; + + securityIssue_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoConnectionSecuring.internal_static_proto_ConnectionSymmetricKeyResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse build() { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse buildPartial() { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse result = new net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.symmetricMethod_ = symmetricMethod_; + result.symmetricIvSize_ = symmetricIvSize_; + result.securityIssue_ = securityIssue_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse) { + return mergeFrom((net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse other) { + if (other == net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getSymmetricMethod().isEmpty()) { + symmetricMethod_ = other.symmetricMethod_; + onChanged(); + } + if (other.getSymmetricIvSize() != 0) { + setSymmetricIvSize(other.getSymmetricIvSize()); + } + if (other.getSecurityIssue() != false) { + setSecurityIssue(other.getSecurityIssue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ = 0; /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status result = net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status.UNRECOGNIZED : result; } /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * .proto.ConnectionSymmetricKeyResponse.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private java.lang.Object symmetricMethod_ = ""; /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @return The symmetricMethod. */ public java.lang.String getSymmetricMethod() { - return instance.getSymmetricMethod(); + java.lang.Object ref = symmetricMethod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symmetricMethod_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @return The bytes for symmetricMethod. */ public com.google.protobuf.ByteString getSymmetricMethodBytes() { - return instance.getSymmetricMethodBytes(); + java.lang.Object ref = symmetricMethod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + symmetricMethod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @param value The symmetricMethod to set. + * @return This builder for chaining. */ public Builder setSymmetricMethod( java.lang.String value) { - copyOnWrite(); - instance.setSymmetricMethod(value); + if (value == null) { + throw new NullPointerException(); + } + + symmetricMethod_ = value; + onChanged(); return this; } /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @return This builder for chaining. */ public Builder clearSymmetricMethod() { - copyOnWrite(); - instance.clearSymmetricMethod(); + + symmetricMethod_ = getDefaultInstance().getSymmetricMethod(); + onChanged(); return this; } /** - * optional string symmetric_method = 3; + * string symmetric_method = 3; + * @param value The bytes for symmetricMethod to set. + * @return This builder for chaining. */ public Builder setSymmetricMethodBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSymmetricMethodBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symmetricMethod_ = value; + onChanged(); return this; } + private int symmetricIvSize_ ; /** - * optional uint32 symmetric_iv_size = 4; + * uint32 symmetric_iv_size = 4; + * @return The symmetricIvSize. */ + @java.lang.Override public int getSymmetricIvSize() { - return instance.getSymmetricIvSize(); + return symmetricIvSize_; } /** - * optional uint32 symmetric_iv_size = 4; + * uint32 symmetric_iv_size = 4; + * @param value The symmetricIvSize to set. + * @return This builder for chaining. */ public Builder setSymmetricIvSize(int value) { - copyOnWrite(); - instance.setSymmetricIvSize(value); + + symmetricIvSize_ = value; + onChanged(); return this; } /** - * optional uint32 symmetric_iv_size = 4; + * uint32 symmetric_iv_size = 4; + * @return This builder for chaining. */ public Builder clearSymmetricIvSize() { - copyOnWrite(); - instance.clearSymmetricIvSize(); + + symmetricIvSize_ = 0; + onChanged(); return this; } + private boolean securityIssue_ ; /** - * optional bool security_issue = 5; + * bool security_issue = 5; + * @return The securityIssue. */ + @java.lang.Override public boolean getSecurityIssue() { - return instance.getSecurityIssue(); + return securityIssue_; } /** - * optional bool security_issue = 5; + * bool security_issue = 5; + * @param value The securityIssue to set. + * @return This builder for chaining. */ public Builder setSecurityIssue(boolean value) { - copyOnWrite(); - instance.setSecurityIssue(value); + + securityIssue_ = value; + onChanged(); return this; } /** - * optional bool security_issue = 5; + * bool security_issue = 5; + * @return This builder for chaining. */ public Builder clearSecurityIssue() { - copyOnWrite(); - instance.clearSecurityIssue(); + + securityIssue_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ConnectionSymmetricKeyResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse other = (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - symmetricMethod_ = visitor.visitString(!symmetricMethod_.isEmpty(), symmetricMethod_, - !other.symmetricMethod_.isEmpty(), other.symmetricMethod_); - symmetricIvSize_ = visitor.visitInt(symmetricIvSize_ != 0, symmetricIvSize_, - other.symmetricIvSize_ != 0, other.symmetricIvSize_); - securityIssue_ = visitor.visitBoolean(securityIssue_ != false, securityIssue_, - other.securityIssue_ != false, other.securityIssue_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - symmetricMethod_ = s; - break; - } - case 32: { - - symmetricIvSize_ = input.readUInt32(); - break; - } - case 40: { - - securityIssue_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ConnectionSymmetricKeyResponse) + } + // @@protoc_insertion_point(class_scope:proto.ConnectionSymmetricKeyResponse) private static final net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ConnectionSymmetricKeyResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse(); } public static net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSymmetricKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionSymmetricKeyResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoConnectionSecuring.ConnectionSymmetricKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ConnectionSecuringResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ConnectionSecuringResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ConnectionSymmetricKey_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ConnectionSymmetricKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ConnectionSymmetricKeyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ConnectionSymmetricKeyResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030ConnectionSecuring.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"\306\001\n\032ConnectionS" + + "ecuringResponse\022!\n\010response\030\001 \001(\0132\017.prot" + + "o.Response\022\022\n\npublic_key\030\002 \001(\t\022\034\n\024symmet" + + "ric_key_length\030\003 \001(\r\022\032\n\022heartbeat_interv" + + "al\030\004 \001(\r\022\031\n\021primary_node_name\030\005 \001(\t\022\034\n\024s" + + "econdary_chunk_size\030\006 \001(\r\"a\n\026ConnectionS" + + "ymmetricKey\022\037\n\007request\030\001 \001(\0132\016.proto.Req" + + "uest\022\025\n\rsymmetric_key\030\002 \001(\014\022\017\n\007version\030\003" + + " \001(\r\"\364\001\n\036ConnectionSymmetricKeyResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\022<\n\006st" + + "atus\030\002 \001(\0162,.proto.ConnectionSymmetricKe" + + "yResponse.Status\022\030\n\020symmetric_method\030\003 \001" + + "(\t\022\031\n\021symmetric_iv_size\030\004 \001(\r\022\026\n\016securit" + + "y_issue\030\005 \001(\010\"$\n\006Status\022\014\n\010REJECTED\020\000\022\014\n" + + "\010ACCEPTED\020\001B)\n\016net.iGap.protoB\027ProtoConn" + + "ectionSecuringb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ConnectionSecuringResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ConnectionSecuringResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ConnectionSecuringResponse_descriptor, + new java.lang.String[] { "Response", "PublicKey", "SymmetricKeyLength", "HeartbeatInterval", "PrimaryNodeName", "SecondaryChunkSize", }); + internal_static_proto_ConnectionSymmetricKey_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ConnectionSymmetricKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ConnectionSymmetricKey_descriptor, + new java.lang.String[] { "Request", "SymmetricKey", "Version", }); + internal_static_proto_ConnectionSymmetricKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_proto_ConnectionSymmetricKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ConnectionSymmetricKeyResponse_descriptor, + new java.lang.String[] { "Response", "Status", "SymmetricMethod", "SymmetricIvSize", "SecurityIssue", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoError.java b/src/main/java/net/iGap/proto/ProtoError.java index a6e625c..2e4e983 100644 --- a/src/main/java/net/iGap/proto/ProtoError.java +++ b/src/main/java/net/iGap/proto/ProtoError.java @@ -8,250 +8,304 @@ private ProtoError() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ErrorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ErrorResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 major_code = 2; + * uint32 major_code = 2; + * @return The majorCode. */ int getMajorCode(); /** - * optional uint32 minor_code = 3; + * uint32 minor_code = 3; + * @return The minorCode. */ int getMinorCode(); /** - * optional uint32 wait = 4; + * uint32 wait = 4; + * @return The wait. */ int getWait(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint64 request_action_id = 6; + * uint64 request_action_id = 6; + * @return The requestActionId. */ long getRequestActionId(); } /** * Protobuf type {@code proto.ErrorResponse} */ - public static final class ErrorResponse extends - com.google.protobuf.GeneratedMessageLite< - ErrorResponse, ErrorResponse.Builder> implements + public static final class ErrorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ErrorResponse) ErrorResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ErrorResponse.newBuilder() to construct. + private ErrorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ErrorResponse() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ErrorResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ErrorResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + majorCode_ = input.readUInt32(); + break; + } + case 24: { + + minorCode_ = input.readUInt32(); + break; + } + case 32: { + + wait_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 48: { + + requestActionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoError.internal_static_proto_ErrorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoError.internal_static_proto_ErrorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoError.ErrorResponse.class, net.iGap.proto.ProtoError.ErrorResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int MAJOR_CODE_FIELD_NUMBER = 2; private int majorCode_; /** - * optional uint32 major_code = 2; + * uint32 major_code = 2; + * @return The majorCode. */ + @java.lang.Override public int getMajorCode() { return majorCode_; } - /** - * optional uint32 major_code = 2; - */ - private void setMajorCode(int value) { - - majorCode_ = value; - } - /** - * optional uint32 major_code = 2; - */ - private void clearMajorCode() { - - majorCode_ = 0; - } public static final int MINOR_CODE_FIELD_NUMBER = 3; private int minorCode_; /** - * optional uint32 minor_code = 3; + * uint32 minor_code = 3; + * @return The minorCode. */ + @java.lang.Override public int getMinorCode() { return minorCode_; } - /** - * optional uint32 minor_code = 3; - */ - private void setMinorCode(int value) { - - minorCode_ = value; - } - /** - * optional uint32 minor_code = 3; - */ - private void clearMinorCode() { - - minorCode_ = 0; - } public static final int WAIT_FIELD_NUMBER = 4; private int wait_; /** - * optional uint32 wait = 4; + * uint32 wait = 4; + * @return The wait. */ + @java.lang.Override public int getWait() { return wait_; } - /** - * optional uint32 wait = 4; - */ - private void setWait(int value) { - - wait_ = value; - } - /** - * optional uint32 wait = 4; - */ - private void clearWait() { - - wait_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int REQUEST_ACTION_ID_FIELD_NUMBER = 6; private long requestActionId_; /** - * optional uint64 request_action_id = 6; + * uint64 request_action_id = 6; + * @return The requestActionId. */ + @java.lang.Override public long getRequestActionId() { return requestActionId_; } - /** - * optional uint64 request_action_id = 6; - */ - private void setRequestActionId(long value) { - - requestActionId_ = value; - } - /** - * optional uint64 request_action_id = 6; - */ - private void clearRequestActionId() { - - requestActionId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -266,16 +320,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (wait_ != 0) { output.writeUInt32(4, wait_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } if (requestActionId_ != 0L) { output.writeUInt64(6, requestActionId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -295,420 +351,754 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, wait_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } if (requestActionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, requestActionId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoError.ErrorResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoError.ErrorResponse other = (net.iGap.proto.ProtoError.ErrorResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getMajorCode() + != other.getMajorCode()) return false; + if (getMinorCode() + != other.getMinorCode()) return false; + if (getWait() + != other.getWait()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (getRequestActionId() + != other.getRequestActionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + MAJOR_CODE_FIELD_NUMBER; + hash = (53 * hash) + getMajorCode(); + hash = (37 * hash) + MINOR_CODE_FIELD_NUMBER; + hash = (53 * hash) + getMinorCode(); + hash = (37 * hash) + WAIT_FIELD_NUMBER; + hash = (53 * hash) + getWait(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + REQUEST_ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestActionId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoError.ErrorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoError.ErrorResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoError.ErrorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoError.ErrorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ErrorResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoError.ErrorResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ErrorResponse) net.iGap.proto.ProtoError.ErrorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoError.internal_static_proto_ErrorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoError.internal_static_proto_ErrorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoError.ErrorResponse.class, net.iGap.proto.ProtoError.ErrorResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoError.ErrorResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + majorCode_ = 0; + + minorCode_ = 0; + + wait_ = 0; + + message_ = ""; + + requestActionId_ = 0L; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoError.internal_static_proto_ErrorResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoError.ErrorResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoError.ErrorResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoError.ErrorResponse build() { + net.iGap.proto.ProtoError.ErrorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoError.ErrorResponse buildPartial() { + net.iGap.proto.ProtoError.ErrorResponse result = new net.iGap.proto.ProtoError.ErrorResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.majorCode_ = majorCode_; + result.minorCode_ = minorCode_; + result.wait_ = wait_; + result.message_ = message_; + result.requestActionId_ = requestActionId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoError.ErrorResponse) { + return mergeFrom((net.iGap.proto.ProtoError.ErrorResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoError.ErrorResponse other) { + if (other == net.iGap.proto.ProtoError.ErrorResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getMajorCode() != 0) { + setMajorCode(other.getMajorCode()); + } + if (other.getMinorCode() != 0) { + setMinorCode(other.getMinorCode()); + } + if (other.getWait() != 0) { + setWait(other.getWait()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getRequestActionId() != 0L) { + setRequestActionId(other.getRequestActionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoError.ErrorResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoError.ErrorResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int majorCode_ ; /** - * optional uint32 major_code = 2; + * uint32 major_code = 2; + * @return The majorCode. */ + @java.lang.Override public int getMajorCode() { - return instance.getMajorCode(); + return majorCode_; } /** - * optional uint32 major_code = 2; + * uint32 major_code = 2; + * @param value The majorCode to set. + * @return This builder for chaining. */ public Builder setMajorCode(int value) { - copyOnWrite(); - instance.setMajorCode(value); + + majorCode_ = value; + onChanged(); return this; } /** - * optional uint32 major_code = 2; + * uint32 major_code = 2; + * @return This builder for chaining. */ public Builder clearMajorCode() { - copyOnWrite(); - instance.clearMajorCode(); + + majorCode_ = 0; + onChanged(); return this; } + private int minorCode_ ; /** - * optional uint32 minor_code = 3; + * uint32 minor_code = 3; + * @return The minorCode. */ + @java.lang.Override public int getMinorCode() { - return instance.getMinorCode(); + return minorCode_; } /** - * optional uint32 minor_code = 3; + * uint32 minor_code = 3; + * @param value The minorCode to set. + * @return This builder for chaining. */ public Builder setMinorCode(int value) { - copyOnWrite(); - instance.setMinorCode(value); + + minorCode_ = value; + onChanged(); return this; } /** - * optional uint32 minor_code = 3; + * uint32 minor_code = 3; + * @return This builder for chaining. */ public Builder clearMinorCode() { - copyOnWrite(); - instance.clearMinorCode(); + + minorCode_ = 0; + onChanged(); return this; } + private int wait_ ; /** - * optional uint32 wait = 4; + * uint32 wait = 4; + * @return The wait. */ + @java.lang.Override public int getWait() { - return instance.getWait(); + return wait_; } /** - * optional uint32 wait = 4; + * uint32 wait = 4; + * @param value The wait to set. + * @return This builder for chaining. */ public Builder setWait(int value) { - copyOnWrite(); - instance.setWait(value); + + wait_ = value; + onChanged(); return this; } /** - * optional uint32 wait = 4; + * uint32 wait = 4; + * @return This builder for chaining. */ public Builder clearWait() { - copyOnWrite(); - instance.clearWait(); + + wait_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private long requestActionId_ ; /** - * optional uint64 request_action_id = 6; + * uint64 request_action_id = 6; + * @return The requestActionId. */ + @java.lang.Override public long getRequestActionId() { - return instance.getRequestActionId(); + return requestActionId_; } /** - * optional uint64 request_action_id = 6; + * uint64 request_action_id = 6; + * @param value The requestActionId to set. + * @return This builder for chaining. */ public Builder setRequestActionId(long value) { - copyOnWrite(); - instance.setRequestActionId(value); + + requestActionId_ = value; + onChanged(); return this; } /** - * optional uint64 request_action_id = 6; + * uint64 request_action_id = 6; + * @return This builder for chaining. */ public Builder clearRequestActionId() { - copyOnWrite(); - instance.clearRequestActionId(); + + requestActionId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ErrorResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoError.ErrorResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoError.ErrorResponse other = (net.iGap.proto.ProtoError.ErrorResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - majorCode_ = visitor.visitInt(majorCode_ != 0, majorCode_, - other.majorCode_ != 0, other.majorCode_); - minorCode_ = visitor.visitInt(minorCode_ != 0, minorCode_, - other.minorCode_ != 0, other.minorCode_); - wait_ = visitor.visitInt(wait_ != 0, wait_, - other.wait_ != 0, other.wait_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - requestActionId_ = visitor.visitLong(requestActionId_ != 0L, requestActionId_, - other.requestActionId_ != 0L, other.requestActionId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - majorCode_ = input.readUInt32(); - break; - } - case 24: { - - minorCode_ = input.readUInt32(); - break; - } - case 32: { - - wait_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 48: { - - requestActionId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoError.ErrorResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ErrorResponse) + } + // @@protoc_insertion_point(class_scope:proto.ErrorResponse) private static final net.iGap.proto.ProtoError.ErrorResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ErrorResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoError.ErrorResponse(); } public static net.iGap.proto.ProtoError.ErrorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoError.ErrorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ErrorResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ErrorResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\013Error.proto\022\005proto\032\016Response.proto\"\224\001\n" + + "\rErrorResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022\022\n\nmajor_code\030\002 \001(\r\022\022\n\nminor_c" + + "ode\030\003 \001(\r\022\014\n\004wait\030\004 \001(\r\022\017\n\007message\030\005 \001(\t" + + "\022\031\n\021request_action_id\030\006 \001(\004B\034\n\016net.iGap." + + "protoB\nProtoErrorb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_ErrorResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ErrorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ErrorResponse_descriptor, + new java.lang.String[] { "Response", "MajorCode", "MinorCode", "Wait", "Message", "RequestActionId", }); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoFileDownload.java b/src/main/java/net/iGap/proto/ProtoFileDownload.java index b5a0a66..1391037 100644 --- a/src/main/java/net/iGap/proto/ProtoFileDownload.java +++ b/src/main/java/net/iGap/proto/ProtoFileDownload.java @@ -8,64 +8,185 @@ private ProtoFileDownload() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface FileDownloadOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileDownload) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return The offset. */ long getOffset(); /** - * optional int32 max_limit = 4; + * int32 max_limit = 4; + * @return The maxLimit. */ int getMaxLimit(); /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @return The enum numeric value on the wire for selector. */ int getSelectorValue(); /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @return The selector. */ net.iGap.proto.ProtoFileDownload.FileDownload.Selector getSelector(); } /** * Protobuf type {@code proto.FileDownload} */ - public static final class FileDownload extends - com.google.protobuf.GeneratedMessageLite< - FileDownload, FileDownload.Builder> implements + public static final class FileDownload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileDownload) FileDownloadOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileDownload.newBuilder() to construct. + private FileDownload(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileDownload() { token_ = ""; + selector_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileDownload(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileDownload( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + + offset_ = input.readInt64(); + break; + } + case 32: { + + maxLimit_ = input.readInt32(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + selector_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileDownload.FileDownload.class, net.iGap.proto.ProtoFileDownload.FileDownload.Builder.class); + } + /** * Protobuf enum {@code proto.FileDownload.Selector} */ public enum Selector - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * FILE = 0; */ @@ -104,10 +225,16 @@ public enum Selector public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -115,6 +242,10 @@ public static Selector valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Selector forNumber(int value) { switch (value) { case 0: return FILE; @@ -137,6 +268,37 @@ public Selector findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoFileDownload.FileDownload.getDescriptor().getEnumTypes().get(0); + } + + private static final Selector[] VALUES = values(); + + public static Selector valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Selector(int value) { @@ -149,193 +311,127 @@ private Selector(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int OFFSET_FIELD_NUMBER = 3; private long offset_; /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return The offset. */ + @java.lang.Override public long getOffset() { return offset_; } - /** - * optional int64 offset = 3; - */ - private void setOffset(long value) { - - offset_ = value; - } - /** - * optional int64 offset = 3; - */ - private void clearOffset() { - - offset_ = 0L; - } public static final int MAX_LIMIT_FIELD_NUMBER = 4; private int maxLimit_; /** - * optional int32 max_limit = 4; + * int32 max_limit = 4; + * @return The maxLimit. */ + @java.lang.Override public int getMaxLimit() { return maxLimit_; } - /** - * optional int32 max_limit = 4; - */ - private void setMaxLimit(int value) { - - maxLimit_ = value; - } - /** - * optional int32 max_limit = 4; - */ - private void clearMaxLimit() { - - maxLimit_ = 0; - } public static final int SELECTOR_FIELD_NUMBER = 5; private int selector_; /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @return The enum numeric value on the wire for selector. */ - public int getSelectorValue() { + @java.lang.Override public int getSelectorValue() { return selector_; } /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @return The selector. */ - public net.iGap.proto.ProtoFileDownload.FileDownload.Selector getSelector() { - net.iGap.proto.ProtoFileDownload.FileDownload.Selector result = net.iGap.proto.ProtoFileDownload.FileDownload.Selector.forNumber(selector_); + @java.lang.Override public net.iGap.proto.ProtoFileDownload.FileDownload.Selector getSelector() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoFileDownload.FileDownload.Selector result = net.iGap.proto.ProtoFileDownload.FileDownload.Selector.valueOf(selector_); return result == null ? net.iGap.proto.ProtoFileDownload.FileDownload.Selector.UNRECOGNIZED : result; } - /** - * optional .proto.FileDownload.Selector selector = 5; - */ - private void setSelectorValue(int value) { - selector_ = value; - } - /** - * optional .proto.FileDownload.Selector selector = 5; - */ - private void setSelector(net.iGap.proto.ProtoFileDownload.FileDownload.Selector value) { - if (value == null) { - throw new NullPointerException(); - } - - selector_ = value.getNumber(); - } - /** - * optional .proto.FileDownload.Selector selector = 5; - */ - private void clearSelector() { - - selector_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } if (offset_ != 0L) { output.writeInt64(3, offset_); @@ -346,10 +442,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (selector_ != net.iGap.proto.ProtoFileDownload.FileDownload.Selector.FILE.getNumber()) { output.writeEnum(5, selector_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -357,9 +455,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -373,501 +470,865 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, selector_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileDownload.FileDownload)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileDownload.FileDownload other = (net.iGap.proto.ProtoFileDownload.FileDownload) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (getOffset() + != other.getOffset()) return false; + if (getMaxLimit() + != other.getMaxLimit()) return false; + if (selector_ != other.selector_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); + hash = (37 * hash) + MAX_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getMaxLimit(); + hash = (37 * hash) + SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + selector_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileDownload.FileDownload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileDownload.FileDownload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileDownload} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileDownload.FileDownload, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileDownload) net.iGap.proto.ProtoFileDownload.FileDownloadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileDownload.FileDownload.class, net.iGap.proto.ProtoFileDownload.FileDownload.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileDownload.FileDownload.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + offset_ = 0L; + + maxLimit_ = 0; + + selector_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownload_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownload getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileDownload.FileDownload.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownload build() { + net.iGap.proto.ProtoFileDownload.FileDownload result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownload buildPartial() { + net.iGap.proto.ProtoFileDownload.FileDownload result = new net.iGap.proto.ProtoFileDownload.FileDownload(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + result.offset_ = offset_; + result.maxLimit_ = maxLimit_; + result.selector_ = selector_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileDownload.FileDownload) { + return mergeFrom((net.iGap.proto.ProtoFileDownload.FileDownload)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileDownload.FileDownload other) { + if (other == net.iGap.proto.ProtoFileDownload.FileDownload.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (other.getMaxLimit() != 0) { + setMaxLimit(other.getMaxLimit()); + } + if (other.selector_ != 0) { + setSelectorValue(other.getSelectorValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileDownload.FileDownload parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileDownload.FileDownload) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private long offset_ ; /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return The offset. */ + @java.lang.Override public long getOffset() { - return instance.getOffset(); + return offset_; } /** - * optional int64 offset = 3; + * int64 offset = 3; + * @param value The offset to set. + * @return This builder for chaining. */ public Builder setOffset(long value) { - copyOnWrite(); - instance.setOffset(value); + + offset_ = value; + onChanged(); return this; } /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return This builder for chaining. */ public Builder clearOffset() { - copyOnWrite(); - instance.clearOffset(); + + offset_ = 0L; + onChanged(); return this; } + private int maxLimit_ ; /** - * optional int32 max_limit = 4; + * int32 max_limit = 4; + * @return The maxLimit. */ + @java.lang.Override public int getMaxLimit() { - return instance.getMaxLimit(); + return maxLimit_; } /** - * optional int32 max_limit = 4; + * int32 max_limit = 4; + * @param value The maxLimit to set. + * @return This builder for chaining. */ public Builder setMaxLimit(int value) { - copyOnWrite(); - instance.setMaxLimit(value); + + maxLimit_ = value; + onChanged(); return this; } /** - * optional int32 max_limit = 4; + * int32 max_limit = 4; + * @return This builder for chaining. */ public Builder clearMaxLimit() { - copyOnWrite(); - instance.clearMaxLimit(); + + maxLimit_ = 0; + onChanged(); return this; } + private int selector_ = 0; /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @return The enum numeric value on the wire for selector. */ - public int getSelectorValue() { - return instance.getSelectorValue(); + @java.lang.Override public int getSelectorValue() { + return selector_; } /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @param value The enum numeric value on the wire for selector to set. + * @return This builder for chaining. */ public Builder setSelectorValue(int value) { - copyOnWrite(); - instance.setSelectorValue(value); + + selector_ = value; + onChanged(); return this; } /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @return The selector. */ + @java.lang.Override public net.iGap.proto.ProtoFileDownload.FileDownload.Selector getSelector() { - return instance.getSelector(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoFileDownload.FileDownload.Selector result = net.iGap.proto.ProtoFileDownload.FileDownload.Selector.valueOf(selector_); + return result == null ? net.iGap.proto.ProtoFileDownload.FileDownload.Selector.UNRECOGNIZED : result; } /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @param value The selector to set. + * @return This builder for chaining. */ public Builder setSelector(net.iGap.proto.ProtoFileDownload.FileDownload.Selector value) { - copyOnWrite(); - instance.setSelector(value); + if (value == null) { + throw new NullPointerException(); + } + + selector_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.FileDownload.Selector selector = 5; + * .proto.FileDownload.Selector selector = 5; + * @return This builder for chaining. */ public Builder clearSelector() { - copyOnWrite(); - instance.clearSelector(); + + selector_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileDownload) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileDownload.FileDownload(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileDownload.FileDownload other = (net.iGap.proto.ProtoFileDownload.FileDownload) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - offset_ = visitor.visitLong(offset_ != 0L, offset_, - other.offset_ != 0L, other.offset_); - maxLimit_ = visitor.visitInt(maxLimit_ != 0, maxLimit_, - other.maxLimit_ != 0, other.maxLimit_); - selector_ = visitor.visitInt(selector_ != 0, selector_, other.selector_ != 0, other.selector_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 24: { - - offset_ = input.readInt64(); - break; - } - case 32: { - - maxLimit_ = input.readInt32(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - selector_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileDownload.FileDownload.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileDownload) + } + // @@protoc_insertion_point(class_scope:proto.FileDownload) private static final net.iGap.proto.ProtoFileDownload.FileDownload DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileDownload(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileDownload.FileDownload(); } public static net.iGap.proto.ProtoFileDownload.FileDownload getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileDownload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileDownload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownload getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface FileDownloadResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileDownloadResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return The bytes. */ com.google.protobuf.ByteString getBytes(); } /** * Protobuf type {@code proto.FileDownloadResponse} */ - public static final class FileDownloadResponse extends - com.google.protobuf.GeneratedMessageLite< - FileDownloadResponse, FileDownloadResponse.Builder> implements + public static final class FileDownloadResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileDownloadResponse) FileDownloadResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileDownloadResponse.newBuilder() to construct. + private FileDownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileDownloadResponse() { bytes_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileDownloadResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileDownloadResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + + bytes_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownloadResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownloadResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileDownload.FileDownloadResponse.class, net.iGap.proto.ProtoFileDownload.FileDownloadResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int BYTES_FIELD_NUMBER = 4; private com.google.protobuf.ByteString bytes_; /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return The bytes. */ + @java.lang.Override public com.google.protobuf.ByteString getBytes() { return bytes_; } - /** - * optional bytes bytes = 4; - */ - private void setBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - bytes_ = value; - } - /** - * optional bytes bytes = 4; - */ - private void clearBytes() { - - bytes_ = getDefaultInstance().getBytes(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -876,10 +1337,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!bytes_.isEmpty()) { output.writeBytes(4, bytes_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -891,274 +1354,557 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, bytes_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileDownload.FileDownloadResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileDownload.FileDownloadResponse other = (net.iGap.proto.ProtoFileDownload.FileDownloadResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getBytes() + .equals(other.getBytes())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + BYTES_FIELD_NUMBER; + hash = (53 * hash) + getBytes().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileDownload.FileDownloadResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileDownloadResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileDownload.FileDownloadResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileDownloadResponse) net.iGap.proto.ProtoFileDownload.FileDownloadResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownloadResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownloadResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileDownload.FileDownloadResponse.class, net.iGap.proto.ProtoFileDownload.FileDownloadResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileDownload.FileDownloadResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + bytes_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileDownload.internal_static_proto_FileDownloadResponse_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownloadResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileDownload.FileDownloadResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownloadResponse build() { + net.iGap.proto.ProtoFileDownload.FileDownloadResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownloadResponse buildPartial() { + net.iGap.proto.ProtoFileDownload.FileDownloadResponse result = new net.iGap.proto.ProtoFileDownload.FileDownloadResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.bytes_ = bytes_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileDownload.FileDownloadResponse) { + return mergeFrom((net.iGap.proto.ProtoFileDownload.FileDownloadResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileDownload.FileDownloadResponse other) { + if (other == net.iGap.proto.ProtoFileDownload.FileDownloadResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getBytes() != com.google.protobuf.ByteString.EMPTY) { + setBytes(other.getBytes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileDownload.FileDownloadResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileDownload.FileDownloadResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private com.google.protobuf.ByteString bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return The bytes. */ + @java.lang.Override public com.google.protobuf.ByteString getBytes() { - return instance.getBytes(); + return bytes_; } /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @param value The bytes to set. + * @return This builder for chaining. */ public Builder setBytes(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBytes(value); + if (value == null) { + throw new NullPointerException(); + } + + bytes_ = value; + onChanged(); return this; } /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return This builder for chaining. */ public Builder clearBytes() { - copyOnWrite(); - instance.clearBytes(); + + bytes_ = getDefaultInstance().getBytes(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileDownloadResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileDownload.FileDownloadResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileDownload.FileDownloadResponse other = (net.iGap.proto.ProtoFileDownload.FileDownloadResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - bytes_ = visitor.visitByteString(bytes_ != com.google.protobuf.ByteString.EMPTY, bytes_, - other.bytes_ != com.google.protobuf.ByteString.EMPTY, other.bytes_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - - bytes_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileDownload.FileDownloadResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileDownloadResponse) + } + // @@protoc_insertion_point(class_scope:proto.FileDownloadResponse) private static final net.iGap.proto.ProtoFileDownload.FileDownloadResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileDownloadResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileDownload.FileDownloadResponse(); } public static net.iGap.proto.ProtoFileDownload.FileDownloadResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileDownloadResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileDownloadResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileDownload.FileDownloadResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileDownload_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileDownload_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileDownloadResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileDownloadResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022FileDownload.proto\022\005proto\032\rRequest.pro" + + "to\032\016Response.proto\"\351\001\n\014FileDownload\022\037\n\007r" + + "equest\030\001 \001(\0132\016.proto.Request\022\r\n\005token\030\002 " + + "\001(\t\022\016\n\006offset\030\003 \001(\003\022\021\n\tmax_limit\030\004 \001(\005\022." + + "\n\010selector\030\005 \001(\0162\034.proto.FileDownload.Se" + + "lector\"V\n\010Selector\022\010\n\004FILE\020\000\022\023\n\017SMALL_TH" + + "UMBNAIL\020\001\022\023\n\017LARGE_THUMBNAIL\020\002\022\026\n\022WAVEFO" + + "RM_THUMBNAIL\020\003\"H\n\024FileDownloadResponse\022!" + + "\n\010response\030\001 \001(\0132\017.proto.Response\022\r\n\005byt" + + "es\030\004 \001(\014B#\n\016net.iGap.protoB\021ProtoFileDow" + + "nloadb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_FileDownload_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_FileDownload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileDownload_descriptor, + new java.lang.String[] { "Request", "Token", "Offset", "MaxLimit", "Selector", }); + internal_static_proto_FileDownloadResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_FileDownloadResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileDownloadResponse_descriptor, + new java.lang.String[] { "Response", "Bytes", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoFileInfo.java b/src/main/java/net/iGap/proto/ProtoFileInfo.java index 42b6511..c0f3eae 100644 --- a/src/main/java/net/iGap/proto/ProtoFileInfo.java +++ b/src/main/java/net/iGap/proto/ProtoFileInfo.java @@ -8,25 +8,39 @@ private ProtoFileInfo() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface FileInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -34,124 +48,190 @@ public interface FileInfoOrBuilder extends /** * Protobuf type {@code proto.FileInfo} */ - public static final class FileInfo extends - com.google.protobuf.GeneratedMessageLite< - FileInfo, FileInfo.Builder> implements + public static final class FileInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileInfo) FileInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileInfo.newBuilder() to construct. + private FileInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileInfo() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileInfo.FileInfo.class, net.iGap.proto.ProtoFileInfo.FileInfo.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,430 +239,753 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileInfo.FileInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileInfo.FileInfo other = (net.iGap.proto.ProtoFileInfo.FileInfo) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileInfo.FileInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileInfo.FileInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileInfo.FileInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileInfo) net.iGap.proto.ProtoFileInfo.FileInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileInfo.FileInfo.class, net.iGap.proto.ProtoFileInfo.FileInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileInfo.FileInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfo_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileInfo.FileInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfo build() { + net.iGap.proto.ProtoFileInfo.FileInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfo buildPartial() { + net.iGap.proto.ProtoFileInfo.FileInfo result = new net.iGap.proto.ProtoFileInfo.FileInfo(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileInfo.FileInfo) { + return mergeFrom((net.iGap.proto.ProtoFileInfo.FileInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileInfo.FileInfo other) { + if (other == net.iGap.proto.ProtoFileInfo.FileInfo.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileInfo.FileInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileInfo.FileInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileInfo.FileInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileInfo.FileInfo other = (net.iGap.proto.ProtoFileInfo.FileInfo) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileInfo.FileInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileInfo) + } + // @@protoc_insertion_point(class_scope:proto.FileInfo) private static final net.iGap.proto.ProtoFileInfo.FileInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileInfo.FileInfo(); } public static net.iGap.proto.ProtoFileInfo.FileInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface FileInfoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileInfoResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return Whether the file field is set. */ boolean hasFile(); /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return The file. */ net.iGap.proto.ProtoGlobal.File getFile(); + /** + * .proto.File file = 2; + */ + net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder(); } /** * Protobuf type {@code proto.FileInfoResponse} */ - public static final class FileInfoResponse extends - com.google.protobuf.GeneratedMessageLite< - FileInfoResponse, FileInfoResponse.Builder> implements + public static final class FileInfoResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileInfoResponse) FileInfoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileInfoResponse.newBuilder() to construct. + private FileInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileInfoResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileInfoResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileInfoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; + if (file_ != null) { + subBuilder = file_.toBuilder(); + } + file_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(file_); + file_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileInfo.FileInfoResponse.class, net.iGap.proto.ProtoFileInfo.FileInfoResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int FILE_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.File file_; /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return Whether the file field is set. */ + @java.lang.Override public boolean hasFile() { return file_ != null; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return The file. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.File getFile() { return file_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; } /** - * optional .proto.File file = 2; - */ - private void setFile(net.iGap.proto.ProtoGlobal.File value) { - if (value == null) { - throw new NullPointerException(); - } - file_ = value; - - } - /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ - private void setFile( - net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - file_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder() { + return getFile(); } - /** - * optional .proto.File file = 2; - */ - private void mergeFile(net.iGap.proto.ProtoGlobal.File value) { - if (file_ != null && - file_ != net.iGap.proto.ProtoGlobal.File.getDefaultInstance()) { - file_ = - net.iGap.proto.ProtoGlobal.File.newBuilder(file_).mergeFrom(value).buildPartial(); - } else { - file_ = value; - } - - } - /** - * optional .proto.File file = 2; - */ - private void clearFile() { file_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -591,10 +994,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (file_ != null) { output.writeMessage(2, getFile()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -606,303 +1011,653 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFile()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileInfo.FileInfoResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileInfo.FileInfoResponse other = (net.iGap.proto.ProtoFileInfo.FileInfoResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasFile() != other.hasFile()) return false; + if (hasFile()) { + if (!getFile() + .equals(other.getFile())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasFile()) { + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileInfo.FileInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileInfoResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileInfo.FileInfoResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileInfoResponse) net.iGap.proto.ProtoFileInfo.FileInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileInfo.FileInfoResponse.class, net.iGap.proto.ProtoFileInfo.FileInfoResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileInfo.FileInfoResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (fileBuilder_ == null) { + file_ = null; + } else { + file_ = null; + fileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileInfo.internal_static_proto_FileInfoResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfoResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileInfo.FileInfoResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfoResponse build() { + net.iGap.proto.ProtoFileInfo.FileInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfoResponse buildPartial() { + net.iGap.proto.ProtoFileInfo.FileInfoResponse result = new net.iGap.proto.ProtoFileInfo.FileInfoResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (fileBuilder_ == null) { + result.file_ = file_; + } else { + result.file_ = fileBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileInfo.FileInfoResponse) { + return mergeFrom((net.iGap.proto.ProtoFileInfo.FileInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileInfo.FileInfoResponse other) { + if (other == net.iGap.proto.ProtoFileInfo.FileInfoResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasFile()) { + mergeFile(other.getFile()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileInfo.FileInfoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileInfo.FileInfoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.File file_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> fileBuilder_; /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return Whether the file field is set. */ public boolean hasFile() { - return instance.hasFile(); + return fileBuilder_ != null || file_ != null; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return The file. */ public net.iGap.proto.ProtoGlobal.File getFile() { - return instance.getFile(); + if (fileBuilder_ == null) { + return file_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; + } else { + return fileBuilder_.getMessage(); + } } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ public Builder setFile(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.setFile(value); - return this; + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + onChanged(); + } else { + fileBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ public Builder setFile( net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - copyOnWrite(); - instance.setFile(builderForValue); + if (fileBuilder_ == null) { + file_ = builderForValue.build(); + onChanged(); + } else { + fileBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ public Builder mergeFile(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.mergeFile(value); + if (fileBuilder_ == null) { + if (file_ != null) { + file_ = + net.iGap.proto.ProtoGlobal.File.newBuilder(file_).mergeFrom(value).buildPartial(); + } else { + file_ = value; + } + onChanged(); + } else { + fileBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ - public Builder clearFile() { copyOnWrite(); - instance.clearFile(); + public Builder clearFile() { + if (fileBuilder_ == null) { + file_ = null; + onChanged(); + } else { + file_ = null; + fileBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.FileInfoResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileInfo.FileInfoResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileInfo.FileInfoResponse other = (net.iGap.proto.ProtoFileInfo.FileInfoResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - file_ = visitor.visitMessage(file_, other.file_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; - if (file_ != null) { - subBuilder = file_.toBuilder(); - } - file_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(file_); - file_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.File file = 2; + */ + public net.iGap.proto.ProtoGlobal.File.Builder getFileBuilder() { + + onChanged(); + return getFileFieldBuilder().getBuilder(); + } + /** + * .proto.File file = 2; + */ + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder() { + if (fileBuilder_ != null) { + return fileBuilder_.getMessageOrBuilder(); + } else { + return file_ == null ? + net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileInfo.FileInfoResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.File file = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> + getFileFieldBuilder() { + if (fileBuilder_ == null) { + fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder>( + getFile(), + getParentForChildren(), + isClean()); + file_ = null; } + return fileBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileInfoResponse) + } + // @@protoc_insertion_point(class_scope:proto.FileInfoResponse) private static final net.iGap.proto.ProtoFileInfo.FileInfoResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileInfoResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileInfo.FileInfoResponse(); } public static net.iGap.proto.ProtoFileInfo.FileInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileInfoResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoFileInfo.FileInfoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileInfoResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileInfoResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\016FileInfo.proto\022\005proto\032\rRequest.proto\032\016" + + "Response.proto\032\014Global.proto\":\n\010FileInfo" + + "\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\r\n\005tok" + + "en\030\002 \001(\t\"P\n\020FileInfoResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\031\n\004file\030\002 \001(\0132\013." + + "proto.FileB\037\n\016net.iGap.protoB\rProtoFileI" + + "nfob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_FileInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_FileInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileInfo_descriptor, + new java.lang.String[] { "Request", "Token", }); + internal_static_proto_FileInfoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_FileInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileInfoResponse_descriptor, + new java.lang.String[] { "Response", "File", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoFileUpload.java b/src/main/java/net/iGap/proto/ProtoFileUpload.java index a8839f9..7bd1f06 100644 --- a/src/main/java/net/iGap/proto/ProtoFileUpload.java +++ b/src/main/java/net/iGap/proto/ProtoFileUpload.java @@ -8,205 +8,268 @@ private ProtoFileUpload() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface FileUploadOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUpload) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return The offset. */ long getOffset(); /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return The bytes. */ com.google.protobuf.ByteString getBytes(); } /** * Protobuf type {@code proto.FileUpload} */ - public static final class FileUpload extends - com.google.protobuf.GeneratedMessageLite< - FileUpload, FileUpload.Builder> implements + public static final class FileUpload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUpload) FileUploadOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUpload.newBuilder() to construct. + private FileUpload(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUpload() { token_ = ""; bytes_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUpload(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUpload( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + + offset_ = input.readInt64(); + break; + } + case 34: { + + bytes_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUpload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUpload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUpload.FileUpload.class, net.iGap.proto.ProtoFileUpload.FileUpload.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int OFFSET_FIELD_NUMBER = 3; private long offset_; /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return The offset. */ + @java.lang.Override public long getOffset() { return offset_; } - /** - * optional int64 offset = 3; - */ - private void setOffset(long value) { - - offset_ = value; - } - /** - * optional int64 offset = 3; - */ - private void clearOffset() { - - offset_ = 0L; - } public static final int BYTES_FIELD_NUMBER = 4; private com.google.protobuf.ByteString bytes_; /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return The bytes. */ + @java.lang.Override public com.google.protobuf.ByteString getBytes() { return bytes_; } - /** - * optional bytes bytes = 4; - */ - private void setBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - bytes_ = value; - } - /** - * optional bytes bytes = 4; - */ - private void clearBytes() { - - bytes_ = getDefaultInstance().getBytes(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } if (offset_ != 0L) { output.writeInt64(3, offset_); @@ -214,10 +277,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!bytes_.isEmpty()) { output.writeBytes(4, bytes_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -225,9 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -237,509 +301,848 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, bytes_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUpload.FileUpload)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUpload.FileUpload other = (net.iGap.proto.ProtoFileUpload.FileUpload) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (getOffset() + != other.getOffset()) return false; + if (!getBytes() + .equals(other.getBytes())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); + hash = (37 * hash) + BYTES_FIELD_NUMBER; + hash = (53 * hash) + getBytes().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUpload.FileUpload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUpload.FileUpload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUpload} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUpload.FileUpload, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUpload) net.iGap.proto.ProtoFileUpload.FileUploadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUpload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUpload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUpload.FileUpload.class, net.iGap.proto.ProtoFileUpload.FileUpload.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUpload.FileUpload.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + offset_ = 0L; + + bytes_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUpload_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUpload getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUpload.FileUpload.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUpload build() { + net.iGap.proto.ProtoFileUpload.FileUpload result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUpload buildPartial() { + net.iGap.proto.ProtoFileUpload.FileUpload result = new net.iGap.proto.ProtoFileUpload.FileUpload(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + result.offset_ = offset_; + result.bytes_ = bytes_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUpload.FileUpload) { + return mergeFrom((net.iGap.proto.ProtoFileUpload.FileUpload)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoFileUpload.FileUpload other) { + if (other == net.iGap.proto.ProtoFileUpload.FileUpload.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (other.getBytes() != com.google.protobuf.ByteString.EMPTY) { + setBytes(other.getBytes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUpload.FileUpload parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUpload.FileUpload) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private long offset_ ; /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return The offset. */ + @java.lang.Override public long getOffset() { - return instance.getOffset(); + return offset_; } /** - * optional int64 offset = 3; + * int64 offset = 3; + * @param value The offset to set. + * @return This builder for chaining. */ public Builder setOffset(long value) { - copyOnWrite(); - instance.setOffset(value); + + offset_ = value; + onChanged(); return this; } /** - * optional int64 offset = 3; + * int64 offset = 3; + * @return This builder for chaining. */ public Builder clearOffset() { - copyOnWrite(); - instance.clearOffset(); + + offset_ = 0L; + onChanged(); return this; } + private com.google.protobuf.ByteString bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return The bytes. */ + @java.lang.Override public com.google.protobuf.ByteString getBytes() { - return instance.getBytes(); + return bytes_; } /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @param value The bytes to set. + * @return This builder for chaining. */ public Builder setBytes(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBytes(value); + if (value == null) { + throw new NullPointerException(); + } + + bytes_ = value; + onChanged(); return this; } /** - * optional bytes bytes = 4; + * bytes bytes = 4; + * @return This builder for chaining. */ public Builder clearBytes() { - copyOnWrite(); - instance.clearBytes(); + + bytes_ = getDefaultInstance().getBytes(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUpload) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUpload.FileUpload(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUpload.FileUpload other = (net.iGap.proto.ProtoFileUpload.FileUpload) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - offset_ = visitor.visitLong(offset_ != 0L, offset_, - other.offset_ != 0L, other.offset_); - bytes_ = visitor.visitByteString(bytes_ != com.google.protobuf.ByteString.EMPTY, bytes_, - other.bytes_ != com.google.protobuf.ByteString.EMPTY, other.bytes_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 24: { - - offset_ = input.readInt64(); - break; - } - case 34: { - - bytes_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUpload.FileUpload.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUpload) + } + // @@protoc_insertion_point(class_scope:proto.FileUpload) private static final net.iGap.proto.ProtoFileUpload.FileUpload DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUpload(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUpload.FileUpload(); } public static net.iGap.proto.ProtoFileUpload.FileUpload getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUpload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUpload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUpload getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface FileUploadResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUploadResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional double progress = 2; + * double progress = 2; + * @return The progress. */ double getProgress(); /** - * optional int64 next_offset = 3; + * int64 next_offset = 3; + * @return The nextOffset. */ long getNextOffset(); /** - * optional int32 next_limit = 4; + * int32 next_limit = 4; + * @return The nextLimit. */ int getNextLimit(); } /** * Protobuf type {@code proto.FileUploadResponse} */ - public static final class FileUploadResponse extends - com.google.protobuf.GeneratedMessageLite< - FileUploadResponse, FileUploadResponse.Builder> implements + public static final class FileUploadResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUploadResponse) FileUploadResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUploadResponse.newBuilder() to construct. + private FileUploadResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUploadResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUploadResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUploadResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 17: { + + progress_ = input.readDouble(); + break; + } + case 24: { + + nextOffset_ = input.readInt64(); + break; + } + case 32: { + + nextLimit_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUploadResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUploadResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUpload.FileUploadResponse.class, net.iGap.proto.ProtoFileUpload.FileUploadResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PROGRESS_FIELD_NUMBER = 2; private double progress_; /** - * optional double progress = 2; + * double progress = 2; + * @return The progress. */ + @java.lang.Override public double getProgress() { return progress_; } - /** - * optional double progress = 2; - */ - private void setProgress(double value) { - - progress_ = value; - } - /** - * optional double progress = 2; - */ - private void clearProgress() { - - progress_ = 0D; - } public static final int NEXT_OFFSET_FIELD_NUMBER = 3; private long nextOffset_; /** - * optional int64 next_offset = 3; + * int64 next_offset = 3; + * @return The nextOffset. */ + @java.lang.Override public long getNextOffset() { return nextOffset_; } - /** - * optional int64 next_offset = 3; - */ - private void setNextOffset(long value) { - - nextOffset_ = value; - } - /** - * optional int64 next_offset = 3; - */ - private void clearNextOffset() { - - nextOffset_ = 0L; - } public static final int NEXT_LIMIT_FIELD_NUMBER = 4; private int nextLimit_; /** - * optional int32 next_limit = 4; + * int32 next_limit = 4; + * @return The nextLimit. */ + @java.lang.Override public int getNextLimit() { return nextLimit_; } - /** - * optional int32 next_limit = 4; - */ - private void setNextLimit(int value) { - - nextLimit_ = value; - } - /** - * optional int32 next_limit = 4; - */ - private void clearNextLimit() { - - nextLimit_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -754,10 +1157,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nextLimit_ != 0) { output.writeInt32(4, nextLimit_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -777,334 +1182,636 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, nextLimit_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUpload.FileUploadResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUpload.FileUploadResponse other = (net.iGap.proto.ProtoFileUpload.FileUploadResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (java.lang.Double.doubleToLongBits(getProgress()) + != java.lang.Double.doubleToLongBits( + other.getProgress())) return false; + if (getNextOffset() + != other.getNextOffset()) return false; + if (getNextLimit() + != other.getNextLimit()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getProgress())); + hash = (37 * hash) + NEXT_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNextOffset()); + hash = (37 * hash) + NEXT_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getNextLimit(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUpload.FileUploadResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUploadResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUpload.FileUploadResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUploadResponse) net.iGap.proto.ProtoFileUpload.FileUploadResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUploadResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUploadResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUpload.FileUploadResponse.class, net.iGap.proto.ProtoFileUpload.FileUploadResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUpload.FileUploadResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + progress_ = 0D; + + nextOffset_ = 0L; + + nextLimit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUpload.internal_static_proto_FileUploadResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUploadResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUpload.FileUploadResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUploadResponse build() { + net.iGap.proto.ProtoFileUpload.FileUploadResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUploadResponse buildPartial() { + net.iGap.proto.ProtoFileUpload.FileUploadResponse result = new net.iGap.proto.ProtoFileUpload.FileUploadResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.progress_ = progress_; + result.nextOffset_ = nextOffset_; + result.nextLimit_ = nextLimit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUpload.FileUploadResponse) { + return mergeFrom((net.iGap.proto.ProtoFileUpload.FileUploadResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoFileUpload.FileUploadResponse other) { + if (other == net.iGap.proto.ProtoFileUpload.FileUploadResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getProgress() != 0D) { + setProgress(other.getProgress()); + } + if (other.getNextOffset() != 0L) { + setNextOffset(other.getNextOffset()); + } + if (other.getNextLimit() != 0) { + setNextLimit(other.getNextLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUpload.FileUploadResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUpload.FileUploadResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private double progress_ ; /** - * optional double progress = 2; + * double progress = 2; + * @return The progress. */ + @java.lang.Override public double getProgress() { - return instance.getProgress(); + return progress_; } /** - * optional double progress = 2; + * double progress = 2; + * @param value The progress to set. + * @return This builder for chaining. */ public Builder setProgress(double value) { - copyOnWrite(); - instance.setProgress(value); + + progress_ = value; + onChanged(); return this; } /** - * optional double progress = 2; + * double progress = 2; + * @return This builder for chaining. */ public Builder clearProgress() { - copyOnWrite(); - instance.clearProgress(); + + progress_ = 0D; + onChanged(); return this; } + private long nextOffset_ ; /** - * optional int64 next_offset = 3; + * int64 next_offset = 3; + * @return The nextOffset. */ + @java.lang.Override public long getNextOffset() { - return instance.getNextOffset(); + return nextOffset_; } /** - * optional int64 next_offset = 3; + * int64 next_offset = 3; + * @param value The nextOffset to set. + * @return This builder for chaining. */ public Builder setNextOffset(long value) { - copyOnWrite(); - instance.setNextOffset(value); + + nextOffset_ = value; + onChanged(); return this; } /** - * optional int64 next_offset = 3; + * int64 next_offset = 3; + * @return This builder for chaining. */ public Builder clearNextOffset() { - copyOnWrite(); - instance.clearNextOffset(); + + nextOffset_ = 0L; + onChanged(); return this; } + private int nextLimit_ ; /** - * optional int32 next_limit = 4; + * int32 next_limit = 4; + * @return The nextLimit. */ + @java.lang.Override public int getNextLimit() { - return instance.getNextLimit(); + return nextLimit_; } /** - * optional int32 next_limit = 4; + * int32 next_limit = 4; + * @param value The nextLimit to set. + * @return This builder for chaining. */ public Builder setNextLimit(int value) { - copyOnWrite(); - instance.setNextLimit(value); + + nextLimit_ = value; + onChanged(); return this; } /** - * optional int32 next_limit = 4; + * int32 next_limit = 4; + * @return This builder for chaining. */ public Builder clearNextLimit() { - copyOnWrite(); - instance.clearNextLimit(); + + nextLimit_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUploadResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUpload.FileUploadResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUpload.FileUploadResponse other = (net.iGap.proto.ProtoFileUpload.FileUploadResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - progress_ = visitor.visitDouble(progress_ != 0D, progress_, - other.progress_ != 0D, other.progress_); - nextOffset_ = visitor.visitLong(nextOffset_ != 0L, nextOffset_, - other.nextOffset_ != 0L, other.nextOffset_); - nextLimit_ = visitor.visitInt(nextLimit_ != 0, nextLimit_, - other.nextLimit_ != 0, other.nextLimit_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 17: { - - progress_ = input.readDouble(); - break; - } - case 24: { - - nextOffset_ = input.readInt64(); - break; - } - case 32: { - - nextLimit_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUpload.FileUploadResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUploadResponse) + } + // @@protoc_insertion_point(class_scope:proto.FileUploadResponse) private static final net.iGap.proto.ProtoFileUpload.FileUploadResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUploadResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUpload.FileUploadResponse(); } public static net.iGap.proto.ProtoFileUpload.FileUploadResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUploadResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUploadResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUpload.FileUploadResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUpload_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUpload_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUploadResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUploadResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020FileUpload.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"[\n\nFileUpload\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\022\r\n\005token\030\002 \001(\t\022\016" + + "\n\006offset\030\003 \001(\003\022\r\n\005bytes\030\004 \001(\014\"r\n\022FileUpl" + + "oadResponse\022!\n\010response\030\001 \001(\0132\017.proto.Re" + + "sponse\022\020\n\010progress\030\002 \001(\001\022\023\n\013next_offset\030" + + "\003 \001(\003\022\022\n\nnext_limit\030\004 \001(\005B!\n\016net.iGap.pr" + + "otoB\017ProtoFileUploadb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_FileUpload_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_FileUpload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUpload_descriptor, + new java.lang.String[] { "Request", "Token", "Offset", "Bytes", }); + internal_static_proto_FileUploadResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_FileUploadResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUploadResponse_descriptor, + new java.lang.String[] { "Response", "Progress", "NextOffset", "NextLimit", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoFileUploadInit.java b/src/main/java/net/iGap/proto/ProtoFileUploadInit.java index 96fb338..8769c75 100644 --- a/src/main/java/net/iGap/proto/ProtoFileUploadInit.java +++ b/src/main/java/net/iGap/proto/ProtoFileUploadInit.java @@ -8,45 +8,63 @@ private ProtoFileUploadInit() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface FileUploadInitOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUploadInit) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional bytes first_bytes = 2; + * bytes first_bytes = 2; + * @return The firstBytes. */ com.google.protobuf.ByteString getFirstBytes(); /** - * optional bytes last_bytes = 3; + * bytes last_bytes = 3; + * @return The lastBytes. */ com.google.protobuf.ByteString getLastBytes(); /** - * optional int64 size = 4; + * int64 size = 4; + * @return The size. */ long getSize(); /** - * optional bytes file_hash = 5; + * bytes file_hash = 5; + * @return The fileHash. */ com.google.protobuf.ByteString getFileHash(); /** - * optional string file_name = 6; + * string file_name = 6; + * @return The fileName. */ java.lang.String getFileName(); /** - * optional string file_name = 6; + * string file_name = 6; + * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); @@ -54,216 +72,243 @@ public interface FileUploadInitOrBuilder extends /** * Protobuf type {@code proto.FileUploadInit} */ - public static final class FileUploadInit extends - com.google.protobuf.GeneratedMessageLite< - FileUploadInit, FileUploadInit.Builder> implements + public static final class FileUploadInit extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUploadInit) FileUploadInitOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUploadInit.newBuilder() to construct. + private FileUploadInit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUploadInit() { firstBytes_ = com.google.protobuf.ByteString.EMPTY; lastBytes_ = com.google.protobuf.ByteString.EMPTY; fileHash_ = com.google.protobuf.ByteString.EMPTY; fileName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUploadInit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUploadInit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + firstBytes_ = input.readBytes(); + break; + } + case 26: { + + lastBytes_ = input.readBytes(); + break; + } + case 32: { + + size_ = input.readInt64(); + break; + } + case 42: { + + fileHash_ = input.readBytes(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + fileName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadInit.FileUploadInit.class, net.iGap.proto.ProtoFileUploadInit.FileUploadInit.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int FIRST_BYTES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString firstBytes_; /** - * optional bytes first_bytes = 2; + * bytes first_bytes = 2; + * @return The firstBytes. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstBytes() { return firstBytes_; } - /** - * optional bytes first_bytes = 2; - */ - private void setFirstBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - firstBytes_ = value; - } - /** - * optional bytes first_bytes = 2; - */ - private void clearFirstBytes() { - - firstBytes_ = getDefaultInstance().getFirstBytes(); - } public static final int LAST_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString lastBytes_; /** - * optional bytes last_bytes = 3; + * bytes last_bytes = 3; + * @return The lastBytes. */ + @java.lang.Override public com.google.protobuf.ByteString getLastBytes() { return lastBytes_; } - /** - * optional bytes last_bytes = 3; - */ - private void setLastBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - lastBytes_ = value; - } - /** - * optional bytes last_bytes = 3; - */ - private void clearLastBytes() { - - lastBytes_ = getDefaultInstance().getLastBytes(); - } public static final int SIZE_FIELD_NUMBER = 4; private long size_; /** - * optional int64 size = 4; + * int64 size = 4; + * @return The size. */ + @java.lang.Override public long getSize() { return size_; } - /** - * optional int64 size = 4; - */ - private void setSize(long value) { - - size_ = value; - } - /** - * optional int64 size = 4; - */ - private void clearSize() { - - size_ = 0L; - } public static final int FILE_HASH_FIELD_NUMBER = 5; private com.google.protobuf.ByteString fileHash_; /** - * optional bytes file_hash = 5; + * bytes file_hash = 5; + * @return The fileHash. */ + @java.lang.Override public com.google.protobuf.ByteString getFileHash() { return fileHash_; } - /** - * optional bytes file_hash = 5; - */ - private void setFileHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - fileHash_ = value; - } - /** - * optional bytes file_hash = 5; - */ - private void clearFileHash() { - - fileHash_ = getDefaultInstance().getFileHash(); - } public static final int FILE_NAME_FIELD_NUMBER = 6; - private java.lang.String fileName_; + private volatile java.lang.Object fileName_; /** - * optional string file_name = 6; + * string file_name = 6; + * @return The fileName. */ + @java.lang.Override public java.lang.String getFileName() { - return fileName_; + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } } /** - * optional string file_name = 6; + * string file_name = 6; + * @return The bytes for fileName. */ + @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(fileName_); - } - /** - * optional string file_name = 6; - */ - private void setFileName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fileName_ = value; - } - /** - * optional string file_name = 6; - */ - private void clearFileName() { - - fileName_ = getDefaultInstance().getFileName(); + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string file_name = 6; - */ - private void setFileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fileName_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -281,13 +326,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!fileHash_.isEmpty()) { output.writeBytes(5, fileHash_); } - if (!fileName_.isEmpty()) { - output.writeString(6, getFileName()); + if (!getFileNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fileName_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -311,637 +358,1003 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, fileHash_); } - if (!fileName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getFileName()); + if (!getFileNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fileName_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUploadInit.FileUploadInit)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUploadInit.FileUploadInit other = (net.iGap.proto.ProtoFileUploadInit.FileUploadInit) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getFirstBytes() + .equals(other.getFirstBytes())) return false; + if (!getLastBytes() + .equals(other.getLastBytes())) return false; + if (getSize() + != other.getSize()) return false; + if (!getFileHash() + .equals(other.getFileHash())) return false; + if (!getFileName() + .equals(other.getFileName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + FIRST_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getFirstBytes().hashCode(); + hash = (37 * hash) + LAST_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getLastBytes().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + FILE_HASH_FIELD_NUMBER; + hash = (53 * hash) + getFileHash().hashCode(); + hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUploadInit.FileUploadInit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUploadInit} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUploadInit.FileUploadInit, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUploadInit) net.iGap.proto.ProtoFileUploadInit.FileUploadInitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadInit.FileUploadInit.class, net.iGap.proto.ProtoFileUploadInit.FileUploadInit.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUploadInit.FileUploadInit.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + firstBytes_ = com.google.protobuf.ByteString.EMPTY; + + lastBytes_ = com.google.protobuf.ByteString.EMPTY; + + size_ = 0L; + + fileHash_ = com.google.protobuf.ByteString.EMPTY; + + fileName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInit_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInit getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUploadInit.FileUploadInit.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInit build() { + net.iGap.proto.ProtoFileUploadInit.FileUploadInit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInit buildPartial() { + net.iGap.proto.ProtoFileUploadInit.FileUploadInit result = new net.iGap.proto.ProtoFileUploadInit.FileUploadInit(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.firstBytes_ = firstBytes_; + result.lastBytes_ = lastBytes_; + result.size_ = size_; + result.fileHash_ = fileHash_; + result.fileName_ = fileName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUploadInit.FileUploadInit) { + return mergeFrom((net.iGap.proto.ProtoFileUploadInit.FileUploadInit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileUploadInit.FileUploadInit other) { + if (other == net.iGap.proto.ProtoFileUploadInit.FileUploadInit.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getFirstBytes() != com.google.protobuf.ByteString.EMPTY) { + setFirstBytes(other.getFirstBytes()); + } + if (other.getLastBytes() != com.google.protobuf.ByteString.EMPTY) { + setLastBytes(other.getLastBytes()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getFileHash() != com.google.protobuf.ByteString.EMPTY) { + setFileHash(other.getFileHash()); + } + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUploadInit.FileUploadInit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUploadInit.FileUploadInit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private com.google.protobuf.ByteString firstBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes first_bytes = 2; + * bytes first_bytes = 2; + * @return The firstBytes. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstBytes() { - return instance.getFirstBytes(); + return firstBytes_; } /** - * optional bytes first_bytes = 2; + * bytes first_bytes = 2; + * @param value The firstBytes to set. + * @return This builder for chaining. */ public Builder setFirstBytes(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFirstBytes(value); + if (value == null) { + throw new NullPointerException(); + } + + firstBytes_ = value; + onChanged(); return this; } /** - * optional bytes first_bytes = 2; + * bytes first_bytes = 2; + * @return This builder for chaining. */ public Builder clearFirstBytes() { - copyOnWrite(); - instance.clearFirstBytes(); + + firstBytes_ = getDefaultInstance().getFirstBytes(); + onChanged(); return this; } + private com.google.protobuf.ByteString lastBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes last_bytes = 3; + * bytes last_bytes = 3; + * @return The lastBytes. */ + @java.lang.Override public com.google.protobuf.ByteString getLastBytes() { - return instance.getLastBytes(); + return lastBytes_; } /** - * optional bytes last_bytes = 3; + * bytes last_bytes = 3; + * @param value The lastBytes to set. + * @return This builder for chaining. */ public Builder setLastBytes(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLastBytes(value); + if (value == null) { + throw new NullPointerException(); + } + + lastBytes_ = value; + onChanged(); return this; } /** - * optional bytes last_bytes = 3; + * bytes last_bytes = 3; + * @return This builder for chaining. */ public Builder clearLastBytes() { - copyOnWrite(); - instance.clearLastBytes(); + + lastBytes_ = getDefaultInstance().getLastBytes(); + onChanged(); return this; } + private long size_ ; /** - * optional int64 size = 4; + * int64 size = 4; + * @return The size. */ + @java.lang.Override public long getSize() { - return instance.getSize(); + return size_; } /** - * optional int64 size = 4; + * int64 size = 4; + * @param value The size to set. + * @return This builder for chaining. */ public Builder setSize(long value) { - copyOnWrite(); - instance.setSize(value); + + size_ = value; + onChanged(); return this; } /** - * optional int64 size = 4; + * int64 size = 4; + * @return This builder for chaining. */ public Builder clearSize() { - copyOnWrite(); - instance.clearSize(); + + size_ = 0L; + onChanged(); return this; } + private com.google.protobuf.ByteString fileHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes file_hash = 5; + * bytes file_hash = 5; + * @return The fileHash. */ + @java.lang.Override public com.google.protobuf.ByteString getFileHash() { - return instance.getFileHash(); + return fileHash_; } /** - * optional bytes file_hash = 5; + * bytes file_hash = 5; + * @param value The fileHash to set. + * @return This builder for chaining. */ public Builder setFileHash(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFileHash(value); + if (value == null) { + throw new NullPointerException(); + } + + fileHash_ = value; + onChanged(); return this; } /** - * optional bytes file_hash = 5; + * bytes file_hash = 5; + * @return This builder for chaining. */ public Builder clearFileHash() { - copyOnWrite(); - instance.clearFileHash(); + + fileHash_ = getDefaultInstance().getFileHash(); + onChanged(); return this; } + private java.lang.Object fileName_ = ""; /** - * optional string file_name = 6; + * string file_name = 6; + * @return The fileName. */ public java.lang.String getFileName() { - return instance.getFileName(); + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string file_name = 6; + * string file_name = 6; + * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { - return instance.getFileNameBytes(); + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string file_name = 6; + * string file_name = 6; + * @param value The fileName to set. + * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { - copyOnWrite(); - instance.setFileName(value); + if (value == null) { + throw new NullPointerException(); + } + + fileName_ = value; + onChanged(); return this; } /** - * optional string file_name = 6; + * string file_name = 6; + * @return This builder for chaining. */ public Builder clearFileName() { - copyOnWrite(); - instance.clearFileName(); + + fileName_ = getDefaultInstance().getFileName(); + onChanged(); return this; } /** - * optional string file_name = 6; + * string file_name = 6; + * @param value The bytes for fileName to set. + * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFileNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fileName_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUploadInit) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUploadInit.FileUploadInit(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUploadInit.FileUploadInit other = (net.iGap.proto.ProtoFileUploadInit.FileUploadInit) arg1; - request_ = visitor.visitMessage(request_, other.request_); - firstBytes_ = visitor.visitByteString(firstBytes_ != com.google.protobuf.ByteString.EMPTY, firstBytes_, - other.firstBytes_ != com.google.protobuf.ByteString.EMPTY, other.firstBytes_); - lastBytes_ = visitor.visitByteString(lastBytes_ != com.google.protobuf.ByteString.EMPTY, lastBytes_, - other.lastBytes_ != com.google.protobuf.ByteString.EMPTY, other.lastBytes_); - size_ = visitor.visitLong(size_ != 0L, size_, - other.size_ != 0L, other.size_); - fileHash_ = visitor.visitByteString(fileHash_ != com.google.protobuf.ByteString.EMPTY, fileHash_, - other.fileHash_ != com.google.protobuf.ByteString.EMPTY, other.fileHash_); - fileName_ = visitor.visitString(!fileName_.isEmpty(), fileName_, - !other.fileName_.isEmpty(), other.fileName_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - firstBytes_ = input.readBytes(); - break; - } - case 26: { - - lastBytes_ = input.readBytes(); - break; - } - case 32: { - - size_ = input.readInt64(); - break; - } - case 42: { - - fileHash_ = input.readBytes(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - fileName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUploadInit.FileUploadInit.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUploadInit) + } + // @@protoc_insertion_point(class_scope:proto.FileUploadInit) private static final net.iGap.proto.ProtoFileUploadInit.FileUploadInit DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUploadInit(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUploadInit.FileUploadInit(); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUploadInit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUploadInit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface FileUploadInitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUploadInitResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional double progress = 3; + * double progress = 3; + * @return The progress. */ double getProgress(); /** - * optional int64 offset = 4; + * int64 offset = 4; + * @return The offset. */ long getOffset(); /** - * optional int32 limit = 5; + * int32 limit = 5; + * @return The limit. */ int getLimit(); } /** * Protobuf type {@code proto.FileUploadInitResponse} */ - public static final class FileUploadInitResponse extends - com.google.protobuf.GeneratedMessageLite< - FileUploadInitResponse, FileUploadInitResponse.Builder> implements + public static final class FileUploadInitResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUploadInitResponse) FileUploadInitResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUploadInitResponse.newBuilder() to construct. + private FileUploadInitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUploadInitResponse() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUploadInitResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUploadInitResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 25: { + + progress_ = input.readDouble(); + break; + } + case 32: { + + offset_ = input.readInt64(); + break; + } + case 40: { + + limit_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.class, net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PROGRESS_FIELD_NUMBER = 3; private double progress_; /** - * optional double progress = 3; + * double progress = 3; + * @return The progress. */ + @java.lang.Override public double getProgress() { return progress_; } - /** - * optional double progress = 3; - */ - private void setProgress(double value) { - - progress_ = value; - } - /** - * optional double progress = 3; - */ - private void clearProgress() { - - progress_ = 0D; - } public static final int OFFSET_FIELD_NUMBER = 4; private long offset_; /** - * optional int64 offset = 4; + * int64 offset = 4; + * @return The offset. */ + @java.lang.Override public long getOffset() { return offset_; } - /** - * optional int64 offset = 4; - */ - private void setOffset(long value) { - - offset_ = value; - } - /** - * optional int64 offset = 4; - */ - private void clearOffset() { - - offset_ = 0L; - } public static final int LIMIT_FIELD_NUMBER = 5; private int limit_; /** - * optional int32 limit = 5; + * int32 limit = 5; + * @return The limit. */ + @java.lang.Override public int getLimit() { return limit_; } - /** - * optional int32 limit = 5; - */ - private void setLimit(int value) { - - limit_ = value; - } - /** - * optional int32 limit = 5; - */ - private void clearLimit() { - - limit_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } if (progress_ != 0D) { output.writeDouble(3, progress_); @@ -952,10 +1365,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (limit_ != 0) { output.writeInt32(5, limit_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -963,9 +1378,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } if (progress_ != 0D) { size += com.google.protobuf.CodedOutputStream @@ -979,382 +1393,725 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, limit_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse other = (net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (java.lang.Double.doubleToLongBits(getProgress()) + != java.lang.Double.doubleToLongBits( + other.getProgress())) return false; + if (getOffset() + != other.getOffset()) return false; + if (getLimit() + != other.getLimit()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getProgress())); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUploadInitResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUploadInitResponse) net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.class, net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + progress_ = 0D; + offset_ = 0L; + + limit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUploadInit.internal_static_proto_FileUploadInitResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse build() { + net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse buildPartial() { + net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse result = new net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + result.progress_ = progress_; + result.offset_ = offset_; + result.limit_ = limit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse) { + return mergeFrom((net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse other) { + if (other == net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getProgress() != 0D) { + setProgress(other.getProgress()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private double progress_ ; /** - * optional double progress = 3; + * double progress = 3; + * @return The progress. */ + @java.lang.Override public double getProgress() { - return instance.getProgress(); + return progress_; } /** - * optional double progress = 3; + * double progress = 3; + * @param value The progress to set. + * @return This builder for chaining. */ public Builder setProgress(double value) { - copyOnWrite(); - instance.setProgress(value); + + progress_ = value; + onChanged(); return this; } /** - * optional double progress = 3; + * double progress = 3; + * @return This builder for chaining. */ public Builder clearProgress() { - copyOnWrite(); - instance.clearProgress(); + + progress_ = 0D; + onChanged(); return this; } + private long offset_ ; /** - * optional int64 offset = 4; + * int64 offset = 4; + * @return The offset. */ + @java.lang.Override public long getOffset() { - return instance.getOffset(); + return offset_; } /** - * optional int64 offset = 4; + * int64 offset = 4; + * @param value The offset to set. + * @return This builder for chaining. */ public Builder setOffset(long value) { - copyOnWrite(); - instance.setOffset(value); + + offset_ = value; + onChanged(); return this; } /** - * optional int64 offset = 4; + * int64 offset = 4; + * @return This builder for chaining. */ public Builder clearOffset() { - copyOnWrite(); - instance.clearOffset(); + + offset_ = 0L; + onChanged(); return this; } + private int limit_ ; /** - * optional int32 limit = 5; + * int32 limit = 5; + * @return The limit. */ + @java.lang.Override public int getLimit() { - return instance.getLimit(); + return limit_; } /** - * optional int32 limit = 5; + * int32 limit = 5; + * @param value The limit to set. + * @return This builder for chaining. */ public Builder setLimit(int value) { - copyOnWrite(); - instance.setLimit(value); + + limit_ = value; + onChanged(); return this; } /** - * optional int32 limit = 5; + * int32 limit = 5; + * @return This builder for chaining. */ public Builder clearLimit() { - copyOnWrite(); - instance.clearLimit(); + + limit_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUploadInitResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse other = (net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - progress_ = visitor.visitDouble(progress_ != 0D, progress_, - other.progress_ != 0D, other.progress_); - offset_ = visitor.visitLong(offset_ != 0L, offset_, - other.offset_ != 0L, other.offset_); - limit_ = visitor.visitInt(limit_ != 0, limit_, - other.limit_ != 0, other.limit_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 25: { - - progress_ = input.readDouble(); - break; - } - case 32: { - - offset_ = input.readInt64(); - break; - } - case 40: { - - limit_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUploadInitResponse) + } + // @@protoc_insertion_point(class_scope:proto.FileUploadInitResponse) private static final net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUploadInitResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse(); } public static net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUploadInitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUploadInitResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoFileUploadInit.FileUploadInitResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUploadInit_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUploadInit_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUploadInitResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUploadInitResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024FileUploadInit.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\"\216\001\n\016FileUploadInit\022" + + "\037\n\007request\030\001 \001(\0132\016.proto.Request\022\023\n\013firs" + + "t_bytes\030\002 \001(\014\022\022\n\nlast_bytes\030\003 \001(\014\022\014\n\004siz" + + "e\030\004 \001(\003\022\021\n\tfile_hash\030\005 \001(\014\022\021\n\tfile_name\030" + + "\006 \001(\t\"{\n\026FileUploadInitResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\022\r\n\005token\030\002 \001(" + + "\t\022\020\n\010progress\030\003 \001(\001\022\016\n\006offset\030\004 \001(\003\022\r\n\005l" + + "imit\030\005 \001(\005B%\n\016net.iGap.protoB\023ProtoFileU" + + "ploadInitb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_FileUploadInit_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_FileUploadInit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUploadInit_descriptor, + new java.lang.String[] { "Request", "FirstBytes", "LastBytes", "Size", "FileHash", "FileName", }); + internal_static_proto_FileUploadInitResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_FileUploadInitResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUploadInitResponse_descriptor, + new java.lang.String[] { "Response", "Token", "Progress", "Offset", "Limit", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoFileUploadOption.java b/src/main/java/net/iGap/proto/ProtoFileUploadOption.java index 3193cf3..753a0c2 100644 --- a/src/main/java/net/iGap/proto/ProtoFileUploadOption.java +++ b/src/main/java/net/iGap/proto/ProtoFileUploadOption.java @@ -8,109 +8,181 @@ private ProtoFileUploadOption() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface FileUploadOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUploadOption) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional int64 size = 2; + * int64 size = 2; + * @return The size. */ long getSize(); } /** * Protobuf type {@code proto.FileUploadOption} */ - public static final class FileUploadOption extends - com.google.protobuf.GeneratedMessageLite< - FileUploadOption, FileUploadOption.Builder> implements + public static final class FileUploadOption extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUploadOption) FileUploadOptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUploadOption.newBuilder() to construct. + private FileUploadOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUploadOption() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUploadOption(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUploadOption( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + size_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadOption.FileUploadOption.class, net.iGap.proto.ProtoFileUploadOption.FileUploadOption.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int SIZE_FIELD_NUMBER = 2; private long size_; /** - * optional int64 size = 2; + * int64 size = 2; + * @return The size. */ + @java.lang.Override public long getSize() { return size_; } - /** - * optional int64 size = 2; - */ - private void setSize(long value) { - - size_ = value; - } - /** - * optional int64 size = 2; - */ - private void clearSize() { - - size_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (size_ != 0L) { output.writeInt64(2, size_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,431 +208,717 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, size_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUploadOption.FileUploadOption)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUploadOption.FileUploadOption other = (net.iGap.proto.ProtoFileUploadOption.FileUploadOption) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getSize() + != other.getSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUploadOption.FileUploadOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUploadOption} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUploadOption.FileUploadOption, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUploadOption) net.iGap.proto.ProtoFileUploadOption.FileUploadOptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadOption.FileUploadOption.class, net.iGap.proto.ProtoFileUploadOption.FileUploadOption.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUploadOption.FileUploadOption.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + size_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOption_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOption getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUploadOption.FileUploadOption.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOption build() { + net.iGap.proto.ProtoFileUploadOption.FileUploadOption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOption buildPartial() { + net.iGap.proto.ProtoFileUploadOption.FileUploadOption result = new net.iGap.proto.ProtoFileUploadOption.FileUploadOption(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.size_ = size_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUploadOption.FileUploadOption) { + return mergeFrom((net.iGap.proto.ProtoFileUploadOption.FileUploadOption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileUploadOption.FileUploadOption other) { + if (other == net.iGap.proto.ProtoFileUploadOption.FileUploadOption.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUploadOption.FileUploadOption parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUploadOption.FileUploadOption) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long size_ ; /** - * optional int64 size = 2; + * int64 size = 2; + * @return The size. */ + @java.lang.Override public long getSize() { - return instance.getSize(); + return size_; } /** - * optional int64 size = 2; + * int64 size = 2; + * @param value The size to set. + * @return This builder for chaining. */ public Builder setSize(long value) { - copyOnWrite(); - instance.setSize(value); + + size_ = value; + onChanged(); return this; } /** - * optional int64 size = 2; + * int64 size = 2; + * @return This builder for chaining. */ public Builder clearSize() { - copyOnWrite(); - instance.clearSize(); + + size_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUploadOption) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUploadOption.FileUploadOption(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUploadOption.FileUploadOption other = (net.iGap.proto.ProtoFileUploadOption.FileUploadOption) arg1; - request_ = visitor.visitMessage(request_, other.request_); - size_ = visitor.visitLong(size_ != 0L, size_, - other.size_ != 0L, other.size_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - size_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUploadOption.FileUploadOption.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUploadOption) + } + // @@protoc_insertion_point(class_scope:proto.FileUploadOption) private static final net.iGap.proto.ProtoFileUploadOption.FileUploadOption DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUploadOption(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUploadOption.FileUploadOption(); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOption getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUploadOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUploadOption(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface FileUploadOptionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUploadOptionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional int32 first_bytes_limit = 2; + * int32 first_bytes_limit = 2; + * @return The firstBytesLimit. */ int getFirstBytesLimit(); /** - * optional int32 last_bytes_limit = 3; + * int32 last_bytes_limit = 3; + * @return The lastBytesLimit. */ int getLastBytesLimit(); /** - * optional int32 max_connection = 4; + * int32 max_connection = 4; + * @return The maxConnection. */ int getMaxConnection(); } /** * Protobuf type {@code proto.FileUploadOptionResponse} */ - public static final class FileUploadOptionResponse extends - com.google.protobuf.GeneratedMessageLite< - FileUploadOptionResponse, FileUploadOptionResponse.Builder> implements + public static final class FileUploadOptionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUploadOptionResponse) FileUploadOptionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUploadOptionResponse.newBuilder() to construct. + private FileUploadOptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUploadOptionResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUploadOptionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUploadOptionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + firstBytesLimit_ = input.readInt32(); + break; + } + case 24: { + + lastBytesLimit_ = input.readInt32(); + break; + } + case 32: { + + maxConnection_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOptionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOptionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.class, net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int FIRST_BYTES_LIMIT_FIELD_NUMBER = 2; private int firstBytesLimit_; /** - * optional int32 first_bytes_limit = 2; + * int32 first_bytes_limit = 2; + * @return The firstBytesLimit. */ + @java.lang.Override public int getFirstBytesLimit() { return firstBytesLimit_; } - /** - * optional int32 first_bytes_limit = 2; - */ - private void setFirstBytesLimit(int value) { - - firstBytesLimit_ = value; - } - /** - * optional int32 first_bytes_limit = 2; - */ - private void clearFirstBytesLimit() { - - firstBytesLimit_ = 0; - } public static final int LAST_BYTES_LIMIT_FIELD_NUMBER = 3; private int lastBytesLimit_; /** - * optional int32 last_bytes_limit = 3; + * int32 last_bytes_limit = 3; + * @return The lastBytesLimit. */ + @java.lang.Override public int getLastBytesLimit() { return lastBytesLimit_; } - /** - * optional int32 last_bytes_limit = 3; - */ - private void setLastBytesLimit(int value) { - - lastBytesLimit_ = value; - } - /** - * optional int32 last_bytes_limit = 3; - */ - private void clearLastBytesLimit() { - - lastBytesLimit_ = 0; - } public static final int MAX_CONNECTION_FIELD_NUMBER = 4; private int maxConnection_; /** - * optional int32 max_connection = 4; + * int32 max_connection = 4; + * @return The maxConnection. */ + @java.lang.Override public int getMaxConnection() { return maxConnection_; } - /** - * optional int32 max_connection = 4; - */ - private void setMaxConnection(int value) { - - maxConnection_ = value; - } - /** - * optional int32 max_connection = 4; - */ - private void clearMaxConnection() { - - maxConnection_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -573,10 +933,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maxConnection_ != 0) { output.writeInt32(4, maxConnection_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -596,334 +958,633 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, maxConnection_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse other = (net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getFirstBytesLimit() + != other.getFirstBytesLimit()) return false; + if (getLastBytesLimit() + != other.getLastBytesLimit()) return false; + if (getMaxConnection() + != other.getMaxConnection()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + FIRST_BYTES_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getFirstBytesLimit(); + hash = (37 * hash) + LAST_BYTES_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLastBytesLimit(); + hash = (37 * hash) + MAX_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getMaxConnection(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUploadOptionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUploadOptionResponse) net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOptionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOptionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.class, net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + firstBytesLimit_ = 0; + + lastBytesLimit_ = 0; + maxConnection_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUploadOption.internal_static_proto_FileUploadOptionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse build() { + net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse buildPartial() { + net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse result = new net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.firstBytesLimit_ = firstBytesLimit_; + result.lastBytesLimit_ = lastBytesLimit_; + result.maxConnection_ = maxConnection_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse) { + return mergeFrom((net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse other) { + if (other == net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getFirstBytesLimit() != 0) { + setFirstBytesLimit(other.getFirstBytesLimit()); + } + if (other.getLastBytesLimit() != 0) { + setLastBytesLimit(other.getLastBytesLimit()); + } + if (other.getMaxConnection() != 0) { + setMaxConnection(other.getMaxConnection()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int firstBytesLimit_ ; /** - * optional int32 first_bytes_limit = 2; + * int32 first_bytes_limit = 2; + * @return The firstBytesLimit. */ + @java.lang.Override public int getFirstBytesLimit() { - return instance.getFirstBytesLimit(); + return firstBytesLimit_; } /** - * optional int32 first_bytes_limit = 2; + * int32 first_bytes_limit = 2; + * @param value The firstBytesLimit to set. + * @return This builder for chaining. */ public Builder setFirstBytesLimit(int value) { - copyOnWrite(); - instance.setFirstBytesLimit(value); + + firstBytesLimit_ = value; + onChanged(); return this; } /** - * optional int32 first_bytes_limit = 2; + * int32 first_bytes_limit = 2; + * @return This builder for chaining. */ public Builder clearFirstBytesLimit() { - copyOnWrite(); - instance.clearFirstBytesLimit(); + + firstBytesLimit_ = 0; + onChanged(); return this; } + private int lastBytesLimit_ ; /** - * optional int32 last_bytes_limit = 3; + * int32 last_bytes_limit = 3; + * @return The lastBytesLimit. */ + @java.lang.Override public int getLastBytesLimit() { - return instance.getLastBytesLimit(); + return lastBytesLimit_; } /** - * optional int32 last_bytes_limit = 3; + * int32 last_bytes_limit = 3; + * @param value The lastBytesLimit to set. + * @return This builder for chaining. */ public Builder setLastBytesLimit(int value) { - copyOnWrite(); - instance.setLastBytesLimit(value); + + lastBytesLimit_ = value; + onChanged(); return this; } /** - * optional int32 last_bytes_limit = 3; + * int32 last_bytes_limit = 3; + * @return This builder for chaining. */ public Builder clearLastBytesLimit() { - copyOnWrite(); - instance.clearLastBytesLimit(); + + lastBytesLimit_ = 0; + onChanged(); return this; } + private int maxConnection_ ; /** - * optional int32 max_connection = 4; + * int32 max_connection = 4; + * @return The maxConnection. */ + @java.lang.Override public int getMaxConnection() { - return instance.getMaxConnection(); + return maxConnection_; } /** - * optional int32 max_connection = 4; + * int32 max_connection = 4; + * @param value The maxConnection to set. + * @return This builder for chaining. */ public Builder setMaxConnection(int value) { - copyOnWrite(); - instance.setMaxConnection(value); + + maxConnection_ = value; + onChanged(); return this; } /** - * optional int32 max_connection = 4; + * int32 max_connection = 4; + * @return This builder for chaining. */ public Builder clearMaxConnection() { - copyOnWrite(); - instance.clearMaxConnection(); + + maxConnection_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUploadOptionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse other = (net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - firstBytesLimit_ = visitor.visitInt(firstBytesLimit_ != 0, firstBytesLimit_, - other.firstBytesLimit_ != 0, other.firstBytesLimit_); - lastBytesLimit_ = visitor.visitInt(lastBytesLimit_ != 0, lastBytesLimit_, - other.lastBytesLimit_ != 0, other.lastBytesLimit_); - maxConnection_ = visitor.visitInt(maxConnection_ != 0, maxConnection_, - other.maxConnection_ != 0, other.maxConnection_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - firstBytesLimit_ = input.readInt32(); - break; - } - case 24: { - - lastBytesLimit_ = input.readInt32(); - break; - } - case 32: { - - maxConnection_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUploadOptionResponse) + } + // @@protoc_insertion_point(class_scope:proto.FileUploadOptionResponse) private static final net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUploadOptionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse(); } public static net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUploadOptionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUploadOptionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadOption.FileUploadOptionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUploadOption_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUploadOption_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUploadOptionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUploadOptionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026FileUploadOption.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"A\n\020FileUploadOpti" + + "on\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\014\n\004s" + + "ize\030\002 \001(\003\"\212\001\n\030FileUploadOptionResponse\022!" + + "\n\010response\030\001 \001(\0132\017.proto.Response\022\031\n\021fir" + + "st_bytes_limit\030\002 \001(\005\022\030\n\020last_bytes_limit" + + "\030\003 \001(\005\022\026\n\016max_connection\030\004 \001(\005B\'\n\016net.iG" + + "ap.protoB\025ProtoFileUploadOptionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_FileUploadOption_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_FileUploadOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUploadOption_descriptor, + new java.lang.String[] { "Request", "Size", }); + internal_static_proto_FileUploadOptionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_FileUploadOptionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUploadOptionResponse_descriptor, + new java.lang.String[] { "Response", "FirstBytesLimit", "LastBytesLimit", "MaxConnection", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoFileUploadStatus.java b/src/main/java/net/iGap/proto/ProtoFileUploadStatus.java index 1541b93..d0b0b82 100644 --- a/src/main/java/net/iGap/proto/ProtoFileUploadStatus.java +++ b/src/main/java/net/iGap/proto/ProtoFileUploadStatus.java @@ -8,25 +8,39 @@ private ProtoFileUploadStatus() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface FileUploadStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUploadStatus) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -34,124 +48,190 @@ public interface FileUploadStatusOrBuilder extends /** * Protobuf type {@code proto.FileUploadStatus} */ - public static final class FileUploadStatus extends - com.google.protobuf.GeneratedMessageLite< - FileUploadStatus, FileUploadStatus.Builder> implements + public static final class FileUploadStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUploadStatus) FileUploadStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUploadStatus.newBuilder() to construct. + private FileUploadStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUploadStatus() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUploadStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUploadStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.class, net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,341 +239,706 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus other = (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUploadStatus} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUploadStatus) net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.class, net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatus_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus build() { + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus buildPartial() { + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus result = new net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus) { + return mergeFrom((net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus other) { + if (other == net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUploadStatus) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus other = (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUploadStatus) + } + // @@protoc_insertion_point(class_scope:proto.FileUploadStatus) private static final net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUploadStatus(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus(); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUploadStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUploadStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface FileUploadStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileUploadStatusResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status getStatus(); /** - * optional double progress = 3; + * double progress = 3; + * @return The progress. */ double getProgress(); /** - * optional uint32 recheck_delay_ms = 4; + * uint32 recheck_delay_ms = 4; + * @return The recheckDelayMs. */ int getRecheckDelayMs(); } /** * Protobuf type {@code proto.FileUploadStatusResponse} */ - public static final class FileUploadStatusResponse extends - com.google.protobuf.GeneratedMessageLite< - FileUploadStatusResponse, FileUploadStatusResponse.Builder> implements + public static final class FileUploadStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileUploadStatusResponse) FileUploadStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileUploadStatusResponse.newBuilder() to construct. + private FileUploadStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private FileUploadStatusResponse() { + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileUploadStatusResponse(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileUploadStatusResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 25: { + + progress_ = input.readDouble(); + break; + } + case 32: { + + recheckDelayMs_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.class, net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Builder.class); + } + /** * Protobuf enum {@code proto.FileUploadStatusResponse.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UPLOADING = 0; */ @@ -532,10 +977,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -543,6 +994,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return UPLOADING; @@ -565,6 +1020,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -577,140 +1063,82 @@ private Status(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status getStatus() { - net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status result = net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status result = net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status.UNRECOGNIZED : result; } - /** - * optional .proto.FileUploadStatusResponse.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.FileUploadStatusResponse.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.FileUploadStatusResponse.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int PROGRESS_FIELD_NUMBER = 3; private double progress_; /** - * optional double progress = 3; + * double progress = 3; + * @return The progress. */ + @java.lang.Override public double getProgress() { return progress_; } - /** - * optional double progress = 3; - */ - private void setProgress(double value) { - - progress_ = value; - } - /** - * optional double progress = 3; - */ - private void clearProgress() { - - progress_ = 0D; - } public static final int RECHECK_DELAY_MS_FIELD_NUMBER = 4; private int recheckDelayMs_; /** - * optional uint32 recheck_delay_ms = 4; + * uint32 recheck_delay_ms = 4; + * @return The recheckDelayMs. */ + @java.lang.Override public int getRecheckDelayMs() { return recheckDelayMs_; } - /** - * optional uint32 recheck_delay_ms = 4; - */ - private void setRecheckDelayMs(int value) { - - recheckDelayMs_ = value; - } - /** - * optional uint32 recheck_delay_ms = 4; - */ - private void clearRecheckDelayMs() { - - recheckDelayMs_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -725,10 +1153,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (recheckDelayMs_ != 0) { output.writeUInt32(4, recheckDelayMs_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -748,348 +1178,660 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, recheckDelayMs_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse other = (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (status_ != other.status_) return false; + if (java.lang.Double.doubleToLongBits(getProgress()) + != java.lang.Double.doubleToLongBits( + other.getProgress())) return false; + if (getRecheckDelayMs() + != other.getRecheckDelayMs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getProgress())); + hash = (37 * hash) + RECHECK_DELAY_MS_FIELD_NUMBER; + hash = (53 * hash) + getRecheckDelayMs(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.FileUploadStatusResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileUploadStatusResponse) net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.class, net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + progress_ = 0D; + + recheckDelayMs_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoFileUploadStatus.internal_static_proto_FileUploadStatusResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse build() { + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse buildPartial() { + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse result = new net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.progress_ = progress_; + result.recheckDelayMs_ = recheckDelayMs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse) { + return mergeFrom((net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse other) { + if (other == net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getProgress() != 0D) { + setProgress(other.getProgress()); + } + if (other.getRecheckDelayMs() != 0) { + setRecheckDelayMs(other.getRecheckDelayMs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ = 0; /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status result = net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status.UNRECOGNIZED : result; } /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.FileUploadStatusResponse.Status status = 2; + * .proto.FileUploadStatusResponse.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private double progress_ ; /** - * optional double progress = 3; + * double progress = 3; + * @return The progress. */ + @java.lang.Override public double getProgress() { - return instance.getProgress(); + return progress_; } /** - * optional double progress = 3; + * double progress = 3; + * @param value The progress to set. + * @return This builder for chaining. */ public Builder setProgress(double value) { - copyOnWrite(); - instance.setProgress(value); + + progress_ = value; + onChanged(); return this; } /** - * optional double progress = 3; + * double progress = 3; + * @return This builder for chaining. */ public Builder clearProgress() { - copyOnWrite(); - instance.clearProgress(); + + progress_ = 0D; + onChanged(); return this; } + private int recheckDelayMs_ ; /** - * optional uint32 recheck_delay_ms = 4; + * uint32 recheck_delay_ms = 4; + * @return The recheckDelayMs. */ + @java.lang.Override public int getRecheckDelayMs() { - return instance.getRecheckDelayMs(); + return recheckDelayMs_; } /** - * optional uint32 recheck_delay_ms = 4; + * uint32 recheck_delay_ms = 4; + * @param value The recheckDelayMs to set. + * @return This builder for chaining. */ public Builder setRecheckDelayMs(int value) { - copyOnWrite(); - instance.setRecheckDelayMs(value); + + recheckDelayMs_ = value; + onChanged(); return this; } /** - * optional uint32 recheck_delay_ms = 4; + * uint32 recheck_delay_ms = 4; + * @return This builder for chaining. */ public Builder clearRecheckDelayMs() { - copyOnWrite(); - instance.clearRecheckDelayMs(); + + recheckDelayMs_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.FileUploadStatusResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse other = (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - progress_ = visitor.visitDouble(progress_ != 0D, progress_, - other.progress_ != 0D, other.progress_); - recheckDelayMs_ = visitor.visitInt(recheckDelayMs_ != 0, recheckDelayMs_, - other.recheckDelayMs_ != 0, other.recheckDelayMs_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 25: { - - progress_ = input.readDouble(); - break; - } - case 32: { - - recheckDelayMs_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.FileUploadStatusResponse) + } + // @@protoc_insertion_point(class_scope:proto.FileUploadStatusResponse) private static final net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new FileUploadStatusResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse(); } public static net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileUploadStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileUploadStatusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoFileUploadStatus.FileUploadStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUploadStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUploadStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_FileUploadStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_FileUploadStatusResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026FileUploadStatus.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"B\n\020FileUploadStat" + + "us\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\r\n\005t" + + "oken\030\002 \001(\t\"\350\001\n\030FileUploadStatusResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\0226\n\006st" + + "atus\030\002 \001(\0162&.proto.FileUploadStatusRespo" + + "nse.Status\022\020\n\010progress\030\003 \001(\001\022\030\n\020recheck_" + + "delay_ms\030\004 \001(\r\"E\n\006Status\022\r\n\tUPLOADING\020\000\022" + + "\016\n\nPROCESSING\020\001\022\r\n\tPROCESSED\020\002\022\r\n\tCORRUP" + + "TED\020\003B\'\n\016net.iGap.protoB\025ProtoFileUpload" + + "Statusb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_FileUploadStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_FileUploadStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUploadStatus_descriptor, + new java.lang.String[] { "Request", "Token", }); + internal_static_proto_FileUploadStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_FileUploadStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_FileUploadStatusResponse_descriptor, + new java.lang.String[] { "Response", "Status", "Progress", "RecheckDelayMs", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoGetComment.java b/src/main/java/net/iGap/proto/ProtoGeoGetComment.java index 5c702bc..189c26b 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoGetComment.java +++ b/src/main/java/net/iGap/proto/ProtoGeoGetComment.java @@ -8,109 +8,181 @@ private ProtoGeoGetComment() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoGetCommentOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetComment) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.GeoGetComment} */ - public static final class GeoGetComment extends - com.google.protobuf.GeneratedMessageLite< - GeoGetComment, GeoGetComment.Builder> implements + public static final class GeoGetComment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetComment) GeoGetCommentOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetComment.newBuilder() to construct. + private GeoGetComment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetComment() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetComment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetComment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetComment.GeoGetComment.class, net.iGap.proto.ProtoGeoGetComment.GeoGetComment.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,291 +208,531 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetComment.GeoGetComment)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetComment.GeoGetComment other = (net.iGap.proto.ProtoGeoGetComment.GeoGetComment) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetComment.GeoGetComment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetComment} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetComment.GeoGetComment, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetComment) net.iGap.proto.ProtoGeoGetComment.GeoGetCommentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetComment.GeoGetComment.class, net.iGap.proto.ProtoGeoGetComment.GeoGetComment.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetComment.GeoGetComment.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetComment_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetComment getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetComment.GeoGetComment.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetComment build() { + net.iGap.proto.ProtoGeoGetComment.GeoGetComment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetComment buildPartial() { + net.iGap.proto.ProtoGeoGetComment.GeoGetComment result = new net.iGap.proto.ProtoGeoGetComment.GeoGetComment(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetComment.GeoGetComment) { + return mergeFrom((net.iGap.proto.ProtoGeoGetComment.GeoGetComment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetComment.GeoGetComment other) { + if (other == net.iGap.proto.ProtoGeoGetComment.GeoGetComment.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetComment.GeoGetComment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetComment.GeoGetComment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetComment) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetComment.GeoGetComment(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetComment.GeoGetComment other = (net.iGap.proto.ProtoGeoGetComment.GeoGetComment) arg1; - request_ = visitor.visitMessage(request_, other.request_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetComment.GeoGetComment.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoGetComment) + } + // @@protoc_insertion_point(class_scope:proto.GeoGetComment) private static final net.iGap.proto.ProtoGeoGetComment.GeoGetComment DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetComment(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetComment.GeoGetComment(); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetComment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetComment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetComment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetComment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GeoGetCommentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetCommentResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ java.lang.String getComment(); /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); @@ -426,124 +740,190 @@ public interface GeoGetCommentResponseOrBuilder extends /** * Protobuf type {@code proto.GeoGetCommentResponse} */ - public static final class GeoGetCommentResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoGetCommentResponse, GeoGetCommentResponse.Builder> implements + public static final class GeoGetCommentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetCommentResponse) GeoGetCommentResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetCommentResponse.newBuilder() to construct. + private GeoGetCommentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetCommentResponse() { comment_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetCommentResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetCommentResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetCommentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetCommentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.class, net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int COMMENT_FIELD_NUMBER = 2; - private java.lang.String comment_; + private volatile java.lang.Object comment_; /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ + @java.lang.Override public java.lang.String getComment() { - return comment_; + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } } /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ + @java.lang.Override public com.google.protobuf.ByteString getCommentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(comment_); - } - /** - * optional string comment = 2; - */ - private void setComment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - comment_ = value; - } - /** - * optional string comment = 2; - */ - private void clearComment() { - - comment_ = getDefaultInstance().getComment(); + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string comment = 2; - */ - private void setCommentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - comment_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!comment_.isEmpty()) { - output.writeString(2, getComment()); + if (!getCommentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, comment_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -551,296 +931,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!comment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getComment()); + if (!getCommentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, comment_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse other = (net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getComment() + .equals(other.getComment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetCommentResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetCommentResponse) net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetCommentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetCommentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.class, net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + comment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetComment.internal_static_proto_GeoGetCommentResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse build() { + net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse buildPartial() { + net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse result = new net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.comment_ = comment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse other) { + if (other == net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object comment_ = ""; /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ public java.lang.String getComment() { - return instance.getComment(); + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { - return instance.getCommentBytes(); + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string comment = 2; + * string comment = 2; + * @param value The comment to set. + * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { - copyOnWrite(); - instance.setComment(value); + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + onChanged(); return this; } /** - * optional string comment = 2; + * string comment = 2; + * @return This builder for chaining. */ public Builder clearComment() { - copyOnWrite(); - instance.clearComment(); + + comment_ = getDefaultInstance().getComment(); + onChanged(); return this; } /** - * optional string comment = 2; + * string comment = 2; + * @param value The bytes for comment to set. + * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCommentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetCommentResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse other = (net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - comment_ = visitor.visitString(!comment_.isEmpty(), comment_, - !other.comment_.isEmpty(), other.comment_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - comment_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoGetCommentResponse) + } + // @@protoc_insertion_point(class_scope:proto.GeoGetCommentResponse) private static final net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetCommentResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse(); } public static net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetCommentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetCommentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetComment.GeoGetCommentResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetComment_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetComment_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetCommentResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetCommentResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023GeoGetComment.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\"A\n\rGeoGetComment\022\037\n\007" + + "request\030\001 \001(\0132\016.proto.Request\022\017\n\007user_id" + + "\030\002 \001(\004\"K\n\025GeoGetCommentResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\022\017\n\007comment\030\002 " + + "\001(\tB$\n\016net.iGap.protoB\022ProtoGeoGetCommen" + + "tb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoGetComment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoGetComment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetComment_descriptor, + new java.lang.String[] { "Request", "UserId", }); + internal_static_proto_GeoGetCommentResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoGetCommentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetCommentResponse_descriptor, + new java.lang.String[] { "Response", "Comment", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoGetConfiguration.java b/src/main/java/net/iGap/proto/ProtoGeoGetConfiguration.java index 6c661df..9e76495 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoGetConfiguration.java +++ b/src/main/java/net/iGap/proto/ProtoGeoGetConfiguration.java @@ -8,90 +8,170 @@ private ProtoGeoGetConfiguration() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoGetConfigurationOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetConfiguration) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.GeoGetConfiguration} */ - public static final class GeoGetConfiguration extends - com.google.protobuf.GeneratedMessageLite< - GeoGetConfiguration, GeoGetConfiguration.Builder> implements + public static final class GeoGetConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetConfiguration) GeoGetConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetConfiguration.newBuilder() to construct. + private GeoGetConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetConfiguration() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetConfiguration(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.class, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,254 +179,480 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration other = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetConfiguration} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetConfiguration) net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.class, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfiguration_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration build() { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration buildPartial() { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration result = new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration) { + return mergeFrom((net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration other) { + if (other == net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GeoGetConfiguration) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration other = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GeoGetConfiguration) + } // @@protoc_insertion_point(class_scope:proto.GeoGetConfiguration) private static final net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetConfiguration(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration(); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetConfiguration(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GeoGetConfigurationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetConfigurationResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; @@ -361,13 +667,25 @@ public interface GeoGetConfigurationResponseOrBuilder extends * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ int getTileServerCount(); + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + java.util.List + getTileServerOrBuilderList(); + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServerOrBuilder getTileServerOrBuilder( + int index); /** - * optional string cache_id = 3; + * string cache_id = 3; + * @return The cacheId. */ java.lang.String getCacheId(); /** - * optional string cache_id = 3; + * string cache_id = 3; + * @return The bytes for cacheId. */ com.google.protobuf.ByteString getCacheIdBytes(); @@ -375,25 +693,126 @@ public interface GeoGetConfigurationResponseOrBuilder extends /** * Protobuf type {@code proto.GeoGetConfigurationResponse} */ - public static final class GeoGetConfigurationResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoGetConfigurationResponse, GeoGetConfigurationResponse.Builder> implements + public static final class GeoGetConfigurationResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetConfigurationResponse) GeoGetConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetConfigurationResponse.newBuilder() to construct. + private GeoGetConfigurationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetConfigurationResponse() { - tileServer_ = emptyProtobufList(); + tileServer_ = java.util.Collections.emptyList(); cacheId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetConfigurationResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetConfigurationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tileServer_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tileServer_.add( + input.readMessage(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + cacheId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tileServer_ = java.util.Collections.unmodifiableList(tileServer_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.class, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.Builder.class); + } + public interface TileServerOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetConfigurationResponse.TileServer) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string base_url = 1; + * string base_url = 1; + * @return The baseUrl. */ java.lang.String getBaseUrl(); /** - * optional string base_url = 1; + * string base_url = 1; + * @return The bytes for baseUrl. */ com.google.protobuf.ByteString getBaseUrlBytes(); @@ -401,365 +820,594 @@ public interface TileServerOrBuilder extends /** * Protobuf type {@code proto.GeoGetConfigurationResponse.TileServer} */ - public static final class TileServer extends - com.google.protobuf.GeneratedMessageLite< - TileServer, TileServer.Builder> implements + public static final class TileServer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetConfigurationResponse.TileServer) TileServerOrBuilder { + private static final long serialVersionUID = 0L; + // Use TileServer.newBuilder() to construct. + private TileServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private TileServer() { baseUrl_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TileServer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TileServer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + baseUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_TileServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_TileServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.class, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder.class); + } + public static final int BASE_URL_FIELD_NUMBER = 1; - private java.lang.String baseUrl_; + private volatile java.lang.Object baseUrl_; /** - * optional string base_url = 1; + * string base_url = 1; + * @return The baseUrl. */ + @java.lang.Override public java.lang.String getBaseUrl() { - return baseUrl_; + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseUrl_ = s; + return s; + } } /** - * optional string base_url = 1; + * string base_url = 1; + * @return The bytes for baseUrl. */ + @java.lang.Override public com.google.protobuf.ByteString getBaseUrlBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(baseUrl_); - } - /** - * optional string base_url = 1; - */ - private void setBaseUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - baseUrl_ = value; - } - /** - * optional string base_url = 1; - */ - private void clearBaseUrl() { - - baseUrl_ = getDefaultInstance().getBaseUrl(); + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + baseUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string base_url = 1; - */ - private void setBaseUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - baseUrl_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!baseUrl_.isEmpty()) { - output.writeString(1, getBaseUrl()); + if (!getBaseUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!baseUrl_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getBaseUrl()); + if (!getBaseUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseUrl_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer other = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer) obj; + + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetConfigurationResponse.TileServer} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetConfigurationResponse.TileServer) net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_TileServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_TileServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.class, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + baseUrl_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_TileServer_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer build() { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer buildPartial() { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer result = new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer(this); + result.baseUrl_ = baseUrl_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer) { + return mergeFrom((net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer other) { + if (other == net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.getDefaultInstance()) return this; + if (!other.getBaseUrl().isEmpty()) { + baseUrl_ = other.baseUrl_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object baseUrl_ = ""; /** - * optional string base_url = 1; + * string base_url = 1; + * @return The baseUrl. */ public java.lang.String getBaseUrl() { - return instance.getBaseUrl(); + java.lang.Object ref = baseUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string base_url = 1; + * string base_url = 1; + * @return The bytes for baseUrl. */ public com.google.protobuf.ByteString getBaseUrlBytes() { - return instance.getBaseUrlBytes(); + java.lang.Object ref = baseUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + baseUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string base_url = 1; + * string base_url = 1; + * @param value The baseUrl to set. + * @return This builder for chaining. */ public Builder setBaseUrl( java.lang.String value) { - copyOnWrite(); - instance.setBaseUrl(value); + if (value == null) { + throw new NullPointerException(); + } + + baseUrl_ = value; + onChanged(); return this; } /** - * optional string base_url = 1; + * string base_url = 1; + * @return This builder for chaining. */ public Builder clearBaseUrl() { - copyOnWrite(); - instance.clearBaseUrl(); + + baseUrl_ = getDefaultInstance().getBaseUrl(); + onChanged(); return this; } /** - * optional string base_url = 1; + * string base_url = 1; + * @param value The bytes for baseUrl to set. + * @return This builder for chaining. */ public Builder setBaseUrlBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBaseUrlBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseUrl_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetConfigurationResponse.TileServer) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer other = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer) arg1; - baseUrl_ = visitor.visitString(!baseUrl_.isEmpty(), baseUrl_, - !other.baseUrl_.isEmpty(), other.baseUrl_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - baseUrl_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoGetConfigurationResponse.TileServer) + } + // @@protoc_insertion_point(class_scope:proto.GeoGetConfigurationResponse.TileServer) private static final net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new TileServer(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer(); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TileServer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TileServer(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TILE_SERVER_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList tileServer_; + private java.util.List tileServer_; /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ + @java.lang.Override public java.util.List getTileServerList() { return tileServer_; } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ + @java.lang.Override public java.util.List getTileServerOrBuilderList() { return tileServer_; @@ -767,154 +1415,76 @@ public java.util.Listrepeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ + @java.lang.Override public int getTileServerCount() { return tileServer_.size(); } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer getTileServer(int index) { return tileServer_.get(index); } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServerOrBuilder getTileServerOrBuilder( int index) { return tileServer_.get(index); } - private void ensureTileServerIsMutable() { - if (!tileServer_.isModifiable()) { - tileServer_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tileServer_); - } - } - - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void setTileServer( - int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTileServerIsMutable(); - tileServer_.set(index, value); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void setTileServer( - int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder builderForValue) { - ensureTileServerIsMutable(); - tileServer_.set(index, builderForValue.build()); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void addTileServer(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTileServerIsMutable(); - tileServer_.add(value); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void addTileServer( - int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTileServerIsMutable(); - tileServer_.add(index, value); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void addTileServer( - net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder builderForValue) { - ensureTileServerIsMutable(); - tileServer_.add(builderForValue.build()); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void addTileServer( - int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder builderForValue) { - ensureTileServerIsMutable(); - tileServer_.add(index, builderForValue.build()); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void addAllTileServer( - java.lang.Iterable values) { - ensureTileServerIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, tileServer_); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void clearTileServer() { - tileServer_ = emptyProtobufList(); - } - /** - * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - */ - private void removeTileServer(int index) { - ensureTileServerIsMutable(); - tileServer_.remove(index); - } public static final int CACHE_ID_FIELD_NUMBER = 3; - private java.lang.String cacheId_; + private volatile java.lang.Object cacheId_; /** - * optional string cache_id = 3; + * string cache_id = 3; + * @return The cacheId. */ + @java.lang.Override public java.lang.String getCacheId() { - return cacheId_; + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } } /** - * optional string cache_id = 3; + * string cache_id = 3; + * @return The bytes for cacheId. */ + @java.lang.Override public com.google.protobuf.ByteString getCacheIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cacheId_); - } - /** - * optional string cache_id = 3; - */ - private void setCacheId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheId_ = value; - } - /** - * optional string cache_id = 3; - */ - private void clearCacheId() { - - cacheId_ = getDefaultInstance().getCacheId(); + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string cache_id = 3; - */ - private void setCacheIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cacheId_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -923,13 +1493,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tileServer_.size(); i++) { output.writeMessage(2, tileServer_.get(i)); } - if (!cacheId_.isEmpty()) { - output.writeString(3, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cacheId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -941,166 +1513,531 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tileServer_.get(i)); } - if (!cacheId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cacheId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse other = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getTileServerList() + .equals(other.getTileServerList())) return false; + if (!getCacheId() + .equals(other.getCacheId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getTileServerCount() > 0) { + hash = (37 * hash) + TILE_SERVER_FIELD_NUMBER; + hash = (53 * hash) + getTileServerList().hashCode(); + } + hash = (37 * hash) + CACHE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCacheId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetConfigurationResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetConfigurationResponse) net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.class, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTileServerFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (tileServerBuilder_ == null) { + tileServer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tileServerBuilder_.clear(); + } + cacheId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetConfiguration.internal_static_proto_GeoGetConfigurationResponse_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse build() { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse buildPartial() { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse result = new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (tileServerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tileServer_ = java.util.Collections.unmodifiableList(tileServer_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tileServer_ = tileServer_; + } else { + result.tileServer_ = tileServerBuilder_.build(); + } + result.cacheId_ = cacheId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse other) { + if (other == net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (tileServerBuilder_ == null) { + if (!other.tileServer_.isEmpty()) { + if (tileServer_.isEmpty()) { + tileServer_ = other.tileServer_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTileServerIsMutable(); + tileServer_.addAll(other.tileServer_); + } + onChanged(); + } + } else { + if (!other.tileServer_.isEmpty()) { + if (tileServerBuilder_.isEmpty()) { + tileServerBuilder_.dispose(); + tileServerBuilder_ = null; + tileServer_ = other.tileServer_; + bitField0_ = (bitField0_ & ~0x00000001); + tileServerBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTileServerFieldBuilder() : null; + } else { + tileServerBuilder_.addAllMessages(other.tileServer_); + } + } + } + if (!other.getCacheId().isEmpty()) { + cacheId_ = other.cacheId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List tileServer_ = + java.util.Collections.emptyList(); + private void ensureTileServerIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tileServer_ = new java.util.ArrayList(tileServer_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServerOrBuilder> tileServerBuilder_; /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ public java.util.List getTileServerList() { - return java.util.Collections.unmodifiableList( - instance.getTileServerList()); + if (tileServerBuilder_ == null) { + return java.util.Collections.unmodifiableList(tileServer_); + } else { + return tileServerBuilder_.getMessageList(); + } } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ public int getTileServerCount() { - return instance.getTileServerCount(); - }/** + if (tileServerBuilder_ == null) { + return tileServer_.size(); + } else { + return tileServerBuilder_.getCount(); + } + } + /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer getTileServer(int index) { - return instance.getTileServer(index); + if (tileServerBuilder_ == null) { + return tileServer_.get(index); + } else { + return tileServerBuilder_.getMessage(index); + } } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ public Builder setTileServer( int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer value) { - copyOnWrite(); - instance.setTileServer(index, value); + if (tileServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTileServerIsMutable(); + tileServer_.set(index, value); + onChanged(); + } else { + tileServerBuilder_.setMessage(index, value); + } return this; } /** @@ -1108,16 +2045,29 @@ public Builder setTileServer( */ public Builder setTileServer( int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder builderForValue) { - copyOnWrite(); - instance.setTileServer(index, builderForValue); + if (tileServerBuilder_ == null) { + ensureTileServerIsMutable(); + tileServer_.set(index, builderForValue.build()); + onChanged(); + } else { + tileServerBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ public Builder addTileServer(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer value) { - copyOnWrite(); - instance.addTileServer(value); + if (tileServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTileServerIsMutable(); + tileServer_.add(value); + onChanged(); + } else { + tileServerBuilder_.addMessage(value); + } return this; } /** @@ -1125,8 +2075,16 @@ public Builder addTileServer(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfi */ public Builder addTileServer( int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer value) { - copyOnWrite(); - instance.addTileServer(index, value); + if (tileServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTileServerIsMutable(); + tileServer_.add(index, value); + onChanged(); + } else { + tileServerBuilder_.addMessage(index, value); + } return this; } /** @@ -1134,8 +2092,13 @@ public Builder addTileServer( */ public Builder addTileServer( net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder builderForValue) { - copyOnWrite(); - instance.addTileServer(builderForValue); + if (tileServerBuilder_ == null) { + ensureTileServerIsMutable(); + tileServer_.add(builderForValue.build()); + onChanged(); + } else { + tileServerBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1143,8 +2106,13 @@ public Builder addTileServer( */ public Builder addTileServer( int index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder builderForValue) { - copyOnWrite(); - instance.addTileServer(index, builderForValue); + if (tileServerBuilder_ == null) { + ensureTileServerIsMutable(); + tileServer_.add(index, builderForValue.build()); + onChanged(); + } else { + tileServerBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1152,194 +2120,295 @@ public Builder addTileServer( */ public Builder addAllTileServer( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllTileServer(values); + if (tileServerBuilder_ == null) { + ensureTileServerIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tileServer_); + onChanged(); + } else { + tileServerBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ public Builder clearTileServer() { - copyOnWrite(); - instance.clearTileServer(); + if (tileServerBuilder_ == null) { + tileServer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tileServerBuilder_.clear(); + } return this; } /** * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; */ public Builder removeTileServer(int index) { - copyOnWrite(); - instance.removeTileServer(index); + if (tileServerBuilder_ == null) { + ensureTileServerIsMutable(); + tileServer_.remove(index); + onChanged(); + } else { + tileServerBuilder_.remove(index); + } return this; } + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder getTileServerBuilder( + int index) { + return getTileServerFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServerOrBuilder getTileServerOrBuilder( + int index) { + if (tileServerBuilder_ == null) { + return tileServer_.get(index); } else { + return tileServerBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + public java.util.List + getTileServerOrBuilderList() { + if (tileServerBuilder_ != null) { + return tileServerBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tileServer_); + } + } + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder addTileServerBuilder() { + return getTileServerFieldBuilder().addBuilder( + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.getDefaultInstance()); + } + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder addTileServerBuilder( + int index) { + return getTileServerFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.getDefaultInstance()); + } + /** + * repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; + */ + public java.util.List + getTileServerBuilderList() { + return getTileServerFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServerOrBuilder> + getTileServerFieldBuilder() { + if (tileServerBuilder_ == null) { + tileServerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.Builder, net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServerOrBuilder>( + tileServer_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tileServer_ = null; + } + return tileServerBuilder_; + } + private java.lang.Object cacheId_ = ""; /** - * optional string cache_id = 3; + * string cache_id = 3; + * @return The cacheId. */ public java.lang.String getCacheId() { - return instance.getCacheId(); + java.lang.Object ref = cacheId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string cache_id = 3; + * string cache_id = 3; + * @return The bytes for cacheId. */ public com.google.protobuf.ByteString getCacheIdBytes() { - return instance.getCacheIdBytes(); + java.lang.Object ref = cacheId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string cache_id = 3; + * string cache_id = 3; + * @param value The cacheId to set. + * @return This builder for chaining. */ public Builder setCacheId( java.lang.String value) { - copyOnWrite(); - instance.setCacheId(value); + if (value == null) { + throw new NullPointerException(); + } + + cacheId_ = value; + onChanged(); return this; } /** - * optional string cache_id = 3; + * string cache_id = 3; + * @return This builder for chaining. */ public Builder clearCacheId() { - copyOnWrite(); - instance.clearCacheId(); + + cacheId_ = getDefaultInstance().getCacheId(); + onChanged(); return this; } /** - * optional string cache_id = 3; + * string cache_id = 3; + * @param value The bytes for cacheId to set. + * @return This builder for chaining. */ public Builder setCacheIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCacheIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cacheId_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetConfigurationResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - tileServer_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse other = (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - tileServer_= visitor.visitList(tileServer_, other.tileServer_); - cacheId_ = visitor.visitString(!cacheId_.isEmpty(), cacheId_, - !other.cacheId_.isEmpty(), other.cacheId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!tileServer_.isModifiable()) { - tileServer_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tileServer_); - } - tileServer_.add( - input.readMessage(net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.TileServer.parser(), extensionRegistry)); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - cacheId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoGetConfigurationResponse) + } + // @@protoc_insertion_point(class_scope:proto.GeoGetConfigurationResponse) private static final net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetConfigurationResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse(); } public static net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetConfigurationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetConfiguration.GeoGetConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetConfigurationResponse_TileServer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetConfigurationResponse_TileServer_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031GeoGetConfiguration.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"6\n\023GeoGetConfi" + + "guration\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\"\266\001\n\033GeoGetConfigurationResponse\022!\n\010res" + + "ponse\030\001 \001(\0132\017.proto.Response\022B\n\013tile_ser" + + "ver\030\002 \003(\0132-.proto.GeoGetConfigurationRes" + + "ponse.TileServer\022\020\n\010cache_id\030\003 \001(\t\032\036\n\nTi" + + "leServer\022\020\n\010base_url\030\001 \001(\tB*\n\016net.iGap.p" + + "rotoB\030ProtoGeoGetConfigurationb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoGetConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoGetConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetConfiguration_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_GeoGetConfigurationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoGetConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetConfigurationResponse_descriptor, + new java.lang.String[] { "Response", "TileServer", "CacheId", }); + internal_static_proto_GeoGetConfigurationResponse_TileServer_descriptor = + internal_static_proto_GeoGetConfigurationResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_GeoGetConfigurationResponse_TileServer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetConfigurationResponse_TileServer_descriptor, + new java.lang.String[] { "BaseUrl", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoGetNearbyCoordinate.java b/src/main/java/net/iGap/proto/ProtoGeoGetNearbyCoordinate.java index 642d4d1..6cec502 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoGetNearbyCoordinate.java +++ b/src/main/java/net/iGap/proto/ProtoGeoGetNearbyCoordinate.java @@ -8,137 +8,203 @@ private ProtoGeoGetNearbyCoordinate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoGetNearbyCoordinateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetNearbyCoordinate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ double getLat(); /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ double getLon(); } /** * Protobuf type {@code proto.GeoGetNearbyCoordinate} */ - public static final class GeoGetNearbyCoordinate extends - com.google.protobuf.GeneratedMessageLite< - GeoGetNearbyCoordinate, GeoGetNearbyCoordinate.Builder> implements + public static final class GeoGetNearbyCoordinate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetNearbyCoordinate) GeoGetNearbyCoordinateOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetNearbyCoordinate.newBuilder() to construct. + private GeoGetNearbyCoordinate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetNearbyCoordinate() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetNearbyCoordinate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetNearbyCoordinate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 17: { + + lat_ = input.readDouble(); + break; + } + case 25: { + + lon_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.class, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int LAT_FIELD_NUMBER = 2; private double lat_; /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ + @java.lang.Override public double getLat() { return lat_; } - /** - * optional double lat = 2; - */ - private void setLat(double value) { - - lat_ = value; - } - /** - * optional double lat = 2; - */ - private void clearLat() { - - lat_ = 0D; - } public static final int LON_FIELD_NUMBER = 3; private double lon_; /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ + @java.lang.Override public double getLon() { return lon_; } - /** - * optional double lon = 3; - */ - private void setLon(double value) { - - lon_ = value; - } - /** - * optional double lon = 3; - */ - private void clearLon() { - - lon_ = 0D; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lon_ != 0D) { output.writeDouble(3, lon_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,314 +237,566 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, lon_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate other = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (java.lang.Double.doubleToLongBits(getLat()) + != java.lang.Double.doubleToLongBits( + other.getLat())) return false; + if (java.lang.Double.doubleToLongBits(getLon()) + != java.lang.Double.doubleToLongBits( + other.getLon())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLat())); + hash = (37 * hash) + LON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLon())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetNearbyCoordinate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetNearbyCoordinate) net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.class, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + lat_ = 0D; + lon_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate build() { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate buildPartial() { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate result = new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.lat_ = lat_; + result.lon_ = lon_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate) { + return mergeFrom((net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate other) { + if (other == net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getLat() != 0D) { + setLat(other.getLat()); + } + if (other.getLon() != 0D) { + setLon(other.getLon()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private double lat_ ; /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ + @java.lang.Override public double getLat() { - return instance.getLat(); + return lat_; } /** - * optional double lat = 2; + * double lat = 2; + * @param value The lat to set. + * @return This builder for chaining. */ public Builder setLat(double value) { - copyOnWrite(); - instance.setLat(value); + + lat_ = value; + onChanged(); return this; } /** - * optional double lat = 2; + * double lat = 2; + * @return This builder for chaining. */ public Builder clearLat() { - copyOnWrite(); - instance.clearLat(); + + lat_ = 0D; + onChanged(); return this; } + private double lon_ ; /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ + @java.lang.Override public double getLon() { - return instance.getLon(); + return lon_; } /** - * optional double lon = 3; + * double lon = 3; + * @param value The lon to set. + * @return This builder for chaining. */ public Builder setLon(double value) { - copyOnWrite(); - instance.setLon(value); + + lon_ = value; + onChanged(); return this; } /** - * optional double lon = 3; + * double lon = 3; + * @return This builder for chaining. */ public Builder clearLon() { - copyOnWrite(); - instance.clearLon(); + + lon_ = 0D; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyCoordinate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate other = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate) arg1; - request_ = visitor.visitMessage(request_, other.request_); - lat_ = visitor.visitDouble(lat_ != 0D, lat_, - other.lat_ != 0D, other.lat_); - lon_ = visitor.visitDouble(lon_ != 0D, lon_, - other.lon_ != 0D, other.lon_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 17: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - lat_ = input.readDouble(); - break; - } - case 25: { - lon_ = input.readDouble(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyCoordinate) } - // @@protoc_insertion_point(class_scope:proto.GeoGetNearbyCoordinate) private static final net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetNearbyCoordinate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate(); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetNearbyCoordinate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetNearbyCoordinate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GeoGetNearbyCoordinateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetNearbyCoordinateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; @@ -491,144 +811,302 @@ public interface GeoGetNearbyCoordinateResponseOrBuilder extends * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ int getResultCount(); + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.ResultOrBuilder getResultOrBuilder( + int index); } /** * Protobuf type {@code proto.GeoGetNearbyCoordinateResponse} */ - public static final class GeoGetNearbyCoordinateResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoGetNearbyCoordinateResponse, GeoGetNearbyCoordinateResponse.Builder> implements + public static final class GeoGetNearbyCoordinateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetNearbyCoordinateResponse) GeoGetNearbyCoordinateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetNearbyCoordinateResponse.newBuilder() to construct. + private GeoGetNearbyCoordinateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetNearbyCoordinateResponse() { - result_ = emptyProtobufList(); + result_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetNearbyCoordinateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetNearbyCoordinateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + result_.add( + input.readMessage(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.class, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Builder.class); } + public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetNearbyCoordinateResponse.Result) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ long getUserId(); /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return The hasComment. */ boolean getHasComment(); /** - * optional double lat = 3; + * double lat = 3; + * @return The lat. */ double getLat(); /** - * optional double lon = 4; + * double lon = 4; + * @return The lon. */ double getLon(); } /** * Protobuf type {@code proto.GeoGetNearbyCoordinateResponse.Result} */ - public static final class Result extends - com.google.protobuf.GeneratedMessageLite< - Result, Result.Builder> implements + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetNearbyCoordinateResponse.Result) ResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use Result.newBuilder() to construct. + private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Result() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Result(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Result( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 16: { + + hasComment_ = input.readBool(); + break; + } + case 25: { + + lat_ = input.readDouble(); + break; + } + case 33: { + + lon_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.class, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int HAS_COMMENT_FIELD_NUMBER = 2; private boolean hasComment_; /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return The hasComment. */ + @java.lang.Override public boolean getHasComment() { return hasComment_; } - /** - * optional bool has_comment = 2; - */ - private void setHasComment(boolean value) { - - hasComment_ = value; - } - /** - * optional bool has_comment = 2; - */ - private void clearHasComment() { - - hasComment_ = false; - } public static final int LAT_FIELD_NUMBER = 3; private double lat_; /** - * optional double lat = 3; + * double lat = 3; + * @return The lat. */ + @java.lang.Override public double getLat() { return lat_; } - /** - * optional double lat = 3; - */ - private void setLat(double value) { - - lat_ = value; - } - /** - * optional double lat = 3; - */ - private void clearLat() { - - lat_ = 0D; - } public static final int LON_FIELD_NUMBER = 4; private double lon_; /** - * optional double lon = 4; + * double lon = 4; + * @return The lon. */ + @java.lang.Override public double getLon() { return lon_; } - /** - * optional double lon = 4; - */ - private void setLon(double value) { - - lon_ = value; - } - /** - * optional double lon = 4; - */ - private void clearLon() { - - lon_ = 0D; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { @@ -643,10 +1121,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lon_ != 0D) { output.writeDouble(4, lon_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -666,367 +1146,529 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, lon_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result other = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result) obj; + + if (getUserId() + != other.getUserId()) return false; + if (getHasComment() + != other.getHasComment()) return false; + if (java.lang.Double.doubleToLongBits(getLat()) + != java.lang.Double.doubleToLongBits( + other.getLat())) return false; + if (java.lang.Double.doubleToLongBits(getLon()) + != java.lang.Double.doubleToLongBits( + other.getLon())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + HAS_COMMENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasComment()); + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLat())); + hash = (37 * hash) + LON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLon())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetNearbyCoordinateResponse.Result} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetNearbyCoordinateResponse.Result) net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.class, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + hasComment_ = false; + + lat_ = 0D; + + lon_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_Result_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result build() { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result buildPartial() { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result result = new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result(this); + result.userId_ = userId_; + result.hasComment_ = hasComment_; + result.lat_ = lat_; + result.lon_ = lon_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result) { + return mergeFrom((net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result other) { + if (other == net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getHasComment() != false) { + setHasComment(other.getHasComment()); + } + if (other.getLat() != 0D) { + setLat(other.getLat()); + } + if (other.getLon() != 0D) { + setLon(other.getLon()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - + private long userId_ ; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private boolean hasComment_ ; /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return The hasComment. */ + @java.lang.Override public boolean getHasComment() { - return instance.getHasComment(); + return hasComment_; } /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @param value The hasComment to set. + * @return This builder for chaining. */ public Builder setHasComment(boolean value) { - copyOnWrite(); - instance.setHasComment(value); + + hasComment_ = value; + onChanged(); return this; } /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return This builder for chaining. */ public Builder clearHasComment() { - copyOnWrite(); - instance.clearHasComment(); + + hasComment_ = false; + onChanged(); return this; } + private double lat_ ; /** - * optional double lat = 3; + * double lat = 3; + * @return The lat. */ + @java.lang.Override public double getLat() { - return instance.getLat(); + return lat_; } /** - * optional double lat = 3; + * double lat = 3; + * @param value The lat to set. + * @return This builder for chaining. */ public Builder setLat(double value) { - copyOnWrite(); - instance.setLat(value); + + lat_ = value; + onChanged(); return this; } /** - * optional double lat = 3; + * double lat = 3; + * @return This builder for chaining. */ public Builder clearLat() { - copyOnWrite(); - instance.clearLat(); + + lat_ = 0D; + onChanged(); return this; } + private double lon_ ; /** - * optional double lon = 4; + * double lon = 4; + * @return The lon. */ + @java.lang.Override public double getLon() { - return instance.getLon(); + return lon_; } /** - * optional double lon = 4; + * double lon = 4; + * @param value The lon to set. + * @return This builder for chaining. */ public Builder setLon(double value) { - copyOnWrite(); - instance.setLon(value); + + lon_ = value; + onChanged(); return this; } /** - * optional double lon = 4; + * double lon = 4; + * @return This builder for chaining. */ public Builder clearLon() { - copyOnWrite(); - instance.clearLon(); + + lon_ = 0D; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyCoordinateResponse.Result) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result other = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - hasComment_ = visitor.visitBoolean(hasComment_ != false, hasComment_, - other.hasComment_ != false, other.hasComment_); - lat_ = visitor.visitDouble(lat_ != 0D, lat_, - other.lat_ != 0D, other.lat_); - lon_ = visitor.visitDouble(lon_ != 0D, lon_, - other.lon_ != 0D, other.lon_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 16: { - - hasComment_ = input.readBool(); - break; - } - case 25: { - - lat_ = input.readDouble(); - break; - } - case 33: { - - lon_ = input.readDouble(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyCoordinateResponse.Result) + } + // @@protoc_insertion_point(class_scope:proto.GeoGetNearbyCoordinateResponse.Result) private static final net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Result(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result(); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int RESULT_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList result_; + private java.util.List result_; /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ + @java.lang.Override public java.util.List getResultList() { return result_; } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ + @java.lang.Override public java.util.List getResultOrBuilderList() { return result_; @@ -1034,108 +1676,38 @@ public java.util.Listrepeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ + @java.lang.Override public int getResultCount() { return result_.size(); } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result getResult(int index) { return result_.get(index); } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.ResultOrBuilder getResultOrBuilder( int index) { return result_.get(index); } - private void ensureResultIsMutable() { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void setResult( - int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.set(index, value); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void setResult( - int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.set(index, builderForValue.build()); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void addResult(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(value); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void addResult( - int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(index, value); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void addResult( - net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(builderForValue.build()); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void addResult( - int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(index, builderForValue.build()); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void addAllResult( - java.lang.Iterable values) { - ensureResultIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, result_); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void clearResult() { - result_ = emptyProtobufList(); - } - /** - * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - */ - private void removeResult(int index) { - ensureResultIsMutable(); - result_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1144,10 +1716,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < result_.size(); i++) { output.writeMessage(2, result_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1159,162 +1733,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, result_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse other = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getResultList() + .equals(other.getResultList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetNearbyCoordinateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetNearbyCoordinateResponse) net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.class, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.internal_static_proto_GeoGetNearbyCoordinateResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse build() { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse buildPartial() { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse result = new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse other) { + if (other == net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + resultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.ResultOrBuilder> resultBuilder_; /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ public java.util.List getResultList() { - return java.util.Collections.unmodifiableList( - instance.getResultList()); + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ public int getResultCount() { - return instance.getResultCount(); - }/** + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result getResult(int index) { - return instance.getResult(index); + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ public Builder setResult( int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result value) { - copyOnWrite(); - instance.setResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } return this; } /** @@ -1322,16 +2251,29 @@ public Builder setResult( */ public Builder setResult( int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.setResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ public Builder addResult(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result value) { - copyOnWrite(); - instance.addResult(value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } return this; } /** @@ -1339,8 +2281,16 @@ public Builder addResult(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearby */ public Builder addResult( int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result value) { - copyOnWrite(); - instance.addResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } return this; } /** @@ -1348,8 +2298,13 @@ public Builder addResult( */ public Builder addResult( net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1357,8 +2312,13 @@ public Builder addResult( */ public Builder addResult( int index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1366,146 +2326,221 @@ public Builder addResult( */ public Builder addAllResult( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllResult(values); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ public Builder clearResult() { - copyOnWrite(); - instance.clearResult(); + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultBuilder_.clear(); + } return this; } /** * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; */ public Builder removeResult(int index) { - copyOnWrite(); - instance.removeResult(index); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyCoordinateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - result_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse other = (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - result_= visitor.visitList(result_, other.result_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - result_.add( - input.readMessage(net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.ResultOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.ResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.Result.Builder, net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse.ResultOrBuilder>( + result_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + result_ = null; } + return resultBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyCoordinateResponse) + } // @@protoc_insertion_point(class_scope:proto.GeoGetNearbyCoordinateResponse) private static final net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetNearbyCoordinateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse(); } public static net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetNearbyCoordinateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetNearbyCoordinateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyCoordinate.GeoGetNearbyCoordinateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetNearbyCoordinate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetNearbyCoordinate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetNearbyCoordinateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetNearbyCoordinateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetNearbyCoordinateResponse_Result_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetNearbyCoordinateResponse_Result_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034GeoGetNearbyCoordinate.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"S\n\026GeoGetNe" + + "arbyCoordinate\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\013\n\003lat\030\002 \001(\001\022\013\n\003lon\030\003 \001(\001\"\313\001\n\036Ge" + + "oGetNearbyCoordinateResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022<\n\006result\030\002 \003(\0132" + + ",.proto.GeoGetNearbyCoordinateResponse.R" + + "esult\032H\n\006Result\022\017\n\007user_id\030\001 \001(\004\022\023\n\013has_" + + "comment\030\002 \001(\010\022\013\n\003lat\030\003 \001(\001\022\013\n\003lon\030\004 \001(\001B" + + "-\n\016net.iGap.protoB\033ProtoGeoGetNearbyCoor" + + "dinateb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoGetNearbyCoordinate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoGetNearbyCoordinate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetNearbyCoordinate_descriptor, + new java.lang.String[] { "Request", "Lat", "Lon", }); + internal_static_proto_GeoGetNearbyCoordinateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoGetNearbyCoordinateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetNearbyCoordinateResponse_descriptor, + new java.lang.String[] { "Response", "Result", }); + internal_static_proto_GeoGetNearbyCoordinateResponse_Result_descriptor = + internal_static_proto_GeoGetNearbyCoordinateResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_GeoGetNearbyCoordinateResponse_Result_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetNearbyCoordinateResponse_Result_descriptor, + new java.lang.String[] { "UserId", "HasComment", "Lat", "Lon", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoGetNearbyDistance.java b/src/main/java/net/iGap/proto/ProtoGeoGetNearbyDistance.java index 7a8fcbc..4b3bfe2 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoGetNearbyDistance.java +++ b/src/main/java/net/iGap/proto/ProtoGeoGetNearbyDistance.java @@ -8,137 +8,203 @@ private ProtoGeoGetNearbyDistance() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoGetNearbyDistanceOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetNearbyDistance) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ double getLat(); /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ double getLon(); } /** * Protobuf type {@code proto.GeoGetNearbyDistance} */ - public static final class GeoGetNearbyDistance extends - com.google.protobuf.GeneratedMessageLite< - GeoGetNearbyDistance, GeoGetNearbyDistance.Builder> implements + public static final class GeoGetNearbyDistance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetNearbyDistance) GeoGetNearbyDistanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetNearbyDistance.newBuilder() to construct. + private GeoGetNearbyDistance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetNearbyDistance() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetNearbyDistance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetNearbyDistance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 17: { + + lat_ = input.readDouble(); + break; + } + case 25: { + + lon_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.class, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int LAT_FIELD_NUMBER = 2; private double lat_; /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ + @java.lang.Override public double getLat() { return lat_; } - /** - * optional double lat = 2; - */ - private void setLat(double value) { - - lat_ = value; - } - /** - * optional double lat = 2; - */ - private void clearLat() { - - lat_ = 0D; - } public static final int LON_FIELD_NUMBER = 3; private double lon_; /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ + @java.lang.Override public double getLon() { return lon_; } - /** - * optional double lon = 3; - */ - private void setLon(double value) { - - lon_ = value; - } - /** - * optional double lon = 3; - */ - private void clearLon() { - - lon_ = 0D; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lon_ != 0D) { output.writeDouble(3, lon_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,314 +237,566 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, lon_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance other = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (java.lang.Double.doubleToLongBits(getLat()) + != java.lang.Double.doubleToLongBits( + other.getLat())) return false; + if (java.lang.Double.doubleToLongBits(getLon()) + != java.lang.Double.doubleToLongBits( + other.getLon())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLat())); + hash = (37 * hash) + LON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLon())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetNearbyDistance} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetNearbyDistance) net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.class, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + lat_ = 0D; + + lon_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistance_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance build() { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance buildPartial() { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance result = new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.lat_ = lat_; + result.lon_ = lon_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance) { + return mergeFrom((net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance other) { + if (other == net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getLat() != 0D) { + setLat(other.getLat()); + } + if (other.getLon() != 0D) { + setLon(other.getLon()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private double lat_ ; /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ + @java.lang.Override public double getLat() { - return instance.getLat(); + return lat_; } /** - * optional double lat = 2; + * double lat = 2; + * @param value The lat to set. + * @return This builder for chaining. */ public Builder setLat(double value) { - copyOnWrite(); - instance.setLat(value); + + lat_ = value; + onChanged(); return this; } /** - * optional double lat = 2; + * double lat = 2; + * @return This builder for chaining. */ public Builder clearLat() { - copyOnWrite(); - instance.clearLat(); + + lat_ = 0D; + onChanged(); return this; } + private double lon_ ; /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ + @java.lang.Override public double getLon() { - return instance.getLon(); + return lon_; } /** - * optional double lon = 3; + * double lon = 3; + * @param value The lon to set. + * @return This builder for chaining. */ public Builder setLon(double value) { - copyOnWrite(); - instance.setLon(value); + + lon_ = value; + onChanged(); return this; } /** - * optional double lon = 3; + * double lon = 3; + * @return This builder for chaining. */ public Builder clearLon() { - copyOnWrite(); - instance.clearLon(); + + lon_ = 0D; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyDistance) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance other = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance) arg1; - request_ = visitor.visitMessage(request_, other.request_); - lat_ = visitor.visitDouble(lat_ != 0D, lat_, - other.lat_ != 0D, other.lat_); - lon_ = visitor.visitDouble(lon_ != 0D, lon_, - other.lon_ != 0D, other.lon_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 17: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - lat_ = input.readDouble(); - break; - } - case 25: { - lon_ = input.readDouble(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyDistance) } - // @@protoc_insertion_point(class_scope:proto.GeoGetNearbyDistance) private static final net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetNearbyDistance(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance(); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetNearbyDistance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetNearbyDistance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GeoGetNearbyDistanceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetNearbyDistanceResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; @@ -491,116 +811,280 @@ public interface GeoGetNearbyDistanceResponseOrBuilder extends * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ int getResultCount(); + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.ResultOrBuilder getResultOrBuilder( + int index); } /** * Protobuf type {@code proto.GeoGetNearbyDistanceResponse} */ - public static final class GeoGetNearbyDistanceResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoGetNearbyDistanceResponse, GeoGetNearbyDistanceResponse.Builder> implements + public static final class GeoGetNearbyDistanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetNearbyDistanceResponse) GeoGetNearbyDistanceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetNearbyDistanceResponse.newBuilder() to construct. + private GeoGetNearbyDistanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetNearbyDistanceResponse() { - result_ = emptyProtobufList(); + result_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetNearbyDistanceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetNearbyDistanceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + result_.add( + input.readMessage(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.class, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Builder.class); } + public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetNearbyDistanceResponse.Result) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ long getUserId(); /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return The hasComment. */ boolean getHasComment(); /** - * optional uint32 distance = 3; + * uint32 distance = 3; + * @return The distance. */ int getDistance(); } /** * Protobuf type {@code proto.GeoGetNearbyDistanceResponse.Result} */ - public static final class Result extends - com.google.protobuf.GeneratedMessageLite< - Result, Result.Builder> implements + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetNearbyDistanceResponse.Result) ResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use Result.newBuilder() to construct. + private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Result() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Result(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Result( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 16: { + + hasComment_ = input.readBool(); + break; + } + case 24: { + + distance_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.class, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int HAS_COMMENT_FIELD_NUMBER = 2; private boolean hasComment_; /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return The hasComment. */ + @java.lang.Override public boolean getHasComment() { return hasComment_; } - /** - * optional bool has_comment = 2; - */ - private void setHasComment(boolean value) { - - hasComment_ = value; - } - /** - * optional bool has_comment = 2; - */ - private void clearHasComment() { - - hasComment_ = false; - } public static final int DISTANCE_FIELD_NUMBER = 3; private int distance_; /** - * optional uint32 distance = 3; + * uint32 distance = 3; + * @return The distance. */ + @java.lang.Override public int getDistance() { return distance_; } - /** - * optional uint32 distance = 3; - */ - private void setDistance(int value) { - - distance_ = value; - } - /** - * optional uint32 distance = 3; - */ - private void clearDistance() { - - distance_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { @@ -612,10 +1096,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (distance_ != 0) { output.writeUInt32(3, distance_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -631,337 +1117,484 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, distance_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result other = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result) obj; + + if (getUserId() + != other.getUserId()) return false; + if (getHasComment() + != other.getHasComment()) return false; + if (getDistance() + != other.getDistance()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + HAS_COMMENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasComment()); + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + getDistance(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetNearbyDistanceResponse.Result} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetNearbyDistanceResponse.Result) net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.class, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + hasComment_ = false; + + distance_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_Result_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result build() { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result buildPartial() { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result result = new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result(this); + result.userId_ = userId_; + result.hasComment_ = hasComment_; + result.distance_ = distance_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result) { + return mergeFrom((net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result other) { + if (other == net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getHasComment() != false) { + setHasComment(other.getHasComment()); + } + if (other.getDistance() != 0) { + setDistance(other.getDistance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - + private long userId_ ; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private boolean hasComment_ ; /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return The hasComment. */ + @java.lang.Override public boolean getHasComment() { - return instance.getHasComment(); + return hasComment_; } /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @param value The hasComment to set. + * @return This builder for chaining. */ public Builder setHasComment(boolean value) { - copyOnWrite(); - instance.setHasComment(value); + + hasComment_ = value; + onChanged(); return this; } /** - * optional bool has_comment = 2; + * bool has_comment = 2; + * @return This builder for chaining. */ public Builder clearHasComment() { - copyOnWrite(); - instance.clearHasComment(); + + hasComment_ = false; + onChanged(); return this; } + private int distance_ ; /** - * optional uint32 distance = 3; + * uint32 distance = 3; + * @return The distance. */ + @java.lang.Override public int getDistance() { - return instance.getDistance(); + return distance_; } /** - * optional uint32 distance = 3; + * uint32 distance = 3; + * @param value The distance to set. + * @return This builder for chaining. */ public Builder setDistance(int value) { - copyOnWrite(); - instance.setDistance(value); + + distance_ = value; + onChanged(); return this; } /** - * optional uint32 distance = 3; + * uint32 distance = 3; + * @return This builder for chaining. */ public Builder clearDistance() { - copyOnWrite(); - instance.clearDistance(); + + distance_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyDistanceResponse.Result) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result other = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - hasComment_ = visitor.visitBoolean(hasComment_ != false, hasComment_, - other.hasComment_ != false, other.hasComment_); - distance_ = visitor.visitInt(distance_ != 0, distance_, - other.distance_ != 0, other.distance_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 16: { - - hasComment_ = input.readBool(); - break; - } - case 24: { - - distance_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyDistanceResponse.Result) + } + // @@protoc_insertion_point(class_scope:proto.GeoGetNearbyDistanceResponse.Result) private static final net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Result(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result(); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int RESULT_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList result_; + private java.util.List result_; /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ + @java.lang.Override public java.util.List getResultList() { return result_; } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ + @java.lang.Override public java.util.List getResultOrBuilderList() { return result_; @@ -969,108 +1602,38 @@ public java.util.Listrepeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ + @java.lang.Override public int getResultCount() { return result_.size(); } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result getResult(int index) { return result_.get(index); } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.ResultOrBuilder getResultOrBuilder( int index) { return result_.get(index); } - private void ensureResultIsMutable() { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void setResult( - int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.set(index, value); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void setResult( - int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.set(index, builderForValue.build()); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void addResult(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(value); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void addResult( - int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(index, value); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void addResult( - net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(builderForValue.build()); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void addResult( - int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder builderForValue) { - ensureResultIsMutable(); - result_.add(index, builderForValue.build()); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void addAllResult( - java.lang.Iterable values) { - ensureResultIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, result_); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void clearResult() { - result_ = emptyProtobufList(); - } - /** - * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - */ - private void removeResult(int index) { - ensureResultIsMutable(); - result_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1079,10 +1642,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < result_.size(); i++) { output.writeMessage(2, result_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1094,162 +1659,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, result_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse other = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getResultList() + .equals(other.getResultList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetNearbyDistanceResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetNearbyDistanceResponse) net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.class, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.internal_static_proto_GeoGetNearbyDistanceResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse build() { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse buildPartial() { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse result = new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse other) { + if (other == net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + resultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.ResultOrBuilder> resultBuilder_; /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ public java.util.List getResultList() { - return java.util.Collections.unmodifiableList( - instance.getResultList()); + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ public int getResultCount() { - return instance.getResultCount(); - }/** + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result getResult(int index) { - return instance.getResult(index); + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ public Builder setResult( int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result value) { - copyOnWrite(); - instance.setResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } return this; } /** @@ -1257,16 +2177,29 @@ public Builder setResult( */ public Builder setResult( int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.setResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ public Builder addResult(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result value) { - copyOnWrite(); - instance.addResult(value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } return this; } /** @@ -1274,8 +2207,16 @@ public Builder addResult(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDi */ public Builder addResult( int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result value) { - copyOnWrite(); - instance.addResult(index, value); + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } return this; } /** @@ -1283,8 +2224,13 @@ public Builder addResult( */ public Builder addResult( net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1292,8 +2238,13 @@ public Builder addResult( */ public Builder addResult( int index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder builderForValue) { - copyOnWrite(); - instance.addResult(index, builderForValue); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1301,146 +2252,220 @@ public Builder addResult( */ public Builder addAllResult( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllResult(values); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ public Builder clearResult() { - copyOnWrite(); - instance.clearResult(); + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultBuilder_.clear(); + } return this; } /** * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; */ public Builder removeResult(int index) { - copyOnWrite(); - instance.removeResult(index); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyDistanceResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - result_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse other = (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - result_= visitor.visitList(result_, other.result_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!result_.isModifiable()) { - result_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(result_); - } - result_.add( - input.readMessage(net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.ResultOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.ResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.Result.Builder, net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse.ResultOrBuilder>( + result_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + result_ = null; } + return resultBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GeoGetNearbyDistanceResponse) + } // @@protoc_insertion_point(class_scope:proto.GeoGetNearbyDistanceResponse) private static final net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetNearbyDistanceResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse(); } public static net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetNearbyDistanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetNearbyDistanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetNearbyDistance.GeoGetNearbyDistanceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetNearbyDistance_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetNearbyDistance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetNearbyDistanceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetNearbyDistanceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetNearbyDistanceResponse_Result_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetNearbyDistanceResponse_Result_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032GeoGetNearbyDistance.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"Q\n\024GeoGetNear" + + "byDistance\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\013\n\003lat\030\002 \001(\001\022\013\n\003lon\030\003 \001(\001\"\277\001\n\034GeoGet" + + "NearbyDistanceResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022:\n\006result\030\002 \003(\0132*.prot" + + "o.GeoGetNearbyDistanceResponse.Result\032@\n" + + "\006Result\022\017\n\007user_id\030\001 \001(\004\022\023\n\013has_comment\030" + + "\002 \001(\010\022\020\n\010distance\030\003 \001(\rB+\n\016net.iGap.prot" + + "oB\031ProtoGeoGetNearbyDistanceb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoGetNearbyDistance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoGetNearbyDistance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetNearbyDistance_descriptor, + new java.lang.String[] { "Request", "Lat", "Lon", }); + internal_static_proto_GeoGetNearbyDistanceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoGetNearbyDistanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetNearbyDistanceResponse_descriptor, + new java.lang.String[] { "Response", "Result", }); + internal_static_proto_GeoGetNearbyDistanceResponse_Result_descriptor = + internal_static_proto_GeoGetNearbyDistanceResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_GeoGetNearbyDistanceResponse_Result_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetNearbyDistanceResponse_Result_descriptor, + new java.lang.String[] { "UserId", "HasComment", "Distance", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoGetRegisterStatus.java b/src/main/java/net/iGap/proto/ProtoGeoGetRegisterStatus.java index b393eb0..46f1bc9 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoGetRegisterStatus.java +++ b/src/main/java/net/iGap/proto/ProtoGeoGetRegisterStatus.java @@ -8,90 +8,170 @@ private ProtoGeoGetRegisterStatus() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoGetRegisterStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetRegisterStatus) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.GeoGetRegisterStatus} */ - public static final class GeoGetRegisterStatus extends - com.google.protobuf.GeneratedMessageLite< - GeoGetRegisterStatus, GeoGetRegisterStatus.Builder> implements + public static final class GeoGetRegisterStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetRegisterStatus) GeoGetRegisterStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetRegisterStatus.newBuilder() to construct. + private GeoGetRegisterStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetRegisterStatus() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetRegisterStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetRegisterStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.class, net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,345 +179,631 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus other = (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetRegisterStatus} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetRegisterStatus) net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.class, net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatus_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus build() { + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus buildPartial() { + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus result = new net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus) { + return mergeFrom((net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus other) { + if (other == net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GeoGetRegisterStatus) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus other = (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GeoGetRegisterStatus) + } // @@protoc_insertion_point(class_scope:proto.GeoGetRegisterStatus) private static final net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetRegisterStatus(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus(); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetRegisterStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetRegisterStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GeoGetRegisterStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoGetRegisterStatusResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ boolean getEnable(); } /** * Protobuf type {@code proto.GeoGetRegisterStatusResponse} */ - public static final class GeoGetRegisterStatusResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoGetRegisterStatusResponse, GeoGetRegisterStatusResponse.Builder> implements + public static final class GeoGetRegisterStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoGetRegisterStatusResponse) GeoGetRegisterStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoGetRegisterStatusResponse.newBuilder() to construct. + private GeoGetRegisterStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoGetRegisterStatusResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoGetRegisterStatusResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoGetRegisterStatusResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + enable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.class, net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ENABLE_FIELD_NUMBER = 2; private boolean enable_; /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ + @java.lang.Override public boolean getEnable() { return enable_; } - /** - * optional bool enable = 2; - */ - private void setEnable(boolean value) { - - enable_ = value; - } - /** - * optional bool enable = 2; - */ - private void clearEnable() { - - enable_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -446,10 +812,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (enable_ != false) { output.writeBool(2, enable_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -461,274 +829,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, enable_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse other = (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getEnable() + != other.getEnable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoGetRegisterStatusResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoGetRegisterStatusResponse) net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.class, net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + enable_ = false; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.internal_static_proto_GeoGetRegisterStatusResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse build() { + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse buildPartial() { + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse result = new net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.enable_ = enable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse other) { + if (other == net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private boolean enable_ ; /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ + @java.lang.Override public boolean getEnable() { - return instance.getEnable(); + return enable_; } /** - * optional bool enable = 2; + * bool enable = 2; + * @param value The enable to set. + * @return This builder for chaining. */ public Builder setEnable(boolean value) { - copyOnWrite(); - instance.setEnable(value); + + enable_ = value; + onChanged(); return this; } /** - * optional bool enable = 2; + * bool enable = 2; + * @return This builder for chaining. */ public Builder clearEnable() { - copyOnWrite(); - instance.clearEnable(); + + enable_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoGetRegisterStatusResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse other = (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - enable_ = visitor.visitBoolean(enable_ != false, enable_, - other.enable_ != false, other.enable_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - enable_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoGetRegisterStatusResponse) + } + // @@protoc_insertion_point(class_scope:proto.GeoGetRegisterStatusResponse) private static final net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoGetRegisterStatusResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse(); } public static net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoGetRegisterStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoGetRegisterStatusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoGetRegisterStatus.GeoGetRegisterStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetRegisterStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetRegisterStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoGetRegisterStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoGetRegisterStatusResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032GeoGetRegisterStatus.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"7\n\024GeoGetRegi" + + "sterStatus\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\"Q\n\034GeoGetRegisterStatusResponse\022!\n\010r" + + "esponse\030\001 \001(\0132\017.proto.Response\022\016\n\006enable" + + "\030\002 \001(\010B+\n\016net.iGap.protoB\031ProtoGeoGetReg" + + "isterStatusb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoGetRegisterStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoGetRegisterStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetRegisterStatus_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_GeoGetRegisterStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoGetRegisterStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoGetRegisterStatusResponse_descriptor, + new java.lang.String[] { "Response", "Enable", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoRegister.java b/src/main/java/net/iGap/proto/ProtoGeoRegister.java index 13ba310..da906e6 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoRegister.java +++ b/src/main/java/net/iGap/proto/ProtoGeoRegister.java @@ -8,109 +8,181 @@ private ProtoGeoRegister() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoRegisterOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoRegister) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ boolean getEnable(); } /** * Protobuf type {@code proto.GeoRegister} */ - public static final class GeoRegister extends - com.google.protobuf.GeneratedMessageLite< - GeoRegister, GeoRegister.Builder> implements + public static final class GeoRegister extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoRegister) GeoRegisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoRegister.newBuilder() to construct. + private GeoRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoRegister() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoRegister(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoRegister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + enable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegister_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoRegister.GeoRegister.class, net.iGap.proto.ProtoGeoRegister.GeoRegister.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ENABLE_FIELD_NUMBER = 2; private boolean enable_; /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ + @java.lang.Override public boolean getEnable() { return enable_; } - /** - * optional bool enable = 2; - */ - private void setEnable(boolean value) { - - enable_ = value; - } - /** - * optional bool enable = 2; - */ - private void clearEnable() { - - enable_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (enable_ != false) { output.writeBool(2, enable_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, enable_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoRegister.GeoRegister)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoRegister.GeoRegister other = (net.iGap.proto.ProtoGeoRegister.GeoRegister) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getEnable() + != other.getEnable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoRegister.GeoRegister prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoRegister} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoRegister.GeoRegister, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoRegister) net.iGap.proto.ProtoGeoRegister.GeoRegisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegister_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoRegister.GeoRegister.class, net.iGap.proto.ProtoGeoRegister.GeoRegister.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoRegister.GeoRegister.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + enable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegister_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegister getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoRegister.GeoRegister.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegister build() { + net.iGap.proto.ProtoGeoRegister.GeoRegister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegister buildPartial() { + net.iGap.proto.ProtoGeoRegister.GeoRegister result = new net.iGap.proto.ProtoGeoRegister.GeoRegister(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.enable_ = enable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoRegister.GeoRegister) { + return mergeFrom((net.iGap.proto.ProtoGeoRegister.GeoRegister)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoRegister.GeoRegister other) { + if (other == net.iGap.proto.ProtoGeoRegister.GeoRegister.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoRegister.GeoRegister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoRegister.GeoRegister) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private boolean enable_ ; /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ + @java.lang.Override public boolean getEnable() { - return instance.getEnable(); + return enable_; } /** - * optional bool enable = 2; + * bool enable = 2; + * @param value The enable to set. + * @return This builder for chaining. */ public Builder setEnable(boolean value) { - copyOnWrite(); - instance.setEnable(value); + + enable_ = value; + onChanged(); return this; } /** - * optional bool enable = 2; + * bool enable = 2; + * @return This builder for chaining. */ public Builder clearEnable() { - copyOnWrite(); - instance.clearEnable(); + + enable_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoRegister) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoRegister.GeoRegister(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoRegister.GeoRegister other = (net.iGap.proto.ProtoGeoRegister.GeoRegister) arg1; - request_ = visitor.visitMessage(request_, other.request_); - enable_ = visitor.visitBoolean(enable_ != false, enable_, - other.enable_ != false, other.enable_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - enable_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoRegister.GeoRegister.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoRegister) + } + // @@protoc_insertion_point(class_scope:proto.GeoRegister) private static final net.iGap.proto.ProtoGeoRegister.GeoRegister DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoRegister(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoRegister.GeoRegister(); } public static net.iGap.proto.ProtoGeoRegister.GeoRegister getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoRegister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoRegister(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GeoRegisterResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoRegisterResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ boolean getEnable(); } /** * Protobuf type {@code proto.GeoRegisterResponse} */ - public static final class GeoRegisterResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoRegisterResponse, GeoRegisterResponse.Builder> implements + public static final class GeoRegisterResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoRegisterResponse) GeoRegisterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoRegisterResponse.newBuilder() to construct. + private GeoRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoRegisterResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoRegisterResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoRegisterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + enable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.class, net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ENABLE_FIELD_NUMBER = 2; private boolean enable_; /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ + @java.lang.Override public boolean getEnable() { return enable_; } - /** - * optional bool enable = 2; - */ - private void setEnable(boolean value) { - - enable_ = value; - } - /** - * optional bool enable = 2; - */ - private void clearEnable() { - - enable_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (enable_ != false) { output.writeBool(2, enable_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,550 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, enable_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse other = (net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getEnable() + != other.getEnable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoRegisterResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoRegisterResponse) net.iGap.proto.ProtoGeoRegister.GeoRegisterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.class, net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + enable_ = false; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoRegister.internal_static_proto_GeoRegisterResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse build() { + net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse buildPartial() { + net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse result = new net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.enable_ = enable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse other) { + if (other == net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private boolean enable_ ; /** - * optional bool enable = 2; + * bool enable = 2; + * @return The enable. */ + @java.lang.Override public boolean getEnable() { - return instance.getEnable(); + return enable_; } /** - * optional bool enable = 2; + * bool enable = 2; + * @param value The enable to set. + * @return This builder for chaining. */ public Builder setEnable(boolean value) { - copyOnWrite(); - instance.setEnable(value); + + enable_ = value; + onChanged(); return this; } /** - * optional bool enable = 2; + * bool enable = 2; + * @return This builder for chaining. */ public Builder clearEnable() { - copyOnWrite(); - instance.clearEnable(); + + enable_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoRegisterResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse other = (net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - enable_ = visitor.visitBoolean(enable_ != false, enable_, - other.enable_ != false, other.enable_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - enable_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoRegisterResponse) + } + // @@protoc_insertion_point(class_scope:proto.GeoRegisterResponse) private static final net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoRegisterResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse(); } public static net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoRegisterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoRegisterResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoRegister.GeoRegisterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoRegister_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoRegister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoRegisterResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoRegisterResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021GeoRegister.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\">\n\013GeoRegister\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\016\n\006enable\030\002 \001(" + + "\010\"H\n\023GeoRegisterResponse\022!\n\010response\030\001 \001" + + "(\0132\017.proto.Response\022\016\n\006enable\030\002 \001(\010B\"\n\016n" + + "et.iGap.protoB\020ProtoGeoRegisterb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoRegister_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoRegister_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoRegister_descriptor, + new java.lang.String[] { "Request", "Enable", }); + internal_static_proto_GeoRegisterResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoRegisterResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoRegisterResponse_descriptor, + new java.lang.String[] { "Response", "Enable", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoUpdateComment.java b/src/main/java/net/iGap/proto/ProtoGeoUpdateComment.java index d3750d3..ba5b0aa 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoUpdateComment.java +++ b/src/main/java/net/iGap/proto/ProtoGeoUpdateComment.java @@ -8,25 +8,39 @@ private ProtoGeoUpdateComment() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoUpdateCommentOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoUpdateComment) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ java.lang.String getComment(); /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); @@ -34,124 +48,190 @@ public interface GeoUpdateCommentOrBuilder extends /** * Protobuf type {@code proto.GeoUpdateComment} */ - public static final class GeoUpdateComment extends - com.google.protobuf.GeneratedMessageLite< - GeoUpdateComment, GeoUpdateComment.Builder> implements + public static final class GeoUpdateComment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoUpdateComment) GeoUpdateCommentOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoUpdateComment.newBuilder() to construct. + private GeoUpdateComment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoUpdateComment() { comment_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoUpdateComment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoUpdateComment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.class, net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int COMMENT_FIELD_NUMBER = 2; - private java.lang.String comment_; + private volatile java.lang.Object comment_; /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ + @java.lang.Override public java.lang.String getComment() { - return comment_; + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } } /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ + @java.lang.Override public com.google.protobuf.ByteString getCommentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(comment_); - } - /** - * optional string comment = 2; - */ - private void setComment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - comment_ = value; - } - /** - * optional string comment = 2; - */ - private void clearComment() { - - comment_ = getDefaultInstance().getComment(); + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string comment = 2; - */ - private void setCommentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - comment_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!comment_.isEmpty()) { - output.writeString(2, getComment()); + if (!getCommentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, comment_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!comment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getComment()); + if (!getCommentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, comment_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment other = (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getComment() + .equals(other.getComment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoUpdateComment} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoUpdateComment) net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.class, net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + comment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateComment_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment build() { + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment buildPartial() { + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment result = new net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.comment_ = comment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment) { + return mergeFrom((net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment other) { + if (other == net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object comment_ = ""; /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ public java.lang.String getComment() { - return instance.getComment(); + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { - return instance.getCommentBytes(); + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string comment = 2; + * string comment = 2; + * @param value The comment to set. + * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { - copyOnWrite(); - instance.setComment(value); + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + onChanged(); return this; } /** - * optional string comment = 2; + * string comment = 2; + * @return This builder for chaining. */ public Builder clearComment() { - copyOnWrite(); - instance.clearComment(); + + comment_ = getDefaultInstance().getComment(); + onChanged(); return this; } /** - * optional string comment = 2; + * string comment = 2; + * @param value The bytes for comment to set. + * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCommentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoUpdateComment) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment other = (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment) arg1; - request_ = visitor.visitMessage(request_, other.request_); - comment_ = visitor.visitString(!comment_.isEmpty(), comment_, - !other.comment_.isEmpty(), other.comment_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - comment_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoUpdateComment) + } + // @@protoc_insertion_point(class_scope:proto.GeoUpdateComment) private static final net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoUpdateComment(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment(); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoUpdateComment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoUpdateComment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateComment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GeoUpdateCommentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoUpdateCommentResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ java.lang.String getComment(); /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); @@ -473,124 +819,190 @@ public interface GeoUpdateCommentResponseOrBuilder extends /** * Protobuf type {@code proto.GeoUpdateCommentResponse} */ - public static final class GeoUpdateCommentResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoUpdateCommentResponse, GeoUpdateCommentResponse.Builder> implements + public static final class GeoUpdateCommentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoUpdateCommentResponse) GeoUpdateCommentResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoUpdateCommentResponse.newBuilder() to construct. + private GeoUpdateCommentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoUpdateCommentResponse() { comment_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoUpdateCommentResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoUpdateCommentResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateCommentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateCommentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.class, net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int COMMENT_FIELD_NUMBER = 2; - private java.lang.String comment_; + private volatile java.lang.Object comment_; /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ + @java.lang.Override public java.lang.String getComment() { - return comment_; + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } } /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ + @java.lang.Override public com.google.protobuf.ByteString getCommentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(comment_); - } - /** - * optional string comment = 2; - */ - private void setComment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - comment_ = value; - } - /** - * optional string comment = 2; - */ - private void clearComment() { - - comment_ = getDefaultInstance().getComment(); + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string comment = 2; - */ - private void setCommentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - comment_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!comment_.isEmpty()) { - output.writeString(2, getComment()); + if (!getCommentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, comment_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!comment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getComment()); + if (!getCommentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, comment_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse other = (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getComment() + .equals(other.getComment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoUpdateCommentResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoUpdateCommentResponse) net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateCommentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateCommentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.class, net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + comment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoUpdateComment.internal_static_proto_GeoUpdateCommentResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse build() { + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse buildPartial() { + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse result = new net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.comment_ = comment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse other) { + if (other == net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object comment_ = ""; /** - * optional string comment = 2; + * string comment = 2; + * @return The comment. */ public java.lang.String getComment() { - return instance.getComment(); + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string comment = 2; + * string comment = 2; + * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { - return instance.getCommentBytes(); + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string comment = 2; + * string comment = 2; + * @param value The comment to set. + * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { - copyOnWrite(); - instance.setComment(value); + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + onChanged(); return this; } /** - * optional string comment = 2; + * string comment = 2; + * @return This builder for chaining. */ public Builder clearComment() { - copyOnWrite(); - instance.clearComment(); + + comment_ = getDefaultInstance().getComment(); + onChanged(); return this; } /** - * optional string comment = 2; + * string comment = 2; + * @param value The bytes for comment to set. + * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCommentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoUpdateCommentResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse other = (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - comment_ = visitor.visitString(!comment_.isEmpty(), comment_, - !other.comment_.isEmpty(), other.comment_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - comment_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoUpdateCommentResponse) + } + // @@protoc_insertion_point(class_scope:proto.GeoUpdateCommentResponse) private static final net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoUpdateCommentResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse(); } public static net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoUpdateCommentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoUpdateCommentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdateComment.GeoUpdateCommentResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoUpdateComment_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoUpdateComment_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoUpdateCommentResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoUpdateCommentResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026GeoUpdateComment.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"D\n\020GeoUpdateComme" + + "nt\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007c" + + "omment\030\002 \001(\t\"N\n\030GeoUpdateCommentResponse" + + "\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007c" + + "omment\030\002 \001(\tB\'\n\016net.iGap.protoB\025ProtoGeo" + + "UpdateCommentb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoUpdateComment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoUpdateComment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoUpdateComment_descriptor, + new java.lang.String[] { "Request", "Comment", }); + internal_static_proto_GeoUpdateCommentResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoUpdateCommentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoUpdateCommentResponse_descriptor, + new java.lang.String[] { "Response", "Comment", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGeoUpdatePosition.java b/src/main/java/net/iGap/proto/ProtoGeoUpdatePosition.java index 6d30994..00b02c2 100644 --- a/src/main/java/net/iGap/proto/ProtoGeoUpdatePosition.java +++ b/src/main/java/net/iGap/proto/ProtoGeoUpdatePosition.java @@ -8,137 +8,203 @@ private ProtoGeoUpdatePosition() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GeoUpdatePositionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoUpdatePosition) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ double getLat(); /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ double getLon(); } /** * Protobuf type {@code proto.GeoUpdatePosition} */ - public static final class GeoUpdatePosition extends - com.google.protobuf.GeneratedMessageLite< - GeoUpdatePosition, GeoUpdatePosition.Builder> implements + public static final class GeoUpdatePosition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoUpdatePosition) GeoUpdatePositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoUpdatePosition.newBuilder() to construct. + private GeoUpdatePosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoUpdatePosition() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoUpdatePosition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoUpdatePosition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 17: { + + lat_ = input.readDouble(); + break; + } + case 25: { + + lon_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.class, net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int LAT_FIELD_NUMBER = 2; private double lat_; /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ + @java.lang.Override public double getLat() { return lat_; } - /** - * optional double lat = 2; - */ - private void setLat(double value) { - - lat_ = value; - } - /** - * optional double lat = 2; - */ - private void clearLat() { - - lat_ = 0D; - } public static final int LON_FIELD_NUMBER = 3; private double lon_; /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ + @java.lang.Override public double getLon() { return lon_; } - /** - * optional double lon = 3; - */ - private void setLon(double value) { - - lon_ = value; - } - /** - * optional double lon = 3; - */ - private void clearLon() { - - lon_ = 0D; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lon_ != 0D) { output.writeDouble(3, lon_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,386 +237,706 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, lon_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition other = (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (java.lang.Double.doubleToLongBits(getLat()) + != java.lang.Double.doubleToLongBits( + other.getLat())) return false; + if (java.lang.Double.doubleToLongBits(getLon()) + != java.lang.Double.doubleToLongBits( + other.getLon())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLat())); + hash = (37 * hash) + LON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLon())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoUpdatePosition} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoUpdatePosition) net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.class, net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + lat_ = 0D; + + lon_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePosition_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition build() { + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition buildPartial() { + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition result = new net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.lat_ = lat_; + result.lon_ = lon_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition) { + return mergeFrom((net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition other) { + if (other == net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getLat() != 0D) { + setLat(other.getLat()); + } + if (other.getLon() != 0D) { + setLon(other.getLon()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private double lat_ ; /** - * optional double lat = 2; + * double lat = 2; + * @return The lat. */ + @java.lang.Override public double getLat() { - return instance.getLat(); + return lat_; } /** - * optional double lat = 2; + * double lat = 2; + * @param value The lat to set. + * @return This builder for chaining. */ public Builder setLat(double value) { - copyOnWrite(); - instance.setLat(value); + + lat_ = value; + onChanged(); return this; } /** - * optional double lat = 2; + * double lat = 2; + * @return This builder for chaining. */ public Builder clearLat() { - copyOnWrite(); - instance.clearLat(); + + lat_ = 0D; + onChanged(); return this; } + private double lon_ ; /** - * optional double lon = 3; + * double lon = 3; + * @return The lon. */ + @java.lang.Override public double getLon() { - return instance.getLon(); + return lon_; } /** - * optional double lon = 3; + * double lon = 3; + * @param value The lon to set. + * @return This builder for chaining. */ public Builder setLon(double value) { - copyOnWrite(); - instance.setLon(value); + + lon_ = value; + onChanged(); return this; } /** - * optional double lon = 3; + * double lon = 3; + * @return This builder for chaining. */ public Builder clearLon() { - copyOnWrite(); - instance.clearLon(); + + lon_ = 0D; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GeoUpdatePosition) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition other = (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition) arg1; - request_ = visitor.visitMessage(request_, other.request_); - lat_ = visitor.visitDouble(lat_ != 0D, lat_, - other.lat_ != 0D, other.lat_); - lon_ = visitor.visitDouble(lon_ != 0D, lon_, - other.lon_ != 0D, other.lon_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 17: { - - lat_ = input.readDouble(); - break; - } - case 25: { - - lon_ = input.readDouble(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GeoUpdatePosition) + } + // @@protoc_insertion_point(class_scope:proto.GeoUpdatePosition) private static final net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoUpdatePosition(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition(); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoUpdatePosition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoUpdatePosition(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GeoUpdatePositionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GeoUpdatePositionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.GeoUpdatePositionResponse} */ - public static final class GeoUpdatePositionResponse extends - com.google.protobuf.GeneratedMessageLite< - GeoUpdatePositionResponse, GeoUpdatePositionResponse.Builder> implements + public static final class GeoUpdatePositionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GeoUpdatePositionResponse) GeoUpdatePositionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoUpdatePositionResponse.newBuilder() to construct. + private GeoUpdatePositionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GeoUpdatePositionResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoUpdatePositionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoUpdatePositionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePositionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePositionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.class, net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -556,244 +944,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse other = (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GeoUpdatePositionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GeoUpdatePositionResponse) net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePositionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePositionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.class, net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGeoUpdatePosition.internal_static_proto_GeoUpdatePositionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse build() { + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse buildPartial() { + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse result = new net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse) { + return mergeFrom((net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse other) { + if (other == net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GeoUpdatePositionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse other = (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GeoUpdatePositionResponse) + } // @@protoc_insertion_point(class_scope:proto.GeoUpdatePositionResponse) private static final net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GeoUpdatePositionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse(); } public static net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoUpdatePositionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoUpdatePositionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGeoUpdatePosition.GeoUpdatePositionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoUpdatePosition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoUpdatePosition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GeoUpdatePositionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GeoUpdatePositionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027GeoUpdatePosition.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"N\n\021GeoUpdatePosi" + + "tion\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\013\n" + + "\003lat\030\002 \001(\001\022\013\n\003lon\030\003 \001(\001\">\n\031GeoUpdatePosi" + + "tionResponse\022!\n\010response\030\001 \001(\0132\017.proto.R" + + "esponseB(\n\016net.iGap.protoB\026ProtoGeoUpdat" + + "ePositionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GeoUpdatePosition_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GeoUpdatePosition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoUpdatePosition_descriptor, + new java.lang.String[] { "Request", "Lat", "Lon", }); + internal_static_proto_GeoUpdatePositionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GeoUpdatePositionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GeoUpdatePositionResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGlobal.java b/src/main/java/net/iGap/proto/ProtoGlobal.java index f0009bc..6d44728 100644 --- a/src/main/java/net/iGap/proto/ProtoGlobal.java +++ b/src/main/java/net/iGap/proto/ProtoGlobal.java @@ -8,11 +8,17 @@ private ProtoGlobal() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } /** * Protobuf enum {@code proto.Gender} */ public enum Gender - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ @@ -43,10 +49,16 @@ public enum Gender public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -54,6 +66,10 @@ public static Gender valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Gender forNumber(int value) { switch (value) { case 0: return UNKNOWN; @@ -75,6 +91,37 @@ public Gender findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(0); + } + + private static final Gender[] VALUES = values(); + + public static Gender valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Gender(int value) { @@ -88,7 +135,7 @@ private Gender(int value) { * Protobuf enum {@code proto.Device} */ public enum Device - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN_DEVICE = 0; */ @@ -127,10 +174,16 @@ public enum Device public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -138,6 +191,10 @@ public static Device valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Device forNumber(int value) { switch (value) { case 0: return UNKNOWN_DEVICE; @@ -160,6 +217,37 @@ public Device findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(1); + } + + private static final Device[] VALUES = values(); + + public static Device valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Device(int value) { @@ -173,7 +261,7 @@ private Device(int value) { * Protobuf enum {@code proto.Platform} */ public enum Platform - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN_PLATFORM = 0; */ @@ -236,10 +324,16 @@ public enum Platform public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -247,6 +341,10 @@ public static Platform valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Platform forNumber(int value) { switch (value) { case 0: return UNKNOWN_PLATFORM; @@ -272,6 +370,37 @@ public Platform findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(2); + } + + private static final Platform[] VALUES = values(); + + public static Platform valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Platform(int value) { @@ -285,7 +414,7 @@ private Platform(int value) { * Protobuf enum {@code proto.Language} */ public enum Language - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * EN_US = 0; */ @@ -308,10 +437,16 @@ public enum Language public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -319,6 +454,10 @@ public static Language valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Language forNumber(int value) { switch (value) { case 0: return EN_US; @@ -339,6 +478,37 @@ public Language findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(3); + } + + private static final Language[] VALUES = values(); + + public static Language valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Language(int value) { @@ -352,7 +522,7 @@ private Language(int value) { * Protobuf enum {@code proto.RoomMessageType} */ public enum RoomMessageType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * TEXT = 0; */ @@ -527,10 +697,16 @@ public enum RoomMessageType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -538,6 +714,10 @@ public static RoomMessageType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static RoomMessageType forNumber(int value) { switch (value) { case 0: return TEXT; @@ -577,6 +757,37 @@ public RoomMessageType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(4); + } + + private static final RoomMessageType[] VALUES = values(); + + public static RoomMessageType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private RoomMessageType(int value) { @@ -590,7 +801,7 @@ private RoomMessageType(int value) { * Protobuf enum {@code proto.RoomMessageStatus} */ public enum RoomMessageStatus - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * FAILED = 0; */ @@ -645,10 +856,16 @@ public enum RoomMessageStatus public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -656,6 +873,10 @@ public static RoomMessageStatus valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static RoomMessageStatus forNumber(int value) { switch (value) { case 0: return FAILED; @@ -680,6 +901,37 @@ public RoomMessageStatus findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(5); + } + + private static final RoomMessageStatus[] VALUES = values(); + + public static RoomMessageStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private RoomMessageStatus(int value) { @@ -693,7 +945,7 @@ private RoomMessageStatus(int value) { * Protobuf enum {@code proto.RoomMessageReaction} */ public enum RoomMessageReaction - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * THUMBS_UP = 0; */ @@ -716,10 +968,16 @@ public enum RoomMessageReaction public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -727,6 +985,10 @@ public static RoomMessageReaction valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static RoomMessageReaction forNumber(int value) { switch (value) { case 0: return THUMBS_UP; @@ -747,6 +1009,37 @@ public RoomMessageReaction findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(6); + } + + private static final RoomMessageReaction[] VALUES = values(); + + public static RoomMessageReaction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private RoomMessageReaction(int value) { @@ -760,7 +1053,7 @@ private RoomMessageReaction(int value) { * Protobuf enum {@code proto.SearchType} */ public enum SearchType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * SEARCH_ALL_TYPES = 0; */ @@ -847,10 +1140,16 @@ public enum SearchType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -858,6 +1157,10 @@ public static SearchType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static SearchType forNumber(int value) { switch (value) { case 0: return SEARCH_ALL_TYPES; @@ -885,6 +1188,37 @@ public SearchType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(7); + } + + private static final SearchType[] VALUES = values(); + + public static SearchType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private SearchType(int value) { @@ -898,7 +1232,7 @@ private SearchType(int value) { * Protobuf enum {@code proto.Originator} */ public enum Originator - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * USER = 0; */ @@ -921,10 +1255,16 @@ public enum Originator public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -932,6 +1272,10 @@ public static Originator valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Originator forNumber(int value) { switch (value) { case 0: return USER; @@ -952,6 +1296,37 @@ public Originator findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(8); + } + + private static final Originator[] VALUES = values(); + + public static Originator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Originator(int value) { @@ -965,7 +1340,7 @@ private Originator(int value) { * Protobuf enum {@code proto.ClientAction} */ public enum ClientAction - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * CANCEL = 0; */ @@ -1092,10 +1467,16 @@ public enum ClientAction public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -1103,6 +1484,10 @@ public static ClientAction valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ClientAction forNumber(int value) { switch (value) { case 0: return CANCEL; @@ -1136,6 +1521,37 @@ public ClientAction findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(9); + } + + private static final ClientAction[] VALUES = values(); + + public static ClientAction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private ClientAction(int value) { @@ -1149,7 +1565,7 @@ private ClientAction(int value) { * Protobuf enum {@code proto.RoomType} */ public enum RoomType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * CHAT = 0; */ @@ -1196,10 +1612,16 @@ public enum RoomType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -1207,6 +1629,10 @@ public static RoomType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static RoomType forNumber(int value) { switch (value) { case 0: return CHAT; @@ -1230,6 +1656,37 @@ public RoomType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(10); + } + + private static final RoomType[] VALUES = values(); + + public static RoomType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private RoomType(int value) { @@ -1243,7 +1700,7 @@ private RoomType(int value) { * Protobuf enum {@code proto.RoomMute} */ public enum RoomMute - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UNMUTE = 0; */ @@ -1266,10 +1723,16 @@ public enum RoomMute public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -1277,6 +1740,10 @@ public static RoomMute valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static RoomMute forNumber(int value) { switch (value) { case 0: return UNMUTE; @@ -1297,6 +1764,37 @@ public RoomMute findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(11); + } + + private static final RoomMute[] VALUES = values(); + + public static RoomMute valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private RoomMute(int value) { @@ -1310,7 +1808,7 @@ private RoomMute(int value) { * Protobuf enum {@code proto.PrivacyType} */ public enum PrivacyType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * USER_STATUS = 0; */ @@ -1381,10 +1879,16 @@ public enum PrivacyType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -1392,6 +1896,10 @@ public static PrivacyType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static PrivacyType forNumber(int value) { switch (value) { case 0: return USER_STATUS; @@ -1418,6 +1926,37 @@ public PrivacyType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(12); + } + + private static final PrivacyType[] VALUES = values(); + + public static PrivacyType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private PrivacyType(int value) { @@ -1431,7 +1970,7 @@ private PrivacyType(int value) { * Protobuf enum {@code proto.PrivacyLevel} */ public enum PrivacyLevel - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * ALLOW_ALL = 0; */ @@ -1462,10 +2001,16 @@ public enum PrivacyLevel public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -1473,6 +2018,10 @@ public static PrivacyLevel valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static PrivacyLevel forNumber(int value) { switch (value) { case 0: return ALLOW_ALL; @@ -1494,6 +2043,37 @@ public PrivacyLevel findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(13); + } + + private static final PrivacyLevel[] VALUES = values(); + + public static PrivacyLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private PrivacyLevel(int value) { @@ -1505,74 +2085,141 @@ private PrivacyLevel(int value) { public interface RoomMessageLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageLocation) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional double lat = 1; + * double lat = 1; + * @return The lat. */ double getLat(); /** - * optional double lon = 2; + * double lon = 2; + * @return The lon. */ double getLon(); } /** * Protobuf type {@code proto.RoomMessageLocation} */ - public static final class RoomMessageLocation extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageLocation, RoomMessageLocation.Builder> implements + public static final class RoomMessageLocation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageLocation) RoomMessageLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageLocation.newBuilder() to construct. + private RoomMessageLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageLocation() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageLocation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageLocation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + + lat_ = input.readDouble(); + break; + } + case 17: { + + lon_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageLocation.class, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder.class); + } + public static final int LAT_FIELD_NUMBER = 1; private double lat_; /** - * optional double lat = 1; + * double lat = 1; + * @return The lat. */ + @java.lang.Override public double getLat() { return lat_; } - /** - * optional double lat = 1; - */ - private void setLat(double value) { - - lat_ = value; - } - /** - * optional double lat = 1; - */ - private void clearLat() { - - lat_ = 0D; - } public static final int LON_FIELD_NUMBER = 2; private double lon_; /** - * optional double lon = 2; + * double lon = 2; + * @return The lon. */ + @java.lang.Override public double getLon() { return lon_; } - /** - * optional double lon = 2; - */ - private void setLon(double value) { - - lon_ = value; - } - /** - * optional double lon = 2; - */ - private void clearLon() { - - lon_ = 0D; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (lat_ != 0D) { @@ -1581,10 +2228,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (lon_ != 0D) { output.writeDouble(2, lon_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1596,289 +2245,556 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, lon_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageLocation)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageLocation other = (net.iGap.proto.ProtoGlobal.RoomMessageLocation) obj; + + if (java.lang.Double.doubleToLongBits(getLat()) + != java.lang.Double.doubleToLongBits( + other.getLat())) return false; + if (java.lang.Double.doubleToLongBits(getLon()) + != java.lang.Double.doubleToLongBits( + other.getLon())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLat())); + hash = (37 * hash) + LON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLon())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageLocation} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageLocation, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageLocation) net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageLocation.class, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + lat_ = 0D; + + lon_ = 0D; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLocation_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocation getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocation build() { + net.iGap.proto.ProtoGlobal.RoomMessageLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocation buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageLocation result = new net.iGap.proto.ProtoGlobal.RoomMessageLocation(this); + result.lat_ = lat_; + result.lon_ = lon_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageLocation) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageLocation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageLocation other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance()) return this; + if (other.getLat() != 0D) { + setLat(other.getLat()); + } + if (other.getLon() != 0D) { + setLon(other.getLon()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageLocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageLocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double lat_ ; /** - * optional double lat = 1; + * double lat = 1; + * @return The lat. */ + @java.lang.Override public double getLat() { - return instance.getLat(); + return lat_; } /** - * optional double lat = 1; + * double lat = 1; + * @param value The lat to set. + * @return This builder for chaining. */ public Builder setLat(double value) { - copyOnWrite(); - instance.setLat(value); + + lat_ = value; + onChanged(); return this; } /** - * optional double lat = 1; + * double lat = 1; + * @return This builder for chaining. */ public Builder clearLat() { - copyOnWrite(); - instance.clearLat(); + + lat_ = 0D; + onChanged(); return this; } + private double lon_ ; /** - * optional double lon = 2; + * double lon = 2; + * @return The lon. */ + @java.lang.Override public double getLon() { - return instance.getLon(); + return lon_; } /** - * optional double lon = 2; + * double lon = 2; + * @param value The lon to set. + * @return This builder for chaining. */ public Builder setLon(double value) { - copyOnWrite(); - instance.setLon(value); + + lon_ = value; + onChanged(); return this; } /** - * optional double lon = 2; + * double lon = 2; + * @return This builder for chaining. */ public Builder clearLon() { - copyOnWrite(); - instance.clearLon(); + + lon_ = 0D; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageLocation) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageLocation(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageLocation other = (net.iGap.proto.ProtoGlobal.RoomMessageLocation) arg1; - lat_ = visitor.visitDouble(lat_ != 0D, lat_, - other.lat_ != 0D, other.lat_); - lon_ = visitor.visitDouble(lon_ != 0D, lon_, - other.lon_ != 0D, other.lon_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 9: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - lat_ = input.readDouble(); - break; - } - case 17: { - lon_ = input.readDouble(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageLocation.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageLocation) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageLocation) private static final net.iGap.proto.ProtoGlobal.RoomMessageLocation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageLocation(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageLocation(); } public static net.iGap.proto.ProtoGlobal.RoomMessageLocation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageLocation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomMessageLogOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageLog) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @return The type. */ net.iGap.proto.ProtoGlobal.RoomMessageLog.Type getType(); /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @return The enum numeric value on the wire for extraType. */ int getExtraTypeValue(); /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @return The extraType. */ net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType getExtraType(); /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; + * @return Whether the targetUser field is set. */ boolean hasTargetUser(); /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; + * @return The targetUser. */ net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser getTargetUser(); + /** + * .proto.RoomMessageLog.TargetUser target_user = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUserOrBuilder getTargetUserOrBuilder(); } /** * Protobuf type {@code proto.RoomMessageLog} */ - public static final class RoomMessageLog extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageLog, RoomMessageLog.Builder> implements + public static final class RoomMessageLog extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageLog) RoomMessageLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageLog.newBuilder() to construct. + private RoomMessageLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageLog() { + type_ = 0; + extraType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageLog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + extraType_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder subBuilder = null; + if (targetUser_ != null) { + subBuilder = targetUser_.toBuilder(); + } + targetUser_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetUser_); + targetUser_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageLog.class, net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder.class); + } + /** * Protobuf enum {@code proto.RoomMessageLog.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * USER_JOINED = 0; */ @@ -2013,10 +2929,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -2024,6 +2946,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return USER_JOINED; @@ -2058,6 +2984,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageLog.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -2071,7 +3028,7 @@ private Type(int value) { * Protobuf enum {@code proto.RoomMessageLog.ExtraType} */ public enum ExtraType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * NO_EXTRA = 0; */ @@ -2094,10 +3051,16 @@ public enum ExtraType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -2105,6 +3068,10 @@ public static ExtraType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ExtraType forNumber(int value) { switch (value) { case 0: return NO_EXTRA; @@ -2125,6 +3092,37 @@ public ExtraType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageLog.getDescriptor().getEnumTypes().get(1); + } + + private static final ExtraType[] VALUES = values(); + + public static ExtraType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private ExtraType(int value) { @@ -2136,55 +3134,130 @@ private ExtraType(int value) { public interface TargetUserOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageLog.TargetUser) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ long getId(); } /** * Protobuf type {@code proto.RoomMessageLog.TargetUser} */ - public static final class TargetUser extends - com.google.protobuf.GeneratedMessageLite< - TargetUser, TargetUser.Builder> implements + public static final class TargetUser extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageLog.TargetUser) TargetUserOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetUser.newBuilder() to construct. + private TargetUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private TargetUser() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TargetUser(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TargetUser( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_TargetUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_TargetUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.class, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder.class); + } + public static final int ID_FIELD_NUMBER = 1; private long id_; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void clearId() { - - id_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { output.writeUInt64(1, id_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2192,343 +3265,438 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, id_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser other = (net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser) obj; + + if (getId() + != other.getId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageLog.TargetUser} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageLog.TargetUser) net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_TargetUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_TargetUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.class, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_TargetUser_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser build() { + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser result = new net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser(this); + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long id_ ; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageLog.TargetUser) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser other = (net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.RoomMessageLog.TargetUser) + } + // @@protoc_insertion_point(class_scope:proto.RoomMessageLog.TargetUser) private static final net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new TargetUser(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser(); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetUser(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.RoomMessageLog.Type getType() { - net.iGap.proto.ProtoGlobal.RoomMessageLog.Type result = net.iGap.proto.ProtoGlobal.RoomMessageLog.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLog.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageLog.Type result = net.iGap.proto.ProtoGlobal.RoomMessageLog.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.Type.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageLog.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.RoomMessageLog.Type type = 1; - */ - private void setType(net.iGap.proto.ProtoGlobal.RoomMessageLog.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageLog.Type type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int EXTRA_TYPE_FIELD_NUMBER = 2; private int extraType_; /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @return The enum numeric value on the wire for extraType. */ - public int getExtraTypeValue() { + @java.lang.Override public int getExtraTypeValue() { return extraType_; } /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @return The extraType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType getExtraType() { - net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType.forNumber(extraType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType getExtraType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType.valueOf(extraType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; - */ - private void setExtraTypeValue(int value) { - extraType_ = value; - } - /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; - */ - private void setExtraType(net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType value) { - if (value == null) { - throw new NullPointerException(); - } - - extraType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; - */ - private void clearExtraType() { - - extraType_ = 0; - } public static final int TARGET_USER_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser targetUser_; /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; + * @return Whether the targetUser field is set. */ + @java.lang.Override public boolean hasTargetUser() { return targetUser_ != null; } /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; + * @return The targetUser. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser getTargetUser() { return targetUser_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.getDefaultInstance() : targetUser_; } /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; */ - private void setTargetUser(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser value) { - if (value == null) { - throw new NullPointerException(); - } - targetUser_ = value; - - } - /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; - */ - private void setTargetUser( - net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder builderForValue) { - targetUser_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; - */ - private void mergeTargetUser(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser value) { - if (targetUser_ != null && - targetUser_ != net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.getDefaultInstance()) { - targetUser_ = - net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.newBuilder(targetUser_).mergeFrom(value).buildPartial(); - } else { - targetUser_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUserOrBuilder getTargetUserOrBuilder() { + return getTargetUser(); } - /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; - */ - private void clearTargetUser() { targetUser_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoGlobal.RoomMessageLog.Type.USER_JOINED.getNumber()) { @@ -2540,10 +3708,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (targetUser_ != null) { output.writeMessage(3, getTargetUser()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2559,398 +3729,674 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTargetUser()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageLog)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageLog other = (net.iGap.proto.ProtoGlobal.RoomMessageLog) obj; + + if (type_ != other.type_) return false; + if (extraType_ != other.extraType_) return false; + if (hasTargetUser() != other.hasTargetUser()) return false; + if (hasTargetUser()) { + if (!getTargetUser() + .equals(other.getTargetUser())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + EXTRA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + extraType_; + if (hasTargetUser()) { + hash = (37 * hash) + TARGET_USER_FIELD_NUMBER; + hash = (53 * hash) + getTargetUser().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageLog prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageLog} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageLog, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageLog) net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageLog.class, net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageLog.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + extraType_ = 0; + + if (targetUserBuilder_ == null) { + targetUser_ = null; + } else { + targetUser_ = null; + targetUserBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageLog_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog build() { + net.iGap.proto.ProtoGlobal.RoomMessageLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageLog result = new net.iGap.proto.ProtoGlobal.RoomMessageLog(this); + result.type_ = type_; + result.extraType_ = extraType_; + if (targetUserBuilder_ == null) { + result.targetUser_ = targetUser_; + } else { + result.targetUser_ = targetUserBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageLog) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageLog other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.extraType_ != 0) { + setExtraTypeValue(other.getExtraTypeValue()); + } + if (other.hasTargetUser()) { + mergeTargetUser(other.getTargetUser()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int type_ = 0; /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLog.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageLog.Type result = net.iGap.proto.ProtoGlobal.RoomMessageLog.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.Type.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.RoomMessageLog.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageLog.Type type = 1; + * .proto.RoomMessageLog.Type type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private int extraType_ = 0; /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @return The enum numeric value on the wire for extraType. */ - public int getExtraTypeValue() { - return instance.getExtraTypeValue(); + @java.lang.Override public int getExtraTypeValue() { + return extraType_; } /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @param value The enum numeric value on the wire for extraType to set. + * @return This builder for chaining. */ public Builder setExtraTypeValue(int value) { - copyOnWrite(); - instance.setExtraTypeValue(value); + + extraType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @return The extraType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType getExtraType() { - return instance.getExtraType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType.valueOf(extraType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @param value The extraType to set. + * @return This builder for chaining. */ public Builder setExtraType(net.iGap.proto.ProtoGlobal.RoomMessageLog.ExtraType value) { - copyOnWrite(); - instance.setExtraType(value); + if (value == null) { + throw new NullPointerException(); + } + + extraType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageLog.ExtraType extra_type = 2; + * .proto.RoomMessageLog.ExtraType extra_type = 2; + * @return This builder for chaining. */ public Builder clearExtraType() { - copyOnWrite(); - instance.clearExtraType(); + + extraType_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser targetUser_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUserOrBuilder> targetUserBuilder_; /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; + * @return Whether the targetUser field is set. */ public boolean hasTargetUser() { - return instance.hasTargetUser(); + return targetUserBuilder_ != null || targetUser_ != null; } /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; + * @return The targetUser. */ public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser getTargetUser() { - return instance.getTargetUser(); + if (targetUserBuilder_ == null) { + return targetUser_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.getDefaultInstance() : targetUser_; + } else { + return targetUserBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; */ public Builder setTargetUser(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser value) { - copyOnWrite(); - instance.setTargetUser(value); - return this; + if (targetUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetUser_ = value; + onChanged(); + } else { + targetUserBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; */ public Builder setTargetUser( net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder builderForValue) { - copyOnWrite(); - instance.setTargetUser(builderForValue); + if (targetUserBuilder_ == null) { + targetUser_ = builderForValue.build(); + onChanged(); + } else { + targetUserBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; */ public Builder mergeTargetUser(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser value) { - copyOnWrite(); - instance.mergeTargetUser(value); + if (targetUserBuilder_ == null) { + if (targetUser_ != null) { + targetUser_ = + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.newBuilder(targetUser_).mergeFrom(value).buildPartial(); + } else { + targetUser_ = value; + } + onChanged(); + } else { + targetUserBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageLog.TargetUser target_user = 3; + * .proto.RoomMessageLog.TargetUser target_user = 3; */ - public Builder clearTargetUser() { copyOnWrite(); - instance.clearTargetUser(); + public Builder clearTargetUser() { + if (targetUserBuilder_ == null) { + targetUser_ = null; + onChanged(); + } else { + targetUser_ = null; + targetUserBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessageLog) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageLog(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); + /** + * .proto.RoomMessageLog.TargetUser target_user = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder getTargetUserBuilder() { + + onChanged(); + return getTargetUserFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageLog.TargetUser target_user = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUserOrBuilder getTargetUserOrBuilder() { + if (targetUserBuilder_ != null) { + return targetUserBuilder_.getMessageOrBuilder(); + } else { + return targetUser_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.getDefaultInstance() : targetUser_; } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageLog other = (net.iGap.proto.ProtoGlobal.RoomMessageLog) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - extraType_ = visitor.visitInt(extraType_ != 0, extraType_, other.extraType_ != 0, other.extraType_); - targetUser_ = visitor.visitMessage(targetUser_, other.targetUser_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + } + /** + * .proto.RoomMessageLog.TargetUser target_user = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUserOrBuilder> + getTargetUserFieldBuilder() { + if (targetUserBuilder_ == null) { + targetUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUserOrBuilder>( + getTargetUser(), + getParentForChildren(), + isClean()); + targetUser_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); + return targetUserBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - type_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - extraType_ = rawValue; - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.Builder subBuilder = null; - if (targetUser_ != null) { - subBuilder = targetUser_.toBuilder(); - } - targetUser_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLog.TargetUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetUser_); - targetUser_ = subBuilder.buildPartial(); - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageLog.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageLog) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageLog) private static final net.iGap.proto.ProtoGlobal.RoomMessageLog DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageLog(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageLog(); } public static net.iGap.proto.ProtoGlobal.RoomMessageLog getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageLog(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomMessageContactOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageContact) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string first_name = 1; + * string first_name = 1; + * @return The firstName. */ java.lang.String getFirstName(); /** - * optional string first_name = 1; + * string first_name = 1; + * @return The bytes for firstName. */ com.google.protobuf.ByteString getFirstNameBytes(); /** - * optional string last_name = 2; + * string last_name = 2; + * @return The lastName. */ java.lang.String getLastName(); /** - * optional string last_name = 2; + * string last_name = 2; + * @return The bytes for lastName. */ com.google.protobuf.ByteString getLastNameBytes(); /** - * optional string nickname = 3; + * string nickname = 3; + * @return The nickname. */ java.lang.String getNickname(); /** - * optional string nickname = 3; + * string nickname = 3; + * @return The bytes for nickname. */ com.google.protobuf.ByteString getNicknameBytes(); /** * repeated string phone = 4; + * @return A list containing the phone. */ - java.util.List + java.util.List getPhoneList(); /** * repeated string phone = 4; + * @return The count of phone. */ int getPhoneCount(); /** * repeated string phone = 4; + * @param index The index of the element to return. + * @return The phone at the given index. */ java.lang.String getPhone(int index); /** * repeated string phone = 4; + * @param index The index of the value to return. + * @return The bytes of the phone at the given index. */ com.google.protobuf.ByteString getPhoneBytes(int index); /** * repeated string email = 5; + * @return A list containing the email. */ - java.util.List + java.util.List getEmailList(); /** * repeated string email = 5; + * @return The count of email. */ int getEmailCount(); /** * repeated string email = 5; + * @param index The index of the element to return. + * @return The email at the given index. */ java.lang.String getEmail(int index); /** * repeated string email = 5; + * @param index The index of the value to return. + * @return The bytes of the email at the given index. */ com.google.protobuf.ByteString getEmailBytes(int index); @@ -2958,366 +4404,363 @@ public interface RoomMessageContactOrBuilder extends /** * Protobuf type {@code proto.RoomMessageContact} */ - public static final class RoomMessageContact extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageContact, RoomMessageContact.Builder> implements + public static final class RoomMessageContact extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageContact) RoomMessageContactOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageContact.newBuilder() to construct. + private RoomMessageContact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageContact() { firstName_ = ""; lastName_ = ""; nickname_ = ""; - phone_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); - email_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + phone_ = com.google.protobuf.LazyStringArrayList.EMPTY; + email_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageContact(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageContact( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + firstName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + lastName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nickname_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phone_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phone_.add(s); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + email_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + email_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + phone_ = phone_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + email_ = email_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageContact.class, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder.class); } - private int bitField0_; + public static final int FIRST_NAME_FIELD_NUMBER = 1; - private java.lang.String firstName_; + private volatile java.lang.Object firstName_; /** - * optional string first_name = 1; + * string first_name = 1; + * @return The firstName. */ + @java.lang.Override public java.lang.String getFirstName() { - return firstName_; + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } } /** - * optional string first_name = 1; + * string first_name = 1; + * @return The bytes for firstName. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(firstName_); - } - /** - * optional string first_name = 1; - */ - private void setFirstName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firstName_ = value; - } - /** - * optional string first_name = 1; - */ - private void clearFirstName() { - - firstName_ = getDefaultInstance().getFirstName(); - } - /** - * optional string first_name = 1; - */ - private void setFirstNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firstName_ = value.toStringUtf8(); + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LAST_NAME_FIELD_NUMBER = 2; - private java.lang.String lastName_; + private volatile java.lang.Object lastName_; /** - * optional string last_name = 2; + * string last_name = 2; + * @return The lastName. */ + @java.lang.Override public java.lang.String getLastName() { - return lastName_; + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } } /** - * optional string last_name = 2; + * string last_name = 2; + * @return The bytes for lastName. */ + @java.lang.Override public com.google.protobuf.ByteString getLastNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(lastName_); - } - /** - * optional string last_name = 2; - */ - private void setLastName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastName_ = value; - } - /** - * optional string last_name = 2; - */ - private void clearLastName() { - - lastName_ = getDefaultInstance().getLastName(); - } - /** - * optional string last_name = 2; - */ - private void setLastNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastName_ = value.toStringUtf8(); + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int NICKNAME_FIELD_NUMBER = 3; - private java.lang.String nickname_; + private volatile java.lang.Object nickname_; /** - * optional string nickname = 3; + * string nickname = 3; + * @return The nickname. */ + @java.lang.Override public java.lang.String getNickname() { - return nickname_; + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } } /** - * optional string nickname = 3; + * string nickname = 3; + * @return The bytes for nickname. */ + @java.lang.Override public com.google.protobuf.ByteString getNicknameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nickname_); - } - /** - * optional string nickname = 3; - */ - private void setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; - } - /** - * optional string nickname = 3; - */ - private void clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); - } - /** - * optional string nickname = 3; - */ - private void setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value.toStringUtf8(); + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PHONE_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.ProtobufList phone_; + private com.google.protobuf.LazyStringList phone_; /** * repeated string phone = 4; + * @return A list containing the phone. */ - public java.util.List getPhoneList() { + public com.google.protobuf.ProtocolStringList + getPhoneList() { return phone_; } /** * repeated string phone = 4; + * @return The count of phone. */ public int getPhoneCount() { return phone_.size(); } /** * repeated string phone = 4; + * @param index The index of the element to return. + * @return The phone at the given index. */ public java.lang.String getPhone(int index) { return phone_.get(index); } /** * repeated string phone = 4; + * @param index The index of the value to return. + * @return The bytes of the phone at the given index. */ public com.google.protobuf.ByteString getPhoneBytes(int index) { - return com.google.protobuf.ByteString.copyFromUtf8( - phone_.get(index)); - } - private void ensurePhoneIsMutable() { - if (!phone_.isModifiable()) { - phone_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(phone_); - } - } - /** - * repeated string phone = 4; - */ - private void setPhone( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhoneIsMutable(); - phone_.set(index, value); - } - /** - * repeated string phone = 4; - */ - private void addPhone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhoneIsMutable(); - phone_.add(value); - } - /** - * repeated string phone = 4; - */ - private void addAllPhone( - java.lang.Iterable values) { - ensurePhoneIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, phone_); - } - /** - * repeated string phone = 4; - */ - private void clearPhone() { - phone_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); - } - /** - * repeated string phone = 4; - */ - private void addPhoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePhoneIsMutable(); - phone_.add(value.toStringUtf8()); + return phone_.getByteString(index); } public static final int EMAIL_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.ProtobufList email_; + private com.google.protobuf.LazyStringList email_; /** * repeated string email = 5; + * @return A list containing the email. */ - public java.util.List getEmailList() { + public com.google.protobuf.ProtocolStringList + getEmailList() { return email_; } /** * repeated string email = 5; + * @return The count of email. */ public int getEmailCount() { return email_.size(); } /** * repeated string email = 5; + * @param index The index of the element to return. + * @return The email at the given index. */ public java.lang.String getEmail(int index) { return email_.get(index); } /** * repeated string email = 5; + * @param index The index of the value to return. + * @return The bytes of the email at the given index. */ public com.google.protobuf.ByteString getEmailBytes(int index) { - return com.google.protobuf.ByteString.copyFromUtf8( - email_.get(index)); - } - private void ensureEmailIsMutable() { - if (!email_.isModifiable()) { - email_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(email_); - } - } - /** - * repeated string email = 5; - */ - private void setEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailIsMutable(); - email_.set(index, value); - } - /** - * repeated string email = 5; - */ - private void addEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailIsMutable(); - email_.add(value); - } - /** - * repeated string email = 5; - */ - private void addAllEmail( - java.lang.Iterable values) { - ensureEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, email_); - } - /** - * repeated string email = 5; - */ - private void clearEmail() { - email_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + return email_.getByteString(index); } - /** - * repeated string email = 5; - */ - private void addEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEmailIsMutable(); - email_.add(value.toStringUtf8()); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!firstName_.isEmpty()) { - output.writeString(1, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firstName_); } - if (!lastName_.isEmpty()) { - output.writeString(2, getLastName()); + if (!getLastNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lastName_); } - if (!nickname_.isEmpty()) { - output.writeString(3, getNickname()); + if (!getNicknameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nickname_); } for (int i = 0; i < phone_.size(); i++) { - output.writeString(4, phone_.get(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phone_.getRaw(i)); } for (int i = 0; i < email_.size(); i++) { - output.writeString(5, email_.get(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, email_.getRaw(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!firstName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firstName_); } - if (!lastName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getLastName()); + if (!getLastNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lastName_); } - if (!nickname_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getNickname()); + if (!getNicknameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nickname_); } { int dataSize = 0; for (int i = 0; i < phone_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(phone_.get(i)); + dataSize += computeStringSizeNoTag(phone_.getRaw(i)); } size += dataSize; size += 1 * getPhoneList().size(); @@ -3325,564 +4768,1070 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < email_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(email_.get(i)); + dataSize += computeStringSizeNoTag(email_.getRaw(i)); } size += dataSize; size += 1 * getEmailList().size(); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageContact)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageContact other = (net.iGap.proto.ProtoGlobal.RoomMessageContact) obj; + + if (!getFirstName() + .equals(other.getFirstName())) return false; + if (!getLastName() + .equals(other.getLastName())) return false; + if (!getNickname() + .equals(other.getNickname())) return false; + if (!getPhoneList() + .equals(other.getPhoneList())) return false; + if (!getEmailList() + .equals(other.getEmailList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIRST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFirstName().hashCode(); + hash = (37 * hash) + LAST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLastName().hashCode(); + hash = (37 * hash) + NICKNAME_FIELD_NUMBER; + hash = (53 * hash) + getNickname().hashCode(); + if (getPhoneCount() > 0) { + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhoneList().hashCode(); + } + if (getEmailCount() > 0) { + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageContact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageContact} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageContact, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageContact) net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageContact.class, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + firstName_ = ""; + + lastName_ = ""; + + nickname_ = ""; + + phone_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + email_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageContact_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContact getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContact build() { + net.iGap.proto.ProtoGlobal.RoomMessageContact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContact buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageContact result = new net.iGap.proto.ProtoGlobal.RoomMessageContact(this); + int from_bitField0_ = bitField0_; + result.firstName_ = firstName_; + result.lastName_ = lastName_; + result.nickname_ = nickname_; + if (((bitField0_ & 0x00000001) != 0)) { + phone_ = phone_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.phone_ = phone_; + if (((bitField0_ & 0x00000002) != 0)) { + email_ = email_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.email_ = email_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageContact) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageContact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageContact other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance()) return this; + if (!other.getFirstName().isEmpty()) { + firstName_ = other.firstName_; + onChanged(); + } + if (!other.getLastName().isEmpty()) { + lastName_ = other.lastName_; + onChanged(); + } + if (!other.getNickname().isEmpty()) { + nickname_ = other.nickname_; + onChanged(); + } + if (!other.phone_.isEmpty()) { + if (phone_.isEmpty()) { + phone_ = other.phone_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePhoneIsMutable(); + phone_.addAll(other.phone_); + } + onChanged(); + } + if (!other.email_.isEmpty()) { + if (email_.isEmpty()) { + email_ = other.email_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEmailIsMutable(); + email_.addAll(other.email_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageContact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageContact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private java.lang.Object firstName_ = ""; /** - * optional string first_name = 1; + * string first_name = 1; + * @return The firstName. */ public java.lang.String getFirstName() { - return instance.getFirstName(); + java.lang.Object ref = firstName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string first_name = 1; + * string first_name = 1; + * @return The bytes for firstName. */ public com.google.protobuf.ByteString getFirstNameBytes() { - return instance.getFirstNameBytes(); + java.lang.Object ref = firstName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string first_name = 1; + * string first_name = 1; + * @param value The firstName to set. + * @return This builder for chaining. */ public Builder setFirstName( java.lang.String value) { - copyOnWrite(); - instance.setFirstName(value); + if (value == null) { + throw new NullPointerException(); + } + + firstName_ = value; + onChanged(); return this; } /** - * optional string first_name = 1; + * string first_name = 1; + * @return This builder for chaining. */ public Builder clearFirstName() { - copyOnWrite(); - instance.clearFirstName(); + + firstName_ = getDefaultInstance().getFirstName(); + onChanged(); return this; } /** - * optional string first_name = 1; + * string first_name = 1; + * @param value The bytes for firstName to set. + * @return This builder for chaining. */ public Builder setFirstNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFirstNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + firstName_ = value; + onChanged(); return this; } + private java.lang.Object lastName_ = ""; /** - * optional string last_name = 2; + * string last_name = 2; + * @return The lastName. */ public java.lang.String getLastName() { - return instance.getLastName(); + java.lang.Object ref = lastName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string last_name = 2; + * string last_name = 2; + * @return The bytes for lastName. */ public com.google.protobuf.ByteString getLastNameBytes() { - return instance.getLastNameBytes(); + java.lang.Object ref = lastName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string last_name = 2; + * string last_name = 2; + * @param value The lastName to set. + * @return This builder for chaining. */ public Builder setLastName( java.lang.String value) { - copyOnWrite(); - instance.setLastName(value); + if (value == null) { + throw new NullPointerException(); + } + + lastName_ = value; + onChanged(); return this; } /** - * optional string last_name = 2; + * string last_name = 2; + * @return This builder for chaining. */ public Builder clearLastName() { - copyOnWrite(); - instance.clearLastName(); + + lastName_ = getDefaultInstance().getLastName(); + onChanged(); return this; } /** - * optional string last_name = 2; + * string last_name = 2; + * @param value The bytes for lastName to set. + * @return This builder for chaining. */ public Builder setLastNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLastNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastName_ = value; + onChanged(); return this; } + private java.lang.Object nickname_ = ""; /** - * optional string nickname = 3; + * string nickname = 3; + * @return The nickname. */ public java.lang.String getNickname() { - return instance.getNickname(); + java.lang.Object ref = nickname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string nickname = 3; + * string nickname = 3; + * @return The bytes for nickname. */ public com.google.protobuf.ByteString getNicknameBytes() { - return instance.getNicknameBytes(); + java.lang.Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string nickname = 3; + * string nickname = 3; + * @param value The nickname to set. + * @return This builder for chaining. */ public Builder setNickname( java.lang.String value) { - copyOnWrite(); - instance.setNickname(value); + if (value == null) { + throw new NullPointerException(); + } + + nickname_ = value; + onChanged(); return this; } /** - * optional string nickname = 3; + * string nickname = 3; + * @return This builder for chaining. */ public Builder clearNickname() { - copyOnWrite(); - instance.clearNickname(); + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); return this; } /** - * optional string nickname = 3; + * string nickname = 3; + * @param value The bytes for nickname to set. + * @return This builder for chaining. */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNicknameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nickname_ = value; + onChanged(); return this; } + private com.google.protobuf.LazyStringList phone_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePhoneIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + phone_ = new com.google.protobuf.LazyStringArrayList(phone_); + bitField0_ |= 0x00000001; + } + } /** * repeated string phone = 4; + * @return A list containing the phone. */ - public java.util.List + public com.google.protobuf.ProtocolStringList getPhoneList() { - return java.util.Collections.unmodifiableList( - instance.getPhoneList()); + return phone_.getUnmodifiableView(); } /** * repeated string phone = 4; + * @return The count of phone. */ public int getPhoneCount() { - return instance.getPhoneCount(); + return phone_.size(); } /** * repeated string phone = 4; + * @param index The index of the element to return. + * @return The phone at the given index. */ public java.lang.String getPhone(int index) { - return instance.getPhone(index); + return phone_.get(index); } /** * repeated string phone = 4; + * @param index The index of the value to return. + * @return The bytes of the phone at the given index. */ public com.google.protobuf.ByteString getPhoneBytes(int index) { - return instance.getPhoneBytes(index); + return phone_.getByteString(index); } /** * repeated string phone = 4; + * @param index The index to set the value at. + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone( int index, java.lang.String value) { - copyOnWrite(); - instance.setPhone(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneIsMutable(); + phone_.set(index, value); + onChanged(); return this; } /** * repeated string phone = 4; + * @param value The phone to add. + * @return This builder for chaining. */ public Builder addPhone( java.lang.String value) { - copyOnWrite(); - instance.addPhone(value); + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneIsMutable(); + phone_.add(value); + onChanged(); return this; } /** * repeated string phone = 4; + * @param values The phone to add. + * @return This builder for chaining. */ public Builder addAllPhone( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPhone(values); + ensurePhoneIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phone_); + onChanged(); return this; } /** * repeated string phone = 4; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + phone_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } /** * repeated string phone = 4; + * @param value The bytes of the phone to add. + * @return This builder for chaining. */ public Builder addPhoneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.addPhoneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePhoneIsMutable(); + phone_.add(value); + onChanged(); return this; } + private com.google.protobuf.LazyStringList email_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEmailIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + email_ = new com.google.protobuf.LazyStringArrayList(email_); + bitField0_ |= 0x00000002; + } + } /** * repeated string email = 5; + * @return A list containing the email. */ - public java.util.List + public com.google.protobuf.ProtocolStringList getEmailList() { - return java.util.Collections.unmodifiableList( - instance.getEmailList()); + return email_.getUnmodifiableView(); } /** * repeated string email = 5; + * @return The count of email. */ public int getEmailCount() { - return instance.getEmailCount(); + return email_.size(); } /** * repeated string email = 5; + * @param index The index of the element to return. + * @return The email at the given index. */ public java.lang.String getEmail(int index) { - return instance.getEmail(index); + return email_.get(index); } /** * repeated string email = 5; + * @param index The index of the value to return. + * @return The bytes of the email at the given index. */ public com.google.protobuf.ByteString getEmailBytes(int index) { - return instance.getEmailBytes(index); + return email_.getByteString(index); } /** * repeated string email = 5; + * @param index The index to set the value at. + * @param value The email to set. + * @return This builder for chaining. */ public Builder setEmail( int index, java.lang.String value) { - copyOnWrite(); - instance.setEmail(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureEmailIsMutable(); + email_.set(index, value); + onChanged(); return this; } /** * repeated string email = 5; + * @param value The email to add. + * @return This builder for chaining. */ public Builder addEmail( java.lang.String value) { - copyOnWrite(); - instance.addEmail(value); + if (value == null) { + throw new NullPointerException(); + } + ensureEmailIsMutable(); + email_.add(value); + onChanged(); return this; } /** * repeated string email = 5; + * @param values The email to add. + * @return This builder for chaining. */ public Builder addAllEmail( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllEmail(values); + ensureEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, email_); + onChanged(); return this; } /** * repeated string email = 5; + * @return This builder for chaining. */ public Builder clearEmail() { - copyOnWrite(); - instance.clearEmail(); + email_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); return this; } /** * repeated string email = 5; + * @param value The bytes of the email to add. + * @return This builder for chaining. */ public Builder addEmailBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.addEmailBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEmailIsMutable(); + email_.add(value); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageContact) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageContact(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - phone_.makeImmutable(); - email_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageContact other = (net.iGap.proto.ProtoGlobal.RoomMessageContact) arg1; - firstName_ = visitor.visitString(!firstName_.isEmpty(), firstName_, - !other.firstName_.isEmpty(), other.firstName_); - lastName_ = visitor.visitString(!lastName_.isEmpty(), lastName_, - !other.lastName_.isEmpty(), other.lastName_); - nickname_ = visitor.visitString(!nickname_.isEmpty(), nickname_, - !other.nickname_.isEmpty(), other.nickname_); - phone_= visitor.visitList(phone_, other.phone_); - email_= visitor.visitList(email_, other.email_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - firstName_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - lastName_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - nickname_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - if (!phone_.isModifiable()) { - phone_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(phone_); - } - phone_.add(s); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - if (!email_.isModifiable()) { - email_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(email_); - } - email_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageContact.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageContact) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageContact) private static final net.iGap.proto.ProtoGlobal.RoomMessageContact DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageContact(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageContact(); } public static net.iGap.proto.ProtoGlobal.RoomMessageContact getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageContact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageContact(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface RoomMessageWalletOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageWallet) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @return The type. */ net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type getType(); /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * @return Whether the moneyTransfer field is set. */ boolean hasMoneyTransfer(); /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * @return The moneyTransfer. */ net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer getMoneyTransfer(); + /** + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + */ + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransferOrBuilder getMoneyTransferOrBuilder(); /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * @return Whether the cardToCard field is set. */ boolean hasCardToCard(); /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * @return The cardToCard. */ net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard getCardToCard(); + /** + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCardOrBuilder getCardToCardOrBuilder(); /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; + * @return Whether the topup field is set. */ boolean hasTopup(); /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; + * @return The topup. */ net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup getTopup(); + /** + * .proto.RoomMessageWallet.Topup topup = 4; + */ + net.iGap.proto.ProtoGlobal.RoomMessageWallet.TopupOrBuilder getTopupOrBuilder(); /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; + * @return Whether the bill field is set. */ boolean hasBill(); /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; + * @return The bill. */ net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill getBill(); + /** + * .proto.RoomMessageWallet.Bill bill = 5; + */ + net.iGap.proto.ProtoGlobal.RoomMessageWallet.BillOrBuilder getBillOrBuilder(); } /** * Protobuf type {@code proto.RoomMessageWallet} */ - public static final class RoomMessageWallet extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageWallet, RoomMessageWallet.Builder> implements + public static final class RoomMessageWallet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageWallet) RoomMessageWalletOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageWallet.newBuilder() to construct. + private RoomMessageWallet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageWallet() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageWallet(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageWallet( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder subBuilder = null; + if (moneyTransfer_ != null) { + subBuilder = moneyTransfer_.toBuilder(); + } + moneyTransfer_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(moneyTransfer_); + moneyTransfer_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder subBuilder = null; + if (topup_ != null) { + subBuilder = topup_.toBuilder(); + } + topup_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topup_); + topup_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder subBuilder = null; + if (bill_ != null) { + subBuilder = bill_.toBuilder(); + } + bill_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bill_); + bill_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder.class); } + /** * Protobuf enum {@code proto.RoomMessageWallet.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MONEY_TRANSFER = 0; */ @@ -3929,10 +5878,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -3940,6 +5895,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return MONEY_TRANSFER; @@ -3963,6 +5922,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -3974,328 +5964,365 @@ private Type(int value) { public interface MoneyTransferOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageWallet.MoneyTransfer) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ long getFromUserId(); /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return The toUserId. */ long getToUserId(); /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return The traceNumber. */ long getTraceNumber(); /** - * optional int64 invoice_number = 5; + * int64 invoice_number = 5; + * @return The invoiceNumber. */ long getInvoiceNumber(); /** - * optional uint32 pay_time = 6; + * uint32 pay_time = 6; + * @return The payTime. */ int getPayTime(); /** - * optional string description = 7; + * string description = 7; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 7; + * string description = 7; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * optional string card_number = 8; + * string card_number = 8; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string card_number = 8; + * string card_number = 8; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional int64 rrn = 9; + * int64 rrn = 9; + * @return The rrn. */ long getRrn(); } /** * Protobuf type {@code proto.RoomMessageWallet.MoneyTransfer} */ - public static final class MoneyTransfer extends - com.google.protobuf.GeneratedMessageLite< - MoneyTransfer, MoneyTransfer.Builder> implements + public static final class MoneyTransfer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageWallet.MoneyTransfer) MoneyTransferOrBuilder { + private static final long serialVersionUID = 0L; + // Use MoneyTransfer.newBuilder() to construct. + private MoneyTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MoneyTransfer() { description_ = ""; cardNumber_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MoneyTransfer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MoneyTransfer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + fromUserId_ = input.readUInt64(); + break; + } + case 16: { + + toUserId_ = input.readUInt64(); + break; + } + case 24: { + + amount_ = input.readUInt64(); + break; + } + case 32: { + + traceNumber_ = input.readInt64(); + break; + } + case 40: { + + invoiceNumber_ = input.readInt64(); + break; + } + case 48: { + + payTime_ = input.readUInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 72: { + + rrn_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_MoneyTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_MoneyTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder.class); + } + public static final int FROM_USER_ID_FIELD_NUMBER = 1; private long fromUserId_; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { return fromUserId_; } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void setFromUserId(long value) { - - fromUserId_ = value; - } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void clearFromUserId() { - - fromUserId_ = 0L; - } public static final int TO_USER_ID_FIELD_NUMBER = 2; private long toUserId_; /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { return toUserId_; } - /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; - */ - private void setToUserId(long value) { - - toUserId_ = value; - } - /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; - */ - private void clearToUserId() { - - toUserId_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_; /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 3 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 3 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int TRACE_NUMBER_FIELD_NUMBER = 4; private long traceNumber_; /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { return traceNumber_; } - /** - * optional int64 trace_number = 4; - */ - private void setTraceNumber(long value) { - - traceNumber_ = value; - } - /** - * optional int64 trace_number = 4; - */ - private void clearTraceNumber() { - - traceNumber_ = 0L; - } public static final int INVOICE_NUMBER_FIELD_NUMBER = 5; private long invoiceNumber_; /** - * optional int64 invoice_number = 5; + * int64 invoice_number = 5; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { return invoiceNumber_; } - /** - * optional int64 invoice_number = 5; - */ - private void setInvoiceNumber(long value) { - - invoiceNumber_ = value; - } - /** - * optional int64 invoice_number = 5; - */ - private void clearInvoiceNumber() { - - invoiceNumber_ = 0L; - } public static final int PAY_TIME_FIELD_NUMBER = 6; private int payTime_; /** - * optional uint32 pay_time = 6; + * uint32 pay_time = 6; + * @return The payTime. */ + @java.lang.Override public int getPayTime() { return payTime_; } - /** - * optional uint32 pay_time = 6; - */ - private void setPayTime(int value) { - - payTime_ = value; - } - /** - * optional uint32 pay_time = 6; - */ - private void clearPayTime() { - - payTime_ = 0; - } public static final int DESCRIPTION_FIELD_NUMBER = 7; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 7; + * string description = 7; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 7; + * string description = 7; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int CARD_NUMBER_FIELD_NUMBER = 8; + private volatile java.lang.Object cardNumber_; /** - * optional string description = 7; + * string card_number = 8; + * @return The cardNumber. */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; + @java.lang.Override + public java.lang.String getCardNumber() { + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string description = 7; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); - } - /** - * optional string description = 7; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); - } - - public static final int CARD_NUMBER_FIELD_NUMBER = 8; - private java.lang.String cardNumber_; - /** - * optional string card_number = 8; - */ - public java.lang.String getCardNumber() { - return cardNumber_; - } - /** - * optional string card_number = 8; + * string card_number = 8; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string card_number = 8; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string card_number = 8; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string card_number = 8; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int RRN_FIELD_NUMBER = 9; private long rrn_; /** - * optional int64 rrn = 9; + * int64 rrn = 9; + * @return The rrn. */ + @java.lang.Override public long getRrn() { return rrn_; } - /** - * optional int64 rrn = 9; - */ - private void setRrn(long value) { - - rrn_ = value; - } - /** - * optional int64 rrn = 9; - */ - private void clearRrn() { - - rrn_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fromUserId_ != 0L) { @@ -4316,19 +6343,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (payTime_ != 0) { output.writeUInt32(6, payTime_); } - if (!description_.isEmpty()) { - output.writeString(7, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); } - if (!cardNumber_.isEmpty()) { - output.writeString(8, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cardNumber_); } if (rrn_ != 0L) { output.writeInt64(9, rrn_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -4356,623 +6385,945 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, payTime_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cardNumber_); } if (rrn_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, rrn_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer) obj; + + if (getFromUserId() + != other.getFromUserId()) return false; + if (getToUserId() + != other.getToUserId()) return false; + if (getAmount() + != other.getAmount()) return false; + if (getTraceNumber() + != other.getTraceNumber()) return false; + if (getInvoiceNumber() + != other.getInvoiceNumber()) return false; + if (getPayTime() + != other.getPayTime()) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (getRrn() + != other.getRrn()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFromUserId()); + hash = (37 * hash) + TO_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToUserId()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + TRACE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTraceNumber()); + hash = (37 * hash) + INVOICE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInvoiceNumber()); + hash = (37 * hash) + PAY_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPayTime(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRrn()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageWallet.MoneyTransfer} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageWallet.MoneyTransfer) net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_MoneyTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_MoneyTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fromUserId_ = 0L; + + toUserId_ = 0L; + + amount_ = 0L; + + traceNumber_ = 0L; + + invoiceNumber_ = 0L; + + payTime_ = 0; + + description_ = ""; + + cardNumber_ = ""; + + rrn_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_MoneyTransfer_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer build() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer result = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer(this); + result.fromUserId_ = fromUserId_; + result.toUserId_ = toUserId_; + result.amount_ = amount_; + result.traceNumber_ = traceNumber_; + result.invoiceNumber_ = invoiceNumber_; + result.payTime_ = payTime_; + result.description_ = description_; + result.cardNumber_ = cardNumber_; + result.rrn_ = rrn_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.getDefaultInstance()) return this; + if (other.getFromUserId() != 0L) { + setFromUserId(other.getFromUserId()); + } + if (other.getToUserId() != 0L) { + setToUserId(other.getToUserId()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getTraceNumber() != 0L) { + setTraceNumber(other.getTraceNumber()); + } + if (other.getInvoiceNumber() != 0L) { + setInvoiceNumber(other.getInvoiceNumber()); + } + if (other.getPayTime() != 0) { + setPayTime(other.getPayTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (other.getRrn() != 0L) { + setRrn(other.getRrn()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long fromUserId_ ; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { - return instance.getFromUserId(); + return fromUserId_; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @param value The fromUserId to set. + * @return This builder for chaining. */ public Builder setFromUserId(long value) { - copyOnWrite(); - instance.setFromUserId(value); + + fromUserId_ = value; + onChanged(); return this; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearFromUserId() { - copyOnWrite(); - instance.clearFromUserId(); + + fromUserId_ = 0L; + onChanged(); return this; } + private long toUserId_ ; /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { - return instance.getToUserId(); + return toUserId_; } /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @param value The toUserId to set. + * @return This builder for chaining. */ public Builder setToUserId(long value) { - copyOnWrite(); - instance.setToUserId(value); + + toUserId_ = value; + onChanged(); return this; } /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearToUserId() { - copyOnWrite(); - instance.clearToUserId(); + + toUserId_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private long traceNumber_ ; /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { - return instance.getTraceNumber(); + return traceNumber_; } /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @param value The traceNumber to set. + * @return This builder for chaining. */ public Builder setTraceNumber(long value) { - copyOnWrite(); - instance.setTraceNumber(value); + + traceNumber_ = value; + onChanged(); return this; } /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return This builder for chaining. */ public Builder clearTraceNumber() { - copyOnWrite(); - instance.clearTraceNumber(); + + traceNumber_ = 0L; + onChanged(); return this; } + private long invoiceNumber_ ; /** - * optional int64 invoice_number = 5; + * int64 invoice_number = 5; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { - return instance.getInvoiceNumber(); + return invoiceNumber_; } /** - * optional int64 invoice_number = 5; + * int64 invoice_number = 5; + * @param value The invoiceNumber to set. + * @return This builder for chaining. */ public Builder setInvoiceNumber(long value) { - copyOnWrite(); - instance.setInvoiceNumber(value); + + invoiceNumber_ = value; + onChanged(); return this; } /** - * optional int64 invoice_number = 5; + * int64 invoice_number = 5; + * @return This builder for chaining. */ public Builder clearInvoiceNumber() { - copyOnWrite(); - instance.clearInvoiceNumber(); + + invoiceNumber_ = 0L; + onChanged(); return this; } + private int payTime_ ; /** - * optional uint32 pay_time = 6; + * uint32 pay_time = 6; + * @return The payTime. */ + @java.lang.Override public int getPayTime() { - return instance.getPayTime(); + return payTime_; } /** - * optional uint32 pay_time = 6; + * uint32 pay_time = 6; + * @param value The payTime to set. + * @return This builder for chaining. */ public Builder setPayTime(int value) { - copyOnWrite(); - instance.setPayTime(value); + + payTime_ = value; + onChanged(); return this; } /** - * optional uint32 pay_time = 6; + * uint32 pay_time = 6; + * @return This builder for chaining. */ public Builder clearPayTime() { - copyOnWrite(); - instance.clearPayTime(); + + payTime_ = 0; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 7; + * string description = 7; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 7; + * string description = 7; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 7; + * string description = 7; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 7; + * string description = 7; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 7; + * string description = 7; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string card_number = 8; + * string card_number = 8; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string card_number = 8; + * string card_number = 8; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string card_number = 8; + * string card_number = 8; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string card_number = 8; + * string card_number = 8; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string card_number = 8; + * string card_number = 8; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private long rrn_ ; /** - * optional int64 rrn = 9; + * int64 rrn = 9; + * @return The rrn. */ + @java.lang.Override public long getRrn() { - return instance.getRrn(); + return rrn_; } /** - * optional int64 rrn = 9; + * int64 rrn = 9; + * @param value The rrn to set. + * @return This builder for chaining. */ public Builder setRrn(long value) { - copyOnWrite(); - instance.setRrn(value); + + rrn_ = value; + onChanged(); return this; } /** - * optional int64 rrn = 9; + * int64 rrn = 9; + * @return This builder for chaining. */ public Builder clearRrn() { - copyOnWrite(); - instance.clearRrn(); + + rrn_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet.MoneyTransfer) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer) arg1; - fromUserId_ = visitor.visitLong(fromUserId_ != 0L, fromUserId_, - other.fromUserId_ != 0L, other.fromUserId_); - toUserId_ = visitor.visitLong(toUserId_ != 0L, toUserId_, - other.toUserId_ != 0L, other.toUserId_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - traceNumber_ = visitor.visitLong(traceNumber_ != 0L, traceNumber_, - other.traceNumber_ != 0L, other.traceNumber_); - invoiceNumber_ = visitor.visitLong(invoiceNumber_ != 0L, invoiceNumber_, - other.invoiceNumber_ != 0L, other.invoiceNumber_); - payTime_ = visitor.visitInt(payTime_ != 0, payTime_, - other.payTime_ != 0, other.payTime_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - rrn_ = visitor.visitLong(rrn_ != 0L, rrn_, - other.rrn_ != 0L, other.rrn_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - fromUserId_ = input.readUInt64(); - break; - } - case 16: { - - toUserId_ = input.readUInt64(); - break; - } - case 24: { - - amount_ = input.readUInt64(); - break; - } - case 32: { - - traceNumber_ = input.readInt64(); - break; - } - case 40: { - - invoiceNumber_ = input.readInt64(); - break; - } - case 48: { - - payTime_ = input.readUInt32(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - cardNumber_ = s; - break; - } - case 72: { - rrn_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet.MoneyTransfer) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageWallet.MoneyTransfer) private static final net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MoneyTransfer(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer(); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoneyTransfer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MoneyTransfer(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface CardToCardOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageWallet.CardToCard) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ long getFromUserId(); /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return The toUserId. */ long getToUserId(); /** - * optional uint64 order_id = 3 [jstype = JS_STRING]; + * uint64 order_id = 3 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional string token = 4; + * string token = 4; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 4; + * string token = 4; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @return The sourceCardNumber. */ java.lang.String getSourceCardNumber(); /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @return The bytes for sourceCardNumber. */ com.google.protobuf.ByteString getSourceCardNumberBytes(); /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @return The destCardNumber. */ java.lang.String getDestCardNumber(); /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @return The bytes for destCardNumber. */ com.google.protobuf.ByteString getDestCardNumberBytes(); /** - * optional uint32 request_time = 8; + * uint32 request_time = 8; + * @return The requestTime. */ int getRequestTime(); /** - * optional string rrn = 9; + * string rrn = 9; + * @return The rrn. */ java.lang.String getRrn(); /** - * optional string rrn = 9; + * string rrn = 9; + * @return The bytes for rrn. */ com.google.protobuf.ByteString getRrnBytes(); /** - * optional string trace_number = 10; + * string trace_number = 10; + * @return The traceNumber. */ java.lang.String getTraceNumber(); /** - * optional string trace_number = 10; + * string trace_number = 10; + * @return The bytes for traceNumber. */ com.google.protobuf.ByteString getTraceNumberBytes(); /** - * optional string bankName = 11; + * string bankName = 11; + * @return The bankName. */ java.lang.String getBankName(); /** - * optional string bankName = 11; + * string bankName = 11; + * @return The bytes for bankName. */ com.google.protobuf.ByteString getBankNameBytes(); /** - * optional string destBankName = 12; + * string destBankName = 12; + * @return The destBankName. */ java.lang.String getDestBankName(); /** - * optional string destBankName = 12; + * string destBankName = 12; + * @return The bytes for destBankName. */ com.google.protobuf.ByteString getDestBankNameBytes(); /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @return The cardOwnerName. */ java.lang.String getCardOwnerName(); /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @return The bytes for cardOwnerName. */ com.google.protobuf.ByteString getCardOwnerNameBytes(); /** - * optional bool status = 14; + * bool status = 14; + * @return The status. */ boolean getStatus(); } /** * Protobuf type {@code proto.RoomMessageWallet.CardToCard} */ - public static final class CardToCard extends - com.google.protobuf.GeneratedMessageLite< - CardToCard, CardToCard.Builder> implements + public static final class CardToCard extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageWallet.CardToCard) CardToCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use CardToCard.newBuilder() to construct. + private CardToCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private CardToCard() { token_ = ""; sourceCardNumber_ = ""; @@ -4983,512 +7334,529 @@ private CardToCard() { destBankName_ = ""; cardOwnerName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CardToCard(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CardToCard( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + fromUserId_ = input.readUInt64(); + break; + } + case 16: { + + toUserId_ = input.readUInt64(); + break; + } + case 24: { + + orderId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 40: { + + amount_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceCardNumber_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + destCardNumber_ = s; + break; + } + case 64: { + + requestTime_ = input.readUInt32(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + rrn_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + traceNumber_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + bankName_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + destBankName_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + cardOwnerName_ = s; + break; + } + case 112: { + + status_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_CardToCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_CardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder.class); + } + public static final int FROM_USER_ID_FIELD_NUMBER = 1; private long fromUserId_; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { return fromUserId_; } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void setFromUserId(long value) { - - fromUserId_ = value; - } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void clearFromUserId() { - - fromUserId_ = 0L; - } public static final int TO_USER_ID_FIELD_NUMBER = 2; private long toUserId_; /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { return toUserId_; } - /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; - */ - private void setToUserId(long value) { - - toUserId_ = value; - } - /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; - */ - private void clearToUserId() { - - toUserId_ = 0L; - } public static final int ORDER_ID_FIELD_NUMBER = 3; private long orderId_; /** - * optional uint64 order_id = 3 [jstype = JS_STRING]; + * uint64 order_id = 3 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 order_id = 3 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 order_id = 3 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int TOKEN_FIELD_NUMBER = 4; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 4; + * string token = 4; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 4; + * string token = 4; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 4; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 4; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 4; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int AMOUNT_FIELD_NUMBER = 5; private long amount_; /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 5 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 5 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int SOURCE_CARD_NUMBER_FIELD_NUMBER = 6; - private java.lang.String sourceCardNumber_; + private volatile java.lang.Object sourceCardNumber_; /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @return The sourceCardNumber. */ + @java.lang.Override public java.lang.String getSourceCardNumber() { - return sourceCardNumber_; + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceCardNumber_ = s; + return s; + } } /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @return The bytes for sourceCardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getSourceCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(sourceCardNumber_); - } - /** - * optional string source_card_number = 6; - */ - private void setSourceCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceCardNumber_ = value; - } - /** - * optional string source_card_number = 6; - */ - private void clearSourceCardNumber() { - - sourceCardNumber_ = getDefaultInstance().getSourceCardNumber(); - } - /** - * optional string source_card_number = 6; - */ - private void setSourceCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceCardNumber_ = value.toStringUtf8(); + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DEST_CARD_NUMBER_FIELD_NUMBER = 7; - private java.lang.String destCardNumber_; + private volatile java.lang.Object destCardNumber_; /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @return The destCardNumber. */ + @java.lang.Override public java.lang.String getDestCardNumber() { - return destCardNumber_; + java.lang.Object ref = destCardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destCardNumber_ = s; + return s; + } } /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @return The bytes for destCardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getDestCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(destCardNumber_); - } - /** - * optional string dest_card_number = 7; - */ - private void setDestCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destCardNumber_ = value; - } - /** - * optional string dest_card_number = 7; - */ - private void clearDestCardNumber() { - - destCardNumber_ = getDefaultInstance().getDestCardNumber(); - } - /** - * optional string dest_card_number = 7; - */ - private void setDestCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destCardNumber_ = value.toStringUtf8(); + java.lang.Object ref = destCardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int REQUEST_TIME_FIELD_NUMBER = 8; private int requestTime_; /** - * optional uint32 request_time = 8; + * uint32 request_time = 8; + * @return The requestTime. */ + @java.lang.Override public int getRequestTime() { return requestTime_; } - /** - * optional uint32 request_time = 8; - */ - private void setRequestTime(int value) { - - requestTime_ = value; - } - /** - * optional uint32 request_time = 8; - */ - private void clearRequestTime() { - - requestTime_ = 0; - } public static final int RRN_FIELD_NUMBER = 9; - private java.lang.String rrn_; + private volatile java.lang.Object rrn_; /** - * optional string rrn = 9; + * string rrn = 9; + * @return The rrn. */ + @java.lang.Override public java.lang.String getRrn() { - return rrn_; + java.lang.Object ref = rrn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rrn_ = s; + return s; + } } /** - * optional string rrn = 9; + * string rrn = 9; + * @return The bytes for rrn. */ + @java.lang.Override public com.google.protobuf.ByteString getRrnBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(rrn_); - } - /** - * optional string rrn = 9; - */ - private void setRrn( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rrn_ = value; - } - /** - * optional string rrn = 9; - */ - private void clearRrn() { - - rrn_ = getDefaultInstance().getRrn(); - } - /** - * optional string rrn = 9; - */ - private void setRrnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rrn_ = value.toStringUtf8(); + java.lang.Object ref = rrn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rrn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TRACE_NUMBER_FIELD_NUMBER = 10; - private java.lang.String traceNumber_; + private volatile java.lang.Object traceNumber_; /** - * optional string trace_number = 10; + * string trace_number = 10; + * @return The traceNumber. */ + @java.lang.Override public java.lang.String getTraceNumber() { - return traceNumber_; + java.lang.Object ref = traceNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + traceNumber_ = s; + return s; + } } /** - * optional string trace_number = 10; + * string trace_number = 10; + * @return The bytes for traceNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getTraceNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(traceNumber_); - } - /** - * optional string trace_number = 10; - */ - private void setTraceNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - traceNumber_ = value; - } - /** - * optional string trace_number = 10; - */ - private void clearTraceNumber() { - - traceNumber_ = getDefaultInstance().getTraceNumber(); - } - /** - * optional string trace_number = 10; - */ - private void setTraceNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - traceNumber_ = value.toStringUtf8(); + java.lang.Object ref = traceNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + traceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BANKNAME_FIELD_NUMBER = 11; - private java.lang.String bankName_; + private volatile java.lang.Object bankName_; /** - * optional string bankName = 11; + * string bankName = 11; + * @return The bankName. */ + @java.lang.Override public java.lang.String getBankName() { - return bankName_; + java.lang.Object ref = bankName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bankName_ = s; + return s; + } } /** - * optional string bankName = 11; + * string bankName = 11; + * @return The bytes for bankName. */ + @java.lang.Override public com.google.protobuf.ByteString getBankNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(bankName_); - } - /** - * optional string bankName = 11; - */ - private void setBankName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bankName_ = value; - } - /** - * optional string bankName = 11; - */ - private void clearBankName() { - - bankName_ = getDefaultInstance().getBankName(); - } - /** - * optional string bankName = 11; - */ - private void setBankNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bankName_ = value.toStringUtf8(); + java.lang.Object ref = bankName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESTBANKNAME_FIELD_NUMBER = 12; - private java.lang.String destBankName_; + private volatile java.lang.Object destBankName_; /** - * optional string destBankName = 12; + * string destBankName = 12; + * @return The destBankName. */ + @java.lang.Override public java.lang.String getDestBankName() { - return destBankName_; + java.lang.Object ref = destBankName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destBankName_ = s; + return s; + } } /** - * optional string destBankName = 12; + * string destBankName = 12; + * @return The bytes for destBankName. */ + @java.lang.Override public com.google.protobuf.ByteString getDestBankNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(destBankName_); - } - /** - * optional string destBankName = 12; - */ - private void setDestBankName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destBankName_ = value; - } - /** - * optional string destBankName = 12; - */ - private void clearDestBankName() { - - destBankName_ = getDefaultInstance().getDestBankName(); - } - /** - * optional string destBankName = 12; - */ - private void setDestBankNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destBankName_ = value.toStringUtf8(); + java.lang.Object ref = destBankName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destBankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CARDOWNERNAME_FIELD_NUMBER = 13; - private java.lang.String cardOwnerName_; + private volatile java.lang.Object cardOwnerName_; /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @return The cardOwnerName. */ + @java.lang.Override public java.lang.String getCardOwnerName() { - return cardOwnerName_; + java.lang.Object ref = cardOwnerName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardOwnerName_ = s; + return s; + } } /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @return The bytes for cardOwnerName. */ + @java.lang.Override public com.google.protobuf.ByteString getCardOwnerNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardOwnerName_); - } - /** - * optional string cardOwnerName = 13; - */ - private void setCardOwnerName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardOwnerName_ = value; - } - /** - * optional string cardOwnerName = 13; - */ - private void clearCardOwnerName() { - - cardOwnerName_ = getDefaultInstance().getCardOwnerName(); - } - /** - * optional string cardOwnerName = 13; - */ - private void setCardOwnerNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardOwnerName_ = value.toStringUtf8(); + java.lang.Object ref = cardOwnerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardOwnerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STATUS_FIELD_NUMBER = 14; private boolean status_; /** - * optional bool status = 14; + * bool status = 14; + * @return The status. */ + @java.lang.Override public boolean getStatus() { return status_; } - /** - * optional bool status = 14; - */ - private void setStatus(boolean value) { - - status_ = value; - } - /** - * optional bool status = 14; - */ - private void clearStatus() { - - status_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fromUserId_ != 0L) { @@ -5500,43 +7868,45 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (orderId_ != 0L) { output.writeUInt64(3, orderId_); } - if (!token_.isEmpty()) { - output.writeString(4, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); } if (amount_ != 0L) { output.writeUInt64(5, amount_); } - if (!sourceCardNumber_.isEmpty()) { - output.writeString(6, getSourceCardNumber()); + if (!getSourceCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sourceCardNumber_); } - if (!destCardNumber_.isEmpty()) { - output.writeString(7, getDestCardNumber()); + if (!getDestCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, destCardNumber_); } if (requestTime_ != 0) { output.writeUInt32(8, requestTime_); } - if (!rrn_.isEmpty()) { - output.writeString(9, getRrn()); + if (!getRrnBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, rrn_); } - if (!traceNumber_.isEmpty()) { - output.writeString(10, getTraceNumber()); + if (!getTraceNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, traceNumber_); } - if (!bankName_.isEmpty()) { - output.writeString(11, getBankName()); + if (!getBankNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, bankName_); } - if (!destBankName_.isEmpty()) { - output.writeString(12, getDestBankName()); + if (!getDestBankNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, destBankName_); } - if (!cardOwnerName_.isEmpty()) { - output.writeString(13, getCardOwnerName()); + if (!getCardOwnerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, cardOwnerName_); } if (status_ != false) { output.writeBool(14, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -5552,905 +7922,1440 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, orderId_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, amount_); } - if (!sourceCardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getSourceCardNumber()); + if (!getSourceCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sourceCardNumber_); } - if (!destCardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getDestCardNumber()); + if (!getDestCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, destCardNumber_); } if (requestTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, requestTime_); } - if (!rrn_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getRrn()); + if (!getRrnBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, rrn_); } - if (!traceNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getTraceNumber()); + if (!getTraceNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, traceNumber_); } - if (!bankName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(11, getBankName()); + if (!getBankNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, bankName_); } - if (!destBankName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(12, getDestBankName()); + if (!getDestBankNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, destBankName_); } - if (!cardOwnerName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(13, getCardOwnerName()); + if (!getCardOwnerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cardOwnerName_); } if (status_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard) obj; + + if (getFromUserId() + != other.getFromUserId()) return false; + if (getToUserId() + != other.getToUserId()) return false; + if (getOrderId() + != other.getOrderId()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getSourceCardNumber() + .equals(other.getSourceCardNumber())) return false; + if (!getDestCardNumber() + .equals(other.getDestCardNumber())) return false; + if (getRequestTime() + != other.getRequestTime()) return false; + if (!getRrn() + .equals(other.getRrn())) return false; + if (!getTraceNumber() + .equals(other.getTraceNumber())) return false; + if (!getBankName() + .equals(other.getBankName())) return false; + if (!getDestBankName() + .equals(other.getDestBankName())) return false; + if (!getCardOwnerName() + .equals(other.getCardOwnerName())) return false; + if (getStatus() + != other.getStatus()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFromUserId()); + hash = (37 * hash) + TO_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToUserId()); + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + SOURCE_CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSourceCardNumber().hashCode(); + hash = (37 * hash) + DEST_CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDestCardNumber().hashCode(); + hash = (37 * hash) + REQUEST_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRequestTime(); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + getRrn().hashCode(); + hash = (37 * hash) + TRACE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getTraceNumber().hashCode(); + hash = (37 * hash) + BANKNAME_FIELD_NUMBER; + hash = (53 * hash) + getBankName().hashCode(); + hash = (37 * hash) + DESTBANKNAME_FIELD_NUMBER; + hash = (53 * hash) + getDestBankName().hashCode(); + hash = (37 * hash) + CARDOWNERNAME_FIELD_NUMBER; + hash = (53 * hash) + getCardOwnerName().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStatus()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageWallet.CardToCard} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageWallet.CardToCard) net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_CardToCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_CardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fromUserId_ = 0L; + + toUserId_ = 0L; + + orderId_ = 0L; + + token_ = ""; + + amount_ = 0L; + + sourceCardNumber_ = ""; + + destCardNumber_ = ""; + + requestTime_ = 0; + rrn_ = ""; + traceNumber_ = ""; + + bankName_ = ""; + + destBankName_ = ""; + + cardOwnerName_ = ""; + + status_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_CardToCard_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard build() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard result = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard(this); + result.fromUserId_ = fromUserId_; + result.toUserId_ = toUserId_; + result.orderId_ = orderId_; + result.token_ = token_; + result.amount_ = amount_; + result.sourceCardNumber_ = sourceCardNumber_; + result.destCardNumber_ = destCardNumber_; + result.requestTime_ = requestTime_; + result.rrn_ = rrn_; + result.traceNumber_ = traceNumber_; + result.bankName_ = bankName_; + result.destBankName_ = destBankName_; + result.cardOwnerName_ = cardOwnerName_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.getDefaultInstance()) return this; + if (other.getFromUserId() != 0L) { + setFromUserId(other.getFromUserId()); + } + if (other.getToUserId() != 0L) { + setToUserId(other.getToUserId()); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getSourceCardNumber().isEmpty()) { + sourceCardNumber_ = other.sourceCardNumber_; + onChanged(); + } + if (!other.getDestCardNumber().isEmpty()) { + destCardNumber_ = other.destCardNumber_; + onChanged(); + } + if (other.getRequestTime() != 0) { + setRequestTime(other.getRequestTime()); + } + if (!other.getRrn().isEmpty()) { + rrn_ = other.rrn_; + onChanged(); + } + if (!other.getTraceNumber().isEmpty()) { + traceNumber_ = other.traceNumber_; + onChanged(); + } + if (!other.getBankName().isEmpty()) { + bankName_ = other.bankName_; + onChanged(); + } + if (!other.getDestBankName().isEmpty()) { + destBankName_ = other.destBankName_; + onChanged(); + } + if (!other.getCardOwnerName().isEmpty()) { + cardOwnerName_ = other.cardOwnerName_; + onChanged(); + } + if (other.getStatus() != false) { + setStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long fromUserId_ ; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { - return instance.getFromUserId(); + return fromUserId_; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @param value The fromUserId to set. + * @return This builder for chaining. */ public Builder setFromUserId(long value) { - copyOnWrite(); - instance.setFromUserId(value); + + fromUserId_ = value; + onChanged(); return this; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearFromUserId() { - copyOnWrite(); - instance.clearFromUserId(); + + fromUserId_ = 0L; + onChanged(); return this; } + private long toUserId_ ; /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { - return instance.getToUserId(); + return toUserId_; } /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @param value The toUserId to set. + * @return This builder for chaining. */ public Builder setToUserId(long value) { - copyOnWrite(); - instance.setToUserId(value); + + toUserId_ = value; + onChanged(); return this; } /** - * optional uint64 to_user_id = 2 [jstype = JS_STRING]; + * uint64 to_user_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearToUserId() { - copyOnWrite(); - instance.clearToUserId(); + + toUserId_ = 0L; + onChanged(); return this; } + private long orderId_ ; /** - * optional uint64 order_id = 3 [jstype = JS_STRING]; + * uint64 order_id = 3 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 order_id = 3 [jstype = JS_STRING]; + * uint64 order_id = 3 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 order_id = 3 [jstype = JS_STRING]; + * uint64 order_id = 3 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 4; + * string token = 4; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 4; + * string token = 4; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 4; + * string token = 4; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 4; + * string token = 4; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 4; + * string token = 4; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object sourceCardNumber_ = ""; /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @return The sourceCardNumber. */ public java.lang.String getSourceCardNumber() { - return instance.getSourceCardNumber(); + java.lang.Object ref = sourceCardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceCardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @return The bytes for sourceCardNumber. */ public com.google.protobuf.ByteString getSourceCardNumberBytes() { - return instance.getSourceCardNumberBytes(); + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @param value The sourceCardNumber to set. + * @return This builder for chaining. */ public Builder setSourceCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setSourceCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + sourceCardNumber_ = value; + onChanged(); return this; } /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @return This builder for chaining. */ public Builder clearSourceCardNumber() { - copyOnWrite(); - instance.clearSourceCardNumber(); + + sourceCardNumber_ = getDefaultInstance().getSourceCardNumber(); + onChanged(); return this; } /** - * optional string source_card_number = 6; + * string source_card_number = 6; + * @param value The bytes for sourceCardNumber to set. + * @return This builder for chaining. */ public Builder setSourceCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSourceCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceCardNumber_ = value; + onChanged(); return this; } + private java.lang.Object destCardNumber_ = ""; /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @return The destCardNumber. */ public java.lang.String getDestCardNumber() { - return instance.getDestCardNumber(); + java.lang.Object ref = destCardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destCardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @return The bytes for destCardNumber. */ public com.google.protobuf.ByteString getDestCardNumberBytes() { - return instance.getDestCardNumberBytes(); + java.lang.Object ref = destCardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @param value The destCardNumber to set. + * @return This builder for chaining. */ public Builder setDestCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setDestCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + destCardNumber_ = value; + onChanged(); return this; } /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @return This builder for chaining. */ public Builder clearDestCardNumber() { - copyOnWrite(); - instance.clearDestCardNumber(); + + destCardNumber_ = getDefaultInstance().getDestCardNumber(); + onChanged(); return this; } /** - * optional string dest_card_number = 7; + * string dest_card_number = 7; + * @param value The bytes for destCardNumber to set. + * @return This builder for chaining. */ public Builder setDestCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDestCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destCardNumber_ = value; + onChanged(); return this; } + private int requestTime_ ; /** - * optional uint32 request_time = 8; + * uint32 request_time = 8; + * @return The requestTime. */ + @java.lang.Override public int getRequestTime() { - return instance.getRequestTime(); + return requestTime_; } /** - * optional uint32 request_time = 8; + * uint32 request_time = 8; + * @param value The requestTime to set. + * @return This builder for chaining. */ public Builder setRequestTime(int value) { - copyOnWrite(); - instance.setRequestTime(value); + + requestTime_ = value; + onChanged(); return this; } /** - * optional uint32 request_time = 8; + * uint32 request_time = 8; + * @return This builder for chaining. */ public Builder clearRequestTime() { - copyOnWrite(); - instance.clearRequestTime(); + + requestTime_ = 0; + onChanged(); return this; } + private java.lang.Object rrn_ = ""; /** - * optional string rrn = 9; + * string rrn = 9; + * @return The rrn. */ public java.lang.String getRrn() { - return instance.getRrn(); + java.lang.Object ref = rrn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rrn_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string rrn = 9; + * string rrn = 9; + * @return The bytes for rrn. */ public com.google.protobuf.ByteString getRrnBytes() { - return instance.getRrnBytes(); + java.lang.Object ref = rrn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rrn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string rrn = 9; + * string rrn = 9; + * @param value The rrn to set. + * @return This builder for chaining. */ public Builder setRrn( java.lang.String value) { - copyOnWrite(); - instance.setRrn(value); + if (value == null) { + throw new NullPointerException(); + } + + rrn_ = value; + onChanged(); return this; } /** - * optional string rrn = 9; + * string rrn = 9; + * @return This builder for chaining. */ public Builder clearRrn() { - copyOnWrite(); - instance.clearRrn(); + + rrn_ = getDefaultInstance().getRrn(); + onChanged(); return this; } /** - * optional string rrn = 9; + * string rrn = 9; + * @param value The bytes for rrn to set. + * @return This builder for chaining. */ public Builder setRrnBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setRrnBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rrn_ = value; + onChanged(); return this; } + private java.lang.Object traceNumber_ = ""; /** - * optional string trace_number = 10; + * string trace_number = 10; + * @return The traceNumber. */ public java.lang.String getTraceNumber() { - return instance.getTraceNumber(); + java.lang.Object ref = traceNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + traceNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string trace_number = 10; + * string trace_number = 10; + * @return The bytes for traceNumber. */ public com.google.protobuf.ByteString getTraceNumberBytes() { - return instance.getTraceNumberBytes(); + java.lang.Object ref = traceNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + traceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string trace_number = 10; + * string trace_number = 10; + * @param value The traceNumber to set. + * @return This builder for chaining. */ public Builder setTraceNumber( java.lang.String value) { - copyOnWrite(); - instance.setTraceNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + traceNumber_ = value; + onChanged(); return this; } /** - * optional string trace_number = 10; + * string trace_number = 10; + * @return This builder for chaining. */ public Builder clearTraceNumber() { - copyOnWrite(); - instance.clearTraceNumber(); + + traceNumber_ = getDefaultInstance().getTraceNumber(); + onChanged(); return this; } /** - * optional string trace_number = 10; + * string trace_number = 10; + * @param value The bytes for traceNumber to set. + * @return This builder for chaining. */ public Builder setTraceNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTraceNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + traceNumber_ = value; + onChanged(); return this; } + private java.lang.Object bankName_ = ""; /** - * optional string bankName = 11; + * string bankName = 11; + * @return The bankName. */ public java.lang.String getBankName() { - return instance.getBankName(); + java.lang.Object ref = bankName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bankName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bankName = 11; + * string bankName = 11; + * @return The bytes for bankName. */ public com.google.protobuf.ByteString getBankNameBytes() { - return instance.getBankNameBytes(); + java.lang.Object ref = bankName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bankName = 11; + * string bankName = 11; + * @param value The bankName to set. + * @return This builder for chaining. */ public Builder setBankName( java.lang.String value) { - copyOnWrite(); - instance.setBankName(value); + if (value == null) { + throw new NullPointerException(); + } + + bankName_ = value; + onChanged(); return this; } /** - * optional string bankName = 11; + * string bankName = 11; + * @return This builder for chaining. */ public Builder clearBankName() { - copyOnWrite(); - instance.clearBankName(); + + bankName_ = getDefaultInstance().getBankName(); + onChanged(); return this; } /** - * optional string bankName = 11; + * string bankName = 11; + * @param value The bytes for bankName to set. + * @return This builder for chaining. */ public Builder setBankNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBankNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bankName_ = value; + onChanged(); return this; } + private java.lang.Object destBankName_ = ""; /** - * optional string destBankName = 12; + * string destBankName = 12; + * @return The destBankName. */ public java.lang.String getDestBankName() { - return instance.getDestBankName(); + java.lang.Object ref = destBankName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destBankName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string destBankName = 12; + * string destBankName = 12; + * @return The bytes for destBankName. */ public com.google.protobuf.ByteString getDestBankNameBytes() { - return instance.getDestBankNameBytes(); + java.lang.Object ref = destBankName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destBankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string destBankName = 12; + * string destBankName = 12; + * @param value The destBankName to set. + * @return This builder for chaining. */ public Builder setDestBankName( java.lang.String value) { - copyOnWrite(); - instance.setDestBankName(value); + if (value == null) { + throw new NullPointerException(); + } + + destBankName_ = value; + onChanged(); return this; } /** - * optional string destBankName = 12; + * string destBankName = 12; + * @return This builder for chaining. */ public Builder clearDestBankName() { - copyOnWrite(); - instance.clearDestBankName(); + + destBankName_ = getDefaultInstance().getDestBankName(); + onChanged(); return this; } /** - * optional string destBankName = 12; + * string destBankName = 12; + * @param value The bytes for destBankName to set. + * @return This builder for chaining. */ public Builder setDestBankNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDestBankNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destBankName_ = value; + onChanged(); return this; } + private java.lang.Object cardOwnerName_ = ""; /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @return The cardOwnerName. */ public java.lang.String getCardOwnerName() { - return instance.getCardOwnerName(); + java.lang.Object ref = cardOwnerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardOwnerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @return The bytes for cardOwnerName. */ public com.google.protobuf.ByteString getCardOwnerNameBytes() { - return instance.getCardOwnerNameBytes(); + java.lang.Object ref = cardOwnerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardOwnerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @param value The cardOwnerName to set. + * @return This builder for chaining. */ public Builder setCardOwnerName( java.lang.String value) { - copyOnWrite(); - instance.setCardOwnerName(value); + if (value == null) { + throw new NullPointerException(); + } + + cardOwnerName_ = value; + onChanged(); return this; } /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @return This builder for chaining. */ public Builder clearCardOwnerName() { - copyOnWrite(); - instance.clearCardOwnerName(); + + cardOwnerName_ = getDefaultInstance().getCardOwnerName(); + onChanged(); return this; } /** - * optional string cardOwnerName = 13; + * string cardOwnerName = 13; + * @param value The bytes for cardOwnerName to set. + * @return This builder for chaining. */ public Builder setCardOwnerNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardOwnerNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardOwnerName_ = value; + onChanged(); return this; } + private boolean status_ ; /** - * optional bool status = 14; + * bool status = 14; + * @return The status. */ + @java.lang.Override public boolean getStatus() { - return instance.getStatus(); + return status_; } /** - * optional bool status = 14; + * bool status = 14; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(boolean value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional bool status = 14; + * bool status = 14; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet.CardToCard) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard) arg1; - fromUserId_ = visitor.visitLong(fromUserId_ != 0L, fromUserId_, - other.fromUserId_ != 0L, other.fromUserId_); - toUserId_ = visitor.visitLong(toUserId_ != 0L, toUserId_, - other.toUserId_ != 0L, other.toUserId_); - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - sourceCardNumber_ = visitor.visitString(!sourceCardNumber_.isEmpty(), sourceCardNumber_, - !other.sourceCardNumber_.isEmpty(), other.sourceCardNumber_); - destCardNumber_ = visitor.visitString(!destCardNumber_.isEmpty(), destCardNumber_, - !other.destCardNumber_.isEmpty(), other.destCardNumber_); - requestTime_ = visitor.visitInt(requestTime_ != 0, requestTime_, - other.requestTime_ != 0, other.requestTime_); - rrn_ = visitor.visitString(!rrn_.isEmpty(), rrn_, - !other.rrn_.isEmpty(), other.rrn_); - traceNumber_ = visitor.visitString(!traceNumber_.isEmpty(), traceNumber_, - !other.traceNumber_.isEmpty(), other.traceNumber_); - bankName_ = visitor.visitString(!bankName_.isEmpty(), bankName_, - !other.bankName_.isEmpty(), other.bankName_); - destBankName_ = visitor.visitString(!destBankName_.isEmpty(), destBankName_, - !other.destBankName_.isEmpty(), other.destBankName_); - cardOwnerName_ = visitor.visitString(!cardOwnerName_.isEmpty(), cardOwnerName_, - !other.cardOwnerName_.isEmpty(), other.cardOwnerName_); - status_ = visitor.visitBoolean(status_ != false, status_, - other.status_ != false, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - fromUserId_ = input.readUInt64(); - break; - } - case 16: { - - toUserId_ = input.readUInt64(); - break; - } - case 24: { - - orderId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 40: { - - amount_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - sourceCardNumber_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - destCardNumber_ = s; - break; - } - case 64: { - - requestTime_ = input.readUInt32(); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - rrn_ = s; - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - traceNumber_ = s; - break; - } - case 90: { - String s = input.readStringRequireUtf8(); - - bankName_ = s; - break; - } - case 98: { - String s = input.readStringRequireUtf8(); - - destBankName_ = s; - break; - } - case 106: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - cardOwnerName_ = s; - break; - } - case 112: { - status_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet.CardToCard) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageWallet.CardToCard) private static final net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new CardToCard(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard(); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardToCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CardToCard(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface TopupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageWallet.Topup) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ long getFromUserId(); /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional string my_token = 3; + * string my_token = 3; + * @return The myToken. */ java.lang.String getMyToken(); /** - * optional string my_token = 3; + * string my_token = 3; + * @return The bytes for myToken. */ com.google.protobuf.ByteString getMyTokenBytes(); /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return The token. */ long getToken(); /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @return The requesterMobileNumber. */ java.lang.String getRequesterMobileNumber(); /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @return The bytes for requesterMobileNumber. */ com.google.protobuf.ByteString getRequesterMobileNumberBytes(); /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @return The chargeMobileNumber. */ java.lang.String getChargeMobileNumber(); /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @return The bytes for chargeMobileNumber. */ com.google.protobuf.ByteString getChargeMobileNumberBytes(); /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @return The enum numeric value on the wire for topupType. */ int getTopupTypeValue(); /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @return The topupType. */ net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type getTopupType(); /** - * optional string card_number = 9; + * string card_number = 9; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string card_number = 9; + * string card_number = 9; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The merchantName. */ java.lang.String getMerchantName(); /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The bytes for merchantName. */ com.google.protobuf.ByteString getMerchantNameBytes(); /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return The terminalNo. */ long getTerminalNo(); /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return The rrn. */ long getRrn(); /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return The traceNumber. */ long getTraceNumber(); /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return The requestTime. */ int getRequestTime(); /** - * optional bool status = 15; + * bool status = 15; + * @return The status. */ boolean getStatus(); /** - * optional string status_description = 16; + * string status_description = 16; + * @return The statusDescription. */ java.lang.String getStatusDescription(); /** - * optional string status_description = 16; + * string status_description = 16; + * @return The bytes for statusDescription. */ com.google.protobuf.ByteString getStatusDescriptionBytes(); @@ -6458,24 +9363,179 @@ public interface TopupOrBuilder extends /** * Protobuf type {@code proto.RoomMessageWallet.Topup} */ - public static final class Topup extends - com.google.protobuf.GeneratedMessageLite< - Topup, Topup.Builder> implements + public static final class Topup extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageWallet.Topup) TopupOrBuilder { + private static final long serialVersionUID = 0L; + // Use Topup.newBuilder() to construct. + private Topup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Topup() { myToken_ = ""; requesterMobileNumber_ = ""; chargeMobileNumber_ = ""; + topupType_ = 0; cardNumber_ = ""; merchantName_ = ""; statusDescription_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Topup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Topup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + fromUserId_ = input.readUInt64(); + break; + } + case 16: { + + orderId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + myToken_ = s; + break; + } + case 32: { + + token_ = input.readUInt64(); + break; + } + case 40: { + + amount_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + requesterMobileNumber_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + chargeMobileNumber_ = s; + break; + } + case 64: { + int rawValue = input.readEnum(); + + topupType_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + merchantName_ = s; + break; + } + case 88: { + + terminalNo_ = input.readUInt64(); + break; + } + case 96: { + + rrn_ = input.readUInt64(); + break; + } + case 104: { + + traceNumber_ = input.readUInt64(); + break; + } + case 112: { + + requestTime_ = input.readUInt32(); + break; + } + case 120: { + + status_ = input.readBool(); + break; + } + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDescription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Topup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Topup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder.class); + } + /** * Protobuf enum {@code proto.RoomMessageWallet.Topup.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * IRANCELL_PREPAID = 0; */ @@ -6530,10 +9590,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -6541,6 +9607,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return IRANCELL_PREPAID; @@ -6565,6 +9635,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -6577,525 +9678,361 @@ private Type(int value) { public static final int FROM_USER_ID_FIELD_NUMBER = 1; private long fromUserId_; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { return fromUserId_; } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void setFromUserId(long value) { - - fromUserId_ = value; - } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void clearFromUserId() { - - fromUserId_ = 0L; - } public static final int ORDER_ID_FIELD_NUMBER = 2; private long orderId_; /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int MY_TOKEN_FIELD_NUMBER = 3; - private java.lang.String myToken_; + private volatile java.lang.Object myToken_; /** - * optional string my_token = 3; + * string my_token = 3; + * @return The myToken. */ + @java.lang.Override public java.lang.String getMyToken() { - return myToken_; + java.lang.Object ref = myToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + myToken_ = s; + return s; + } } /** - * optional string my_token = 3; + * string my_token = 3; + * @return The bytes for myToken. */ + @java.lang.Override public com.google.protobuf.ByteString getMyTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(myToken_); - } - /** - * optional string my_token = 3; - */ - private void setMyToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - myToken_ = value; - } - /** - * optional string my_token = 3; - */ - private void clearMyToken() { - - myToken_ = getDefaultInstance().getMyToken(); - } - /** - * optional string my_token = 3; - */ - private void setMyTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - myToken_ = value.toStringUtf8(); + java.lang.Object ref = myToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + myToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOKEN_FIELD_NUMBER = 4; private long token_; /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return The token. */ + @java.lang.Override public long getToken() { return token_; } - /** - * optional uint64 token = 4 [jstype = JS_STRING]; - */ - private void setToken(long value) { - - token_ = value; - } - /** - * optional uint64 token = 4 [jstype = JS_STRING]; - */ - private void clearToken() { - - token_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 5; private long amount_; /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 5 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 5 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int REQUESTER_MOBILE_NUMBER_FIELD_NUMBER = 6; - private java.lang.String requesterMobileNumber_; + private volatile java.lang.Object requesterMobileNumber_; /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @return The requesterMobileNumber. */ + @java.lang.Override public java.lang.String getRequesterMobileNumber() { - return requesterMobileNumber_; + java.lang.Object ref = requesterMobileNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requesterMobileNumber_ = s; + return s; + } } /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @return The bytes for requesterMobileNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getRequesterMobileNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(requesterMobileNumber_); - } - /** - * optional string requester_mobile_number = 6; - */ - private void setRequesterMobileNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requesterMobileNumber_ = value; - } - /** - * optional string requester_mobile_number = 6; - */ - private void clearRequesterMobileNumber() { - - requesterMobileNumber_ = getDefaultInstance().getRequesterMobileNumber(); - } - /** - * optional string requester_mobile_number = 6; - */ - private void setRequesterMobileNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requesterMobileNumber_ = value.toStringUtf8(); + java.lang.Object ref = requesterMobileNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requesterMobileNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CHARGE_MOBILE_NUMBER_FIELD_NUMBER = 7; - private java.lang.String chargeMobileNumber_; + private volatile java.lang.Object chargeMobileNumber_; /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @return The chargeMobileNumber. */ + @java.lang.Override public java.lang.String getChargeMobileNumber() { - return chargeMobileNumber_; + java.lang.Object ref = chargeMobileNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chargeMobileNumber_ = s; + return s; + } } /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @return The bytes for chargeMobileNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getChargeMobileNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(chargeMobileNumber_); - } - /** - * optional string charge_mobile_number = 7; - */ - private void setChargeMobileNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chargeMobileNumber_ = value; - } - /** - * optional string charge_mobile_number = 7; - */ - private void clearChargeMobileNumber() { - - chargeMobileNumber_ = getDefaultInstance().getChargeMobileNumber(); - } - /** - * optional string charge_mobile_number = 7; - */ - private void setChargeMobileNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chargeMobileNumber_ = value.toStringUtf8(); + java.lang.Object ref = chargeMobileNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chargeMobileNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOPUP_TYPE_FIELD_NUMBER = 8; private int topupType_; /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @return The enum numeric value on the wire for topupType. */ - public int getTopupTypeValue() { + @java.lang.Override public int getTopupTypeValue() { return topupType_; } /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @return The topupType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type getTopupType() { - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type result = net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type.forNumber(topupType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type getTopupType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type result = net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type.valueOf(topupType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; - */ - private void setTopupTypeValue(int value) { - topupType_ = value; - } - /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; - */ - private void setTopupType(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - topupType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; - */ - private void clearTopupType() { - - topupType_ = 0; - } public static final int CARD_NUMBER_FIELD_NUMBER = 9; - private java.lang.String cardNumber_; + private volatile java.lang.Object cardNumber_; /** - * optional string card_number = 9; + * string card_number = 9; + * @return The cardNumber. */ + @java.lang.Override public java.lang.String getCardNumber() { - return cardNumber_; + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string card_number = 9; + * string card_number = 9; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string card_number = 9; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string card_number = 9; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string card_number = 9; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MERCHANT_NAME_FIELD_NUMBER = 10; - private java.lang.String merchantName_; + private volatile java.lang.Object merchantName_; /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The merchantName. */ + @java.lang.Override public java.lang.String getMerchantName() { - return merchantName_; + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The bytes for merchantName. */ + @java.lang.Override public com.google.protobuf.ByteString getMerchantNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(merchantName_); - } - /** - * optional string merchant_name = 10; - */ - private void setMerchantName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - merchantName_ = value; - } - /** - * optional string merchant_name = 10; - */ - private void clearMerchantName() { - - merchantName_ = getDefaultInstance().getMerchantName(); - } - /** - * optional string merchant_name = 10; - */ - private void setMerchantNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - merchantName_ = value.toStringUtf8(); + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TERMINAL_NO_FIELD_NUMBER = 11; private long terminalNo_; /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return The terminalNo. */ + @java.lang.Override public long getTerminalNo() { return terminalNo_; } - /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; - */ - private void setTerminalNo(long value) { - - terminalNo_ = value; - } - /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; - */ - private void clearTerminalNo() { - - terminalNo_ = 0L; - } public static final int RRN_FIELD_NUMBER = 12; private long rrn_; /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return The rrn. */ + @java.lang.Override public long getRrn() { return rrn_; } - /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; - */ - private void setRrn(long value) { - - rrn_ = value; - } - /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; - */ - private void clearRrn() { - - rrn_ = 0L; - } public static final int TRACE_NUMBER_FIELD_NUMBER = 13; private long traceNumber_; /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { return traceNumber_; } - /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; - */ - private void setTraceNumber(long value) { - - traceNumber_ = value; - } - /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; - */ - private void clearTraceNumber() { - - traceNumber_ = 0L; - } public static final int REQUEST_TIME_FIELD_NUMBER = 14; private int requestTime_; /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return The requestTime. */ + @java.lang.Override public int getRequestTime() { return requestTime_; } - /** - * optional uint32 request_time = 14; - */ - private void setRequestTime(int value) { - - requestTime_ = value; - } - /** - * optional uint32 request_time = 14; - */ - private void clearRequestTime() { - - requestTime_ = 0; - } public static final int STATUS_FIELD_NUMBER = 15; private boolean status_; /** - * optional bool status = 15; + * bool status = 15; + * @return The status. */ + @java.lang.Override public boolean getStatus() { return status_; } - /** - * optional bool status = 15; - */ - private void setStatus(boolean value) { - - status_ = value; - } - /** - * optional bool status = 15; - */ - private void clearStatus() { - - status_ = false; - } public static final int STATUS_DESCRIPTION_FIELD_NUMBER = 16; - private java.lang.String statusDescription_; + private volatile java.lang.Object statusDescription_; /** - * optional string status_description = 16; + * string status_description = 16; + * @return The statusDescription. */ + @java.lang.Override public java.lang.String getStatusDescription() { - return statusDescription_; + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } } /** - * optional string status_description = 16; + * string status_description = 16; + * @return The bytes for statusDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(statusDescription_); - } - /** - * optional string status_description = 16; - */ - private void setStatusDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDescription_ = value; - } - /** - * optional string status_description = 16; - */ - private void clearStatusDescription() { - - statusDescription_ = getDefaultInstance().getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string status_description = 16; - */ - private void setStatusDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDescription_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fromUserId_ != 0L) { @@ -7104,8 +10041,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (orderId_ != 0L) { output.writeUInt64(2, orderId_); } - if (!myToken_.isEmpty()) { - output.writeString(3, getMyToken()); + if (!getMyTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, myToken_); } if (token_ != 0L) { output.writeUInt64(4, token_); @@ -7113,20 +10050,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(5, amount_); } - if (!requesterMobileNumber_.isEmpty()) { - output.writeString(6, getRequesterMobileNumber()); + if (!getRequesterMobileNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, requesterMobileNumber_); } - if (!chargeMobileNumber_.isEmpty()) { - output.writeString(7, getChargeMobileNumber()); + if (!getChargeMobileNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, chargeMobileNumber_); } if (topupType_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type.IRANCELL_PREPAID.getNumber()) { output.writeEnum(8, topupType_); } - if (!cardNumber_.isEmpty()) { - output.writeString(9, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cardNumber_); } - if (!merchantName_.isEmpty()) { - output.writeString(10, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, merchantName_); } if (terminalNo_ != 0L) { output.writeUInt64(11, terminalNo_); @@ -7143,13 +10080,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != false) { output.writeBool(15, status_); } - if (!statusDescription_.isEmpty()) { - output.writeString(16, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, statusDescription_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -7161,9 +10100,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, orderId_); } - if (!myToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getMyToken()); + if (!getMyTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, myToken_); } if (token_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -7173,25 +10111,21 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, amount_); } - if (!requesterMobileNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getRequesterMobileNumber()); + if (!getRequesterMobileNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requesterMobileNumber_); } - if (!chargeMobileNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getChargeMobileNumber()); + if (!getChargeMobileNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, chargeMobileNumber_); } if (topupType_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type.IRANCELL_PREPAID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, topupType_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cardNumber_); } - if (!merchantName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, merchantName_); } if (terminalNo_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -7213,904 +10147,1423 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, status_); } - if (!statusDescription_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(16, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, statusDescription_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup) obj; + + if (getFromUserId() + != other.getFromUserId()) return false; + if (getOrderId() + != other.getOrderId()) return false; + if (!getMyToken() + .equals(other.getMyToken())) return false; + if (getToken() + != other.getToken()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getRequesterMobileNumber() + .equals(other.getRequesterMobileNumber())) return false; + if (!getChargeMobileNumber() + .equals(other.getChargeMobileNumber())) return false; + if (topupType_ != other.topupType_) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (!getMerchantName() + .equals(other.getMerchantName())) return false; + if (getTerminalNo() + != other.getTerminalNo()) return false; + if (getRrn() + != other.getRrn()) return false; + if (getTraceNumber() + != other.getTraceNumber()) return false; + if (getRequestTime() + != other.getRequestTime()) return false; + if (getStatus() + != other.getStatus()) return false; + if (!getStatusDescription() + .equals(other.getStatusDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFromUserId()); + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + MY_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getMyToken().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToken()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + REQUESTER_MOBILE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getRequesterMobileNumber().hashCode(); + hash = (37 * hash) + CHARGE_MOBILE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getChargeMobileNumber().hashCode(); + hash = (37 * hash) + TOPUP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + topupType_; + hash = (37 * hash) + CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + MERCHANT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMerchantName().hashCode(); + hash = (37 * hash) + TERMINAL_NO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTerminalNo()); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRrn()); + hash = (37 * hash) + TRACE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTraceNumber()); + hash = (37 * hash) + REQUEST_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRequestTime(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStatus()); + hash = (37 * hash) + STATUS_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStatusDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageWallet.Topup} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageWallet.Topup) net.iGap.proto.ProtoGlobal.RoomMessageWallet.TopupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Topup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Topup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fromUserId_ = 0L; + + orderId_ = 0L; + + myToken_ = ""; + + token_ = 0L; + + amount_ = 0L; + + requesterMobileNumber_ = ""; + + chargeMobileNumber_ = ""; + + topupType_ = 0; + + cardNumber_ = ""; + + merchantName_ = ""; + + terminalNo_ = 0L; + + rrn_ = 0L; + + traceNumber_ = 0L; + + requestTime_ = 0; + + status_ = false; + + statusDescription_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Topup_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup build() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup result = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup(this); + result.fromUserId_ = fromUserId_; + result.orderId_ = orderId_; + result.myToken_ = myToken_; + result.token_ = token_; + result.amount_ = amount_; + result.requesterMobileNumber_ = requesterMobileNumber_; + result.chargeMobileNumber_ = chargeMobileNumber_; + result.topupType_ = topupType_; + result.cardNumber_ = cardNumber_; + result.merchantName_ = merchantName_; + result.terminalNo_ = terminalNo_; + result.rrn_ = rrn_; + result.traceNumber_ = traceNumber_; + result.requestTime_ = requestTime_; + result.status_ = status_; + result.statusDescription_ = statusDescription_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.getDefaultInstance()) return this; + if (other.getFromUserId() != 0L) { + setFromUserId(other.getFromUserId()); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (!other.getMyToken().isEmpty()) { + myToken_ = other.myToken_; + onChanged(); + } + if (other.getToken() != 0L) { + setToken(other.getToken()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getRequesterMobileNumber().isEmpty()) { + requesterMobileNumber_ = other.requesterMobileNumber_; + onChanged(); + } + if (!other.getChargeMobileNumber().isEmpty()) { + chargeMobileNumber_ = other.chargeMobileNumber_; + onChanged(); + } + if (other.topupType_ != 0) { + setTopupTypeValue(other.getTopupTypeValue()); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (!other.getMerchantName().isEmpty()) { + merchantName_ = other.merchantName_; + onChanged(); + } + if (other.getTerminalNo() != 0L) { + setTerminalNo(other.getTerminalNo()); + } + if (other.getRrn() != 0L) { + setRrn(other.getRrn()); + } + if (other.getTraceNumber() != 0L) { + setTraceNumber(other.getTraceNumber()); + } + if (other.getRequestTime() != 0) { + setRequestTime(other.getRequestTime()); + } + if (other.getStatus() != false) { + setStatus(other.getStatus()); + } + if (!other.getStatusDescription().isEmpty()) { + statusDescription_ = other.statusDescription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long fromUserId_ ; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { - return instance.getFromUserId(); + return fromUserId_; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @param value The fromUserId to set. + * @return This builder for chaining. */ public Builder setFromUserId(long value) { - copyOnWrite(); - instance.setFromUserId(value); + + fromUserId_ = value; + onChanged(); return this; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearFromUserId() { - copyOnWrite(); - instance.clearFromUserId(); + + fromUserId_ = 0L; + onChanged(); return this; } + private long orderId_ ; /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private java.lang.Object myToken_ = ""; /** - * optional string my_token = 3; + * string my_token = 3; + * @return The myToken. */ public java.lang.String getMyToken() { - return instance.getMyToken(); + java.lang.Object ref = myToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + myToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string my_token = 3; + * string my_token = 3; + * @return The bytes for myToken. */ public com.google.protobuf.ByteString getMyTokenBytes() { - return instance.getMyTokenBytes(); + java.lang.Object ref = myToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + myToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string my_token = 3; + * string my_token = 3; + * @param value The myToken to set. + * @return This builder for chaining. */ public Builder setMyToken( java.lang.String value) { - copyOnWrite(); - instance.setMyToken(value); + if (value == null) { + throw new NullPointerException(); + } + + myToken_ = value; + onChanged(); return this; } /** - * optional string my_token = 3; + * string my_token = 3; + * @return This builder for chaining. */ public Builder clearMyToken() { - copyOnWrite(); - instance.clearMyToken(); + + myToken_ = getDefaultInstance().getMyToken(); + onChanged(); return this; } /** - * optional string my_token = 3; + * string my_token = 3; + * @param value The bytes for myToken to set. + * @return This builder for chaining. */ public Builder setMyTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMyTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + myToken_ = value; + onChanged(); return this; } + private long token_ ; /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return The token. */ + @java.lang.Override public long getToken() { - return instance.getToken(); + return token_; } /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken(long value) { - copyOnWrite(); - instance.setToken(value); + + token_ = value; + onChanged(); return this; } /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object requesterMobileNumber_ = ""; /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @return The requesterMobileNumber. */ public java.lang.String getRequesterMobileNumber() { - return instance.getRequesterMobileNumber(); + java.lang.Object ref = requesterMobileNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requesterMobileNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @return The bytes for requesterMobileNumber. */ public com.google.protobuf.ByteString getRequesterMobileNumberBytes() { - return instance.getRequesterMobileNumberBytes(); + java.lang.Object ref = requesterMobileNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requesterMobileNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @param value The requesterMobileNumber to set. + * @return This builder for chaining. */ public Builder setRequesterMobileNumber( java.lang.String value) { - copyOnWrite(); - instance.setRequesterMobileNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + requesterMobileNumber_ = value; + onChanged(); return this; } /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @return This builder for chaining. */ public Builder clearRequesterMobileNumber() { - copyOnWrite(); - instance.clearRequesterMobileNumber(); + + requesterMobileNumber_ = getDefaultInstance().getRequesterMobileNumber(); + onChanged(); return this; } /** - * optional string requester_mobile_number = 6; + * string requester_mobile_number = 6; + * @param value The bytes for requesterMobileNumber to set. + * @return This builder for chaining. */ public Builder setRequesterMobileNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setRequesterMobileNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requesterMobileNumber_ = value; + onChanged(); return this; } + private java.lang.Object chargeMobileNumber_ = ""; /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @return The chargeMobileNumber. */ public java.lang.String getChargeMobileNumber() { - return instance.getChargeMobileNumber(); + java.lang.Object ref = chargeMobileNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chargeMobileNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @return The bytes for chargeMobileNumber. */ public com.google.protobuf.ByteString getChargeMobileNumberBytes() { - return instance.getChargeMobileNumberBytes(); + java.lang.Object ref = chargeMobileNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chargeMobileNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @param value The chargeMobileNumber to set. + * @return This builder for chaining. */ public Builder setChargeMobileNumber( java.lang.String value) { - copyOnWrite(); - instance.setChargeMobileNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + chargeMobileNumber_ = value; + onChanged(); return this; } /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @return This builder for chaining. */ public Builder clearChargeMobileNumber() { - copyOnWrite(); - instance.clearChargeMobileNumber(); + + chargeMobileNumber_ = getDefaultInstance().getChargeMobileNumber(); + onChanged(); return this; } /** - * optional string charge_mobile_number = 7; + * string charge_mobile_number = 7; + * @param value The bytes for chargeMobileNumber to set. + * @return This builder for chaining. */ public Builder setChargeMobileNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setChargeMobileNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + chargeMobileNumber_ = value; + onChanged(); return this; } + private int topupType_ = 0; /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @return The enum numeric value on the wire for topupType. */ - public int getTopupTypeValue() { - return instance.getTopupTypeValue(); + @java.lang.Override public int getTopupTypeValue() { + return topupType_; } /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @param value The enum numeric value on the wire for topupType to set. + * @return This builder for chaining. */ public Builder setTopupTypeValue(int value) { - copyOnWrite(); - instance.setTopupTypeValue(value); + + topupType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @return The topupType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type getTopupType() { - return instance.getTopupType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type result = net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type.valueOf(topupType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @param value The topupType to set. + * @return This builder for chaining. */ public Builder setTopupType(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Type value) { - copyOnWrite(); - instance.setTopupType(value); + if (value == null) { + throw new NullPointerException(); + } + + topupType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * .proto.RoomMessageWallet.Topup.Type topup_type = 8; + * @return This builder for chaining. */ public Builder clearTopupType() { - copyOnWrite(); - instance.clearTopupType(); + + topupType_ = 0; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string card_number = 9; + * string card_number = 9; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string card_number = 9; + * string card_number = 9; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string card_number = 9; + * string card_number = 9; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string card_number = 9; + * string card_number = 9; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string card_number = 9; + * string card_number = 9; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private java.lang.Object merchantName_ = ""; /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The merchantName. */ public java.lang.String getMerchantName() { - return instance.getMerchantName(); + java.lang.Object ref = merchantName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The bytes for merchantName. */ public com.google.protobuf.ByteString getMerchantNameBytes() { - return instance.getMerchantNameBytes(); + java.lang.Object ref = merchantName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @param value The merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantName( java.lang.String value) { - copyOnWrite(); - instance.setMerchantName(value); + if (value == null) { + throw new NullPointerException(); + } + + merchantName_ = value; + onChanged(); return this; } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return This builder for chaining. */ public Builder clearMerchantName() { - copyOnWrite(); - instance.clearMerchantName(); + + merchantName_ = getDefaultInstance().getMerchantName(); + onChanged(); return this; } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @param value The bytes for merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMerchantNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + merchantName_ = value; + onChanged(); return this; } + private long terminalNo_ ; /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return The terminalNo. */ + @java.lang.Override public long getTerminalNo() { - return instance.getTerminalNo(); + return terminalNo_; } /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @param value The terminalNo to set. + * @return This builder for chaining. */ public Builder setTerminalNo(long value) { - copyOnWrite(); - instance.setTerminalNo(value); + + terminalNo_ = value; + onChanged(); return this; } /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearTerminalNo() { - copyOnWrite(); - instance.clearTerminalNo(); + + terminalNo_ = 0L; + onChanged(); return this; } + private long rrn_ ; /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return The rrn. */ + @java.lang.Override public long getRrn() { - return instance.getRrn(); + return rrn_; } /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @param value The rrn to set. + * @return This builder for chaining. */ public Builder setRrn(long value) { - copyOnWrite(); - instance.setRrn(value); + + rrn_ = value; + onChanged(); return this; } /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRrn() { - copyOnWrite(); - instance.clearRrn(); + + rrn_ = 0L; + onChanged(); return this; } + private long traceNumber_ ; /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { - return instance.getTraceNumber(); + return traceNumber_; } /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @param value The traceNumber to set. + * @return This builder for chaining. */ public Builder setTraceNumber(long value) { - copyOnWrite(); - instance.setTraceNumber(value); + + traceNumber_ = value; + onChanged(); return this; } /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearTraceNumber() { - copyOnWrite(); - instance.clearTraceNumber(); + + traceNumber_ = 0L; + onChanged(); return this; } + private int requestTime_ ; /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return The requestTime. */ + @java.lang.Override public int getRequestTime() { - return instance.getRequestTime(); + return requestTime_; } /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @param value The requestTime to set. + * @return This builder for chaining. */ public Builder setRequestTime(int value) { - copyOnWrite(); - instance.setRequestTime(value); + + requestTime_ = value; + onChanged(); return this; } /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return This builder for chaining. */ public Builder clearRequestTime() { - copyOnWrite(); - instance.clearRequestTime(); + + requestTime_ = 0; + onChanged(); return this; } + private boolean status_ ; /** - * optional bool status = 15; + * bool status = 15; + * @return The status. */ + @java.lang.Override public boolean getStatus() { - return instance.getStatus(); + return status_; } /** - * optional bool status = 15; + * bool status = 15; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(boolean value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional bool status = 15; + * bool status = 15; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = false; + onChanged(); return this; } + private java.lang.Object statusDescription_ = ""; /** - * optional string status_description = 16; + * string status_description = 16; + * @return The statusDescription. */ public java.lang.String getStatusDescription() { - return instance.getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string status_description = 16; + * string status_description = 16; + * @return The bytes for statusDescription. */ public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return instance.getStatusDescriptionBytes(); + java.lang.Object ref = statusDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string status_description = 16; + * string status_description = 16; + * @param value The statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescription( java.lang.String value) { - copyOnWrite(); - instance.setStatusDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + statusDescription_ = value; + onChanged(); return this; } /** - * optional string status_description = 16; + * string status_description = 16; + * @return This builder for chaining. */ public Builder clearStatusDescription() { - copyOnWrite(); - instance.clearStatusDescription(); + + statusDescription_ = getDefaultInstance().getStatusDescription(); + onChanged(); return this; } /** - * optional string status_description = 16; + * string status_description = 16; + * @param value The bytes for statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setStatusDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDescription_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet.Topup) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup) arg1; - fromUserId_ = visitor.visitLong(fromUserId_ != 0L, fromUserId_, - other.fromUserId_ != 0L, other.fromUserId_); - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - myToken_ = visitor.visitString(!myToken_.isEmpty(), myToken_, - !other.myToken_.isEmpty(), other.myToken_); - token_ = visitor.visitLong(token_ != 0L, token_, - other.token_ != 0L, other.token_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - requesterMobileNumber_ = visitor.visitString(!requesterMobileNumber_.isEmpty(), requesterMobileNumber_, - !other.requesterMobileNumber_.isEmpty(), other.requesterMobileNumber_); - chargeMobileNumber_ = visitor.visitString(!chargeMobileNumber_.isEmpty(), chargeMobileNumber_, - !other.chargeMobileNumber_.isEmpty(), other.chargeMobileNumber_); - topupType_ = visitor.visitInt(topupType_ != 0, topupType_, other.topupType_ != 0, other.topupType_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - merchantName_ = visitor.visitString(!merchantName_.isEmpty(), merchantName_, - !other.merchantName_.isEmpty(), other.merchantName_); - terminalNo_ = visitor.visitLong(terminalNo_ != 0L, terminalNo_, - other.terminalNo_ != 0L, other.terminalNo_); - rrn_ = visitor.visitLong(rrn_ != 0L, rrn_, - other.rrn_ != 0L, other.rrn_); - traceNumber_ = visitor.visitLong(traceNumber_ != 0L, traceNumber_, - other.traceNumber_ != 0L, other.traceNumber_); - requestTime_ = visitor.visitInt(requestTime_ != 0, requestTime_, - other.requestTime_ != 0, other.requestTime_); - status_ = visitor.visitBoolean(status_ != false, status_, - other.status_ != false, other.status_); - statusDescription_ = visitor.visitString(!statusDescription_.isEmpty(), statusDescription_, - !other.statusDescription_.isEmpty(), other.statusDescription_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - fromUserId_ = input.readUInt64(); - break; - } - case 16: { - - orderId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - myToken_ = s; - break; - } - case 32: { - - token_ = input.readUInt64(); - break; - } - case 40: { - - amount_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - requesterMobileNumber_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - chargeMobileNumber_ = s; - break; - } - case 64: { - int rawValue = input.readEnum(); - - topupType_ = rawValue; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - cardNumber_ = s; - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - merchantName_ = s; - break; - } - case 88: { - - terminalNo_ = input.readUInt64(); - break; - } - case 96: { - - rrn_ = input.readUInt64(); - break; - } - case 104: { - - traceNumber_ = input.readUInt64(); - break; - } - case 112: { - - requestTime_ = input.readUInt32(); - break; - } - case 120: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - status_ = input.readBool(); - break; - } - case 130: { - String s = input.readStringRequireUtf8(); - statusDescription_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet.Topup) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageWallet.Topup) private static final net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Topup(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup(); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Topup(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface BillOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageWallet.Bill) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ long getFromUserId(); /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional string my_token = 3; + * string my_token = 3; + * @return The myToken. */ java.lang.String getMyToken(); /** - * optional string my_token = 3; + * string my_token = 3; + * @return The bytes for myToken. */ com.google.protobuf.ByteString getMyTokenBytes(); /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return The token. */ long getToken(); /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional string pay_id = 6; + * string pay_id = 6; + * @return The payId. */ java.lang.String getPayId(); /** - * optional string pay_id = 6; + * string pay_id = 6; + * @return The bytes for payId. */ com.google.protobuf.ByteString getPayIdBytes(); /** - * optional string bill_id = 7; + * string bill_id = 7; + * @return The billId. */ java.lang.String getBillId(); /** - * optional string bill_id = 7; + * string bill_id = 7; + * @return The bytes for billId. */ com.google.protobuf.ByteString getBillIdBytes(); /** - * optional string bill_type = 8; + * string bill_type = 8; + * @return The billType. */ java.lang.String getBillType(); /** - * optional string bill_type = 8; + * string bill_type = 8; + * @return The bytes for billType. */ com.google.protobuf.ByteString getBillTypeBytes(); /** - * optional string card_number = 9; + * string card_number = 9; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string card_number = 9; + * string card_number = 9; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The merchantName. */ java.lang.String getMerchantName(); /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The bytes for merchantName. */ com.google.protobuf.ByteString getMerchantNameBytes(); /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return The terminalNo. */ long getTerminalNo(); /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return The rrn. */ long getRrn(); /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return The traceNumber. */ long getTraceNumber(); /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return The requestTime. */ int getRequestTime(); /** - * optional bool status = 15; + * bool status = 15; + * @return The status. */ boolean getStatus(); /** - * optional string status_description = 16; + * string status_description = 16; + * @return The statusDescription. */ java.lang.String getStatusDescription(); /** - * optional string status_description = 16; + * string status_description = 16; + * @return The bytes for statusDescription. */ com.google.protobuf.ByteString getStatusDescriptionBytes(); @@ -8118,11 +11571,15 @@ public interface BillOrBuilder extends /** * Protobuf type {@code proto.RoomMessageWallet.Bill} */ - public static final class Bill extends - com.google.protobuf.GeneratedMessageLite< - Bill, Bill.Builder> implements + public static final class Bill extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageWallet.Bill) BillOrBuilder { + private static final long serialVersionUID = 0L; + // Use Bill.newBuilder() to construct. + private Bill(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Bill() { myToken_ = ""; payId_ = ""; @@ -8132,535 +11589,533 @@ private Bill() { merchantName_ = ""; statusDescription_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Bill(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Bill( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + fromUserId_ = input.readUInt64(); + break; + } + case 16: { + + orderId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + myToken_ = s; + break; + } + case 32: { + + token_ = input.readUInt64(); + break; + } + case 40: { + + amount_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + payId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + billId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + billType_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + merchantName_ = s; + break; + } + case 88: { + + terminalNo_ = input.readUInt64(); + break; + } + case 96: { + + rrn_ = input.readUInt64(); + break; + } + case 104: { + + traceNumber_ = input.readUInt64(); + break; + } + case 112: { + + requestTime_ = input.readUInt32(); + break; + } + case 120: { + + status_ = input.readBool(); + break; + } + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDescription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Bill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Bill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder.class); + } + public static final int FROM_USER_ID_FIELD_NUMBER = 1; private long fromUserId_; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { return fromUserId_; } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void setFromUserId(long value) { - - fromUserId_ = value; - } - /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; - */ - private void clearFromUserId() { - - fromUserId_ = 0L; - } public static final int ORDER_ID_FIELD_NUMBER = 2; private long orderId_; /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int MY_TOKEN_FIELD_NUMBER = 3; - private java.lang.String myToken_; + private volatile java.lang.Object myToken_; /** - * optional string my_token = 3; + * string my_token = 3; + * @return The myToken. */ + @java.lang.Override public java.lang.String getMyToken() { - return myToken_; + java.lang.Object ref = myToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + myToken_ = s; + return s; + } } /** - * optional string my_token = 3; + * string my_token = 3; + * @return The bytes for myToken. */ + @java.lang.Override public com.google.protobuf.ByteString getMyTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(myToken_); - } - /** - * optional string my_token = 3; - */ - private void setMyToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - myToken_ = value; - } - /** - * optional string my_token = 3; - */ - private void clearMyToken() { - - myToken_ = getDefaultInstance().getMyToken(); - } - /** - * optional string my_token = 3; - */ - private void setMyTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - myToken_ = value.toStringUtf8(); + java.lang.Object ref = myToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + myToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOKEN_FIELD_NUMBER = 4; private long token_; /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return The token. */ + @java.lang.Override public long getToken() { return token_; } - /** - * optional uint64 token = 4 [jstype = JS_STRING]; - */ - private void setToken(long value) { - - token_ = value; - } - /** - * optional uint64 token = 4 [jstype = JS_STRING]; - */ - private void clearToken() { - - token_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 5; private long amount_; /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 5 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 5 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int PAY_ID_FIELD_NUMBER = 6; - private java.lang.String payId_; + private volatile java.lang.Object payId_; /** - * optional string pay_id = 6; + * string pay_id = 6; + * @return The payId. */ + @java.lang.Override public java.lang.String getPayId() { - return payId_; + java.lang.Object ref = payId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payId_ = s; + return s; + } } /** - * optional string pay_id = 6; + * string pay_id = 6; + * @return The bytes for payId. */ + @java.lang.Override public com.google.protobuf.ByteString getPayIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(payId_); - } - /** - * optional string pay_id = 6; - */ - private void setPayId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - payId_ = value; - } - /** - * optional string pay_id = 6; - */ - private void clearPayId() { - - payId_ = getDefaultInstance().getPayId(); - } - /** - * optional string pay_id = 6; - */ - private void setPayIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - payId_ = value.toStringUtf8(); + java.lang.Object ref = payId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + payId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BILL_ID_FIELD_NUMBER = 7; - private java.lang.String billId_; + private volatile java.lang.Object billId_; /** - * optional string bill_id = 7; + * string bill_id = 7; + * @return The billId. */ + @java.lang.Override public java.lang.String getBillId() { - return billId_; + java.lang.Object ref = billId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billId_ = s; + return s; + } } /** - * optional string bill_id = 7; + * string bill_id = 7; + * @return The bytes for billId. */ + @java.lang.Override public com.google.protobuf.ByteString getBillIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(billId_); - } - /** - * optional string bill_id = 7; - */ - private void setBillId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - billId_ = value; - } - /** - * optional string bill_id = 7; - */ - private void clearBillId() { - - billId_ = getDefaultInstance().getBillId(); - } - /** - * optional string bill_id = 7; - */ - private void setBillIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - billId_ = value.toStringUtf8(); + java.lang.Object ref = billId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BILL_TYPE_FIELD_NUMBER = 8; - private java.lang.String billType_; + private volatile java.lang.Object billType_; /** - * optional string bill_type = 8; + * string bill_type = 8; + * @return The billType. */ + @java.lang.Override public java.lang.String getBillType() { - return billType_; + java.lang.Object ref = billType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billType_ = s; + return s; + } } /** - * optional string bill_type = 8; + * string bill_type = 8; + * @return The bytes for billType. */ + @java.lang.Override public com.google.protobuf.ByteString getBillTypeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(billType_); - } - /** - * optional string bill_type = 8; - */ - private void setBillType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - billType_ = value; - } - /** - * optional string bill_type = 8; - */ - private void clearBillType() { - - billType_ = getDefaultInstance().getBillType(); - } - /** - * optional string bill_type = 8; - */ - private void setBillTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - billType_ = value.toStringUtf8(); + java.lang.Object ref = billType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CARD_NUMBER_FIELD_NUMBER = 9; - private java.lang.String cardNumber_; + private volatile java.lang.Object cardNumber_; /** - * optional string card_number = 9; + * string card_number = 9; + * @return The cardNumber. */ + @java.lang.Override public java.lang.String getCardNumber() { - return cardNumber_; + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string card_number = 9; + * string card_number = 9; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string card_number = 9; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string card_number = 9; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string card_number = 9; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MERCHANT_NAME_FIELD_NUMBER = 10; - private java.lang.String merchantName_; + private volatile java.lang.Object merchantName_; /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The merchantName. */ + @java.lang.Override public java.lang.String getMerchantName() { - return merchantName_; + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The bytes for merchantName. */ + @java.lang.Override public com.google.protobuf.ByteString getMerchantNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(merchantName_); - } - /** - * optional string merchant_name = 10; - */ - private void setMerchantName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - merchantName_ = value; - } - /** - * optional string merchant_name = 10; - */ - private void clearMerchantName() { - - merchantName_ = getDefaultInstance().getMerchantName(); - } - /** - * optional string merchant_name = 10; - */ - private void setMerchantNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - merchantName_ = value.toStringUtf8(); + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TERMINAL_NO_FIELD_NUMBER = 11; private long terminalNo_; /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return The terminalNo. */ + @java.lang.Override public long getTerminalNo() { return terminalNo_; } - /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; - */ - private void setTerminalNo(long value) { - - terminalNo_ = value; - } - /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; - */ - private void clearTerminalNo() { - - terminalNo_ = 0L; - } public static final int RRN_FIELD_NUMBER = 12; private long rrn_; /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return The rrn. */ + @java.lang.Override public long getRrn() { return rrn_; } - /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; - */ - private void setRrn(long value) { - - rrn_ = value; - } - /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; - */ - private void clearRrn() { - - rrn_ = 0L; - } public static final int TRACE_NUMBER_FIELD_NUMBER = 13; private long traceNumber_; /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { return traceNumber_; } - /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; - */ - private void setTraceNumber(long value) { - - traceNumber_ = value; - } - /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; - */ - private void clearTraceNumber() { - - traceNumber_ = 0L; - } public static final int REQUEST_TIME_FIELD_NUMBER = 14; private int requestTime_; /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return The requestTime. */ + @java.lang.Override public int getRequestTime() { return requestTime_; } - /** - * optional uint32 request_time = 14; - */ - private void setRequestTime(int value) { - - requestTime_ = value; - } - /** - * optional uint32 request_time = 14; - */ - private void clearRequestTime() { - - requestTime_ = 0; - } public static final int STATUS_FIELD_NUMBER = 15; private boolean status_; /** - * optional bool status = 15; + * bool status = 15; + * @return The status. */ + @java.lang.Override public boolean getStatus() { return status_; } - /** - * optional bool status = 15; - */ - private void setStatus(boolean value) { - - status_ = value; - } - /** - * optional bool status = 15; - */ - private void clearStatus() { - - status_ = false; - } public static final int STATUS_DESCRIPTION_FIELD_NUMBER = 16; - private java.lang.String statusDescription_; + private volatile java.lang.Object statusDescription_; /** - * optional string status_description = 16; + * string status_description = 16; + * @return The statusDescription. */ + @java.lang.Override public java.lang.String getStatusDescription() { - return statusDescription_; + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } } /** - * optional string status_description = 16; + * string status_description = 16; + * @return The bytes for statusDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(statusDescription_); - } - /** - * optional string status_description = 16; - */ - private void setStatusDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDescription_ = value; - } - /** - * optional string status_description = 16; - */ - private void clearStatusDescription() { - - statusDescription_ = getDefaultInstance().getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string status_description = 16; - */ - private void setStatusDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDescription_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fromUserId_ != 0L) { @@ -8669,8 +12124,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (orderId_ != 0L) { output.writeUInt64(2, orderId_); } - if (!myToken_.isEmpty()) { - output.writeString(3, getMyToken()); + if (!getMyTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, myToken_); } if (token_ != 0L) { output.writeUInt64(4, token_); @@ -8678,20 +12133,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(5, amount_); } - if (!payId_.isEmpty()) { - output.writeString(6, getPayId()); + if (!getPayIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, payId_); } - if (!billId_.isEmpty()) { - output.writeString(7, getBillId()); + if (!getBillIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, billId_); } - if (!billType_.isEmpty()) { - output.writeString(8, getBillType()); + if (!getBillTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, billType_); } - if (!cardNumber_.isEmpty()) { - output.writeString(9, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cardNumber_); } - if (!merchantName_.isEmpty()) { - output.writeString(10, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, merchantName_); } if (terminalNo_ != 0L) { output.writeUInt64(11, terminalNo_); @@ -8708,13 +12163,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != false) { output.writeBool(15, status_); } - if (!statusDescription_.isEmpty()) { - output.writeString(16, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, statusDescription_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -8726,9 +12183,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, orderId_); } - if (!myToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getMyToken()); + if (!getMyTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, myToken_); } if (token_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -8738,25 +12194,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, amount_); } - if (!payId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getPayId()); + if (!getPayIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, payId_); } - if (!billId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getBillId()); + if (!getBillIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, billId_); } - if (!billType_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getBillType()); + if (!getBillTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, billType_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cardNumber_); } - if (!merchantName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, merchantName_); } if (terminalNo_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -8778,1040 +12229,1444 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, status_); } - if (!statusDescription_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(16, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, statusDescription_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill) obj; + + if (getFromUserId() + != other.getFromUserId()) return false; + if (getOrderId() + != other.getOrderId()) return false; + if (!getMyToken() + .equals(other.getMyToken())) return false; + if (getToken() + != other.getToken()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getPayId() + .equals(other.getPayId())) return false; + if (!getBillId() + .equals(other.getBillId())) return false; + if (!getBillType() + .equals(other.getBillType())) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (!getMerchantName() + .equals(other.getMerchantName())) return false; + if (getTerminalNo() + != other.getTerminalNo()) return false; + if (getRrn() + != other.getRrn()) return false; + if (getTraceNumber() + != other.getTraceNumber()) return false; + if (getRequestTime() + != other.getRequestTime()) return false; + if (getStatus() + != other.getStatus()) return false; + if (!getStatusDescription() + .equals(other.getStatusDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFromUserId()); + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + MY_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getMyToken().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToken()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + PAY_ID_FIELD_NUMBER; + hash = (53 * hash) + getPayId().hashCode(); + hash = (37 * hash) + BILL_ID_FIELD_NUMBER; + hash = (53 * hash) + getBillId().hashCode(); + hash = (37 * hash) + BILL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getBillType().hashCode(); + hash = (37 * hash) + CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + MERCHANT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMerchantName().hashCode(); + hash = (37 * hash) + TERMINAL_NO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTerminalNo()); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRrn()); + hash = (37 * hash) + TRACE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTraceNumber()); + hash = (37 * hash) + REQUEST_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRequestTime(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStatus()); + hash = (37 * hash) + STATUS_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStatusDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageWallet.Bill} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageWallet.Bill) net.iGap.proto.ProtoGlobal.RoomMessageWallet.BillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Bill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Bill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fromUserId_ = 0L; + + orderId_ = 0L; + + myToken_ = ""; + + token_ = 0L; + + amount_ = 0L; + + payId_ = ""; + + billId_ = ""; + + billType_ = ""; + + cardNumber_ = ""; + + merchantName_ = ""; + + terminalNo_ = 0L; + + rrn_ = 0L; + + traceNumber_ = 0L; + + requestTime_ = 0; + + status_ = false; + + statusDescription_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_Bill_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill build() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill result = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill(this); + result.fromUserId_ = fromUserId_; + result.orderId_ = orderId_; + result.myToken_ = myToken_; + result.token_ = token_; + result.amount_ = amount_; + result.payId_ = payId_; + result.billId_ = billId_; + result.billType_ = billType_; + result.cardNumber_ = cardNumber_; + result.merchantName_ = merchantName_; + result.terminalNo_ = terminalNo_; + result.rrn_ = rrn_; + result.traceNumber_ = traceNumber_; + result.requestTime_ = requestTime_; + result.status_ = status_; + result.statusDescription_ = statusDescription_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.getDefaultInstance()) return this; + if (other.getFromUserId() != 0L) { + setFromUserId(other.getFromUserId()); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (!other.getMyToken().isEmpty()) { + myToken_ = other.myToken_; + onChanged(); + } + if (other.getToken() != 0L) { + setToken(other.getToken()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getPayId().isEmpty()) { + payId_ = other.payId_; + onChanged(); + } + if (!other.getBillId().isEmpty()) { + billId_ = other.billId_; + onChanged(); + } + if (!other.getBillType().isEmpty()) { + billType_ = other.billType_; + onChanged(); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (!other.getMerchantName().isEmpty()) { + merchantName_ = other.merchantName_; + onChanged(); + } + if (other.getTerminalNo() != 0L) { + setTerminalNo(other.getTerminalNo()); + } + if (other.getRrn() != 0L) { + setRrn(other.getRrn()); + } + if (other.getTraceNumber() != 0L) { + setTraceNumber(other.getTraceNumber()); + } + if (other.getRequestTime() != 0) { + setRequestTime(other.getRequestTime()); + } + if (other.getStatus() != false) { + setStatus(other.getStatus()); + } + if (!other.getStatusDescription().isEmpty()) { + statusDescription_ = other.statusDescription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long fromUserId_ ; /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { - return instance.getFromUserId(); + return fromUserId_; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @param value The fromUserId to set. + * @return This builder for chaining. */ public Builder setFromUserId(long value) { - copyOnWrite(); - instance.setFromUserId(value); + + fromUserId_ = value; + onChanged(); return this; } /** - * optional uint64 from_user_id = 1 [jstype = JS_STRING]; + * uint64 from_user_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearFromUserId() { - copyOnWrite(); - instance.clearFromUserId(); + + fromUserId_ = 0L; + onChanged(); return this; } + private long orderId_ ; /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 order_id = 2 [jstype = JS_STRING]; + * uint64 order_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private java.lang.Object myToken_ = ""; /** - * optional string my_token = 3; + * string my_token = 3; + * @return The myToken. */ public java.lang.String getMyToken() { - return instance.getMyToken(); + java.lang.Object ref = myToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + myToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string my_token = 3; + * string my_token = 3; + * @return The bytes for myToken. */ public com.google.protobuf.ByteString getMyTokenBytes() { - return instance.getMyTokenBytes(); + java.lang.Object ref = myToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + myToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string my_token = 3; + * string my_token = 3; + * @param value The myToken to set. + * @return This builder for chaining. */ public Builder setMyToken( java.lang.String value) { - copyOnWrite(); - instance.setMyToken(value); + if (value == null) { + throw new NullPointerException(); + } + + myToken_ = value; + onChanged(); return this; } /** - * optional string my_token = 3; + * string my_token = 3; + * @return This builder for chaining. */ public Builder clearMyToken() { - copyOnWrite(); - instance.clearMyToken(); + + myToken_ = getDefaultInstance().getMyToken(); + onChanged(); return this; } /** - * optional string my_token = 3; + * string my_token = 3; + * @param value The bytes for myToken to set. + * @return This builder for chaining. */ public Builder setMyTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMyTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + myToken_ = value; + onChanged(); return this; } + private long token_ ; /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return The token. */ + @java.lang.Override public long getToken() { - return instance.getToken(); + return token_; } /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken(long value) { - copyOnWrite(); - instance.setToken(value); + + token_ = value; + onChanged(); return this; } /** - * optional uint64 token = 4 [jstype = JS_STRING]; + * uint64 token = 4 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 5 [jstype = JS_STRING]; + * uint64 amount = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object payId_ = ""; /** - * optional string pay_id = 6; + * string pay_id = 6; + * @return The payId. */ public java.lang.String getPayId() { - return instance.getPayId(); + java.lang.Object ref = payId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string pay_id = 6; + * string pay_id = 6; + * @return The bytes for payId. */ public com.google.protobuf.ByteString getPayIdBytes() { - return instance.getPayIdBytes(); + java.lang.Object ref = payId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + payId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string pay_id = 6; + * string pay_id = 6; + * @param value The payId to set. + * @return This builder for chaining. */ public Builder setPayId( java.lang.String value) { - copyOnWrite(); - instance.setPayId(value); + if (value == null) { + throw new NullPointerException(); + } + + payId_ = value; + onChanged(); return this; } /** - * optional string pay_id = 6; + * string pay_id = 6; + * @return This builder for chaining. */ public Builder clearPayId() { - copyOnWrite(); - instance.clearPayId(); + + payId_ = getDefaultInstance().getPayId(); + onChanged(); return this; } /** - * optional string pay_id = 6; + * string pay_id = 6; + * @param value The bytes for payId to set. + * @return This builder for chaining. */ public Builder setPayIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPayIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + payId_ = value; + onChanged(); return this; } + private java.lang.Object billId_ = ""; /** - * optional string bill_id = 7; + * string bill_id = 7; + * @return The billId. */ public java.lang.String getBillId() { - return instance.getBillId(); + java.lang.Object ref = billId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bill_id = 7; + * string bill_id = 7; + * @return The bytes for billId. */ public com.google.protobuf.ByteString getBillIdBytes() { - return instance.getBillIdBytes(); + java.lang.Object ref = billId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bill_id = 7; + * string bill_id = 7; + * @param value The billId to set. + * @return This builder for chaining. */ public Builder setBillId( java.lang.String value) { - copyOnWrite(); - instance.setBillId(value); + if (value == null) { + throw new NullPointerException(); + } + + billId_ = value; + onChanged(); return this; } /** - * optional string bill_id = 7; + * string bill_id = 7; + * @return This builder for chaining. */ public Builder clearBillId() { - copyOnWrite(); - instance.clearBillId(); + + billId_ = getDefaultInstance().getBillId(); + onChanged(); return this; } /** - * optional string bill_id = 7; + * string bill_id = 7; + * @param value The bytes for billId to set. + * @return This builder for chaining. */ public Builder setBillIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBillIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + billId_ = value; + onChanged(); return this; } + private java.lang.Object billType_ = ""; /** - * optional string bill_type = 8; + * string bill_type = 8; + * @return The billType. */ public java.lang.String getBillType() { - return instance.getBillType(); + java.lang.Object ref = billType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billType_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bill_type = 8; + * string bill_type = 8; + * @return The bytes for billType. */ public com.google.protobuf.ByteString getBillTypeBytes() { - return instance.getBillTypeBytes(); + java.lang.Object ref = billType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bill_type = 8; + * string bill_type = 8; + * @param value The billType to set. + * @return This builder for chaining. */ public Builder setBillType( java.lang.String value) { - copyOnWrite(); - instance.setBillType(value); + if (value == null) { + throw new NullPointerException(); + } + + billType_ = value; + onChanged(); return this; } /** - * optional string bill_type = 8; + * string bill_type = 8; + * @return This builder for chaining. */ public Builder clearBillType() { - copyOnWrite(); - instance.clearBillType(); + + billType_ = getDefaultInstance().getBillType(); + onChanged(); return this; } /** - * optional string bill_type = 8; + * string bill_type = 8; + * @param value The bytes for billType to set. + * @return This builder for chaining. */ public Builder setBillTypeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBillTypeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + billType_ = value; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string card_number = 9; + * string card_number = 9; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string card_number = 9; + * string card_number = 9; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string card_number = 9; + * string card_number = 9; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string card_number = 9; + * string card_number = 9; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string card_number = 9; + * string card_number = 9; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private java.lang.Object merchantName_ = ""; /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The merchantName. */ public java.lang.String getMerchantName() { - return instance.getMerchantName(); + java.lang.Object ref = merchantName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return The bytes for merchantName. */ public com.google.protobuf.ByteString getMerchantNameBytes() { - return instance.getMerchantNameBytes(); + java.lang.Object ref = merchantName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @param value The merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantName( java.lang.String value) { - copyOnWrite(); - instance.setMerchantName(value); + if (value == null) { + throw new NullPointerException(); + } + + merchantName_ = value; + onChanged(); return this; } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @return This builder for chaining. */ public Builder clearMerchantName() { - copyOnWrite(); - instance.clearMerchantName(); + + merchantName_ = getDefaultInstance().getMerchantName(); + onChanged(); return this; } /** - * optional string merchant_name = 10; + * string merchant_name = 10; + * @param value The bytes for merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMerchantNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + merchantName_ = value; + onChanged(); return this; } + private long terminalNo_ ; /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return The terminalNo. */ + @java.lang.Override public long getTerminalNo() { - return instance.getTerminalNo(); + return terminalNo_; } /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @param value The terminalNo to set. + * @return This builder for chaining. */ public Builder setTerminalNo(long value) { - copyOnWrite(); - instance.setTerminalNo(value); + + terminalNo_ = value; + onChanged(); return this; } /** - * optional uint64 terminal_no = 11 [jstype = JS_STRING]; + * uint64 terminal_no = 11 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearTerminalNo() { - copyOnWrite(); - instance.clearTerminalNo(); + + terminalNo_ = 0L; + onChanged(); return this; } + private long rrn_ ; /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return The rrn. */ + @java.lang.Override public long getRrn() { - return instance.getRrn(); + return rrn_; } /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @param value The rrn to set. + * @return This builder for chaining. */ public Builder setRrn(long value) { - copyOnWrite(); - instance.setRrn(value); + + rrn_ = value; + onChanged(); return this; } /** - * optional uint64 rrn = 12 [jstype = JS_STRING]; + * uint64 rrn = 12 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRrn() { - copyOnWrite(); - instance.clearRrn(); + + rrn_ = 0L; + onChanged(); return this; } + private long traceNumber_ ; /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { - return instance.getTraceNumber(); + return traceNumber_; } /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @param value The traceNumber to set. + * @return This builder for chaining. */ public Builder setTraceNumber(long value) { - copyOnWrite(); - instance.setTraceNumber(value); + + traceNumber_ = value; + onChanged(); return this; } /** - * optional uint64 trace_number = 13 [jstype = JS_STRING]; + * uint64 trace_number = 13 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearTraceNumber() { - copyOnWrite(); - instance.clearTraceNumber(); + + traceNumber_ = 0L; + onChanged(); return this; } + private int requestTime_ ; /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return The requestTime. */ + @java.lang.Override public int getRequestTime() { - return instance.getRequestTime(); + return requestTime_; } /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @param value The requestTime to set. + * @return This builder for chaining. */ public Builder setRequestTime(int value) { - copyOnWrite(); - instance.setRequestTime(value); + + requestTime_ = value; + onChanged(); return this; } /** - * optional uint32 request_time = 14; + * uint32 request_time = 14; + * @return This builder for chaining. */ public Builder clearRequestTime() { - copyOnWrite(); - instance.clearRequestTime(); + + requestTime_ = 0; + onChanged(); return this; } + private boolean status_ ; /** - * optional bool status = 15; + * bool status = 15; + * @return The status. */ + @java.lang.Override public boolean getStatus() { - return instance.getStatus(); + return status_; } /** - * optional bool status = 15; + * bool status = 15; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(boolean value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional bool status = 15; + * bool status = 15; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = false; + onChanged(); return this; } + private java.lang.Object statusDescription_ = ""; /** - * optional string status_description = 16; + * string status_description = 16; + * @return The statusDescription. */ public java.lang.String getStatusDescription() { - return instance.getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string status_description = 16; + * string status_description = 16; + * @return The bytes for statusDescription. */ public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return instance.getStatusDescriptionBytes(); + java.lang.Object ref = statusDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string status_description = 16; + * string status_description = 16; + * @param value The statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescription( java.lang.String value) { - copyOnWrite(); - instance.setStatusDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + statusDescription_ = value; + onChanged(); return this; } /** - * optional string status_description = 16; + * string status_description = 16; + * @return This builder for chaining. */ public Builder clearStatusDescription() { - copyOnWrite(); - instance.clearStatusDescription(); + + statusDescription_ = getDefaultInstance().getStatusDescription(); + onChanged(); return this; } /** - * optional string status_description = 16; + * string status_description = 16; + * @param value The bytes for statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setStatusDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDescription_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet.Bill) } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill) arg1; - fromUserId_ = visitor.visitLong(fromUserId_ != 0L, fromUserId_, - other.fromUserId_ != 0L, other.fromUserId_); - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - myToken_ = visitor.visitString(!myToken_.isEmpty(), myToken_, - !other.myToken_.isEmpty(), other.myToken_); - token_ = visitor.visitLong(token_ != 0L, token_, - other.token_ != 0L, other.token_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - payId_ = visitor.visitString(!payId_.isEmpty(), payId_, - !other.payId_.isEmpty(), other.payId_); - billId_ = visitor.visitString(!billId_.isEmpty(), billId_, - !other.billId_.isEmpty(), other.billId_); - billType_ = visitor.visitString(!billType_.isEmpty(), billType_, - !other.billType_.isEmpty(), other.billType_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - merchantName_ = visitor.visitString(!merchantName_.isEmpty(), merchantName_, - !other.merchantName_.isEmpty(), other.merchantName_); - terminalNo_ = visitor.visitLong(terminalNo_ != 0L, terminalNo_, - other.terminalNo_ != 0L, other.terminalNo_); - rrn_ = visitor.visitLong(rrn_ != 0L, rrn_, - other.rrn_ != 0L, other.rrn_); - traceNumber_ = visitor.visitLong(traceNumber_ != 0L, traceNumber_, - other.traceNumber_ != 0L, other.traceNumber_); - requestTime_ = visitor.visitInt(requestTime_ != 0, requestTime_, - other.requestTime_ != 0, other.requestTime_); - status_ = visitor.visitBoolean(status_ != false, status_, - other.status_ != false, other.status_); - statusDescription_ = visitor.visitString(!statusDescription_.isEmpty(), statusDescription_, - !other.statusDescription_.isEmpty(), other.statusDescription_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - fromUserId_ = input.readUInt64(); - break; - } - case 16: { + // @@protoc_insertion_point(class_scope:proto.RoomMessageWallet.Bill) + private static final net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill(); + } - orderId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - myToken_ = s; - break; - } - case 32: { - - token_ = input.readUInt64(); - break; - } - case 40: { - - amount_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - payId_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - billId_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - billType_ = s; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - cardNumber_ = s; - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - merchantName_ = s; - break; - } - case 88: { - - terminalNo_ = input.readUInt64(); - break; - } - case 96: { - - rrn_ = input.readUInt64(); - break; - } - case 104: { - - traceNumber_ = input.readUInt64(); - break; - } - case 112: { - - requestTime_ = input.readUInt32(); - break; - } - case 120: { - - status_ = input.readBool(); - break; - } - case 130: { - String s = input.readStringRequireUtf8(); + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill getDefaultInstance() { + return DEFAULT_INSTANCE; + } - statusDescription_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Bill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Bill(input, extensionRegistry); } - throw new UnsupportedOperationException(); - } + }; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:proto.RoomMessageWallet.Bill) - private static final net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new Bill(); - DEFAULT_INSTANCE.makeImmutable(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public static net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill getDefaultInstance() { + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type getType() { - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type result = net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type result = net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageWallet.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.RoomMessageWallet.Type type = 1; - */ - private void setType(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageWallet.Type type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int MONEY_TRANSFER_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer moneyTransfer_; /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * @return Whether the moneyTransfer field is set. */ + @java.lang.Override public boolean hasMoneyTransfer() { return moneyTransfer_ != null; } /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * @return The moneyTransfer. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer getMoneyTransfer() { return moneyTransfer_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.getDefaultInstance() : moneyTransfer_; } /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; - */ - private void setMoneyTransfer(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer value) { - if (value == null) { - throw new NullPointerException(); - } - moneyTransfer_ = value; - - } - /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; - */ - private void setMoneyTransfer( - net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder builderForValue) { - moneyTransfer_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; - */ - private void mergeMoneyTransfer(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer value) { - if (moneyTransfer_ != null && - moneyTransfer_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.getDefaultInstance()) { - moneyTransfer_ = - net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.newBuilder(moneyTransfer_).mergeFrom(value).buildPartial(); - } else { - moneyTransfer_ = value; - } - - } - /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; */ - private void clearMoneyTransfer() { moneyTransfer_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransferOrBuilder getMoneyTransferOrBuilder() { + return getMoneyTransfer(); } public static final int CARD_TO_CARD_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard cardToCard_; /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * @return Whether the cardToCard field is set. */ + @java.lang.Override public boolean hasCardToCard() { return cardToCard_ != null; } /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * @return The cardToCard. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard getCardToCard() { return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.getDefaultInstance() : cardToCard_; } /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; - */ - private void setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard value) { - if (value == null) { - throw new NullPointerException(); - } - cardToCard_ = value; - - } - /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; - */ - private void setCardToCard( - net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder builderForValue) { - cardToCard_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; - */ - private void mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard value) { - if (cardToCard_ != null && - cardToCard_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.getDefaultInstance()) { - cardToCard_ = - net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); - } else { - cardToCard_ = value; - } - - } - /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; */ - private void clearCardToCard() { cardToCard_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); } public static final int TOPUP_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup topup_; /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; + * @return Whether the topup field is set. */ + @java.lang.Override public boolean hasTopup() { return topup_ != null; } /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; + * @return The topup. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup getTopup() { return topup_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.getDefaultInstance() : topup_; } /** - * optional .proto.RoomMessageWallet.Topup topup = 4; - */ - private void setTopup(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup value) { - if (value == null) { - throw new NullPointerException(); - } - topup_ = value; - - } - /** - * optional .proto.RoomMessageWallet.Topup topup = 4; - */ - private void setTopup( - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder builderForValue) { - topup_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageWallet.Topup topup = 4; - */ - private void mergeTopup(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup value) { - if (topup_ != null && - topup_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.getDefaultInstance()) { - topup_ = - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.newBuilder(topup_).mergeFrom(value).buildPartial(); - } else { - topup_ = value; - } - - } - /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; */ - private void clearTopup() { topup_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.TopupOrBuilder getTopupOrBuilder() { + return getTopup(); } public static final int BILL_FIELD_NUMBER = 5; private net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill bill_; /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; + * @return Whether the bill field is set. */ + @java.lang.Override public boolean hasBill() { return bill_ != null; } /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; + * @return The bill. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill getBill() { return bill_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.getDefaultInstance() : bill_; } /** - * optional .proto.RoomMessageWallet.Bill bill = 5; - */ - private void setBill(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill value) { - if (value == null) { - throw new NullPointerException(); - } - bill_ = value; - - } - /** - * optional .proto.RoomMessageWallet.Bill bill = 5; - */ - private void setBill( - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder builderForValue) { - bill_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; */ - private void mergeBill(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill value) { - if (bill_ != null && - bill_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.getDefaultInstance()) { - bill_ = - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.newBuilder(bill_).mergeFrom(value).buildPartial(); - } else { - bill_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.BillOrBuilder getBillOrBuilder() { + return getBill(); } - /** - * optional .proto.RoomMessageWallet.Bill bill = 5; - */ - private void clearBill() { bill_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type.MONEY_TRANSFER.getNumber()) { @@ -9829,10 +13684,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (bill_ != null) { output.writeMessage(5, getBill()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -9856,561 +13713,1110 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getBill()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageWallet other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet) obj; + + if (type_ != other.type_) return false; + if (hasMoneyTransfer() != other.hasMoneyTransfer()) return false; + if (hasMoneyTransfer()) { + if (!getMoneyTransfer() + .equals(other.getMoneyTransfer())) return false; + } + if (hasCardToCard() != other.hasCardToCard()) return false; + if (hasCardToCard()) { + if (!getCardToCard() + .equals(other.getCardToCard())) return false; + } + if (hasTopup() != other.hasTopup()) return false; + if (hasTopup()) { + if (!getTopup() + .equals(other.getTopup())) return false; + } + if (hasBill() != other.hasBill()) return false; + if (hasBill()) { + if (!getBill() + .equals(other.getBill())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasMoneyTransfer()) { + hash = (37 * hash) + MONEY_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + getMoneyTransfer().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (hasTopup()) { + hash = (37 * hash) + TOPUP_FIELD_NUMBER; + hash = (53 * hash) + getTopup().hashCode(); + } + if (hasBill()) { + hash = (37 * hash) + BILL_FIELD_NUMBER; + hash = (53 * hash) + getBill().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageWallet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageWallet} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageWallet, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageWallet) net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageWallet.class, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageWallet.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + if (moneyTransferBuilder_ == null) { + moneyTransfer_ = null; + } else { + moneyTransfer_ = null; + moneyTransferBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (topupBuilder_ == null) { + topup_ = null; + } else { + topup_ = null; + topupBuilder_ = null; + } + if (billBuilder_ == null) { + bill_ = null; + } else { + bill_ = null; + billBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageWallet_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet build() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageWallet result = new net.iGap.proto.ProtoGlobal.RoomMessageWallet(this); + result.type_ = type_; + if (moneyTransferBuilder_ == null) { + result.moneyTransfer_ = moneyTransfer_; + } else { + result.moneyTransfer_ = moneyTransferBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (topupBuilder_ == null) { + result.topup_ = topup_; + } else { + result.topup_ = topupBuilder_.build(); + } + if (billBuilder_ == null) { + result.bill_ = bill_; + } else { + result.bill_ = billBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageWallet) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageWallet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageWallet other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasMoneyTransfer()) { + mergeMoneyTransfer(other.getMoneyTransfer()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (other.hasTopup()) { + mergeTopup(other.getTopup()); + } + if (other.hasBill()) { + mergeBill(other.getBill()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageWallet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageWallet) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int type_ = 0; /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type result = net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageWallet.Type type = 1; + * .proto.RoomMessageWallet.Type type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer moneyTransfer_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransferOrBuilder> moneyTransferBuilder_; /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * @return Whether the moneyTransfer field is set. */ public boolean hasMoneyTransfer() { - return instance.hasMoneyTransfer(); + return moneyTransferBuilder_ != null || moneyTransfer_ != null; } /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * @return The moneyTransfer. */ public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer getMoneyTransfer() { - return instance.getMoneyTransfer(); + if (moneyTransferBuilder_ == null) { + return moneyTransfer_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.getDefaultInstance() : moneyTransfer_; + } else { + return moneyTransferBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; */ public Builder setMoneyTransfer(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer value) { - copyOnWrite(); - instance.setMoneyTransfer(value); - return this; + if (moneyTransferBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + moneyTransfer_ = value; + onChanged(); + } else { + moneyTransferBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; */ public Builder setMoneyTransfer( net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder builderForValue) { - copyOnWrite(); - instance.setMoneyTransfer(builderForValue); + if (moneyTransferBuilder_ == null) { + moneyTransfer_ = builderForValue.build(); + onChanged(); + } else { + moneyTransferBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; */ public Builder mergeMoneyTransfer(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer value) { - copyOnWrite(); - instance.mergeMoneyTransfer(value); + if (moneyTransferBuilder_ == null) { + if (moneyTransfer_ != null) { + moneyTransfer_ = + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.newBuilder(moneyTransfer_).mergeFrom(value).buildPartial(); + } else { + moneyTransfer_ = value; + } + onChanged(); + } else { + moneyTransferBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; */ - public Builder clearMoneyTransfer() { copyOnWrite(); - instance.clearMoneyTransfer(); + public Builder clearMoneyTransfer() { + if (moneyTransferBuilder_ == null) { + moneyTransfer_ = null; + onChanged(); + } else { + moneyTransfer_ = null; + moneyTransferBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder getMoneyTransferBuilder() { + + onChanged(); + return getMoneyTransferFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransferOrBuilder getMoneyTransferOrBuilder() { + if (moneyTransferBuilder_ != null) { + return moneyTransferBuilder_.getMessageOrBuilder(); + } else { + return moneyTransfer_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.getDefaultInstance() : moneyTransfer_; + } + } + /** + * .proto.RoomMessageWallet.MoneyTransfer money_transfer = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransferOrBuilder> + getMoneyTransferFieldBuilder() { + if (moneyTransferBuilder_ == null) { + moneyTransferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransferOrBuilder>( + getMoneyTransfer(), + getParentForChildren(), + isClean()); + moneyTransfer_ = null; + } + return moneyTransferBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard cardToCard_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCardOrBuilder> cardToCardBuilder_; /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * @return Whether the cardToCard field is set. */ public boolean hasCardToCard() { - return instance.hasCardToCard(); + return cardToCardBuilder_ != null || cardToCard_ != null; } /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * @return The cardToCard. */ public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard getCardToCard() { - return instance.getCardToCard(); + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; */ public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard value) { - copyOnWrite(); - instance.setCardToCard(value); - return this; + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; */ public Builder setCardToCard( net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder builderForValue) { - copyOnWrite(); - instance.setCardToCard(builderForValue); + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; */ public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard value) { - copyOnWrite(); - instance.mergeCardToCard(value); + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageWallet.CardToCard card_to_card = 3; + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; */ - public Builder clearCardToCard() { copyOnWrite(); - instance.clearCardToCard(); + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder getCardToCardBuilder() { + + onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * .proto.RoomMessageWallet.CardToCard card_to_card = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup topup_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.TopupOrBuilder> topupBuilder_; /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; + * @return Whether the topup field is set. */ public boolean hasTopup() { - return instance.hasTopup(); + return topupBuilder_ != null || topup_ != null; } /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; + * @return The topup. */ public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup getTopup() { - return instance.getTopup(); + if (topupBuilder_ == null) { + return topup_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.getDefaultInstance() : topup_; + } else { + return topupBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; */ public Builder setTopup(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup value) { - copyOnWrite(); - instance.setTopup(value); - return this; + if (topupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + topup_ = value; + onChanged(); + } else { + topupBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; */ public Builder setTopup( net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder builderForValue) { - copyOnWrite(); - instance.setTopup(builderForValue); + if (topupBuilder_ == null) { + topup_ = builderForValue.build(); + onChanged(); + } else { + topupBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; */ public Builder mergeTopup(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup value) { - copyOnWrite(); - instance.mergeTopup(value); + if (topupBuilder_ == null) { + if (topup_ != null) { + topup_ = + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.newBuilder(topup_).mergeFrom(value).buildPartial(); + } else { + topup_ = value; + } + onChanged(); + } else { + topupBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageWallet.Topup topup = 4; + * .proto.RoomMessageWallet.Topup topup = 4; */ - public Builder clearTopup() { copyOnWrite(); - instance.clearTopup(); + public Builder clearTopup() { + if (topupBuilder_ == null) { + topup_ = null; + onChanged(); + } else { + topup_ = null; + topupBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageWallet.Topup topup = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder getTopupBuilder() { + + onChanged(); + return getTopupFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageWallet.Topup topup = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.TopupOrBuilder getTopupOrBuilder() { + if (topupBuilder_ != null) { + return topupBuilder_.getMessageOrBuilder(); + } else { + return topup_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.getDefaultInstance() : topup_; + } + } + /** + * .proto.RoomMessageWallet.Topup topup = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.TopupOrBuilder> + getTopupFieldBuilder() { + if (topupBuilder_ == null) { + topupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.TopupOrBuilder>( + getTopup(), + getParentForChildren(), + isClean()); + topup_ = null; + } + return topupBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill bill_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.BillOrBuilder> billBuilder_; /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; + * @return Whether the bill field is set. */ public boolean hasBill() { - return instance.hasBill(); + return billBuilder_ != null || bill_ != null; } /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; + * @return The bill. */ public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill getBill() { - return instance.getBill(); + if (billBuilder_ == null) { + return bill_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.getDefaultInstance() : bill_; + } else { + return billBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; */ public Builder setBill(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill value) { - copyOnWrite(); - instance.setBill(value); - return this; + if (billBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bill_ = value; + onChanged(); + } else { + billBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; */ public Builder setBill( net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder builderForValue) { - copyOnWrite(); - instance.setBill(builderForValue); + if (billBuilder_ == null) { + bill_ = builderForValue.build(); + onChanged(); + } else { + billBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; */ public Builder mergeBill(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill value) { - copyOnWrite(); - instance.mergeBill(value); + if (billBuilder_ == null) { + if (bill_ != null) { + bill_ = + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.newBuilder(bill_).mergeFrom(value).buildPartial(); + } else { + bill_ = value; + } + onChanged(); + } else { + billBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageWallet.Bill bill = 5; + * .proto.RoomMessageWallet.Bill bill = 5; */ - public Builder clearBill() { copyOnWrite(); - instance.clearBill(); + public Builder clearBill() { + if (billBuilder_ == null) { + bill_ = null; + onChanged(); + } else { + bill_ = null; + billBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageWallet(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); + /** + * .proto.RoomMessageWallet.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder getBillBuilder() { + + onChanged(); + return getBillFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageWallet.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.BillOrBuilder getBillOrBuilder() { + if (billBuilder_ != null) { + return billBuilder_.getMessageOrBuilder(); + } else { + return bill_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.getDefaultInstance() : bill_; } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageWallet other = (net.iGap.proto.ProtoGlobal.RoomMessageWallet) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - moneyTransfer_ = visitor.visitMessage(moneyTransfer_, other.moneyTransfer_); - cardToCard_ = visitor.visitMessage(cardToCard_, other.cardToCard_); - topup_ = visitor.visitMessage(topup_, other.topup_); - bill_ = visitor.visitMessage(bill_, other.bill_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + } + /** + * .proto.RoomMessageWallet.Bill bill = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.BillOrBuilder> + getBillFieldBuilder() { + if (billBuilder_ == null) { + billBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWallet.BillOrBuilder>( + getBill(), + getParentForChildren(), + isClean()); + bill_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.Builder subBuilder = null; - if (moneyTransfer_ != null) { - subBuilder = moneyTransfer_.toBuilder(); - } - moneyTransfer_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.MoneyTransfer.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(moneyTransfer_); - moneyTransfer_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.Builder subBuilder = null; - if (cardToCard_ != null) { - subBuilder = cardToCard_.toBuilder(); - } - cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.CardToCard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cardToCard_); - cardToCard_ = subBuilder.buildPartial(); - } + return billBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.Builder subBuilder = null; - if (topup_ != null) { - subBuilder = topup_.toBuilder(); - } - topup_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Topup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topup_); - topup_ = subBuilder.buildPartial(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - break; - } - case 42: { - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.Builder subBuilder = null; - if (bill_ != null) { - subBuilder = bill_.toBuilder(); - } - bill_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.Bill.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bill_); - bill_ = subBuilder.buildPartial(); - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageWallet.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageWallet) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageWallet) private static final net.iGap.proto.ProtoGlobal.RoomMessageWallet DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageWallet(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageWallet(); } public static net.iGap.proto.ProtoGlobal.RoomMessageWallet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageWallet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageWallet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWallet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomMessageForwardFromOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageForwardFrom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 2 [jstype = JS_STRING]; + * uint64 message_id = 2 [jstype = JS_STRING]; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 document_id = 3 [jstype = JS_STRING]; + * uint64 document_id = 3 [jstype = JS_STRING]; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.RoomMessageForwardFrom} */ - public static final class RoomMessageForwardFrom extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageForwardFrom, RoomMessageForwardFrom.Builder> implements + public static final class RoomMessageForwardFrom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageForwardFrom) RoomMessageForwardFromOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageForwardFrom.newBuilder() to construct. + private RoomMessageForwardFrom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageForwardFrom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageForwardFrom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageForwardFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + roomId_ = input.readUInt64(); + break; + } + case 16: { + + messageId_ = input.readUInt64(); + break; + } + case 24: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageForwardFrom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageForwardFrom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.class, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder.class); + } + public static final int ROOM_ID_FIELD_NUMBER = 1; private long roomId_; /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 2; private long messageId_; /** - * optional uint64 message_id = 2 [jstype = JS_STRING]; + * uint64 message_id = 2 [jstype = JS_STRING]; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 2 [jstype = JS_STRING]; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 2 [jstype = JS_STRING]; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 3; private long documentId_; /** - * optional uint64 document_id = 3 [jstype = JS_STRING]; + * uint64 document_id = 3 [jstype = JS_STRING]; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 3 [jstype = JS_STRING]; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 3 [jstype = JS_STRING]; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (roomId_ != 0L) { @@ -10422,10 +14828,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(3, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -10441,310 +14849,578 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom other = (net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom) obj; + + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageForwardFrom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageForwardFrom) net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageForwardFrom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageForwardFrom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.class, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - public long getRoomId() { - return instance.getRoomId(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); - return this; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + @java.lang.Override + public Builder clear() { + super.clear(); + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + return this; } - /** - * optional uint64 message_id = 2 [jstype = JS_STRING]; - */ - public long getMessageId() { - return instance.getMessageId(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageForwardFrom_descriptor; } - /** - * optional uint64 message_id = 2 [jstype = JS_STRING]; - */ - public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); - return this; + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance(); } - /** - * optional uint64 message_id = 2 [jstype = JS_STRING]; - */ - public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); - return this; + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom build() { + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - /** - * optional uint64 document_id = 3 [jstype = JS_STRING]; - */ - public long getDocumentId() { - return instance.getDocumentId(); + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom result = new net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom(this); + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; } - /** - * optional uint64 document_id = 3 [jstype = JS_STRING]; - */ - public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); - return this; + + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - * optional uint64 document_id = 3 [jstype = JS_STRING]; - */ - public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessageForwardFrom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom(); + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom)other); + } else { + super.mergeFrom(other); + return this; } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance()) return this; + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); } - case MAKE_IMMUTABLE: { - return null; + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); } - case NEW_BUILDER: { - return new Builder(); + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom other = (net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom) arg1; - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } - return this; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { + return this; + } - roomId_ = input.readUInt64(); - break; - } - case 16: { + private long roomId_ ; + /** + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return The roomId. + */ + @java.lang.Override + public long getRoomId() { + return roomId_; + } + /** + * uint64 room_id = 1 [jstype = JS_STRING]; + * @param value The roomId to set. + * @return This builder for chaining. + */ + public Builder setRoomId(long value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. + */ + public Builder clearRoomId() { + + roomId_ = 0L; + onChanged(); + return this; + } - messageId_ = input.readUInt64(); - break; - } - case 24: { + private long messageId_ ; + /** + * uint64 message_id = 2 [jstype = JS_STRING]; + * @return The messageId. + */ + @java.lang.Override + public long getMessageId() { + return messageId_; + } + /** + * uint64 message_id = 2 [jstype = JS_STRING]; + * @param value The messageId to set. + * @return This builder for chaining. + */ + public Builder setMessageId(long value) { + + messageId_ = value; + onChanged(); + return this; + } + /** + * uint64 message_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. + */ + public Builder clearMessageId() { + + messageId_ = 0L; + onChanged(); + return this; + } - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + private long documentId_ ; + /** + * uint64 document_id = 3 [jstype = JS_STRING]; + * @return The documentId. + */ + @java.lang.Override + public long getDocumentId() { + return documentId_; } - throw new UnsupportedOperationException(); - } + /** + * uint64 document_id = 3 [jstype = JS_STRING]; + * @param value The documentId to set. + * @return This builder for chaining. + */ + public Builder setDocumentId(long value) { + + documentId_ = value; + onChanged(); + return this; + } + /** + * uint64 document_id = 3 [jstype = JS_STRING]; + * @return This builder for chaining. + */ + public Builder clearDocumentId() { + + documentId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.RoomMessageForwardFrom) + } // @@protoc_insertion_point(class_scope:proto.RoomMessageForwardFrom) private static final net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageForwardFrom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom(); } public static net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageForwardFrom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageForwardFrom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomMessageStoryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageStory) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @return The status. */ net.iGap.proto.ProtoGlobal.RoomMessageStory.Status getStatus(); /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; + * @return Whether the story field is set. */ boolean hasStory(); /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; + * @return The story. */ net.iGap.proto.ProtoGlobal.Story getStory(); + /** + * .proto.Story story = 2; + */ + net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder(); } /** * Protobuf type {@code proto.RoomMessageStory} */ - public static final class RoomMessageStory extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageStory, RoomMessageStory.Builder> implements + public static final class RoomMessageStory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageStory) RoomMessageStoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageStory.newBuilder() to construct. + private RoomMessageStory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageStory() { + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageStory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } + private RoomMessageStory( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Story.Builder subBuilder = null; + if (story_ != null) { + subBuilder = story_.toBuilder(); + } + story_ = input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(story_); + story_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageStory.class, net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder.class); + } + /** * Protobuf enum {@code proto.RoomMessageStory.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * ACTIVE = 0; */ @@ -10783,10 +15459,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -10794,6 +15476,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return ACTIVE; @@ -10816,6 +15502,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageStory.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -10828,94 +15545,60 @@ private Status(int value) { public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.RoomMessageStory.Status getStatus() { - net.iGap.proto.ProtoGlobal.RoomMessageStory.Status result = net.iGap.proto.ProtoGlobal.RoomMessageStory.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStory.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStory.Status result = net.iGap.proto.ProtoGlobal.RoomMessageStory.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStory.Status.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageStory.Status status = 1; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.RoomMessageStory.Status status = 1; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStory.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageStory.Status status = 1; - */ - private void clearStatus() { - - status_ = 0; - } public static final int STORY_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Story story_; /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; + * @return Whether the story field is set. */ + @java.lang.Override public boolean hasStory() { return story_ != null; } /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; + * @return The story. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Story getStory() { return story_ == null ? net.iGap.proto.ProtoGlobal.Story.getDefaultInstance() : story_; } /** - * optional .proto.Story story = 2; - */ - private void setStory(net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - story_ = value; - - } - /** - * optional .proto.Story story = 2; - */ - private void setStory( - net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - story_ = builderForValue.build(); - - } - /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; */ - private void mergeStory(net.iGap.proto.ProtoGlobal.Story value) { - if (story_ != null && - story_ != net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()) { - story_ = - net.iGap.proto.ProtoGlobal.Story.newBuilder(story_).mergeFrom(value).buildPartial(); - } else { - story_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder() { + return getStory(); } - /** - * optional .proto.Story story = 2; - */ - private void clearStory() { story_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != net.iGap.proto.ProtoGlobal.RoomMessageStory.Status.ACTIVE.getNumber()) { @@ -10924,10 +15607,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (story_ != null) { output.writeMessage(2, getStory()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -10939,301 +15624,543 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStory()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageStory)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageStory other = (net.iGap.proto.ProtoGlobal.RoomMessageStory) obj; + + if (status_ != other.status_) return false; + if (hasStory() != other.hasStory()) return false; + if (hasStory()) { + if (!getStory() + .equals(other.getStory())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasStory()) { + hash = (37 * hash) + STORY_FIELD_NUMBER; + hash = (53 * hash) + getStory().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageStory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageStory} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageStory, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageStory) net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageStory.class, net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageStory.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + status_ = 0; + + if (storyBuilder_ == null) { + story_ = null; + } else { + story_ = null; + storyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStory_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStory getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStory build() { + net.iGap.proto.ProtoGlobal.RoomMessageStory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStory buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageStory result = new net.iGap.proto.ProtoGlobal.RoomMessageStory(this); + result.status_ = status_; + if (storyBuilder_ == null) { + result.story_ = story_; + } else { + result.story_ = storyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageStory) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageStory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageStory other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance()) return this; + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasStory()) { + mergeStory(other.getStory()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageStory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageStory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int status_ = 0; /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStory.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStory.Status result = net.iGap.proto.ProtoGlobal.RoomMessageStory.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStory.Status.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStory.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageStory.Status status = 1; + * .proto.RoomMessageStory.Status status = 1; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Story story_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> storyBuilder_; /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; + * @return Whether the story field is set. */ public boolean hasStory() { - return instance.hasStory(); + return storyBuilder_ != null || story_ != null; } /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; + * @return The story. */ public net.iGap.proto.ProtoGlobal.Story getStory() { - return instance.getStory(); + if (storyBuilder_ == null) { + return story_ == null ? net.iGap.proto.ProtoGlobal.Story.getDefaultInstance() : story_; + } else { + return storyBuilder_.getMessage(); + } } /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; */ public Builder setStory(net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.setStory(value); - return this; + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + story_ = value; + onChanged(); + } else { + storyBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; */ public Builder setStory( net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.setStory(builderForValue); + if (storyBuilder_ == null) { + story_ = builderForValue.build(); + onChanged(); + } else { + storyBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; */ public Builder mergeStory(net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.mergeStory(value); + if (storyBuilder_ == null) { + if (story_ != null) { + story_ = + net.iGap.proto.ProtoGlobal.Story.newBuilder(story_).mergeFrom(value).buildPartial(); + } else { + story_ = value; + } + onChanged(); + } else { + storyBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Story story = 2; + * .proto.Story story = 2; */ - public Builder clearStory() { copyOnWrite(); - instance.clearStory(); + public Builder clearStory() { + if (storyBuilder_ == null) { + story_ = null; + onChanged(); + } else { + story_ = null; + storyBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessageStory) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageStory(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); + /** + * .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder getStoryBuilder() { + + onChanged(); + return getStoryFieldBuilder().getBuilder(); + } + /** + * .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder() { + if (storyBuilder_ != null) { + return storyBuilder_.getMessageOrBuilder(); + } else { + return story_ == null ? + net.iGap.proto.ProtoGlobal.Story.getDefaultInstance() : story_; } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageStory other = (net.iGap.proto.ProtoGlobal.RoomMessageStory) arg1; - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - story_ = visitor.visitMessage(story_, other.story_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + } + /** + * .proto.Story story = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> + getStoryFieldBuilder() { + if (storyBuilder_ == null) { + storyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder>( + getStory(), + getParentForChildren(), + isClean()); + story_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Story.Builder subBuilder = null; - if (story_ != null) { - subBuilder = story_.toBuilder(); - } - story_ = input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(story_); - story_ = subBuilder.buildPartial(); - } + return storyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageStory.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.RoomMessageStory) + } + // @@protoc_insertion_point(class_scope:proto.RoomMessageStory) private static final net.iGap.proto.ProtoGlobal.RoomMessageStory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageStory(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageStory(); } public static net.iGap.proto.ProtoGlobal.RoomMessageStory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageStory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageStory(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface RoomMessageStoryReplyOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageStoryReply) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ long getStoryId(); /** - * optional string caption = 2; + * string caption = 2; + * @return The caption. */ java.lang.String getCaption(); /** - * optional string caption = 2; + * string caption = 2; + * @return The bytes for caption. */ com.google.protobuf.ByteString getCaptionBytes(); @@ -11241,95 +16168,167 @@ public interface RoomMessageStoryReplyOrBuilder extends /** * Protobuf type {@code proto.RoomMessageStoryReply} */ - public static final class RoomMessageStoryReply extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageStoryReply, RoomMessageStoryReply.Builder> implements + public static final class RoomMessageStoryReply extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageStoryReply) RoomMessageStoryReplyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageStoryReply.newBuilder() to construct. + private RoomMessageStoryReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageStoryReply() { caption_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageStoryReply(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageStoryReply( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + storyId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + caption_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.class, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder.class); + } + public static final int STORY_ID_FIELD_NUMBER = 1; private long storyId_; /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { return storyId_; } - /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; - */ - private void setStoryId(long value) { - - storyId_ = value; - } - /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; - */ - private void clearStoryId() { - - storyId_ = 0L; - } public static final int CAPTION_FIELD_NUMBER = 2; - private java.lang.String caption_; + private volatile java.lang.Object caption_; /** - * optional string caption = 2; + * string caption = 2; + * @return The caption. */ + @java.lang.Override public java.lang.String getCaption() { - return caption_; + java.lang.Object ref = caption_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caption_ = s; + return s; + } } /** - * optional string caption = 2; + * string caption = 2; + * @return The bytes for caption. */ + @java.lang.Override public com.google.protobuf.ByteString getCaptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(caption_); - } - /** - * optional string caption = 2; - */ - private void setCaption( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caption_ = value; - } - /** - * optional string caption = 2; - */ - private void clearCaption() { - - caption_ = getDefaultInstance().getCaption(); + java.lang.Object ref = caption_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string caption = 2; - */ - private void setCaptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caption_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (storyId_ != 0L) { output.writeUInt64(1, storyId_); } - if (!caption_.isEmpty()) { - output.writeString(2, getCaption()); + if (!getCaptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, caption_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -11337,316 +16336,578 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, storyId_); } - if (!caption_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCaption()); + if (!getCaptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, caption_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageStoryReply)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply other = (net.iGap.proto.ProtoGlobal.RoomMessageStoryReply) obj; + + if (getStoryId() + != other.getStoryId()) return false; + if (!getCaption() + .equals(other.getCaption())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStoryId()); + hash = (37 * hash) + CAPTION_FIELD_NUMBER; + hash = (53 * hash) + getCaption().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageStoryReply} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageStoryReply) net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.class, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + storyId_ = 0L; + caption_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryReply_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply build() { + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply result = new net.iGap.proto.ProtoGlobal.RoomMessageStoryReply(this); + result.storyId_ = storyId_; + result.caption_ = caption_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageStoryReply) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageStoryReply)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance()) return this; + if (other.getStoryId() != 0L) { + setStoryId(other.getStoryId()); + } + if (!other.getCaption().isEmpty()) { + caption_ = other.caption_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageStoryReply) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long storyId_ ; /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { - return instance.getStoryId(); + return storyId_; } /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @param value The storyId to set. + * @return This builder for chaining. */ public Builder setStoryId(long value) { - copyOnWrite(); - instance.setStoryId(value); + + storyId_ = value; + onChanged(); return this; } /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearStoryId() { - copyOnWrite(); - instance.clearStoryId(); + + storyId_ = 0L; + onChanged(); return this; } + private java.lang.Object caption_ = ""; /** - * optional string caption = 2; + * string caption = 2; + * @return The caption. */ public java.lang.String getCaption() { - return instance.getCaption(); + java.lang.Object ref = caption_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caption_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string caption = 2; + * string caption = 2; + * @return The bytes for caption. */ public com.google.protobuf.ByteString getCaptionBytes() { - return instance.getCaptionBytes(); + java.lang.Object ref = caption_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string caption = 2; + * string caption = 2; + * @param value The caption to set. + * @return This builder for chaining. */ public Builder setCaption( java.lang.String value) { - copyOnWrite(); - instance.setCaption(value); + if (value == null) { + throw new NullPointerException(); + } + + caption_ = value; + onChanged(); return this; } /** - * optional string caption = 2; + * string caption = 2; + * @return This builder for chaining. */ public Builder clearCaption() { - copyOnWrite(); - instance.clearCaption(); + + caption_ = getDefaultInstance().getCaption(); + onChanged(); return this; } /** - * optional string caption = 2; + * string caption = 2; + * @param value The bytes for caption to set. + * @return This builder for chaining. */ public Builder setCaptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCaptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caption_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:proto.RoomMessageStoryReply) } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageStoryReply(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply other = (net.iGap.proto.ProtoGlobal.RoomMessageStoryReply) arg1; - storyId_ = visitor.visitLong(storyId_ != 0L, storyId_, - other.storyId_ != 0L, other.storyId_); - caption_ = visitor.visitString(!caption_.isEmpty(), caption_, - !other.caption_.isEmpty(), other.caption_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - storyId_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + // @@protoc_insertion_point(class_scope:proto.RoomMessageStoryReply) + private static final net.iGap.proto.ProtoGlobal.RoomMessageStoryReply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageStoryReply(); + } - caption_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getDefaultInstance() { + return DEFAULT_INSTANCE; } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageStoryReply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageStoryReply(input, extensionRegistry); + } + }; - // @@protoc_insertion_point(class_scope:proto.RoomMessageStoryReply) - private static final net.iGap.proto.ProtoGlobal.RoomMessageStoryReply DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new RoomMessageStoryReply(); - DEFAULT_INSTANCE.makeImmutable(); + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getDefaultInstance() { - return DEFAULT_INSTANCE; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface RoomMessageStoryForwardOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageStoryForward) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ long getStoryId(); } /** * Protobuf type {@code proto.RoomMessageStoryForward} */ - public static final class RoomMessageStoryForward extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageStoryForward, RoomMessageStoryForward.Builder> implements + public static final class RoomMessageStoryForward extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageStoryForward) RoomMessageStoryForwardOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageStoryForward.newBuilder() to construct. + private RoomMessageStoryForward(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageStoryForward() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageStoryForward(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageStoryForward( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + storyId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryForward_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryForward_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.class, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder.class); + } + public static final int STORY_ID_FIELD_NUMBER = 1; private long storyId_; /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { return storyId_; } - /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; - */ - private void setStoryId(long value) { - - storyId_ = value; - } - /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; - */ - private void clearStoryId() { - - storyId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (storyId_ != 0L) { output.writeUInt64(1, storyId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -11654,332 +16915,657 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, storyId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageStoryForward)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward other = (net.iGap.proto.ProtoGlobal.RoomMessageStoryForward) obj; + + if (getStoryId() + != other.getStoryId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStoryId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageStoryForward} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageStoryForward) net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryForward_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryForward_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.class, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + storyId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageStoryForward_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward build() { + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward result = new net.iGap.proto.ProtoGlobal.RoomMessageStoryForward(this); + result.storyId_ = storyId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageStoryForward) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageStoryForward)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance()) return this; + if (other.getStoryId() != 0L) { + setStoryId(other.getStoryId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageStoryForward) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long storyId_ ; /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { - return instance.getStoryId(); + return storyId_; } /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @param value The storyId to set. + * @return This builder for chaining. */ public Builder setStoryId(long value) { - copyOnWrite(); - instance.setStoryId(value); + + storyId_ = value; + onChanged(); return this; } /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearStoryId() { - copyOnWrite(); - instance.clearStoryId(); + + storyId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageStoryForward) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageStoryForward(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward other = (net.iGap.proto.ProtoGlobal.RoomMessageStoryForward) arg1; - storyId_ = visitor.visitLong(storyId_ != 0L, storyId_, - other.storyId_ != 0L, other.storyId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - storyId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.RoomMessageStoryForward) + } + // @@protoc_insertion_point(class_scope:proto.RoomMessageStoryForward) private static final net.iGap.proto.ProtoGlobal.RoomMessageStoryForward DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageStoryForward(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageStoryForward(); } public static net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageStoryForward parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageStoryForward(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface StoryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Story) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ long getId(); /** - * optional string file_token = 2; + * string file_token = 2; + * @return The fileToken. */ java.lang.String getFileToken(); /** - * optional string file_token = 2; + * string file_token = 2; + * @return The bytes for fileToken. */ com.google.protobuf.ByteString getFileTokenBytes(); /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; + * @return Whether the fileDetails field is set. */ boolean hasFileDetails(); /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; + * @return The fileDetails. */ net.iGap.proto.ProtoGlobal.File getFileDetails(); + /** + * .proto.File file_details = 3; + */ + net.iGap.proto.ProtoGlobal.FileOrBuilder getFileDetailsOrBuilder(); /** - * optional .proto.Story.Type type = 4; + * .proto.Story.Type type = 4; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.Story.Type type = 4; + * .proto.Story.Type type = 4; + * @return The type. */ net.iGap.proto.ProtoGlobal.Story.Type getType(); /** - * optional uint64 user_id = 5 [jstype = JS_STRING]; + * uint64 user_id = 5 [jstype = JS_STRING]; + * @return The userId. */ long getUserId(); /** - * optional uint64 room_id = 6 [jstype = JS_STRING]; + * uint64 room_id = 6 [jstype = JS_STRING]; + * @return The roomId. */ long getRoomId(); /** - * optional string caption = 7; + * string caption = 7; + * @return The caption. */ java.lang.String getCaption(); /** - * optional string caption = 7; + * string caption = 7; + * @return The bytes for caption. */ com.google.protobuf.ByteString getCaptionBytes(); /** - * optional string link = 8; + * string link = 8; + * @return The link. */ java.lang.String getLink(); /** - * optional string link = 8; + * string link = 8; + * @return The bytes for link. */ com.google.protobuf.ByteString getLinkBytes(); /** - * optional uint32 created_at = 9; + * uint32 created_at = 9; + * @return The createdAt. */ int getCreatedAt(); /** - * optional uint32 end_at = 10; + * uint32 end_at = 10; + * @return The endAt. */ int getEndAt(); /** - * optional bool seen = 11; + * bool seen = 11; + * @return The seen. */ boolean getSeen(); /** - * optional bool duplicated = 12; + * bool duplicated = 12; + * @return The duplicated. */ boolean getDuplicated(); /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @return The enum numeric value on the wire for originator. */ int getOriginatorValue(); /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @return The originator. */ net.iGap.proto.ProtoGlobal.Originator getOriginator(); /** - * optional uint32 views = 14; + * uint32 views = 14; + * @return The views. */ int getViews(); } /** * Protobuf type {@code proto.Story} */ - public static final class Story extends - com.google.protobuf.GeneratedMessageLite< - Story, Story.Builder> implements + public static final class Story extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Story) StoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Story.newBuilder() to construct. + private Story(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Story() { fileToken_ = ""; + type_ = 0; caption_ = ""; link_ = ""; + originator_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Story(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Story( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + fileToken_ = s; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; + if (fileDetails_ != null) { + subBuilder = fileDetails_.toBuilder(); + } + fileDetails_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fileDetails_); + fileDetails_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 40: { + + userId_ = input.readUInt64(); + break; + } + case 48: { + + roomId_ = input.readUInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + caption_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + link_ = s; + break; + } + case 72: { + + createdAt_ = input.readUInt32(); + break; + } + case 80: { + + endAt_ = input.readUInt32(); + break; + } + case 88: { + + seen_ = input.readBool(); + break; + } + case 96: { + + duplicated_ = input.readBool(); + break; + } + case 104: { + int rawValue = input.readEnum(); + + originator_ = rawValue; + break; + } + case 112: { + + views_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Story_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Story_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Story.class, net.iGap.proto.ProtoGlobal.Story.Builder.class); + } + /** * Protobuf enum {@code proto.Story.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * STORY = 0; */ @@ -12002,10 +17588,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -12013,6 +17605,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return STORY; @@ -12033,6 +17629,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.Story.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -12045,462 +17672,288 @@ private Type(int value) { public static final int ID_FIELD_NUMBER = 1; private long id_; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void clearId() { - - id_ = 0L; - } public static final int FILE_TOKEN_FIELD_NUMBER = 2; - private java.lang.String fileToken_; + private volatile java.lang.Object fileToken_; /** - * optional string file_token = 2; + * string file_token = 2; + * @return The fileToken. */ + @java.lang.Override public java.lang.String getFileToken() { - return fileToken_; + java.lang.Object ref = fileToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileToken_ = s; + return s; + } } /** - * optional string file_token = 2; + * string file_token = 2; + * @return The bytes for fileToken. */ + @java.lang.Override public com.google.protobuf.ByteString getFileTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(fileToken_); - } - /** - * optional string file_token = 2; - */ - private void setFileToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fileToken_ = value; - } - /** - * optional string file_token = 2; - */ - private void clearFileToken() { - - fileToken_ = getDefaultInstance().getFileToken(); - } - /** - * optional string file_token = 2; - */ - private void setFileTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fileToken_ = value.toStringUtf8(); + java.lang.Object ref = fileToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FILE_DETAILS_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.File fileDetails_; /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; + * @return Whether the fileDetails field is set. */ + @java.lang.Override public boolean hasFileDetails() { return fileDetails_ != null; } /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; + * @return The fileDetails. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.File getFileDetails() { return fileDetails_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : fileDetails_; } /** - * optional .proto.File file_details = 3; - */ - private void setFileDetails(net.iGap.proto.ProtoGlobal.File value) { - if (value == null) { - throw new NullPointerException(); - } - fileDetails_ = value; - - } - /** - * optional .proto.File file_details = 3; - */ - private void setFileDetails( - net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - fileDetails_ = builderForValue.build(); - - } - /** - * optional .proto.File file_details = 3; - */ - private void mergeFileDetails(net.iGap.proto.ProtoGlobal.File value) { - if (fileDetails_ != null && - fileDetails_ != net.iGap.proto.ProtoGlobal.File.getDefaultInstance()) { - fileDetails_ = - net.iGap.proto.ProtoGlobal.File.newBuilder(fileDetails_).mergeFrom(value).buildPartial(); - } else { - fileDetails_ = value; - } - - } - /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; */ - private void clearFileDetails() { fileDetails_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileDetailsOrBuilder() { + return getFileDetails(); } public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** - * optional .proto.Story.Type type = 4; + * .proto.Story.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.Story.Type type = 4; + * .proto.Story.Type type = 4; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.Story.Type getType() { - net.iGap.proto.ProtoGlobal.Story.Type result = net.iGap.proto.ProtoGlobal.Story.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Story.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Story.Type result = net.iGap.proto.ProtoGlobal.Story.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.Story.Type.UNRECOGNIZED : result; } - /** - * optional .proto.Story.Type type = 4; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.Story.Type type = 4; - */ - private void setType(net.iGap.proto.ProtoGlobal.Story.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.Story.Type type = 4; - */ - private void clearType() { - - type_ = 0; - } public static final int USER_ID_FIELD_NUMBER = 5; private long userId_; /** - * optional uint64 user_id = 5 [jstype = JS_STRING]; + * uint64 user_id = 5 [jstype = JS_STRING]; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 5 [jstype = JS_STRING]; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 5 [jstype = JS_STRING]; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 6; private long roomId_; /** - * optional uint64 room_id = 6 [jstype = JS_STRING]; + * uint64 room_id = 6 [jstype = JS_STRING]; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 6 [jstype = JS_STRING]; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 6 [jstype = JS_STRING]; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int CAPTION_FIELD_NUMBER = 7; - private java.lang.String caption_; + private volatile java.lang.Object caption_; /** - * optional string caption = 7; + * string caption = 7; + * @return The caption. */ + @java.lang.Override public java.lang.String getCaption() { - return caption_; + java.lang.Object ref = caption_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caption_ = s; + return s; + } } /** - * optional string caption = 7; + * string caption = 7; + * @return The bytes for caption. */ + @java.lang.Override public com.google.protobuf.ByteString getCaptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(caption_); - } - /** - * optional string caption = 7; - */ - private void setCaption( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caption_ = value; - } - /** - * optional string caption = 7; - */ - private void clearCaption() { - - caption_ = getDefaultInstance().getCaption(); - } - /** - * optional string caption = 7; - */ - private void setCaptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caption_ = value.toStringUtf8(); + java.lang.Object ref = caption_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LINK_FIELD_NUMBER = 8; - private java.lang.String link_; + private volatile java.lang.Object link_; /** - * optional string link = 8; + * string link = 8; + * @return The link. */ + @java.lang.Override public java.lang.String getLink() { - return link_; + java.lang.Object ref = link_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + link_ = s; + return s; + } } /** - * optional string link = 8; + * string link = 8; + * @return The bytes for link. */ + @java.lang.Override public com.google.protobuf.ByteString getLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(link_); - } - /** - * optional string link = 8; - */ - private void setLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - link_ = value; - } - /** - * optional string link = 8; - */ - private void clearLink() { - - link_ = getDefaultInstance().getLink(); - } - /** - * optional string link = 8; - */ - private void setLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - link_ = value.toStringUtf8(); + java.lang.Object ref = link_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + link_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CREATED_AT_FIELD_NUMBER = 9; private int createdAt_; /** - * optional uint32 created_at = 9; + * uint32 created_at = 9; + * @return The createdAt. */ + @java.lang.Override public int getCreatedAt() { return createdAt_; } - /** - * optional uint32 created_at = 9; - */ - private void setCreatedAt(int value) { - - createdAt_ = value; - } - /** - * optional uint32 created_at = 9; - */ - private void clearCreatedAt() { - - createdAt_ = 0; - } public static final int END_AT_FIELD_NUMBER = 10; private int endAt_; /** - * optional uint32 end_at = 10; + * uint32 end_at = 10; + * @return The endAt. */ + @java.lang.Override public int getEndAt() { return endAt_; } - /** - * optional uint32 end_at = 10; - */ - private void setEndAt(int value) { - - endAt_ = value; - } - /** - * optional uint32 end_at = 10; - */ - private void clearEndAt() { - - endAt_ = 0; - } public static final int SEEN_FIELD_NUMBER = 11; private boolean seen_; /** - * optional bool seen = 11; + * bool seen = 11; + * @return The seen. */ + @java.lang.Override public boolean getSeen() { return seen_; } - /** - * optional bool seen = 11; - */ - private void setSeen(boolean value) { - - seen_ = value; - } - /** - * optional bool seen = 11; - */ - private void clearSeen() { - - seen_ = false; - } public static final int DUPLICATED_FIELD_NUMBER = 12; private boolean duplicated_; /** - * optional bool duplicated = 12; + * bool duplicated = 12; + * @return The duplicated. */ + @java.lang.Override public boolean getDuplicated() { return duplicated_; } - /** - * optional bool duplicated = 12; - */ - private void setDuplicated(boolean value) { - - duplicated_ = value; - } - /** - * optional bool duplicated = 12; - */ - private void clearDuplicated() { - - duplicated_ = false; - } public static final int ORIGINATOR_FIELD_NUMBER = 13; private int originator_; /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @return The enum numeric value on the wire for originator. */ - public int getOriginatorValue() { + @java.lang.Override public int getOriginatorValue() { return originator_; } /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @return The originator. */ - public net.iGap.proto.ProtoGlobal.Originator getOriginator() { - net.iGap.proto.ProtoGlobal.Originator result = net.iGap.proto.ProtoGlobal.Originator.forNumber(originator_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Originator getOriginator() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Originator result = net.iGap.proto.ProtoGlobal.Originator.valueOf(originator_); return result == null ? net.iGap.proto.ProtoGlobal.Originator.UNRECOGNIZED : result; } - /** - * optional .proto.Originator originator = 13; - */ - private void setOriginatorValue(int value) { - originator_ = value; - } - /** - * optional .proto.Originator originator = 13; - */ - private void setOriginator(net.iGap.proto.ProtoGlobal.Originator value) { - if (value == null) { - throw new NullPointerException(); - } - - originator_ = value.getNumber(); - } - /** - * optional .proto.Originator originator = 13; - */ - private void clearOriginator() { - - originator_ = 0; - } public static final int VIEWS_FIELD_NUMBER = 14; private int views_; /** - * optional uint32 views = 14; + * uint32 views = 14; + * @return The views. */ + @java.lang.Override public int getViews() { return views_; } - /** - * optional uint32 views = 14; - */ - private void setViews(int value) { - - views_ = value; - } - /** - * optional uint32 views = 14; - */ - private void clearViews() { - - views_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { output.writeUInt64(1, id_); } - if (!fileToken_.isEmpty()) { - output.writeString(2, getFileToken()); + if (!getFileTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileToken_); } if (fileDetails_ != null) { output.writeMessage(3, getFileDetails()); @@ -12514,11 +17967,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(6, roomId_); } - if (!caption_.isEmpty()) { - output.writeString(7, getCaption()); + if (!getCaptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, caption_); } - if (!link_.isEmpty()) { - output.writeString(8, getLink()); + if (!getLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, link_); } if (createdAt_ != 0) { output.writeUInt32(9, createdAt_); @@ -12538,10 +17991,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (views_ != 0) { output.writeUInt32(14, views_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -12549,9 +18004,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, id_); } - if (!fileToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getFileToken()); + if (!getFileTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileToken_); } if (fileDetails_ != null) { size += com.google.protobuf.CodedOutputStream @@ -12569,13 +18023,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, roomId_); } - if (!caption_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getCaption()); + if (!getCaptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, caption_); } - if (!link_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getLink()); + if (!getLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, link_); } if (createdAt_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -12601,869 +18053,1374 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(14, views_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Story)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Story other = (net.iGap.proto.ProtoGlobal.Story) obj; + + if (getId() + != other.getId()) return false; + if (!getFileToken() + .equals(other.getFileToken())) return false; + if (hasFileDetails() != other.hasFileDetails()) return false; + if (hasFileDetails()) { + if (!getFileDetails() + .equals(other.getFileDetails())) return false; + } + if (type_ != other.type_) return false; + if (getUserId() + != other.getUserId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!getCaption() + .equals(other.getCaption())) return false; + if (!getLink() + .equals(other.getLink())) return false; + if (getCreatedAt() + != other.getCreatedAt()) return false; + if (getEndAt() + != other.getEndAt()) return false; + if (getSeen() + != other.getSeen()) return false; + if (getDuplicated() + != other.getDuplicated()) return false; + if (originator_ != other.originator_) return false; + if (getViews() + != other.getViews()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + FILE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getFileToken().hashCode(); + if (hasFileDetails()) { + hash = (37 * hash) + FILE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getFileDetails().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + CAPTION_FIELD_NUMBER; + hash = (53 * hash) + getCaption().hashCode(); + hash = (37 * hash) + LINK_FIELD_NUMBER; + hash = (53 * hash) + getLink().hashCode(); + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt(); + hash = (37 * hash) + END_AT_FIELD_NUMBER; + hash = (53 * hash) + getEndAt(); + hash = (37 * hash) + SEEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSeen()); + hash = (37 * hash) + DUPLICATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDuplicated()); + hash = (37 * hash) + ORIGINATOR_FIELD_NUMBER; + hash = (53 * hash) + originator_; + hash = (37 * hash) + VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getViews(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Story parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Story parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Story parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Story parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Story parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Story parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Story parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Story parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Story parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Story parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Story parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Story parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Story prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Story} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Story, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Story) net.iGap.proto.ProtoGlobal.StoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Story_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Story_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Story.class, net.iGap.proto.ProtoGlobal.Story.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Story.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + fileToken_ = ""; + + if (fileDetailsBuilder_ == null) { + fileDetails_ = null; + } else { + fileDetails_ = null; + fileDetailsBuilder_ = null; + } + type_ = 0; + + userId_ = 0L; + + roomId_ = 0L; + + caption_ = ""; + + link_ = ""; + + createdAt_ = 0; + + endAt_ = 0; + + seen_ = false; + + duplicated_ = false; + + originator_ = 0; + + views_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Story_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Story getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Story.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Story build() { + net.iGap.proto.ProtoGlobal.Story result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Story buildPartial() { + net.iGap.proto.ProtoGlobal.Story result = new net.iGap.proto.ProtoGlobal.Story(this); + result.id_ = id_; + result.fileToken_ = fileToken_; + if (fileDetailsBuilder_ == null) { + result.fileDetails_ = fileDetails_; + } else { + result.fileDetails_ = fileDetailsBuilder_.build(); + } + result.type_ = type_; + result.userId_ = userId_; + result.roomId_ = roomId_; + result.caption_ = caption_; + result.link_ = link_; + result.createdAt_ = createdAt_; + result.endAt_ = endAt_; + result.seen_ = seen_; + result.duplicated_ = duplicated_; + result.originator_ = originator_; + result.views_ = views_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Story) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Story)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Story other) { + if (other == net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getFileToken().isEmpty()) { + fileToken_ = other.fileToken_; + onChanged(); + } + if (other.hasFileDetails()) { + mergeFileDetails(other.getFileDetails()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getCaption().isEmpty()) { + caption_ = other.caption_; + onChanged(); + } + if (!other.getLink().isEmpty()) { + link_ = other.link_; + onChanged(); + } + if (other.getCreatedAt() != 0) { + setCreatedAt(other.getCreatedAt()); + } + if (other.getEndAt() != 0) { + setEndAt(other.getEndAt()); + } + if (other.getSeen() != false) { + setSeen(other.getSeen()); + } + if (other.getDuplicated() != false) { + setDuplicated(other.getDuplicated()); + } + if (other.originator_ != 0) { + setOriginatorValue(other.getOriginatorValue()); + } + if (other.getViews() != 0) { + setViews(other.getViews()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Story parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Story) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long id_ ; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private java.lang.Object fileToken_ = ""; /** - * optional string file_token = 2; + * string file_token = 2; + * @return The fileToken. */ public java.lang.String getFileToken() { - return instance.getFileToken(); + java.lang.Object ref = fileToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string file_token = 2; + * string file_token = 2; + * @return The bytes for fileToken. */ public com.google.protobuf.ByteString getFileTokenBytes() { - return instance.getFileTokenBytes(); + java.lang.Object ref = fileToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string file_token = 2; + * string file_token = 2; + * @param value The fileToken to set. + * @return This builder for chaining. */ public Builder setFileToken( java.lang.String value) { - copyOnWrite(); - instance.setFileToken(value); + if (value == null) { + throw new NullPointerException(); + } + + fileToken_ = value; + onChanged(); return this; } /** - * optional string file_token = 2; + * string file_token = 2; + * @return This builder for chaining. */ public Builder clearFileToken() { - copyOnWrite(); - instance.clearFileToken(); + + fileToken_ = getDefaultInstance().getFileToken(); + onChanged(); return this; } /** - * optional string file_token = 2; + * string file_token = 2; + * @param value The bytes for fileToken to set. + * @return This builder for chaining. */ public Builder setFileTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFileTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fileToken_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.File fileDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> fileDetailsBuilder_; /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; + * @return Whether the fileDetails field is set. */ public boolean hasFileDetails() { - return instance.hasFileDetails(); + return fileDetailsBuilder_ != null || fileDetails_ != null; } /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; + * @return The fileDetails. */ public net.iGap.proto.ProtoGlobal.File getFileDetails() { - return instance.getFileDetails(); + if (fileDetailsBuilder_ == null) { + return fileDetails_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : fileDetails_; + } else { + return fileDetailsBuilder_.getMessage(); + } } /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; */ public Builder setFileDetails(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.setFileDetails(value); - return this; + if (fileDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileDetails_ = value; + onChanged(); + } else { + fileDetailsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; */ public Builder setFileDetails( net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - copyOnWrite(); - instance.setFileDetails(builderForValue); + if (fileDetailsBuilder_ == null) { + fileDetails_ = builderForValue.build(); + onChanged(); + } else { + fileDetailsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; */ public Builder mergeFileDetails(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.mergeFileDetails(value); + if (fileDetailsBuilder_ == null) { + if (fileDetails_ != null) { + fileDetails_ = + net.iGap.proto.ProtoGlobal.File.newBuilder(fileDetails_).mergeFrom(value).buildPartial(); + } else { + fileDetails_ = value; + } + onChanged(); + } else { + fileDetailsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.File file_details = 3; + * .proto.File file_details = 3; */ - public Builder clearFileDetails() { copyOnWrite(); - instance.clearFileDetails(); + public Builder clearFileDetails() { + if (fileDetailsBuilder_ == null) { + fileDetails_ = null; + onChanged(); + } else { + fileDetails_ = null; + fileDetailsBuilder_ = null; + } + return this; } - /** - * optional .proto.Story.Type type = 4; + * .proto.File file_details = 3; */ - public int getTypeValue() { - return instance.getTypeValue(); + public net.iGap.proto.ProtoGlobal.File.Builder getFileDetailsBuilder() { + + onChanged(); + return getFileDetailsFieldBuilder().getBuilder(); } /** - * optional .proto.Story.Type type = 4; + * .proto.File file_details = 3; */ - public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); - return this; + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileDetailsOrBuilder() { + if (fileDetailsBuilder_ != null) { + return fileDetailsBuilder_.getMessageOrBuilder(); + } else { + return fileDetails_ == null ? + net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : fileDetails_; + } } /** - * optional .proto.Story.Type type = 4; + * .proto.File file_details = 3; */ - public net.iGap.proto.ProtoGlobal.Story.Type getType() { - return instance.getType(); + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> + getFileDetailsFieldBuilder() { + if (fileDetailsBuilder_ == null) { + fileDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder>( + getFileDetails(), + getParentForChildren(), + isClean()); + fileDetails_ = null; + } + return fileDetailsBuilder_; } + + private int type_ = 0; /** - * optional .proto.Story.Type type = 4; + * .proto.Story.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public Builder setType(net.iGap.proto.ProtoGlobal.Story.Type value) { - copyOnWrite(); - instance.setType(value); - return this; + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.Story.Type type = 4; + * .proto.Story.Type type = 4; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ - public Builder clearType() { - copyOnWrite(); - instance.clearType(); + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); return this; } - /** - * optional uint64 user_id = 5 [jstype = JS_STRING]; + * .proto.Story.Type type = 4; + * @return The type. */ + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Story.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Story.Type result = net.iGap.proto.ProtoGlobal.Story.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.Story.Type.UNRECOGNIZED : result; + } + /** + * .proto.Story.Type type = 4; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(net.iGap.proto.ProtoGlobal.Story.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .proto.Story.Type type = 4; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private long userId_ ; + /** + * uint64 user_id = 5 [jstype = JS_STRING]; + * @return The userId. + */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 5 [jstype = JS_STRING]; + * uint64 user_id = 5 [jstype = JS_STRING]; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 5 [jstype = JS_STRING]; + * uint64 user_id = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 6 [jstype = JS_STRING]; + * uint64 room_id = 6 [jstype = JS_STRING]; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 6 [jstype = JS_STRING]; + * uint64 room_id = 6 [jstype = JS_STRING]; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 6 [jstype = JS_STRING]; + * uint64 room_id = 6 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object caption_ = ""; /** - * optional string caption = 7; + * string caption = 7; + * @return The caption. */ public java.lang.String getCaption() { - return instance.getCaption(); + java.lang.Object ref = caption_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caption_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string caption = 7; + * string caption = 7; + * @return The bytes for caption. */ public com.google.protobuf.ByteString getCaptionBytes() { - return instance.getCaptionBytes(); + java.lang.Object ref = caption_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string caption = 7; + * string caption = 7; + * @param value The caption to set. + * @return This builder for chaining. */ public Builder setCaption( java.lang.String value) { - copyOnWrite(); - instance.setCaption(value); + if (value == null) { + throw new NullPointerException(); + } + + caption_ = value; + onChanged(); return this; } /** - * optional string caption = 7; + * string caption = 7; + * @return This builder for chaining. */ public Builder clearCaption() { - copyOnWrite(); - instance.clearCaption(); + + caption_ = getDefaultInstance().getCaption(); + onChanged(); return this; } /** - * optional string caption = 7; + * string caption = 7; + * @param value The bytes for caption to set. + * @return This builder for chaining. */ public Builder setCaptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCaptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caption_ = value; + onChanged(); return this; } + private java.lang.Object link_ = ""; /** - * optional string link = 8; + * string link = 8; + * @return The link. */ public java.lang.String getLink() { - return instance.getLink(); + java.lang.Object ref = link_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + link_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string link = 8; + * string link = 8; + * @return The bytes for link. */ public com.google.protobuf.ByteString getLinkBytes() { - return instance.getLinkBytes(); + java.lang.Object ref = link_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + link_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string link = 8; + * string link = 8; + * @param value The link to set. + * @return This builder for chaining. */ public Builder setLink( java.lang.String value) { - copyOnWrite(); - instance.setLink(value); + if (value == null) { + throw new NullPointerException(); + } + + link_ = value; + onChanged(); return this; } /** - * optional string link = 8; + * string link = 8; + * @return This builder for chaining. */ public Builder clearLink() { - copyOnWrite(); - instance.clearLink(); + + link_ = getDefaultInstance().getLink(); + onChanged(); return this; } /** - * optional string link = 8; + * string link = 8; + * @param value The bytes for link to set. + * @return This builder for chaining. */ public Builder setLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + link_ = value; + onChanged(); return this; } + private int createdAt_ ; /** - * optional uint32 created_at = 9; + * uint32 created_at = 9; + * @return The createdAt. */ + @java.lang.Override public int getCreatedAt() { - return instance.getCreatedAt(); + return createdAt_; } /** - * optional uint32 created_at = 9; + * uint32 created_at = 9; + * @param value The createdAt to set. + * @return This builder for chaining. */ public Builder setCreatedAt(int value) { - copyOnWrite(); - instance.setCreatedAt(value); + + createdAt_ = value; + onChanged(); return this; } /** - * optional uint32 created_at = 9; + * uint32 created_at = 9; + * @return This builder for chaining. */ public Builder clearCreatedAt() { - copyOnWrite(); - instance.clearCreatedAt(); + + createdAt_ = 0; + onChanged(); return this; } + private int endAt_ ; /** - * optional uint32 end_at = 10; + * uint32 end_at = 10; + * @return The endAt. */ + @java.lang.Override public int getEndAt() { - return instance.getEndAt(); + return endAt_; } /** - * optional uint32 end_at = 10; + * uint32 end_at = 10; + * @param value The endAt to set. + * @return This builder for chaining. */ public Builder setEndAt(int value) { - copyOnWrite(); - instance.setEndAt(value); + + endAt_ = value; + onChanged(); return this; } /** - * optional uint32 end_at = 10; + * uint32 end_at = 10; + * @return This builder for chaining. */ public Builder clearEndAt() { - copyOnWrite(); - instance.clearEndAt(); + + endAt_ = 0; + onChanged(); return this; } + private boolean seen_ ; /** - * optional bool seen = 11; + * bool seen = 11; + * @return The seen. */ + @java.lang.Override public boolean getSeen() { - return instance.getSeen(); + return seen_; } /** - * optional bool seen = 11; + * bool seen = 11; + * @param value The seen to set. + * @return This builder for chaining. */ public Builder setSeen(boolean value) { - copyOnWrite(); - instance.setSeen(value); + + seen_ = value; + onChanged(); return this; } /** - * optional bool seen = 11; + * bool seen = 11; + * @return This builder for chaining. */ public Builder clearSeen() { - copyOnWrite(); - instance.clearSeen(); + + seen_ = false; + onChanged(); return this; } + private boolean duplicated_ ; /** - * optional bool duplicated = 12; + * bool duplicated = 12; + * @return The duplicated. */ + @java.lang.Override public boolean getDuplicated() { - return instance.getDuplicated(); + return duplicated_; } /** - * optional bool duplicated = 12; + * bool duplicated = 12; + * @param value The duplicated to set. + * @return This builder for chaining. */ public Builder setDuplicated(boolean value) { - copyOnWrite(); - instance.setDuplicated(value); + + duplicated_ = value; + onChanged(); return this; } /** - * optional bool duplicated = 12; + * bool duplicated = 12; + * @return This builder for chaining. */ public Builder clearDuplicated() { - copyOnWrite(); - instance.clearDuplicated(); + + duplicated_ = false; + onChanged(); return this; } + private int originator_ = 0; /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @return The enum numeric value on the wire for originator. */ - public int getOriginatorValue() { - return instance.getOriginatorValue(); + @java.lang.Override public int getOriginatorValue() { + return originator_; } /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @param value The enum numeric value on the wire for originator to set. + * @return This builder for chaining. */ public Builder setOriginatorValue(int value) { - copyOnWrite(); - instance.setOriginatorValue(value); + + originator_ = value; + onChanged(); return this; } /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @return The originator. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Originator getOriginator() { - return instance.getOriginator(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Originator result = net.iGap.proto.ProtoGlobal.Originator.valueOf(originator_); + return result == null ? net.iGap.proto.ProtoGlobal.Originator.UNRECOGNIZED : result; } /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @param value The originator to set. + * @return This builder for chaining. */ public Builder setOriginator(net.iGap.proto.ProtoGlobal.Originator value) { - copyOnWrite(); - instance.setOriginator(value); + if (value == null) { + throw new NullPointerException(); + } + + originator_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Originator originator = 13; + * .proto.Originator originator = 13; + * @return This builder for chaining. */ public Builder clearOriginator() { - copyOnWrite(); - instance.clearOriginator(); + + originator_ = 0; + onChanged(); return this; } + private int views_ ; /** - * optional uint32 views = 14; + * uint32 views = 14; + * @return The views. */ + @java.lang.Override public int getViews() { - return instance.getViews(); + return views_; } /** - * optional uint32 views = 14; + * uint32 views = 14; + * @param value The views to set. + * @return This builder for chaining. */ public Builder setViews(int value) { - copyOnWrite(); - instance.setViews(value); + + views_ = value; + onChanged(); return this; } /** - * optional uint32 views = 14; + * uint32 views = 14; + * @return This builder for chaining. */ public Builder clearViews() { - copyOnWrite(); - instance.clearViews(); + + views_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Story) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Story(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Story other = (net.iGap.proto.ProtoGlobal.Story) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - fileToken_ = visitor.visitString(!fileToken_.isEmpty(), fileToken_, - !other.fileToken_.isEmpty(), other.fileToken_); - fileDetails_ = visitor.visitMessage(fileDetails_, other.fileDetails_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - caption_ = visitor.visitString(!caption_.isEmpty(), caption_, - !other.caption_.isEmpty(), other.caption_); - link_ = visitor.visitString(!link_.isEmpty(), link_, - !other.link_.isEmpty(), other.link_); - createdAt_ = visitor.visitInt(createdAt_ != 0, createdAt_, - other.createdAt_ != 0, other.createdAt_); - endAt_ = visitor.visitInt(endAt_ != 0, endAt_, - other.endAt_ != 0, other.endAt_); - seen_ = visitor.visitBoolean(seen_ != false, seen_, - other.seen_ != false, other.seen_); - duplicated_ = visitor.visitBoolean(duplicated_ != false, duplicated_, - other.duplicated_ != false, other.duplicated_); - originator_ = visitor.visitInt(originator_ != 0, originator_, other.originator_ != 0, other.originator_); - views_ = visitor.visitInt(views_ != 0, views_, - other.views_ != 0, other.views_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - fileToken_ = s; - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; - if (fileDetails_ != null) { - subBuilder = fileDetails_.toBuilder(); - } - fileDetails_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fileDetails_); - fileDetails_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 40: { - - userId_ = input.readUInt64(); - break; - } - case 48: { - - roomId_ = input.readUInt64(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - caption_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - link_ = s; - break; - } - case 72: { - - createdAt_ = input.readUInt32(); - break; - } - case 80: { - - endAt_ = input.readUInt32(); - break; - } - case 88: { - - seen_ = input.readBool(); - break; - } - case 96: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - duplicated_ = input.readBool(); - break; - } - case 104: { - int rawValue = input.readEnum(); - originator_ = rawValue; - break; - } - case 112: { - - views_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Story.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.Story) } - // @@protoc_insertion_point(class_scope:proto.Story) private static final net.iGap.proto.ProtoGlobal.Story DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Story(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Story(); } public static net.iGap.proto.ProtoGlobal.Story getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Story parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Story(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Story getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RegisteredUserOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RegisteredUser) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ long getId(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 phone = 3 [jstype = JS_STRING]; + * uint64 phone = 3 [jstype = JS_STRING]; + * @return The phone. */ long getPhone(); /** - * optional string first_name = 4; + * string first_name = 4; + * @return The firstName. */ java.lang.String getFirstName(); /** - * optional string first_name = 4; + * string first_name = 4; + * @return The bytes for firstName. */ com.google.protobuf.ByteString getFirstNameBytes(); /** - * optional string last_name = 5; + * string last_name = 5; + * @return The lastName. */ java.lang.String getLastName(); /** - * optional string last_name = 5; + * string last_name = 5; + * @return The bytes for lastName. */ com.google.protobuf.ByteString getLastNameBytes(); /** - * optional string display_name = 6; + * string display_name = 6; + * @return The displayName. */ java.lang.String getDisplayName(); /** - * optional string display_name = 6; + * string display_name = 6; + * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); /** - * optional string initials = 7; + * string initials = 7; + * @return The initials. */ java.lang.String getInitials(); /** - * optional string initials = 7; + * string initials = 7; + * @return The bytes for initials. */ com.google.protobuf.ByteString getInitialsBytes(); /** - * optional string color = 8; + * string color = 8; + * @return The color. */ java.lang.String getColor(); /** - * optional string color = 8; + * string color = 8; + * @return The bytes for color. */ com.google.protobuf.ByteString getColorBytes(); /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @return The status. */ net.iGap.proto.ProtoGlobal.RegisteredUser.Status getStatus(); /** - * optional uint32 last_seen = 10; + * uint32 last_seen = 10; + * @return The lastSeen. */ int getLastSeen(); /** - * optional uint32 avatar_count = 11; + * uint32 avatar_count = 11; + * @return The avatarCount. */ int getAvatarCount(); /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; + * @return Whether the avatar field is set. */ boolean hasAvatar(); /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; + * @return The avatar. */ net.iGap.proto.ProtoGlobal.Avatar getAvatar(); + /** + * .proto.Avatar avatar = 12; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder(); /** - * optional bool mutual = 13; + * bool mutual = 13; + * @return The mutual. */ boolean getMutual(); /** - * optional bool deleted = 14; + * bool deleted = 14; + * @return The deleted. */ boolean getDeleted(); /** - * optional string cache_id = 15; + * string cache_id = 15; + * @return The cacheId. */ java.lang.String getCacheId(); /** - * optional string cache_id = 15; + * string cache_id = 15; + * @return The bytes for cacheId. */ com.google.protobuf.ByteString getCacheIdBytes(); /** - * optional string bio = 16; + * string bio = 16; + * @return The bio. */ java.lang.String getBio(); /** - * optional string bio = 16; + * string bio = 16; + * @return The bytes for bio. */ com.google.protobuf.ByteString getBioBytes(); /** - * optional bool verified = 17; + * bool verified = 17; + * @return The verified. */ boolean getVerified(); /** - * optional bool bot = 18; + * bool bot = 18; + * @return The bot. */ boolean getBot(); /** - * optional bool mxb_enable = 19; + * bool mxb_enable = 19; + * @return The mxbEnable. */ boolean getMxbEnable(); } /** * Protobuf type {@code proto.RegisteredUser} */ - public static final class RegisteredUser extends - com.google.protobuf.GeneratedMessageLite< - RegisteredUser, RegisteredUser.Builder> implements + public static final class RegisteredUser extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RegisteredUser) RegisteredUserOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegisteredUser.newBuilder() to construct. + private RegisteredUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RegisteredUser() { username_ = ""; firstName_ = ""; @@ -13471,14 +19428,190 @@ private RegisteredUser() { displayName_ = ""; initials_ = ""; color_ = ""; + status_ = 0; cacheId_ = ""; bio_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RegisteredUser(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RegisteredUser( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + phone_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + firstName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + lastName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + initials_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + color_ = s; + break; + } + case 72: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 80: { + + lastSeen_ = input.readUInt32(); + break; + } + case 88: { + + avatarCount_ = input.readUInt32(); + break; + } + case 98: { + net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; + if (avatar_ != null) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + + break; + } + case 104: { + + mutual_ = input.readBool(); + break; + } + case 112: { + + deleted_ = input.readBool(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + cacheId_ = s; + break; + } + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + + bio_ = s; + break; + } + case 136: { + + verified_ = input.readBool(); + break; + } + case 144: { + + bot_ = input.readBool(); + break; + } + case 152: { + + mxbEnable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RegisteredUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RegisteredUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RegisteredUser.class, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder.class); + } + /** * Protobuf enum {@code proto.RegisteredUser.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * LONG_TIME_AGO = 0; */ @@ -13549,10 +19682,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -13560,6 +19699,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return LONG_TIME_AGO; @@ -13586,6 +19729,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RegisteredUser.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -13598,694 +19772,488 @@ private Status(int value) { public static final int ID_FIELD_NUMBER = 1; private long id_; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void clearId() { - - id_ = 0L; - } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PHONE_FIELD_NUMBER = 3; private long phone_; /** - * optional uint64 phone = 3 [jstype = JS_STRING]; + * uint64 phone = 3 [jstype = JS_STRING]; + * @return The phone. */ + @java.lang.Override public long getPhone() { return phone_; } - /** - * optional uint64 phone = 3 [jstype = JS_STRING]; - */ - private void setPhone(long value) { - - phone_ = value; - } - /** - * optional uint64 phone = 3 [jstype = JS_STRING]; - */ - private void clearPhone() { - - phone_ = 0L; - } public static final int FIRST_NAME_FIELD_NUMBER = 4; - private java.lang.String firstName_; + private volatile java.lang.Object firstName_; /** - * optional string first_name = 4; + * string first_name = 4; + * @return The firstName. */ + @java.lang.Override public java.lang.String getFirstName() { - return firstName_; + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } } /** - * optional string first_name = 4; + * string first_name = 4; + * @return The bytes for firstName. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(firstName_); - } - /** - * optional string first_name = 4; - */ - private void setFirstName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firstName_ = value; - } - /** - * optional string first_name = 4; - */ - private void clearFirstName() { - - firstName_ = getDefaultInstance().getFirstName(); - } - /** - * optional string first_name = 4; - */ - private void setFirstNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firstName_ = value.toStringUtf8(); + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LAST_NAME_FIELD_NUMBER = 5; - private java.lang.String lastName_; + private volatile java.lang.Object lastName_; /** - * optional string last_name = 5; + * string last_name = 5; + * @return The lastName. */ + @java.lang.Override public java.lang.String getLastName() { - return lastName_; + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } } /** - * optional string last_name = 5; + * string last_name = 5; + * @return The bytes for lastName. */ + @java.lang.Override public com.google.protobuf.ByteString getLastNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(lastName_); - } - /** - * optional string last_name = 5; - */ - private void setLastName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastName_ = value; - } - /** - * optional string last_name = 5; - */ - private void clearLastName() { - - lastName_ = getDefaultInstance().getLastName(); - } - /** - * optional string last_name = 5; - */ - private void setLastNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastName_ = value.toStringUtf8(); + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; - private java.lang.String displayName_; + private volatile java.lang.Object displayName_; /** - * optional string display_name = 6; + * string display_name = 6; + * @return The displayName. */ + @java.lang.Override public java.lang.String getDisplayName() { - return displayName_; + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } } /** - * optional string display_name = 6; + * string display_name = 6; + * @return The bytes for displayName. */ + @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(displayName_); - } - /** - * optional string display_name = 6; - */ - private void setDisplayName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - } - /** - * optional string display_name = 6; - */ - private void clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - } - /** - * optional string display_name = 6; - */ - private void setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value.toStringUtf8(); + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INITIALS_FIELD_NUMBER = 7; - private java.lang.String initials_; + private volatile java.lang.Object initials_; /** - * optional string initials = 7; + * string initials = 7; + * @return The initials. */ + @java.lang.Override public java.lang.String getInitials() { - return initials_; + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } } /** - * optional string initials = 7; + * string initials = 7; + * @return The bytes for initials. */ + @java.lang.Override public com.google.protobuf.ByteString getInitialsBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(initials_); - } - /** - * optional string initials = 7; - */ - private void setInitials( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initials_ = value; - } - /** - * optional string initials = 7; - */ - private void clearInitials() { - - initials_ = getDefaultInstance().getInitials(); - } - /** - * optional string initials = 7; - */ - private void setInitialsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initials_ = value.toStringUtf8(); + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int COLOR_FIELD_NUMBER = 8; - private java.lang.String color_; + private volatile java.lang.Object color_; /** - * optional string color = 8; + * string color = 8; + * @return The color. */ + @java.lang.Override public java.lang.String getColor() { - return color_; + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } } /** - * optional string color = 8; + * string color = 8; + * @return The bytes for color. */ + @java.lang.Override public com.google.protobuf.ByteString getColorBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(color_); - } - /** - * optional string color = 8; - */ - private void setColor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - color_ = value; - } - /** - * optional string color = 8; - */ - private void clearColor() { - - color_ = getDefaultInstance().getColor(); - } - /** - * optional string color = 8; - */ - private void setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - color_ = value.toStringUtf8(); + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STATUS_FIELD_NUMBER = 9; private int status_; /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.RegisteredUser.Status getStatus() { - net.iGap.proto.ProtoGlobal.RegisteredUser.Status result = net.iGap.proto.ProtoGlobal.RegisteredUser.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RegisteredUser.Status result = net.iGap.proto.ProtoGlobal.RegisteredUser.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.Status.UNRECOGNIZED : result; } - /** - * optional .proto.RegisteredUser.Status status = 9; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.RegisteredUser.Status status = 9; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.RegisteredUser.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.RegisteredUser.Status status = 9; - */ - private void clearStatus() { - - status_ = 0; - } public static final int LAST_SEEN_FIELD_NUMBER = 10; private int lastSeen_; /** - * optional uint32 last_seen = 10; + * uint32 last_seen = 10; + * @return The lastSeen. */ + @java.lang.Override public int getLastSeen() { return lastSeen_; } - /** - * optional uint32 last_seen = 10; - */ - private void setLastSeen(int value) { - - lastSeen_ = value; - } - /** - * optional uint32 last_seen = 10; - */ - private void clearLastSeen() { - - lastSeen_ = 0; - } public static final int AVATAR_COUNT_FIELD_NUMBER = 11; private int avatarCount_; /** - * optional uint32 avatar_count = 11; + * uint32 avatar_count = 11; + * @return The avatarCount. */ + @java.lang.Override public int getAvatarCount() { return avatarCount_; } - /** - * optional uint32 avatar_count = 11; - */ - private void setAvatarCount(int value) { - - avatarCount_ = value; - } - /** - * optional uint32 avatar_count = 11; - */ - private void clearAvatarCount() { - - avatarCount_ = 0; - } public static final int AVATAR_FIELD_NUMBER = 12; private net.iGap.proto.ProtoGlobal.Avatar avatar_; /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; + * @return Whether the avatar field is set. */ + @java.lang.Override public boolean hasAvatar() { return avatar_ != null; } /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; + * @return The avatar. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; } /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; */ - private void setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - - } - /** - * optional .proto.Avatar avatar = 12; - */ - private void setAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - avatar_ = builderForValue.build(); - - } - /** - * optional .proto.Avatar avatar = 12; - */ - private void mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (avatar_ != null && - avatar_ != net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()) { - avatar_ = - net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - - } - /** - * optional .proto.Avatar avatar = 12; - */ - private void clearAvatar() { avatar_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + return getAvatar(); } public static final int MUTUAL_FIELD_NUMBER = 13; private boolean mutual_; /** - * optional bool mutual = 13; + * bool mutual = 13; + * @return The mutual. */ + @java.lang.Override public boolean getMutual() { return mutual_; } - /** - * optional bool mutual = 13; - */ - private void setMutual(boolean value) { - - mutual_ = value; - } - /** - * optional bool mutual = 13; - */ - private void clearMutual() { - - mutual_ = false; - } public static final int DELETED_FIELD_NUMBER = 14; private boolean deleted_; /** - * optional bool deleted = 14; + * bool deleted = 14; + * @return The deleted. */ + @java.lang.Override public boolean getDeleted() { return deleted_; } - /** - * optional bool deleted = 14; - */ - private void setDeleted(boolean value) { - - deleted_ = value; - } - /** - * optional bool deleted = 14; - */ - private void clearDeleted() { - - deleted_ = false; - } public static final int CACHE_ID_FIELD_NUMBER = 15; - private java.lang.String cacheId_; + private volatile java.lang.Object cacheId_; /** - * optional string cache_id = 15; + * string cache_id = 15; + * @return The cacheId. */ + @java.lang.Override public java.lang.String getCacheId() { - return cacheId_; + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } } /** - * optional string cache_id = 15; + * string cache_id = 15; + * @return The bytes for cacheId. */ + @java.lang.Override public com.google.protobuf.ByteString getCacheIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cacheId_); - } - /** - * optional string cache_id = 15; - */ - private void setCacheId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheId_ = value; - } - /** - * optional string cache_id = 15; - */ - private void clearCacheId() { - - cacheId_ = getDefaultInstance().getCacheId(); - } - /** - * optional string cache_id = 15; - */ - private void setCacheIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cacheId_ = value.toStringUtf8(); + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BIO_FIELD_NUMBER = 16; - private java.lang.String bio_; + private volatile java.lang.Object bio_; /** - * optional string bio = 16; + * string bio = 16; + * @return The bio. */ + @java.lang.Override public java.lang.String getBio() { - return bio_; + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } } /** - * optional string bio = 16; + * string bio = 16; + * @return The bytes for bio. */ + @java.lang.Override public com.google.protobuf.ByteString getBioBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(bio_); - } - /** - * optional string bio = 16; - */ - private void setBio( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bio_ = value; - } - /** - * optional string bio = 16; - */ - private void clearBio() { - - bio_ = getDefaultInstance().getBio(); - } - /** - * optional string bio = 16; - */ - private void setBioBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bio_ = value.toStringUtf8(); + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VERIFIED_FIELD_NUMBER = 17; private boolean verified_; /** - * optional bool verified = 17; + * bool verified = 17; + * @return The verified. */ + @java.lang.Override public boolean getVerified() { return verified_; } - /** - * optional bool verified = 17; - */ - private void setVerified(boolean value) { - - verified_ = value; - } - /** - * optional bool verified = 17; - */ - private void clearVerified() { - - verified_ = false; - } public static final int BOT_FIELD_NUMBER = 18; private boolean bot_; /** - * optional bool bot = 18; + * bool bot = 18; + * @return The bot. */ + @java.lang.Override public boolean getBot() { return bot_; } - /** - * optional bool bot = 18; - */ - private void setBot(boolean value) { - - bot_ = value; - } - /** - * optional bool bot = 18; - */ - private void clearBot() { - - bot_ = false; - } public static final int MXB_ENABLE_FIELD_NUMBER = 19; private boolean mxbEnable_; /** - * optional bool mxb_enable = 19; + * bool mxb_enable = 19; + * @return The mxbEnable. */ + @java.lang.Override public boolean getMxbEnable() { return mxbEnable_; } - /** - * optional bool mxb_enable = 19; - */ - private void setMxbEnable(boolean value) { - - mxbEnable_ = value; - } - /** - * optional bool mxb_enable = 19; - */ - private void clearMxbEnable() { - - mxbEnable_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { output.writeUInt64(1, id_); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (phone_ != 0L) { output.writeUInt64(3, phone_); } - if (!firstName_.isEmpty()) { - output.writeString(4, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, firstName_); } - if (!lastName_.isEmpty()) { - output.writeString(5, getLastName()); + if (!getLastNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, lastName_); } - if (!displayName_.isEmpty()) { - output.writeString(6, getDisplayName()); + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); } - if (!initials_.isEmpty()) { - output.writeString(7, getInitials()); + if (!getInitialsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, initials_); } - if (!color_.isEmpty()) { - output.writeString(8, getColor()); + if (!getColorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, color_); } if (status_ != net.iGap.proto.ProtoGlobal.RegisteredUser.Status.LONG_TIME_AGO.getNumber()) { output.writeEnum(9, status_); @@ -14305,11 +20273,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (deleted_ != false) { output.writeBool(14, deleted_); } - if (!cacheId_.isEmpty()) { - output.writeString(15, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, cacheId_); } - if (!bio_.isEmpty()) { - output.writeString(16, getBio()); + if (!getBioBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, bio_); } if (verified_ != false) { output.writeBool(17, verified_); @@ -14320,10 +20288,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (mxbEnable_ != false) { output.writeBool(19, mxbEnable_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -14331,33 +20301,27 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, id_); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (phone_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, phone_); } - if (!firstName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, firstName_); } - if (!lastName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getLastName()); + if (!getLastNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, lastName_); } - if (!displayName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getDisplayName()); + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); } - if (!initials_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getInitials()); + if (!getInitialsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, initials_); } - if (!color_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getColor()); + if (!getColorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, color_); } if (status_ != net.iGap.proto.ProtoGlobal.RegisteredUser.Status.LONG_TIME_AGO.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -14383,13 +20347,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, deleted_); } - if (!cacheId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(15, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, cacheId_); } - if (!bio_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(16, getBio()); + if (!getBioBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, bio_); } if (verified_ != false) { size += com.google.protobuf.CodedOutputStream @@ -14403,1043 +20365,1766 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(19, mxbEnable_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RegisteredUser)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RegisteredUser other = (net.iGap.proto.ProtoGlobal.RegisteredUser) obj; + + if (getId() + != other.getId()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (getPhone() + != other.getPhone()) return false; + if (!getFirstName() + .equals(other.getFirstName())) return false; + if (!getLastName() + .equals(other.getLastName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getInitials() + .equals(other.getInitials())) return false; + if (!getColor() + .equals(other.getColor())) return false; + if (status_ != other.status_) return false; + if (getLastSeen() + != other.getLastSeen()) return false; + if (getAvatarCount() + != other.getAvatarCount()) return false; + if (hasAvatar() != other.hasAvatar()) return false; + if (hasAvatar()) { + if (!getAvatar() + .equals(other.getAvatar())) return false; + } + if (getMutual() + != other.getMutual()) return false; + if (getDeleted() + != other.getDeleted()) return false; + if (!getCacheId() + .equals(other.getCacheId())) return false; + if (!getBio() + .equals(other.getBio())) return false; + if (getVerified() + != other.getVerified()) return false; + if (getBot() + != other.getBot()) return false; + if (getMxbEnable() + != other.getMxbEnable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhone()); + hash = (37 * hash) + FIRST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFirstName().hashCode(); + hash = (37 * hash) + LAST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLastName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + INITIALS_FIELD_NUMBER; + hash = (53 * hash) + getInitials().hashCode(); + hash = (37 * hash) + COLOR_FIELD_NUMBER; + hash = (53 * hash) + getColor().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + LAST_SEEN_FIELD_NUMBER; + hash = (53 * hash) + getLastSeen(); + hash = (37 * hash) + AVATAR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAvatarCount(); + if (hasAvatar()) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + } + hash = (37 * hash) + MUTUAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMutual()); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleted()); + hash = (37 * hash) + CACHE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCacheId().hashCode(); + hash = (37 * hash) + BIO_FIELD_NUMBER; + hash = (53 * hash) + getBio().hashCode(); + hash = (37 * hash) + VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerified()); + hash = (37 * hash) + BOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBot()); + hash = (37 * hash) + MXB_ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMxbEnable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RegisteredUser parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RegisteredUser prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RegisteredUser} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RegisteredUser, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RegisteredUser) net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RegisteredUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RegisteredUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RegisteredUser.class, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + username_ = ""; + + phone_ = 0L; + + firstName_ = ""; + + lastName_ = ""; + + displayName_ = ""; + + initials_ = ""; + + color_ = ""; + + status_ = 0; + + lastSeen_ = 0; + + avatarCount_ = 0; + + if (avatarBuilder_ == null) { + avatar_ = null; + } else { + avatar_ = null; + avatarBuilder_ = null; + } + mutual_ = false; + + deleted_ = false; + + cacheId_ = ""; + + bio_ = ""; + + verified_ = false; + + bot_ = false; + + mxbEnable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RegisteredUser_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUser getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUser build() { + net.iGap.proto.ProtoGlobal.RegisteredUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUser buildPartial() { + net.iGap.proto.ProtoGlobal.RegisteredUser result = new net.iGap.proto.ProtoGlobal.RegisteredUser(this); + result.id_ = id_; + result.username_ = username_; + result.phone_ = phone_; + result.firstName_ = firstName_; + result.lastName_ = lastName_; + result.displayName_ = displayName_; + result.initials_ = initials_; + result.color_ = color_; + result.status_ = status_; + result.lastSeen_ = lastSeen_; + result.avatarCount_ = avatarCount_; + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + result.mutual_ = mutual_; + result.deleted_ = deleted_; + result.cacheId_ = cacheId_; + result.bio_ = bio_; + result.verified_ = verified_; + result.bot_ = bot_; + result.mxbEnable_ = mxbEnable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RegisteredUser) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RegisteredUser)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RegisteredUser other) { + if (other == net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getPhone() != 0L) { + setPhone(other.getPhone()); + } + if (!other.getFirstName().isEmpty()) { + firstName_ = other.firstName_; + onChanged(); + } + if (!other.getLastName().isEmpty()) { + lastName_ = other.lastName_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getInitials().isEmpty()) { + initials_ = other.initials_; + onChanged(); + } + if (!other.getColor().isEmpty()) { + color_ = other.color_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getLastSeen() != 0) { + setLastSeen(other.getLastSeen()); + } + if (other.getAvatarCount() != 0) { + setAvatarCount(other.getAvatarCount()); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.getMutual() != false) { + setMutual(other.getMutual()); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + if (!other.getCacheId().isEmpty()) { + cacheId_ = other.cacheId_; + onChanged(); + } + if (!other.getBio().isEmpty()) { + bio_ = other.bio_; + onChanged(); + } + if (other.getVerified() != false) { + setVerified(other.getVerified()); + } + if (other.getBot() != false) { + setBot(other.getBot()); + } + if (other.getMxbEnable() != false) { + setMxbEnable(other.getMxbEnable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RegisteredUser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RegisteredUser) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long id_ ; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long phone_ ; /** - * optional uint64 phone = 3 [jstype = JS_STRING]; + * uint64 phone = 3 [jstype = JS_STRING]; + * @return The phone. */ + @java.lang.Override public long getPhone() { - return instance.getPhone(); + return phone_; } /** - * optional uint64 phone = 3 [jstype = JS_STRING]; + * uint64 phone = 3 [jstype = JS_STRING]; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone(long value) { - copyOnWrite(); - instance.setPhone(value); + + phone_ = value; + onChanged(); return this; } /** - * optional uint64 phone = 3 [jstype = JS_STRING]; + * uint64 phone = 3 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = 0L; + onChanged(); return this; } + private java.lang.Object firstName_ = ""; /** - * optional string first_name = 4; + * string first_name = 4; + * @return The firstName. */ public java.lang.String getFirstName() { - return instance.getFirstName(); + java.lang.Object ref = firstName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string first_name = 4; + * string first_name = 4; + * @return The bytes for firstName. */ public com.google.protobuf.ByteString getFirstNameBytes() { - return instance.getFirstNameBytes(); + java.lang.Object ref = firstName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string first_name = 4; + * string first_name = 4; + * @param value The firstName to set. + * @return This builder for chaining. */ public Builder setFirstName( java.lang.String value) { - copyOnWrite(); - instance.setFirstName(value); + if (value == null) { + throw new NullPointerException(); + } + + firstName_ = value; + onChanged(); return this; } /** - * optional string first_name = 4; + * string first_name = 4; + * @return This builder for chaining. */ public Builder clearFirstName() { - copyOnWrite(); - instance.clearFirstName(); + + firstName_ = getDefaultInstance().getFirstName(); + onChanged(); return this; } /** - * optional string first_name = 4; + * string first_name = 4; + * @param value The bytes for firstName to set. + * @return This builder for chaining. */ public Builder setFirstNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFirstNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + firstName_ = value; + onChanged(); return this; } + private java.lang.Object lastName_ = ""; /** - * optional string last_name = 5; + * string last_name = 5; + * @return The lastName. */ public java.lang.String getLastName() { - return instance.getLastName(); + java.lang.Object ref = lastName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string last_name = 5; + * string last_name = 5; + * @return The bytes for lastName. */ public com.google.protobuf.ByteString getLastNameBytes() { - return instance.getLastNameBytes(); + java.lang.Object ref = lastName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string last_name = 5; + * string last_name = 5; + * @param value The lastName to set. + * @return This builder for chaining. */ public Builder setLastName( java.lang.String value) { - copyOnWrite(); - instance.setLastName(value); + if (value == null) { + throw new NullPointerException(); + } + + lastName_ = value; + onChanged(); return this; } /** - * optional string last_name = 5; + * string last_name = 5; + * @return This builder for chaining. */ public Builder clearLastName() { - copyOnWrite(); - instance.clearLastName(); + + lastName_ = getDefaultInstance().getLastName(); + onChanged(); return this; } /** - * optional string last_name = 5; + * string last_name = 5; + * @param value The bytes for lastName to set. + * @return This builder for chaining. */ public Builder setLastNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLastNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastName_ = value; + onChanged(); return this; } + private java.lang.Object displayName_ = ""; /** - * optional string display_name = 6; + * string display_name = 6; + * @return The displayName. */ public java.lang.String getDisplayName() { - return instance.getDisplayName(); + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string display_name = 6; + * string display_name = 6; + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { - return instance.getDisplayNameBytes(); + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string display_name = 6; + * string display_name = 6; + * @param value The displayName to set. + * @return This builder for chaining. */ public Builder setDisplayName( java.lang.String value) { - copyOnWrite(); - instance.setDisplayName(value); + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); return this; } /** - * optional string display_name = 6; + * string display_name = 6; + * @return This builder for chaining. */ public Builder clearDisplayName() { - copyOnWrite(); - instance.clearDisplayName(); + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); return this; } /** - * optional string display_name = 6; + * string display_name = 6; + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ public Builder setDisplayNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDisplayNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); return this; } + private java.lang.Object initials_ = ""; /** - * optional string initials = 7; + * string initials = 7; + * @return The initials. */ public java.lang.String getInitials() { - return instance.getInitials(); + java.lang.Object ref = initials_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string initials = 7; + * string initials = 7; + * @return The bytes for initials. */ public com.google.protobuf.ByteString getInitialsBytes() { - return instance.getInitialsBytes(); + java.lang.Object ref = initials_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string initials = 7; + * string initials = 7; + * @param value The initials to set. + * @return This builder for chaining. */ public Builder setInitials( java.lang.String value) { - copyOnWrite(); - instance.setInitials(value); + if (value == null) { + throw new NullPointerException(); + } + + initials_ = value; + onChanged(); return this; } /** - * optional string initials = 7; + * string initials = 7; + * @return This builder for chaining. */ public Builder clearInitials() { - copyOnWrite(); - instance.clearInitials(); + + initials_ = getDefaultInstance().getInitials(); + onChanged(); return this; } /** - * optional string initials = 7; + * string initials = 7; + * @param value The bytes for initials to set. + * @return This builder for chaining. */ public Builder setInitialsBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInitialsBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initials_ = value; + onChanged(); return this; } + private java.lang.Object color_ = ""; /** - * optional string color = 8; + * string color = 8; + * @return The color. */ public java.lang.String getColor() { - return instance.getColor(); + java.lang.Object ref = color_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string color = 8; + * string color = 8; + * @return The bytes for color. */ public com.google.protobuf.ByteString getColorBytes() { - return instance.getColorBytes(); + java.lang.Object ref = color_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string color = 8; + * string color = 8; + * @param value The color to set. + * @return This builder for chaining. */ public Builder setColor( java.lang.String value) { - copyOnWrite(); - instance.setColor(value); + if (value == null) { + throw new NullPointerException(); + } + + color_ = value; + onChanged(); return this; } /** - * optional string color = 8; + * string color = 8; + * @return This builder for chaining. */ public Builder clearColor() { - copyOnWrite(); - instance.clearColor(); + + color_ = getDefaultInstance().getColor(); + onChanged(); return this; } /** - * optional string color = 8; + * string color = 8; + * @param value The bytes for color to set. + * @return This builder for chaining. */ public Builder setColorBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setColorBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + color_ = value; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RegisteredUser.Status result = net.iGap.proto.ProtoGlobal.RegisteredUser.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.Status.UNRECOGNIZED : result; } /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.RegisteredUser.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RegisteredUser.Status status = 9; + * .proto.RegisteredUser.Status status = 9; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private int lastSeen_ ; /** - * optional uint32 last_seen = 10; + * uint32 last_seen = 10; + * @return The lastSeen. */ + @java.lang.Override public int getLastSeen() { - return instance.getLastSeen(); + return lastSeen_; } /** - * optional uint32 last_seen = 10; + * uint32 last_seen = 10; + * @param value The lastSeen to set. + * @return This builder for chaining. */ public Builder setLastSeen(int value) { - copyOnWrite(); - instance.setLastSeen(value); + + lastSeen_ = value; + onChanged(); return this; } /** - * optional uint32 last_seen = 10; + * uint32 last_seen = 10; + * @return This builder for chaining. */ public Builder clearLastSeen() { - copyOnWrite(); - instance.clearLastSeen(); + + lastSeen_ = 0; + onChanged(); return this; } + private int avatarCount_ ; /** - * optional uint32 avatar_count = 11; + * uint32 avatar_count = 11; + * @return The avatarCount. */ + @java.lang.Override public int getAvatarCount() { - return instance.getAvatarCount(); + return avatarCount_; } /** - * optional uint32 avatar_count = 11; + * uint32 avatar_count = 11; + * @param value The avatarCount to set. + * @return This builder for chaining. */ public Builder setAvatarCount(int value) { - copyOnWrite(); - instance.setAvatarCount(value); + + avatarCount_ = value; + onChanged(); return this; } /** - * optional uint32 avatar_count = 11; + * uint32 avatar_count = 11; + * @return This builder for chaining. */ public Builder clearAvatarCount() { - copyOnWrite(); - instance.clearAvatarCount(); + + avatarCount_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Avatar avatar_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; + * @return Whether the avatar field is set. */ public boolean hasAvatar() { - return instance.hasAvatar(); + return avatarBuilder_ != null || avatar_ != null; } /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; + * @return The avatar. */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { - return instance.getAvatar(); + if (avatarBuilder_ == null) { + return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } else { + return avatarBuilder_.getMessage(); + } } /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; */ public Builder setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(value); - return this; + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; */ public Builder setAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(builderForValue); + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; */ public Builder mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.mergeAvatar(value); + if (avatarBuilder_ == null) { + if (avatar_ != null) { + avatar_ = + net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Avatar avatar = 12; + * .proto.Avatar avatar = 12; */ - public Builder clearAvatar() { copyOnWrite(); - instance.clearAvatar(); + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + return this; } + /** + * .proto.Avatar avatar = 12; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .proto.Avatar avatar = 12; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_ == null ? + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } + } + /** + * .proto.Avatar avatar = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + getAvatar(), + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + private boolean mutual_ ; /** - * optional bool mutual = 13; + * bool mutual = 13; + * @return The mutual. */ + @java.lang.Override public boolean getMutual() { - return instance.getMutual(); + return mutual_; } /** - * optional bool mutual = 13; + * bool mutual = 13; + * @param value The mutual to set. + * @return This builder for chaining. */ public Builder setMutual(boolean value) { - copyOnWrite(); - instance.setMutual(value); + + mutual_ = value; + onChanged(); return this; } /** - * optional bool mutual = 13; + * bool mutual = 13; + * @return This builder for chaining. */ public Builder clearMutual() { - copyOnWrite(); - instance.clearMutual(); + + mutual_ = false; + onChanged(); return this; } + private boolean deleted_ ; /** - * optional bool deleted = 14; + * bool deleted = 14; + * @return The deleted. */ + @java.lang.Override public boolean getDeleted() { - return instance.getDeleted(); + return deleted_; } /** - * optional bool deleted = 14; + * bool deleted = 14; + * @param value The deleted to set. + * @return This builder for chaining. */ public Builder setDeleted(boolean value) { - copyOnWrite(); - instance.setDeleted(value); + + deleted_ = value; + onChanged(); return this; } /** - * optional bool deleted = 14; + * bool deleted = 14; + * @return This builder for chaining. */ public Builder clearDeleted() { - copyOnWrite(); - instance.clearDeleted(); + + deleted_ = false; + onChanged(); return this; } + private java.lang.Object cacheId_ = ""; /** - * optional string cache_id = 15; + * string cache_id = 15; + * @return The cacheId. */ public java.lang.String getCacheId() { - return instance.getCacheId(); + java.lang.Object ref = cacheId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string cache_id = 15; + * string cache_id = 15; + * @return The bytes for cacheId. */ public com.google.protobuf.ByteString getCacheIdBytes() { - return instance.getCacheIdBytes(); + java.lang.Object ref = cacheId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string cache_id = 15; + * string cache_id = 15; + * @param value The cacheId to set. + * @return This builder for chaining. */ public Builder setCacheId( java.lang.String value) { - copyOnWrite(); - instance.setCacheId(value); + if (value == null) { + throw new NullPointerException(); + } + + cacheId_ = value; + onChanged(); return this; } /** - * optional string cache_id = 15; + * string cache_id = 15; + * @return This builder for chaining. */ public Builder clearCacheId() { - copyOnWrite(); - instance.clearCacheId(); + + cacheId_ = getDefaultInstance().getCacheId(); + onChanged(); return this; } /** - * optional string cache_id = 15; + * string cache_id = 15; + * @param value The bytes for cacheId to set. + * @return This builder for chaining. */ public Builder setCacheIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCacheIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cacheId_ = value; + onChanged(); return this; } + private java.lang.Object bio_ = ""; /** - * optional string bio = 16; + * string bio = 16; + * @return The bio. */ public java.lang.String getBio() { - return instance.getBio(); + java.lang.Object ref = bio_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bio = 16; + * string bio = 16; + * @return The bytes for bio. */ public com.google.protobuf.ByteString getBioBytes() { - return instance.getBioBytes(); + java.lang.Object ref = bio_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bio = 16; + * string bio = 16; + * @param value The bio to set. + * @return This builder for chaining. */ public Builder setBio( java.lang.String value) { - copyOnWrite(); - instance.setBio(value); + if (value == null) { + throw new NullPointerException(); + } + + bio_ = value; + onChanged(); return this; } /** - * optional string bio = 16; + * string bio = 16; + * @return This builder for chaining. */ public Builder clearBio() { - copyOnWrite(); - instance.clearBio(); + + bio_ = getDefaultInstance().getBio(); + onChanged(); return this; } /** - * optional string bio = 16; + * string bio = 16; + * @param value The bytes for bio to set. + * @return This builder for chaining. */ public Builder setBioBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBioBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bio_ = value; + onChanged(); return this; } + private boolean verified_ ; /** - * optional bool verified = 17; + * bool verified = 17; + * @return The verified. */ + @java.lang.Override public boolean getVerified() { - return instance.getVerified(); + return verified_; } /** - * optional bool verified = 17; + * bool verified = 17; + * @param value The verified to set. + * @return This builder for chaining. */ public Builder setVerified(boolean value) { - copyOnWrite(); - instance.setVerified(value); + + verified_ = value; + onChanged(); return this; } /** - * optional bool verified = 17; + * bool verified = 17; + * @return This builder for chaining. */ public Builder clearVerified() { - copyOnWrite(); - instance.clearVerified(); + + verified_ = false; + onChanged(); return this; } + private boolean bot_ ; /** - * optional bool bot = 18; + * bool bot = 18; + * @return The bot. */ + @java.lang.Override public boolean getBot() { - return instance.getBot(); + return bot_; } /** - * optional bool bot = 18; + * bool bot = 18; + * @param value The bot to set. + * @return This builder for chaining. */ public Builder setBot(boolean value) { - copyOnWrite(); - instance.setBot(value); + + bot_ = value; + onChanged(); return this; } /** - * optional bool bot = 18; + * bool bot = 18; + * @return This builder for chaining. */ public Builder clearBot() { - copyOnWrite(); - instance.clearBot(); + + bot_ = false; + onChanged(); return this; } + private boolean mxbEnable_ ; /** - * optional bool mxb_enable = 19; + * bool mxb_enable = 19; + * @return The mxbEnable. */ + @java.lang.Override public boolean getMxbEnable() { - return instance.getMxbEnable(); + return mxbEnable_; } /** - * optional bool mxb_enable = 19; + * bool mxb_enable = 19; + * @param value The mxbEnable to set. + * @return This builder for chaining. */ public Builder setMxbEnable(boolean value) { - copyOnWrite(); - instance.setMxbEnable(value); + + mxbEnable_ = value; + onChanged(); return this; } /** - * optional bool mxb_enable = 19; + * bool mxb_enable = 19; + * @return This builder for chaining. */ public Builder clearMxbEnable() { - copyOnWrite(); - instance.clearMxbEnable(); + + mxbEnable_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RegisteredUser) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RegisteredUser(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RegisteredUser other = (net.iGap.proto.ProtoGlobal.RegisteredUser) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - phone_ = visitor.visitLong(phone_ != 0L, phone_, - other.phone_ != 0L, other.phone_); - firstName_ = visitor.visitString(!firstName_.isEmpty(), firstName_, - !other.firstName_.isEmpty(), other.firstName_); - lastName_ = visitor.visitString(!lastName_.isEmpty(), lastName_, - !other.lastName_.isEmpty(), other.lastName_); - displayName_ = visitor.visitString(!displayName_.isEmpty(), displayName_, - !other.displayName_.isEmpty(), other.displayName_); - initials_ = visitor.visitString(!initials_.isEmpty(), initials_, - !other.initials_.isEmpty(), other.initials_); - color_ = visitor.visitString(!color_.isEmpty(), color_, - !other.color_.isEmpty(), other.color_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - lastSeen_ = visitor.visitInt(lastSeen_ != 0, lastSeen_, - other.lastSeen_ != 0, other.lastSeen_); - avatarCount_ = visitor.visitInt(avatarCount_ != 0, avatarCount_, - other.avatarCount_ != 0, other.avatarCount_); - avatar_ = visitor.visitMessage(avatar_, other.avatar_); - mutual_ = visitor.visitBoolean(mutual_ != false, mutual_, - other.mutual_ != false, other.mutual_); - deleted_ = visitor.visitBoolean(deleted_ != false, deleted_, - other.deleted_ != false, other.deleted_); - cacheId_ = visitor.visitString(!cacheId_.isEmpty(), cacheId_, - !other.cacheId_.isEmpty(), other.cacheId_); - bio_ = visitor.visitString(!bio_.isEmpty(), bio_, - !other.bio_.isEmpty(), other.bio_); - verified_ = visitor.visitBoolean(verified_ != false, verified_, - other.verified_ != false, other.verified_); - bot_ = visitor.visitBoolean(bot_ != false, bot_, - other.bot_ != false, other.bot_); - mxbEnable_ = visitor.visitBoolean(mxbEnable_ != false, mxbEnable_, - other.mxbEnable_ != false, other.mxbEnable_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - phone_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - firstName_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - lastName_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - initials_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - color_ = s; - break; - } - case 72: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 80: { - - lastSeen_ = input.readUInt32(); - break; - } - case 88: { - - avatarCount_ = input.readUInt32(); - break; - } - case 98: { - net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - case 104: { - - mutual_ = input.readBool(); - break; - } - case 112: { - - deleted_ = input.readBool(); - break; - } - case 122: { - String s = input.readStringRequireUtf8(); - - cacheId_ = s; - break; - } - case 130: { - String s = input.readStringRequireUtf8(); - - bio_ = s; - break; - } - case 136: { - - verified_ = input.readBool(); - break; - } - case 144: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - bot_ = input.readBool(); - break; - } - case 152: { - mxbEnable_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RegisteredUser.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RegisteredUser) } - // @@protoc_insertion_point(class_scope:proto.RegisteredUser) private static final net.iGap.proto.ProtoGlobal.RegisteredUser DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RegisteredUser(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RegisteredUser(); } public static net.iGap.proto.ProtoGlobal.RegisteredUser getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisteredUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegisteredUser(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface AvatarOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Avatar) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ long getId(); /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return Whether the file field is set. */ boolean hasFile(); /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return The file. */ net.iGap.proto.ProtoGlobal.File getFile(); + /** + * .proto.File file = 2; + */ + net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder(); } /** * Protobuf type {@code proto.Avatar} */ - public static final class Avatar extends - com.google.protobuf.GeneratedMessageLite< - Avatar, Avatar.Builder> implements + public static final class Avatar extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Avatar) AvatarOrBuilder { + private static final long serialVersionUID = 0L; + // Use Avatar.newBuilder() to construct. + private Avatar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Avatar() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Avatar(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Avatar( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt64(); + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; + if (file_ != null) { + subBuilder = file_.toBuilder(); + } + file_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(file_); + file_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Avatar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Avatar.class, net.iGap.proto.ProtoGlobal.Avatar.Builder.class); + } + public static final int ID_FIELD_NUMBER = 1; private long id_; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void clearId() { - - id_ = 0L; - } public static final int FILE_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.File file_; /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return Whether the file field is set. */ + @java.lang.Override public boolean hasFile() { return file_ != null; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return The file. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.File getFile() { return file_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; } /** - * optional .proto.File file = 2; - */ - private void setFile(net.iGap.proto.ProtoGlobal.File value) { - if (value == null) { - throw new NullPointerException(); - } - file_ = value; - - } - /** - * optional .proto.File file = 2; - */ - private void setFile( - net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - file_ = builderForValue.build(); - - } - /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ - private void mergeFile(net.iGap.proto.ProtoGlobal.File value) { - if (file_ != null && - file_ != net.iGap.proto.ProtoGlobal.File.getDefaultInstance()) { - file_ = - net.iGap.proto.ProtoGlobal.File.newBuilder(file_).mergeFrom(value).buildPartial(); - } else { - file_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder() { + return getFile(); } - /** - * optional .proto.File file = 2; - */ - private void clearFile() { file_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { @@ -15448,10 +22133,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (file_ != null) { output.writeMessage(2, getFile()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -15463,504 +22150,837 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFile()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Avatar)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Avatar other = (net.iGap.proto.ProtoGlobal.Avatar) obj; + + if (getId() + != other.getId()) return false; + if (hasFile() != other.hasFile()) return false; + if (hasFile()) { + if (!getFile() + .equals(other.getFile())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + if (hasFile()) { + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Avatar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Avatar parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Avatar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Avatar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Avatar} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Avatar, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Avatar) net.iGap.proto.ProtoGlobal.AvatarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Avatar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Avatar.class, net.iGap.proto.ProtoGlobal.Avatar.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Avatar.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + if (fileBuilder_ == null) { + file_ = null; + } else { + file_ = null; + fileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Avatar_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Avatar getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Avatar build() { + net.iGap.proto.ProtoGlobal.Avatar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Avatar buildPartial() { + net.iGap.proto.ProtoGlobal.Avatar result = new net.iGap.proto.ProtoGlobal.Avatar(this); + result.id_ = id_; + if (fileBuilder_ == null) { + result.file_ = file_; + } else { + result.file_ = fileBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Avatar) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Avatar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Avatar other) { + if (other == net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.hasFile()) { + mergeFile(other.getFile()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Avatar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Avatar) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long id_ ; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.File file_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> fileBuilder_; /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return Whether the file field is set. */ public boolean hasFile() { - return instance.hasFile(); + return fileBuilder_ != null || file_ != null; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; + * @return The file. */ public net.iGap.proto.ProtoGlobal.File getFile() { - return instance.getFile(); + if (fileBuilder_ == null) { + return file_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; + } else { + return fileBuilder_.getMessage(); + } } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ public Builder setFile(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.setFile(value); - return this; + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + onChanged(); + } else { + fileBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ public Builder setFile( net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - copyOnWrite(); - instance.setFile(builderForValue); + if (fileBuilder_ == null) { + file_ = builderForValue.build(); + onChanged(); + } else { + fileBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ public Builder mergeFile(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.mergeFile(value); + if (fileBuilder_ == null) { + if (file_ != null) { + file_ = + net.iGap.proto.ProtoGlobal.File.newBuilder(file_).mergeFrom(value).buildPartial(); + } else { + file_ = value; + } + onChanged(); + } else { + fileBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.File file = 2; + * .proto.File file = 2; */ - public Builder clearFile() { copyOnWrite(); - instance.clearFile(); + public Builder clearFile() { + if (fileBuilder_ == null) { + file_ = null; + onChanged(); + } else { + file_ = null; + fileBuilder_ = null; + } + return this; } + /** + * .proto.File file = 2; + */ + public net.iGap.proto.ProtoGlobal.File.Builder getFileBuilder() { + + onChanged(); + return getFileFieldBuilder().getBuilder(); + } + /** + * .proto.File file = 2; + */ + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder() { + if (fileBuilder_ != null) { + return fileBuilder_.getMessageOrBuilder(); + } else { + return file_ == null ? + net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; + } + } + /** + * .proto.File file = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> + getFileFieldBuilder() { + if (fileBuilder_ == null) { + fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder>( + getFile(), + getParentForChildren(), + isClean()); + file_ = null; + } + return fileBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:proto.Avatar) } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Avatar(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Avatar other = (net.iGap.proto.ProtoGlobal.Avatar) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - file_ = visitor.visitMessage(file_, other.file_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; - if (file_ != null) { - subBuilder = file_.toBuilder(); - } - file_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(file_); - file_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Avatar.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - // @@protoc_insertion_point(class_scope:proto.Avatar) private static final net.iGap.proto.ProtoGlobal.Avatar DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Avatar(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Avatar(); } public static net.iGap.proto.ProtoGlobal.Avatar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Avatar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Avatar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Avatar getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 room_id = 26; + * uint64 room_id = 26; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; + * uint64 message_id = 1 [jstype = JS_STRING]; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; + * uint64 message_version = 2 [jstype = JS_STRING]; + * @return The messageVersion. */ long getMessageVersion(); /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @return The status. */ net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus(); /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; + * uint64 status_version = 4 [jstype = JS_STRING]; + * @return The statusVersion. */ long getStatusVersion(); /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @return The enum numeric value on the wire for messageType. */ int getMessageTypeValue(); /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @return The messageType. */ net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType(); /** - * optional string message = 6; + * string message = 6; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 6; + * string message = 6; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; + * @return Whether the attachment field is set. */ boolean hasAttachment(); /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; + * @return The attachment. */ net.iGap.proto.ProtoGlobal.File getAttachment(); + /** + * .proto.File attachment = 7; + */ + net.iGap.proto.ProtoGlobal.FileOrBuilder getAttachmentOrBuilder(); /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; + * @return Whether the author field is set. */ boolean hasAuthor(); /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; + * @return The author. */ net.iGap.proto.ProtoGlobal.RoomMessage.Author getAuthor(); + /** + * .proto.RoomMessage.Author author = 8; + */ + net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder getAuthorOrBuilder(); /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; + * @return Whether the location field is set. */ boolean hasLocation(); /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; + * @return The location. */ net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation(); + /** + * .proto.RoomMessageLocation location = 9; + */ + net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder(); /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; + * @return Whether the log field is set. */ boolean hasLog(); /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; + * @return The log. */ net.iGap.proto.ProtoGlobal.RoomMessageLog getLog(); + /** + * .proto.RoomMessageLog log = 10; + */ + net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder getLogOrBuilder(); /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; + * @return Whether the contact field is set. */ boolean hasContact(); /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; + * @return The contact. */ net.iGap.proto.ProtoGlobal.RoomMessageContact getContact(); + /** + * .proto.RoomMessageContact contact = 11; + */ + net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder(); /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; + * @return Whether the wallet field is set. */ boolean hasWallet(); /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; + * @return The wallet. */ net.iGap.proto.ProtoGlobal.RoomMessageWallet getWallet(); + /** + * .proto.RoomMessageWallet wallet = 22; + */ + net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder getWalletOrBuilder(); /** - * optional bool edited = 12; + * bool edited = 12; + * @return The edited. */ boolean getEdited(); /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return The createTime. */ int getCreateTime(); /** - * optional uint32 update_time = 14; + * uint32 update_time = 14; + * @return The updateTime. */ int getUpdateTime(); /** - * optional bool deleted = 15; + * bool deleted = 15; + * @return The deleted. */ boolean getDeleted(); /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; + * @return Whether the forwardFrom field is set. */ boolean hasForwardFrom(); /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; + * @return The forwardFrom. */ net.iGap.proto.ProtoGlobal.RoomMessage getForwardFrom(); + /** + * .proto.RoomMessage forward_from = 16; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getForwardFromOrBuilder(); /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; + * @return Whether the replyTo field is set. */ boolean hasReplyTo(); /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; + * @return The replyTo. */ net.iGap.proto.ProtoGlobal.RoomMessage getReplyTo(); + /** + * .proto.RoomMessage reply_to = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getReplyToOrBuilder(); /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; + * @return Whether the story field is set. */ boolean hasStory(); /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; + * @return The story. */ net.iGap.proto.ProtoGlobal.RoomMessageStory getStory(); + /** + * .proto.RoomMessageStory story = 25; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder getStoryOrBuilder(); /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; + * uint64 previous_message_id = 18 [jstype = JS_STRING]; + * @return The previousMessageId. */ long getPreviousMessageId(); /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; + * uint64 random_id = 21 [jstype = JS_STRING]; + * @return The randomId. */ long getRandomId(); /** - * optional uint32 additional_type = 23; + * uint32 additional_type = 23; + * @return The additionalType. */ int getAdditionalType(); /** - * optional string additional_data = 24; + * string additional_data = 24; + * @return The additionalData. */ java.lang.String getAdditionalData(); /** - * optional string additional_data = 24; + * string additional_data = 24; + * @return The bytes for additionalData. */ com.google.protobuf.ByteString getAdditionalDataBytes(); /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @return The enum numeric value on the wire for extraType. */ int getExtraTypeValue(); /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @return The extraType. */ net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType getExtraType(); /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + * @return Whether the channelExtra field is set. */ boolean hasChannelExtra(); /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + * @return The channelExtra. */ net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getChannelExtra(); + /** + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + */ + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder getChannelExtraOrBuilder(); /** - * optional uint64 document_id = 27; + * uint64 document_id = 27; + * @return The documentId. */ long getDocumentId(); /** - * optional uint64 version_document_id = 28; + * uint64 version_document_id = 28; + * @return The versionDocumentId. */ long getVersionDocumentId(); /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; + * @return Whether the groupExtra field is set. */ boolean hasGroupExtra(); /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; + * @return The groupExtra. */ net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getGroupExtra(); + /** + * .proto.RoomMessage.GroupExtra group_extra = 29; + */ + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder getGroupExtraOrBuilder(); /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; + * @return Whether the sticker field is set. */ boolean hasSticker(); /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; + * @return The sticker. */ net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * .proto.RoomMessageSticker sticker = 30; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; + * @return Whether the cardToCard field is set. */ boolean hasCardToCard(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; + * @return The cardToCard. */ net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * .proto.RoomMessageCardToCard card_to_card = 31; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; @@ -15975,34 +22995,410 @@ public interface RoomMessageOrBuilder extends * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 33; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.RoomMessage} */ - public static final class RoomMessage extends - com.google.protobuf.GeneratedMessageLite< - RoomMessage, RoomMessage.Builder> implements + public static final class RoomMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessage) RoomMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessage.newBuilder() to construct. + private RoomMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessage() { + status_ = 0; + messageType_ = 0; message_ = ""; additionalData_ = ""; - botActionLists_ = emptyProtobufList(); + extraType_ = 0; + botActionLists_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + messageId_ = input.readUInt64(); + break; + } + case 16: { + + messageVersion_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 32: { + + statusVersion_ = input.readUInt64(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + messageType_ = rawValue; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; + if (attachment_ != null) { + subBuilder = attachment_.toBuilder(); + } + attachment_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attachment_); + attachment_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder subBuilder = null; + if (author_ != null) { + subBuilder = author_.toBuilder(); + } + author_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.Author.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(author_); + author_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder subBuilder = null; + if (log_ != null) { + subBuilder = log_.toBuilder(); + } + log_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLog.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(log_); + log_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); + } + contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); + } + + break; + } + case 96: { + + edited_ = input.readBool(); + break; + } + case 104: { + + createTime_ = input.readUInt32(); + break; + } + case 112: { + + updateTime_ = input.readUInt32(); + break; + } + case 120: { + + deleted_ = input.readBool(); + break; + } + case 130: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (forwardFrom_ != null) { + subBuilder = forwardFrom_.toBuilder(); + } + forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(forwardFrom_); + forwardFrom_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (replyTo_ != null) { + subBuilder = replyTo_.toBuilder(); + } + replyTo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(replyTo_); + replyTo_ = subBuilder.buildPartial(); + } + + break; + } + case 144: { + + previousMessageId_ = input.readUInt64(); + break; + } + case 152: { + int rawValue = input.readEnum(); + + extraType_ = rawValue; + break; + } + case 162: { + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder subBuilder = null; + if (channelExtra_ != null) { + subBuilder = channelExtra_.toBuilder(); + } + channelExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(channelExtra_); + channelExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 168: { + + randomId_ = input.readUInt64(); + break; + } + case 178: { + net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder subBuilder = null; + if (wallet_ != null) { + subBuilder = wallet_.toBuilder(); + } + wallet_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(wallet_); + wallet_ = subBuilder.buildPartial(); + } + + break; + } + case 184: { + + additionalType_ = input.readUInt32(); + break; + } + case 194: { + java.lang.String s = input.readStringRequireUtf8(); + + additionalData_ = s; + break; + } + case 202: { + net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder subBuilder = null; + if (story_ != null) { + subBuilder = story_.toBuilder(); + } + story_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStory.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(story_); + story_ = subBuilder.buildPartial(); + } + + break; + } + case 208: { + + roomId_ = input.readUInt64(); + break; + } + case 216: { + + documentId_ = input.readUInt64(); + break; + } + case 224: { + + versionDocumentId_ = input.readUInt64(); + break; + } + case 234: { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder subBuilder = null; + if (groupExtra_ != null) { + subBuilder = groupExtra_.toBuilder(); + } + groupExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(groupExtra_); + groupExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 242: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 250: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 258: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 266: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.class, net.iGap.proto.ProtoGlobal.RoomMessage.Builder.class); + } + /** * Protobuf enum {@code proto.RoomMessage.ExtraType} */ public enum ExtraType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * NO_EXTRA = 0; */ @@ -16025,10 +23421,16 @@ public enum ExtraType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -16036,6 +23438,10 @@ public static ExtraType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ExtraType forNumber(int value) { switch (value) { case 0: return NO_EXTRA; @@ -16056,6 +23462,37 @@ public ExtraType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final ExtraType[] VALUES = values(); + + public static ExtraType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private ExtraType(int value) { @@ -16067,62 +23504,178 @@ private ExtraType(int value) { public interface AuthorOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessage.Author) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string hash = 1; + * string hash = 1; + * @return The hash. */ java.lang.String getHash(); /** - * optional string hash = 1; + * string hash = 1; + * @return The bytes for hash. */ com.google.protobuf.ByteString getHashBytes(); /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; + * @return Whether the user field is set. */ boolean hasUser(); /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; + * @return The user. */ net.iGap.proto.ProtoGlobal.RoomMessage.Author.User getUser(); + /** + * .proto.RoomMessage.Author.User user = 2; + */ + net.iGap.proto.ProtoGlobal.RoomMessage.Author.UserOrBuilder getUserOrBuilder(); /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; + * @return Whether the room field is set. */ boolean hasRoom(); /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; + * @return The room. */ net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room getRoom(); + /** + * .proto.RoomMessage.Author.Room room = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessage.Author.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.RoomMessage.Author} */ - public static final class Author extends - com.google.protobuf.GeneratedMessageLite< - Author, Author.Builder> implements + public static final class Author extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessage.Author) AuthorOrBuilder { + private static final long serialVersionUID = 0L; + // Use Author.newBuilder() to construct. + private Author(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Author() { hash_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Author(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Author( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + hash_ = s; + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.Author.class, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder.class); + } + public interface UserOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessage.Author.User) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return The userId. */ long getUserId(); /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The cacheId. */ java.lang.String getCacheId(); /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The bytes for cacheId. */ com.google.protobuf.ByteString getCacheIdBytes(); @@ -16130,95 +23683,167 @@ public interface UserOrBuilder extends /** * Protobuf type {@code proto.RoomMessage.Author.User} */ - public static final class User extends - com.google.protobuf.GeneratedMessageLite< - User, User.Builder> implements + public static final class User extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessage.Author.User) UserOrBuilder { + private static final long serialVersionUID = 0L; + // Use User.newBuilder() to construct. + private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private User() { cacheId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new User(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private User( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cacheId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.class, net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int CACHE_ID_FIELD_NUMBER = 2; - private java.lang.String cacheId_; + private volatile java.lang.Object cacheId_; /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The cacheId. */ + @java.lang.Override public java.lang.String getCacheId() { - return cacheId_; + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The bytes for cacheId. */ + @java.lang.Override public com.google.protobuf.ByteString getCacheIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cacheId_); - } - /** - * optional string cache_id = 2; - */ - private void setCacheId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheId_ = value; - } - /** - * optional string cache_id = 2; - */ - private void clearCacheId() { - - cacheId_ = getDefaultInstance().getCacheId(); + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string cache_id = 2; - */ - private void setCacheIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cacheId_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { output.writeUInt64(1, userId_); } - if (!cacheId_.isEmpty()) { - output.writeString(2, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cacheId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -16226,316 +23851,578 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, userId_); } - if (!cacheId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cacheId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessage.Author.User)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User other = (net.iGap.proto.ProtoGlobal.RoomMessage.Author.User) obj; + + if (getUserId() + != other.getUserId()) return false; + if (!getCacheId() + .equals(other.getCacheId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + CACHE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCacheId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessage.Author.User} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessage.Author.User, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessage.Author.User) net.iGap.proto.ProtoGlobal.RoomMessage.Author.UserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.class, net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + cacheId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_User_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.User getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.User build() { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.User buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User result = new net.iGap.proto.ProtoGlobal.RoomMessage.Author.User(this); + result.userId_ = userId_; + result.cacheId_ = cacheId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessage.Author.User) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessage.Author.User)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (!other.getCacheId().isEmpty()) { + cacheId_ = other.cacheId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessage.Author.User) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long userId_ ; /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; + * uint64 user_id = 1 [jstype = JS_STRING]; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private java.lang.Object cacheId_ = ""; /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The cacheId. */ public java.lang.String getCacheId() { - return instance.getCacheId(); + java.lang.Object ref = cacheId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The bytes for cacheId. */ public com.google.protobuf.ByteString getCacheIdBytes() { - return instance.getCacheIdBytes(); + java.lang.Object ref = cacheId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @param value The cacheId to set. + * @return This builder for chaining. */ public Builder setCacheId( java.lang.String value) { - copyOnWrite(); - instance.setCacheId(value); + if (value == null) { + throw new NullPointerException(); + } + + cacheId_ = value; + onChanged(); return this; } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return This builder for chaining. */ public Builder clearCacheId() { - copyOnWrite(); - instance.clearCacheId(); + + cacheId_ = getDefaultInstance().getCacheId(); + onChanged(); return this; } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @param value The bytes for cacheId to set. + * @return This builder for chaining. */ public Builder setCacheIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCacheIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cacheId_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessage.Author.User) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessage.Author.User(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessage.Author.User other = (net.iGap.proto.ProtoGlobal.RoomMessage.Author.User) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - cacheId_ = visitor.visitString(!cacheId_.isEmpty(), cacheId_, - !other.cacheId_.isEmpty(), other.cacheId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - cacheId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.RoomMessage.Author.User) + } + // @@protoc_insertion_point(class_scope:proto.RoomMessage.Author.User) private static final net.iGap.proto.ProtoGlobal.RoomMessage.Author.User DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new User(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessage.Author.User(); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.User getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new User(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.User getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface RoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessage.Author.Room) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.RoomMessage.Author.Room} */ - public static final class Room extends - com.google.protobuf.GeneratedMessageLite< - Room, Room.Builder> implements + public static final class Room extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessage.Author.Room) RoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use Room.newBuilder() to construct. + private Room(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Room() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Room(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Room( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_Room_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.class, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder.class); + } + public static final int ROOM_ID_FIELD_NUMBER = 1; private long roomId_; /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (roomId_ != 0L) { output.writeUInt64(1, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -16543,367 +24430,468 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room other = (net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room) obj; + + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessage.Author.Room} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessage.Author.Room) net.iGap.proto.ProtoGlobal.RoomMessage.Author.RoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_Room_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.class, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - public long getRoomId() { - return instance.getRoomId(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); - return this; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - /** - * optional uint64 room_id = 1 [jstype = JS_STRING]; - */ - public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + @java.lang.Override + public Builder clear() { + super.clear(); + roomId_ = 0L; + return this; } - // @@protoc_insertion_point(builder_scope:proto.RoomMessage.Author.Room) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_Room_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room build() { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room other = (net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room) arg1; - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room result = new net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room(this); + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room)other); + } else { + super.mergeFrom(other); return this; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.getDefaultInstance()) return this; + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } - return PARSER; } + return this; } - throw new UnsupportedOperationException(); - } + private long roomId_ ; + /** + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return The roomId. + */ + @java.lang.Override + public long getRoomId() { + return roomId_; + } + /** + * uint64 room_id = 1 [jstype = JS_STRING]; + * @param value The roomId to set. + * @return This builder for chaining. + */ + public Builder setRoomId(long value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * uint64 room_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. + */ + public Builder clearRoomId() { + + roomId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.RoomMessage.Author.Room) + } // @@protoc_insertion_point(class_scope:proto.RoomMessage.Author.Room) private static final net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Room(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room(); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Room parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Room(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int HASH_FIELD_NUMBER = 1; - private java.lang.String hash_; + private volatile java.lang.Object hash_; /** - * optional string hash = 1; + * string hash = 1; + * @return The hash. */ + @java.lang.Override public java.lang.String getHash() { - return hash_; + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } } /** - * optional string hash = 1; + * string hash = 1; + * @return The bytes for hash. */ + @java.lang.Override public com.google.protobuf.ByteString getHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(hash_); - } - /** - * optional string hash = 1; - */ - private void setHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - } - /** - * optional string hash = 1; - */ - private void clearHash() { - - hash_ = getDefaultInstance().getHash(); - } - /** - * optional string hash = 1; - */ - private void setHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hash_ = value.toStringUtf8(); + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int USER_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomMessage.Author.User user_; /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; + * @return Whether the user field is set. */ + @java.lang.Override public boolean hasUser() { return user_ != null; } /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; + * @return The user. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage.Author.User getUser() { return user_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.getDefaultInstance() : user_; } /** - * optional .proto.RoomMessage.Author.User user = 2; - */ - private void setUser(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User value) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - - } - /** - * optional .proto.RoomMessage.Author.User user = 2; - */ - private void setUser( - net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder builderForValue) { - user_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage.Author.User user = 2; - */ - private void mergeUser(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User value) { - if (user_ != null && - user_ != net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.getDefaultInstance()) { - user_ = - net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.newBuilder(user_).mergeFrom(value).buildPartial(); - } else { - user_ = value; - } - - } - /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; */ - private void clearUser() { user_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.UserOrBuilder getUserOrBuilder() { + return getUser(); } public static final int ROOM_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room room_; /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; + * @return Whether the room field is set. */ + @java.lang.Override public boolean hasRoom() { return room_ != null; } /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; + * @return The room. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room getRoom() { return room_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.getDefaultInstance() : room_; } /** - * optional .proto.RoomMessage.Author.Room room = 3; - */ - private void setRoom(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room value) { - if (value == null) { - throw new NullPointerException(); - } - room_ = value; - - } - /** - * optional .proto.RoomMessage.Author.Room room = 3; - */ - private void setRoom( - net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder builderForValue) { - room_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; */ - private void mergeRoom(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room value) { - if (room_ != null && - room_ != net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.getDefaultInstance()) { - room_ = - net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.newBuilder(room_).mergeFrom(value).buildPartial(); - } else { - room_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); } - /** - * optional .proto.RoomMessage.Author.Room room = 3; - */ - private void clearRoom() { room_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeString(1, getHash()); + if (!getHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_); } if (user_ != null) { output.writeMessage(2, getUser()); @@ -16911,16 +24899,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (room_ != null) { output.writeMessage(3, getRoom()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getHash()); + if (!getHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_); } if (user_ != null) { size += com.google.protobuf.CodedOutputStream @@ -16930,389 +24919,739 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRoom()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessage.Author)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessage.Author other = (net.iGap.proto.ProtoGlobal.RoomMessage.Author) obj; + + if (!getHash() + .equals(other.getHash())) return false; + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessage.Author prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessage.Author} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessage.Author, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessage.Author) net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.Author.class, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessage.Author.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = ""; + + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_Author_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author build() { + net.iGap.proto.ProtoGlobal.RoomMessage.Author result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessage.Author result = new net.iGap.proto.ProtoGlobal.RoomMessage.Author(this); + result.hash_ = hash_; + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessage.Author) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessage.Author)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage.Author other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance()) return this; + if (!other.getHash().isEmpty()) { + hash_ = other.hash_; + onChanged(); + } + if (other.hasUser()) { + mergeUser(other.getUser()); + } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessage.Author parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessage.Author) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object hash_ = ""; /** - * optional string hash = 1; + * string hash = 1; + * @return The hash. */ public java.lang.String getHash() { - return instance.getHash(); + java.lang.Object ref = hash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string hash = 1; + * string hash = 1; + * @return The bytes for hash. */ public com.google.protobuf.ByteString getHashBytes() { - return instance.getHashBytes(); + java.lang.Object ref = hash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string hash = 1; + * string hash = 1; + * @param value The hash to set. + * @return This builder for chaining. */ public Builder setHash( java.lang.String value) { - copyOnWrite(); - instance.setHash(value); + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); return this; } /** - * optional string hash = 1; + * string hash = 1; + * @return This builder for chaining. */ public Builder clearHash() { - copyOnWrite(); - instance.clearHash(); + + hash_ = getDefaultInstance().getHash(); + onChanged(); return this; } /** - * optional string hash = 1; + * string hash = 1; + * @param value The bytes for hash to set. + * @return This builder for chaining. */ public Builder setHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hash_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage.Author.User user_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User, net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.Author.UserOrBuilder> userBuilder_; /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; + * @return Whether the user field is set. */ public boolean hasUser() { - return instance.hasUser(); + return userBuilder_ != null || user_ != null; } /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; + * @return The user. */ public net.iGap.proto.ProtoGlobal.RoomMessage.Author.User getUser() { - return instance.getUser(); + if (userBuilder_ == null) { + return user_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; */ public Builder setUser(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User value) { - copyOnWrite(); - instance.setUser(value); - return this; + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; */ public Builder setUser( net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder builderForValue) { - copyOnWrite(); - instance.setUser(builderForValue); + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; */ public Builder mergeUser(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User value) { - copyOnWrite(); - instance.mergeUser(value); + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage.Author.User user = 2; + * .proto.RoomMessage.Author.User user = 2; */ - public Builder clearUser() { copyOnWrite(); - instance.clearUser(); + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage.Author.User user = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage.Author.User user = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.getDefaultInstance() : user_; + } + } + /** + * .proto.RoomMessage.Author.User user = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User, net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.Author.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author.User, net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.Author.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.Author.RoomOrBuilder> roomBuilder_; /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; + * @return Whether the room field is set. */ public boolean hasRoom() { - return instance.hasRoom(); + return roomBuilder_ != null || room_ != null; } /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; + * @return The room. */ public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room getRoom() { - return instance.getRoom(); + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; */ public Builder setRoom(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room value) { - copyOnWrite(); - instance.setRoom(value); - return this; + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; */ public Builder setRoom( net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder builderForValue) { - copyOnWrite(); - instance.setRoom(builderForValue); + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; */ public Builder mergeRoom(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room value) { - copyOnWrite(); - instance.mergeRoom(value); + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage.Author.Room room = 3; + * .proto.RoomMessage.Author.Room room = 3; */ - public Builder clearRoom() { copyOnWrite(); - instance.clearRoom(); + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessage.Author) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessage.Author(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); + /** + * .proto.RoomMessage.Author.Room room = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage.Author.Room room = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.getDefaultInstance() : room_; } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessage.Author other = (net.iGap.proto.ProtoGlobal.RoomMessage.Author) arg1; - hash_ = visitor.visitString(!hash_.isEmpty(), hash_, - !other.hash_.isEmpty(), other.hash_); - user_ = visitor.visitMessage(user_, other.user_); - room_ = visitor.visitMessage(room_, other.room_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + } + /** + * .proto.RoomMessage.Author.Room room = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.Author.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.Author.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); + return roomBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - hash_ = s; - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.Builder subBuilder = null; - if (user_ != null) { - subBuilder = user_.toBuilder(); - } - user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.Author.User.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(user_); - user_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.Builder subBuilder = null; - if (room_ != null) { - subBuilder = room_.toBuilder(); - } - room_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.Author.Room.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(room_); - room_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessage.Author.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.RoomMessage.Author) + } + // @@protoc_insertion_point(class_scope:proto.RoomMessage.Author) private static final net.iGap.proto.ProtoGlobal.RoomMessage.Author DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Author(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessage.Author(); } public static net.iGap.proto.ProtoGlobal.RoomMessage.Author getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Author parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Author(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.Author getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChannelExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessage.ChannelExtra) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string signature = 1; + * string signature = 1; + * @return The signature. */ java.lang.String getSignature(); /** - * optional string signature = 1; + * string signature = 1; + * @return The bytes for signature. */ com.google.protobuf.ByteString getSignatureBytes(); /** - * optional string views_label = 2; + * string views_label = 2; + * @return The viewsLabel. */ java.lang.String getViewsLabel(); /** - * optional string views_label = 2; + * string views_label = 2; + * @return The bytes for viewsLabel. */ com.google.protobuf.ByteString getViewsLabelBytes(); /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The thumbsUpLabel. */ java.lang.String getThumbsUpLabel(); /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The bytes for thumbsUpLabel. */ com.google.protobuf.ByteString getThumbsUpLabelBytes(); /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The thumbsDownLabel. */ java.lang.String getThumbsDownLabel(); /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The bytes for thumbsDownLabel. */ com.google.protobuf.ByteString getThumbsDownLabelBytes(); @@ -17320,691 +25659,1127 @@ public interface ChannelExtraOrBuilder extends /** * Protobuf type {@code proto.RoomMessage.ChannelExtra} */ - public static final class ChannelExtra extends - com.google.protobuf.GeneratedMessageLite< - ChannelExtra, ChannelExtra.Builder> implements + public static final class ChannelExtra extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessage.ChannelExtra) ChannelExtraOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelExtra.newBuilder() to construct. + private ChannelExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelExtra() { signature_ = ""; viewsLabel_ = ""; thumbsUpLabel_ = ""; thumbsDownLabel_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelExtra(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelExtra( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + signature_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + viewsLabel_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + thumbsUpLabel_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + thumbsDownLabel_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_ChannelExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_ChannelExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.class, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder.class); + } + public static final int SIGNATURE_FIELD_NUMBER = 1; - private java.lang.String signature_; + private volatile java.lang.Object signature_; /** - * optional string signature = 1; + * string signature = 1; + * @return The signature. */ + @java.lang.Override public java.lang.String getSignature() { - return signature_; + java.lang.Object ref = signature_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signature_ = s; + return s; + } } /** - * optional string signature = 1; + * string signature = 1; + * @return The bytes for signature. */ + @java.lang.Override public com.google.protobuf.ByteString getSignatureBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(signature_); - } - /** - * optional string signature = 1; - */ - private void setSignature( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - } - /** - * optional string signature = 1; - */ - private void clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - } - /** - * optional string signature = 1; - */ - private void setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signature_ = value.toStringUtf8(); + java.lang.Object ref = signature_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signature_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VIEWS_LABEL_FIELD_NUMBER = 2; - private java.lang.String viewsLabel_; + private volatile java.lang.Object viewsLabel_; /** - * optional string views_label = 2; + * string views_label = 2; + * @return The viewsLabel. */ + @java.lang.Override public java.lang.String getViewsLabel() { - return viewsLabel_; + java.lang.Object ref = viewsLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + viewsLabel_ = s; + return s; + } } /** - * optional string views_label = 2; + * string views_label = 2; + * @return The bytes for viewsLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getViewsLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(viewsLabel_); - } - /** - * optional string views_label = 2; - */ - private void setViewsLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - viewsLabel_ = value; - } - /** - * optional string views_label = 2; - */ - private void clearViewsLabel() { - - viewsLabel_ = getDefaultInstance().getViewsLabel(); - } - /** - * optional string views_label = 2; - */ - private void setViewsLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - viewsLabel_ = value.toStringUtf8(); + java.lang.Object ref = viewsLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewsLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int THUMBS_UP_LABEL_FIELD_NUMBER = 3; - private java.lang.String thumbsUpLabel_; + private volatile java.lang.Object thumbsUpLabel_; /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The thumbsUpLabel. */ + @java.lang.Override public java.lang.String getThumbsUpLabel() { - return thumbsUpLabel_; + java.lang.Object ref = thumbsUpLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsUpLabel_ = s; + return s; + } } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The bytes for thumbsUpLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getThumbsUpLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(thumbsUpLabel_); - } - /** - * optional string thumbs_up_label = 3; - */ - private void setThumbsUpLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - thumbsUpLabel_ = value; - } - /** - * optional string thumbs_up_label = 3; - */ - private void clearThumbsUpLabel() { - - thumbsUpLabel_ = getDefaultInstance().getThumbsUpLabel(); - } - /** - * optional string thumbs_up_label = 3; - */ - private void setThumbsUpLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - thumbsUpLabel_ = value.toStringUtf8(); + java.lang.Object ref = thumbsUpLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsUpLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int THUMBS_DOWN_LABEL_FIELD_NUMBER = 4; - private java.lang.String thumbsDownLabel_; + private volatile java.lang.Object thumbsDownLabel_; /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The thumbsDownLabel. */ + @java.lang.Override public java.lang.String getThumbsDownLabel() { - return thumbsDownLabel_; + java.lang.Object ref = thumbsDownLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsDownLabel_ = s; + return s; + } } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The bytes for thumbsDownLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getThumbsDownLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(thumbsDownLabel_); - } - /** - * optional string thumbs_down_label = 4; - */ - private void setThumbsDownLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - thumbsDownLabel_ = value; - } - /** - * optional string thumbs_down_label = 4; - */ - private void clearThumbsDownLabel() { - - thumbsDownLabel_ = getDefaultInstance().getThumbsDownLabel(); + java.lang.Object ref = thumbsDownLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsDownLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string thumbs_down_label = 4; - */ - private void setThumbsDownLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - thumbsDownLabel_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!signature_.isEmpty()) { - output.writeString(1, getSignature()); + if (!getSignatureBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signature_); } - if (!viewsLabel_.isEmpty()) { - output.writeString(2, getViewsLabel()); + if (!getViewsLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, viewsLabel_); } - if (!thumbsUpLabel_.isEmpty()) { - output.writeString(3, getThumbsUpLabel()); + if (!getThumbsUpLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, thumbsUpLabel_); } - if (!thumbsDownLabel_.isEmpty()) { - output.writeString(4, getThumbsDownLabel()); + if (!getThumbsDownLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thumbsDownLabel_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getSignature()); + if (!getSignatureBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signature_); } - if (!viewsLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getViewsLabel()); + if (!getViewsLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, viewsLabel_); } - if (!thumbsUpLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getThumbsUpLabel()); + if (!getThumbsUpLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, thumbsUpLabel_); } - if (!thumbsDownLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getThumbsDownLabel()); + if (!getThumbsDownLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thumbsDownLabel_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra other = (net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra) obj; + + if (!getSignature() + .equals(other.getSignature())) return false; + if (!getViewsLabel() + .equals(other.getViewsLabel())) return false; + if (!getThumbsUpLabel() + .equals(other.getThumbsUpLabel())) return false; + if (!getThumbsDownLabel() + .equals(other.getThumbsDownLabel())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + hash = (37 * hash) + VIEWS_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getViewsLabel().hashCode(); + hash = (37 * hash) + THUMBS_UP_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getThumbsUpLabel().hashCode(); + hash = (37 * hash) + THUMBS_DOWN_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getThumbsDownLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessage.ChannelExtra} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessage.ChannelExtra) net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_ChannelExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_ChannelExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.class, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signature_ = ""; + + viewsLabel_ = ""; + + thumbsUpLabel_ = ""; + + thumbsDownLabel_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_ChannelExtra_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra build() { + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra result = new net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra(this); + result.signature_ = signature_; + result.viewsLabel_ = viewsLabel_; + result.thumbsUpLabel_ = thumbsUpLabel_; + result.thumbsDownLabel_ = thumbsDownLabel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance()) return this; + if (!other.getSignature().isEmpty()) { + signature_ = other.signature_; + onChanged(); + } + if (!other.getViewsLabel().isEmpty()) { + viewsLabel_ = other.viewsLabel_; + onChanged(); + } + if (!other.getThumbsUpLabel().isEmpty()) { + thumbsUpLabel_ = other.thumbsUpLabel_; + onChanged(); + } + if (!other.getThumbsDownLabel().isEmpty()) { + thumbsDownLabel_ = other.thumbsDownLabel_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object signature_ = ""; /** - * optional string signature = 1; + * string signature = 1; + * @return The signature. */ public java.lang.String getSignature() { - return instance.getSignature(); + java.lang.Object ref = signature_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signature_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string signature = 1; + * string signature = 1; + * @return The bytes for signature. */ public com.google.protobuf.ByteString getSignatureBytes() { - return instance.getSignatureBytes(); + java.lang.Object ref = signature_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signature_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string signature = 1; + * string signature = 1; + * @param value The signature to set. + * @return This builder for chaining. */ public Builder setSignature( java.lang.String value) { - copyOnWrite(); - instance.setSignature(value); + if (value == null) { + throw new NullPointerException(); + } + + signature_ = value; + onChanged(); return this; } /** - * optional string signature = 1; + * string signature = 1; + * @return This builder for chaining. */ public Builder clearSignature() { - copyOnWrite(); - instance.clearSignature(); + + signature_ = getDefaultInstance().getSignature(); + onChanged(); return this; } /** - * optional string signature = 1; + * string signature = 1; + * @param value The bytes for signature to set. + * @return This builder for chaining. */ public Builder setSignatureBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSignatureBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + signature_ = value; + onChanged(); return this; } + private java.lang.Object viewsLabel_ = ""; /** - * optional string views_label = 2; + * string views_label = 2; + * @return The viewsLabel. */ public java.lang.String getViewsLabel() { - return instance.getViewsLabel(); + java.lang.Object ref = viewsLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + viewsLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string views_label = 2; + * string views_label = 2; + * @return The bytes for viewsLabel. */ public com.google.protobuf.ByteString getViewsLabelBytes() { - return instance.getViewsLabelBytes(); + java.lang.Object ref = viewsLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewsLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string views_label = 2; + * string views_label = 2; + * @param value The viewsLabel to set. + * @return This builder for chaining. */ public Builder setViewsLabel( java.lang.String value) { - copyOnWrite(); - instance.setViewsLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + viewsLabel_ = value; + onChanged(); return this; } /** - * optional string views_label = 2; + * string views_label = 2; + * @return This builder for chaining. */ public Builder clearViewsLabel() { - copyOnWrite(); - instance.clearViewsLabel(); + + viewsLabel_ = getDefaultInstance().getViewsLabel(); + onChanged(); return this; } /** - * optional string views_label = 2; + * string views_label = 2; + * @param value The bytes for viewsLabel to set. + * @return This builder for chaining. */ public Builder setViewsLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setViewsLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + viewsLabel_ = value; + onChanged(); return this; } + private java.lang.Object thumbsUpLabel_ = ""; /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The thumbsUpLabel. */ public java.lang.String getThumbsUpLabel() { - return instance.getThumbsUpLabel(); + java.lang.Object ref = thumbsUpLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsUpLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return The bytes for thumbsUpLabel. */ public com.google.protobuf.ByteString getThumbsUpLabelBytes() { - return instance.getThumbsUpLabelBytes(); + java.lang.Object ref = thumbsUpLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsUpLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @param value The thumbsUpLabel to set. + * @return This builder for chaining. */ public Builder setThumbsUpLabel( java.lang.String value) { - copyOnWrite(); - instance.setThumbsUpLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + thumbsUpLabel_ = value; + onChanged(); return this; } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @return This builder for chaining. */ public Builder clearThumbsUpLabel() { - copyOnWrite(); - instance.clearThumbsUpLabel(); + + thumbsUpLabel_ = getDefaultInstance().getThumbsUpLabel(); + onChanged(); return this; } /** - * optional string thumbs_up_label = 3; + * string thumbs_up_label = 3; + * @param value The bytes for thumbsUpLabel to set. + * @return This builder for chaining. */ public Builder setThumbsUpLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setThumbsUpLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + thumbsUpLabel_ = value; + onChanged(); return this; } + private java.lang.Object thumbsDownLabel_ = ""; /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The thumbsDownLabel. */ public java.lang.String getThumbsDownLabel() { - return instance.getThumbsDownLabel(); + java.lang.Object ref = thumbsDownLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbsDownLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return The bytes for thumbsDownLabel. */ public com.google.protobuf.ByteString getThumbsDownLabelBytes() { - return instance.getThumbsDownLabelBytes(); + java.lang.Object ref = thumbsDownLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + thumbsDownLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @param value The thumbsDownLabel to set. + * @return This builder for chaining. */ public Builder setThumbsDownLabel( java.lang.String value) { - copyOnWrite(); - instance.setThumbsDownLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + thumbsDownLabel_ = value; + onChanged(); return this; } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @return This builder for chaining. */ public Builder clearThumbsDownLabel() { - copyOnWrite(); - instance.clearThumbsDownLabel(); + + thumbsDownLabel_ = getDefaultInstance().getThumbsDownLabel(); + onChanged(); return this; } /** - * optional string thumbs_down_label = 4; + * string thumbs_down_label = 4; + * @param value The bytes for thumbsDownLabel to set. + * @return This builder for chaining. */ public Builder setThumbsDownLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setThumbsDownLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + thumbsDownLabel_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessage.ChannelExtra) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra other = (net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra) arg1; - signature_ = visitor.visitString(!signature_.isEmpty(), signature_, - !other.signature_.isEmpty(), other.signature_); - viewsLabel_ = visitor.visitString(!viewsLabel_.isEmpty(), viewsLabel_, - !other.viewsLabel_.isEmpty(), other.viewsLabel_); - thumbsUpLabel_ = visitor.visitString(!thumbsUpLabel_.isEmpty(), thumbsUpLabel_, - !other.thumbsUpLabel_.isEmpty(), other.thumbsUpLabel_); - thumbsDownLabel_ = visitor.visitString(!thumbsDownLabel_.isEmpty(), thumbsDownLabel_, - !other.thumbsDownLabel_.isEmpty(), other.thumbsDownLabel_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - signature_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - viewsLabel_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - thumbsUpLabel_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - thumbsDownLabel_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessage.ChannelExtra) } - // @@protoc_insertion_point(class_scope:proto.RoomMessage.ChannelExtra) private static final net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelExtra(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra(); } public static net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelExtra parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelExtra(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessage.GroupExtra) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; + * @return Whether the mentions field is set. */ boolean hasMentions(); /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; + * @return The mentions. */ net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * .proto.Mention mentions = 1; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); } /** * Protobuf type {@code proto.RoomMessage.GroupExtra} */ - public static final class GroupExtra extends - com.google.protobuf.GeneratedMessageLite< - GroupExtra, GroupExtra.Builder> implements + public static final class GroupExtra extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessage.GroupExtra) GroupExtraOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupExtra.newBuilder() to construct. + private GroupExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupExtra() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupExtra(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupExtra( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.class, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder.class); + } + public static final int MENTIONS_FIELD_NUMBER = 1; private net.iGap.proto.ProtoGlobal.Mention mentions_; /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; + * @return Whether the mentions field is set. */ + @java.lang.Override public boolean hasMentions() { return mentions_ != null; } /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; + * @return The mentions. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Mention getMentions() { return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } /** - * optional .proto.Mention mentions = 1; - */ - private void setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (value == null) { - throw new NullPointerException(); - } - mentions_ = value; - - } - /** - * optional .proto.Mention mentions = 1; - */ - private void setMentions( - net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - mentions_ = builderForValue.build(); - - } - /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; */ - private void mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (mentions_ != null && - mentions_ != net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance()) { - mentions_ = - net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); - } else { - mentions_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); } - /** - * optional .proto.Mention mentions = 1; - */ - private void clearMentions() { mentions_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (mentions_ != null) { output.writeMessage(1, getMentions()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -18012,1438 +26787,1089 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMentions()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra other = (net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra) obj; + + if (hasMentions() != other.hasMentions()) return false; + if (hasMentions()) { + if (!getMentions() + .equals(other.getMentions())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessage.GroupExtra} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessage.GroupExtra) net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.class, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra build() { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra result = new net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra(this); + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance()) return this; + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoGlobal.Mention mentions_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; + * @return Whether the mentions field is set. */ public boolean hasMentions() { - return instance.hasMentions(); + return mentionsBuilder_ != null || mentions_ != null; } /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; + * @return The mentions. */ public net.iGap.proto.ProtoGlobal.Mention getMentions() { - return instance.getMentions(); + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } } /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; */ public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.setMentions(value); - return this; + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; */ public Builder setMentions( net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - copyOnWrite(); - instance.setMentions(builderForValue); + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; */ public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.mergeMentions(value); + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Mention mentions = 1; + * .proto.Mention mentions = 1; */ - public Builder clearMentions() { copyOnWrite(); - instance.clearMentions(); + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessage.GroupExtra) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra other = (net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra) arg1; - mentions_ = visitor.visitMessage(mentions_, other.mentions_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; - if (mentions_ != null) { - subBuilder = mentions_.toBuilder(); - } - mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mentions_); - mentions_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Mention mentions = 1; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * .proto.Mention mentions = 1; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Mention mentions = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; } + return mentionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.RoomMessage.GroupExtra) + } // @@protoc_insertion_point(class_scope:proto.RoomMessage.GroupExtra) private static final net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupExtra(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra(); } public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupExtra parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupExtra(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int ROOM_ID_FIELD_NUMBER = 26; private long roomId_; /** - * optional uint64 room_id = 26; + * uint64 room_id = 26; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 26; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 26; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 1; private long messageId_; /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; + * uint64 message_id = 1 [jstype = JS_STRING]; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_VERSION_FIELD_NUMBER = 2; private long messageVersion_; /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; + * uint64 message_version = 2 [jstype = JS_STRING]; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { return messageVersion_; } - /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; - */ - private void setMessageVersion(long value) { - - messageVersion_ = value; - } - /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; - */ - private void clearMessageVersion() { - - messageVersion_ = 0L; - } public static final int STATUS_FIELD_NUMBER = 3; private int status_; /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageStatus status = 3; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.RoomMessageStatus status = 3; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageStatus status = 3; - */ - private void clearStatus() { - - status_ = 0; - } public static final int STATUS_VERSION_FIELD_NUMBER = 4; private long statusVersion_; /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; + * uint64 status_version = 4 [jstype = JS_STRING]; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { return statusVersion_; } - /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; - */ - private void setStatusVersion(long value) { - - statusVersion_ = value; - } - /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; - */ - private void clearStatusVersion() { - - statusVersion_ = 0L; - } public static final int MESSAGE_TYPE_FIELD_NUMBER = 5; private int messageType_; /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { + @java.lang.Override public int getMessageTypeValue() { return messageType_; } /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @return The messageType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.forNumber(messageType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageType message_type = 5; - */ - private void setMessageTypeValue(int value) { - messageType_ = value; - } - /** - * optional .proto.RoomMessageType message_type = 5; - */ - private void setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - - messageType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageType message_type = 5; - */ - private void clearMessageType() { - - messageType_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 6; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 6; + * string message = 6; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 6; + * string message = 6; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 6; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 6; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 6; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ATTACHMENT_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.File attachment_; /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; + * @return Whether the attachment field is set. */ + @java.lang.Override public boolean hasAttachment() { return attachment_ != null; } /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; + * @return The attachment. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.File getAttachment() { return attachment_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : attachment_; } /** - * optional .proto.File attachment = 7; - */ - private void setAttachment(net.iGap.proto.ProtoGlobal.File value) { - if (value == null) { - throw new NullPointerException(); - } - attachment_ = value; - - } - /** - * optional .proto.File attachment = 7; - */ - private void setAttachment( - net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - attachment_ = builderForValue.build(); - - } - /** - * optional .proto.File attachment = 7; - */ - private void mergeAttachment(net.iGap.proto.ProtoGlobal.File value) { - if (attachment_ != null && - attachment_ != net.iGap.proto.ProtoGlobal.File.getDefaultInstance()) { - attachment_ = - net.iGap.proto.ProtoGlobal.File.newBuilder(attachment_).mergeFrom(value).buildPartial(); - } else { - attachment_ = value; - } - - } - /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; */ - private void clearAttachment() { attachment_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.FileOrBuilder getAttachmentOrBuilder() { + return getAttachment(); } public static final int AUTHOR_FIELD_NUMBER = 8; private net.iGap.proto.ProtoGlobal.RoomMessage.Author author_; /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; + * @return Whether the author field is set. */ + @java.lang.Override public boolean hasAuthor() { return author_ != null; } /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; + * @return The author. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage.Author getAuthor() { return author_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance() : author_; } /** - * optional .proto.RoomMessage.Author author = 8; - */ - private void setAuthor(net.iGap.proto.ProtoGlobal.RoomMessage.Author value) { - if (value == null) { - throw new NullPointerException(); - } - author_ = value; - - } - /** - * optional .proto.RoomMessage.Author author = 8; - */ - private void setAuthor( - net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder builderForValue) { - author_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage.Author author = 8; - */ - private void mergeAuthor(net.iGap.proto.ProtoGlobal.RoomMessage.Author value) { - if (author_ != null && - author_ != net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance()) { - author_ = - net.iGap.proto.ProtoGlobal.RoomMessage.Author.newBuilder(author_).mergeFrom(value).buildPartial(); - } else { - author_ = value; - } - - } - /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; */ - private void clearAuthor() { author_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder getAuthorOrBuilder() { + return getAuthor(); } public static final int LOCATION_FIELD_NUMBER = 9; private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; + * @return Whether the location field is set. */ + @java.lang.Override public boolean hasLocation() { return location_ != null; } /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; + * @return The location. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; } /** - * optional .proto.RoomMessageLocation location = 9; - */ - private void setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (value == null) { - throw new NullPointerException(); - } - location_ = value; - - } - /** - * optional .proto.RoomMessageLocation location = 9; - */ - private void setLocation( - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - location_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageLocation location = 9; - */ - private void mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (location_ != null && - location_ != net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance()) { - location_ = - net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); - } else { - location_ = value; - } - - } - /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; */ - private void clearLocation() { location_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + return getLocation(); } public static final int LOG_FIELD_NUMBER = 10; private net.iGap.proto.ProtoGlobal.RoomMessageLog log_; /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; + * @return Whether the log field is set. */ + @java.lang.Override public boolean hasLog() { return log_ != null; } /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; + * @return The log. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLog getLog() { return log_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance() : log_; } /** - * optional .proto.RoomMessageLog log = 10; - */ - private void setLog(net.iGap.proto.ProtoGlobal.RoomMessageLog value) { - if (value == null) { - throw new NullPointerException(); - } - log_ = value; - - } - /** - * optional .proto.RoomMessageLog log = 10; - */ - private void setLog( - net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder builderForValue) { - log_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageLog log = 10; - */ - private void mergeLog(net.iGap.proto.ProtoGlobal.RoomMessageLog value) { - if (log_ != null && - log_ != net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance()) { - log_ = - net.iGap.proto.ProtoGlobal.RoomMessageLog.newBuilder(log_).mergeFrom(value).buildPartial(); - } else { - log_ = value; - } - - } - /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; */ - private void clearLog() { log_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder getLogOrBuilder() { + return getLog(); } public static final int CONTACT_FIELD_NUMBER = 11; private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; + * @return Whether the contact field is set. */ + @java.lang.Override public boolean hasContact() { return contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; + * @return The contact. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; } /** - * optional .proto.RoomMessageContact contact = 11; - */ - private void setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (value == null) { - throw new NullPointerException(); - } - contact_ = value; - - } - /** - * optional .proto.RoomMessageContact contact = 11; - */ - private void setContact( - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - contact_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageContact contact = 11; - */ - private void mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (contact_ != null && - contact_ != net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance()) { - contact_ = - net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); - } else { - contact_ = value; - } - - } - /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; */ - private void clearContact() { contact_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + return getContact(); } public static final int WALLET_FIELD_NUMBER = 22; private net.iGap.proto.ProtoGlobal.RoomMessageWallet wallet_; /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; + * @return Whether the wallet field is set. */ + @java.lang.Override public boolean hasWallet() { return wallet_ != null; } /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; + * @return The wallet. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageWallet getWallet() { return wallet_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance() : wallet_; } /** - * optional .proto.RoomMessageWallet wallet = 22; - */ - private void setWallet(net.iGap.proto.ProtoGlobal.RoomMessageWallet value) { - if (value == null) { - throw new NullPointerException(); - } - wallet_ = value; - - } - /** - * optional .proto.RoomMessageWallet wallet = 22; - */ - private void setWallet( - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder builderForValue) { - wallet_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageWallet wallet = 22; - */ - private void mergeWallet(net.iGap.proto.ProtoGlobal.RoomMessageWallet value) { - if (wallet_ != null && - wallet_ != net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance()) { - wallet_ = - net.iGap.proto.ProtoGlobal.RoomMessageWallet.newBuilder(wallet_).mergeFrom(value).buildPartial(); - } else { - wallet_ = value; - } - - } - /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; */ - private void clearWallet() { wallet_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder getWalletOrBuilder() { + return getWallet(); } public static final int EDITED_FIELD_NUMBER = 12; private boolean edited_; /** - * optional bool edited = 12; + * bool edited = 12; + * @return The edited. */ + @java.lang.Override public boolean getEdited() { return edited_; } - /** - * optional bool edited = 12; - */ - private void setEdited(boolean value) { - - edited_ = value; - } - /** - * optional bool edited = 12; - */ - private void clearEdited() { - - edited_ = false; - } public static final int CREATE_TIME_FIELD_NUMBER = 13; private int createTime_; /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return The createTime. */ + @java.lang.Override public int getCreateTime() { return createTime_; } - /** - * optional uint32 create_time = 13; - */ - private void setCreateTime(int value) { - - createTime_ = value; - } - /** - * optional uint32 create_time = 13; - */ - private void clearCreateTime() { - - createTime_ = 0; - } public static final int UPDATE_TIME_FIELD_NUMBER = 14; private int updateTime_; /** - * optional uint32 update_time = 14; + * uint32 update_time = 14; + * @return The updateTime. */ + @java.lang.Override public int getUpdateTime() { return updateTime_; } - /** - * optional uint32 update_time = 14; - */ - private void setUpdateTime(int value) { - - updateTime_ = value; - } - /** - * optional uint32 update_time = 14; - */ - private void clearUpdateTime() { - - updateTime_ = 0; - } public static final int DELETED_FIELD_NUMBER = 15; private boolean deleted_; /** - * optional bool deleted = 15; + * bool deleted = 15; + * @return The deleted. */ + @java.lang.Override public boolean getDeleted() { return deleted_; } - /** - * optional bool deleted = 15; - */ - private void setDeleted(boolean value) { - - deleted_ = value; - } - /** - * optional bool deleted = 15; - */ - private void clearDeleted() { - - deleted_ = false; - } public static final int FORWARD_FROM_FIELD_NUMBER = 16; private net.iGap.proto.ProtoGlobal.RoomMessage forwardFrom_; /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; + * @return Whether the forwardFrom field is set. */ + @java.lang.Override public boolean hasForwardFrom() { return forwardFrom_ != null; } /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; + * @return The forwardFrom. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getForwardFrom() { return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : forwardFrom_; } /** - * optional .proto.RoomMessage forward_from = 16; - */ - private void setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - forwardFrom_ = value; - - } - /** - * optional .proto.RoomMessage forward_from = 16; - */ - private void setForwardFrom( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - forwardFrom_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage forward_from = 16; - */ - private void mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (forwardFrom_ != null && - forwardFrom_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - forwardFrom_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); - } else { - forwardFrom_ = value; - } - - } - /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; */ - private void clearForwardFrom() { forwardFrom_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getForwardFromOrBuilder() { + return getForwardFrom(); } public static final int REPLY_TO_FIELD_NUMBER = 17; private net.iGap.proto.ProtoGlobal.RoomMessage replyTo_; /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; + * @return Whether the replyTo field is set. */ + @java.lang.Override public boolean hasReplyTo() { return replyTo_ != null; } /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; + * @return The replyTo. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getReplyTo() { return replyTo_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : replyTo_; } /** - * optional .proto.RoomMessage reply_to = 17; - */ - private void setReplyTo(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - replyTo_ = value; - - } - /** - * optional .proto.RoomMessage reply_to = 17; - */ - private void setReplyTo( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - replyTo_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage reply_to = 17; - */ - private void mergeReplyTo(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (replyTo_ != null && - replyTo_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - replyTo_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(replyTo_).mergeFrom(value).buildPartial(); - } else { - replyTo_ = value; - } - - } - /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; */ - private void clearReplyTo() { replyTo_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getReplyToOrBuilder() { + return getReplyTo(); } public static final int STORY_FIELD_NUMBER = 25; private net.iGap.proto.ProtoGlobal.RoomMessageStory story_; /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; + * @return Whether the story field is set. */ + @java.lang.Override public boolean hasStory() { return story_ != null; } /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; + * @return The story. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStory getStory() { return story_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance() : story_; } /** - * optional .proto.RoomMessageStory story = 25; - */ - private void setStory(net.iGap.proto.ProtoGlobal.RoomMessageStory value) { - if (value == null) { - throw new NullPointerException(); - } - story_ = value; - - } - /** - * optional .proto.RoomMessageStory story = 25; - */ - private void setStory( - net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder builderForValue) { - story_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageStory story = 25; - */ - private void mergeStory(net.iGap.proto.ProtoGlobal.RoomMessageStory value) { - if (story_ != null && - story_ != net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance()) { - story_ = - net.iGap.proto.ProtoGlobal.RoomMessageStory.newBuilder(story_).mergeFrom(value).buildPartial(); - } else { - story_ = value; - } - - } - /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; */ - private void clearStory() { story_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder getStoryOrBuilder() { + return getStory(); } public static final int PREVIOUS_MESSAGE_ID_FIELD_NUMBER = 18; private long previousMessageId_; /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; + * uint64 previous_message_id = 18 [jstype = JS_STRING]; + * @return The previousMessageId. */ + @java.lang.Override public long getPreviousMessageId() { return previousMessageId_; } - /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; - */ - private void setPreviousMessageId(long value) { - - previousMessageId_ = value; - } - /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; - */ - private void clearPreviousMessageId() { - - previousMessageId_ = 0L; - } public static final int RANDOM_ID_FIELD_NUMBER = 21; private long randomId_; /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; + * uint64 random_id = 21 [jstype = JS_STRING]; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { return randomId_; } - /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; - */ - private void setRandomId(long value) { - - randomId_ = value; - } - /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; - */ - private void clearRandomId() { - - randomId_ = 0L; - } public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 23; private int additionalType_; /** - * optional uint32 additional_type = 23; + * uint32 additional_type = 23; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { return additionalType_; } - /** - * optional uint32 additional_type = 23; - */ - private void setAdditionalType(int value) { - - additionalType_ = value; - } - /** - * optional uint32 additional_type = 23; - */ - private void clearAdditionalType() { - - additionalType_ = 0; - } public static final int ADDITIONAL_DATA_FIELD_NUMBER = 24; - private java.lang.String additionalData_; + private volatile java.lang.Object additionalData_; /** - * optional string additional_data = 24; + * string additional_data = 24; + * @return The additionalData. */ + @java.lang.Override public java.lang.String getAdditionalData() { - return additionalData_; + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } } /** - * optional string additional_data = 24; + * string additional_data = 24; + * @return The bytes for additionalData. */ + @java.lang.Override public com.google.protobuf.ByteString getAdditionalDataBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(additionalData_); - } - /** - * optional string additional_data = 24; - */ - private void setAdditionalData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - additionalData_ = value; - } - /** - * optional string additional_data = 24; - */ - private void clearAdditionalData() { - - additionalData_ = getDefaultInstance().getAdditionalData(); - } - /** - * optional string additional_data = 24; - */ - private void setAdditionalDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - additionalData_ = value.toStringUtf8(); + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXTRA_TYPE_FIELD_NUMBER = 19; private int extraType_; /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @return The enum numeric value on the wire for extraType. */ - public int getExtraTypeValue() { + @java.lang.Override public int getExtraTypeValue() { return extraType_; } /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @return The extraType. */ - public net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType getExtraType() { - net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.forNumber(extraType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType getExtraType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.valueOf(extraType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; - */ - private void setExtraTypeValue(int value) { - extraType_ = value; - } - /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; - */ - private void setExtraType(net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType value) { - if (value == null) { - throw new NullPointerException(); - } - - extraType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; - */ - private void clearExtraType() { - - extraType_ = 0; - } public static final int CHANNEL_EXTRA_FIELD_NUMBER = 20; private net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra channelExtra_; /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + * @return Whether the channelExtra field is set. */ + @java.lang.Override public boolean hasChannelExtra() { return channelExtra_ != null; } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + * @return The channelExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getChannelExtra() { return channelExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance() : channelExtra_; } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; */ - private void setChannelExtra(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra value) { - if (value == null) { - throw new NullPointerException(); - } - channelExtra_ = value; - - } - /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; - */ - private void setChannelExtra( - net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder builderForValue) { - channelExtra_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; - */ - private void mergeChannelExtra(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra value) { - if (channelExtra_ != null && - channelExtra_ != net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance()) { - channelExtra_ = - net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.newBuilder(channelExtra_).mergeFrom(value).buildPartial(); - } else { - channelExtra_ = value; - } - - } - /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; - */ - private void clearChannelExtra() { channelExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder getChannelExtraOrBuilder() { + return getChannelExtra(); } public static final int DOCUMENT_ID_FIELD_NUMBER = 27; private long documentId_; /** - * optional uint64 document_id = 27; + * uint64 document_id = 27; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 27; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 27; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int VERSION_DOCUMENT_ID_FIELD_NUMBER = 28; private long versionDocumentId_; /** - * optional uint64 version_document_id = 28; + * uint64 version_document_id = 28; + * @return The versionDocumentId. */ + @java.lang.Override public long getVersionDocumentId() { return versionDocumentId_; } - /** - * optional uint64 version_document_id = 28; - */ - private void setVersionDocumentId(long value) { - - versionDocumentId_ = value; - } - /** - * optional uint64 version_document_id = 28; - */ - private void clearVersionDocumentId() { - - versionDocumentId_ = 0L; - } public static final int GROUP_EXTRA_FIELD_NUMBER = 29; private net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra groupExtra_; /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; + * @return Whether the groupExtra field is set. */ + @java.lang.Override public boolean hasGroupExtra() { return groupExtra_ != null; } /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; + * @return The groupExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getGroupExtra() { return groupExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance() : groupExtra_; } /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; - */ - private void setGroupExtra(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra value) { - if (value == null) { - throw new NullPointerException(); - } - groupExtra_ = value; - - } - /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; - */ - private void setGroupExtra( - net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder builderForValue) { - groupExtra_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; - */ - private void mergeGroupExtra(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra value) { - if (groupExtra_ != null && - groupExtra_ != net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance()) { - groupExtra_ = - net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.newBuilder(groupExtra_).mergeFrom(value).buildPartial(); - } else { - groupExtra_ = value; - } - - } - /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; */ - private void clearGroupExtra() { groupExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder getGroupExtraOrBuilder() { + return getGroupExtra(); } public static final int STICKER_FIELD_NUMBER = 30; private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; + * @return Whether the sticker field is set. */ + @java.lang.Override public boolean hasSticker() { return sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; + * @return The sticker. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; } /** - * optional .proto.RoomMessageSticker sticker = 30; - */ - private void setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (value == null) { - throw new NullPointerException(); - } - sticker_ = value; - - } - /** - * optional .proto.RoomMessageSticker sticker = 30; - */ - private void setSticker( - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - sticker_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageSticker sticker = 30; - */ - private void mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (sticker_ != null && - sticker_ != net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance()) { - sticker_ = - net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); - } else { - sticker_ = value; - } - - } - /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; */ - private void clearSticker() { sticker_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); } public static final int CARD_TO_CARD_FIELD_NUMBER = 31; private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; + * @return Whether the cardToCard field is set. */ + @java.lang.Override public boolean hasCardToCard() { return cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; + * @return The cardToCard. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; */ - private void setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (value == null) { - throw new NullPointerException(); - } - cardToCard_ = value; - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; - */ - private void setCardToCard( - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - cardToCard_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; - */ - private void mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (cardToCard_ != null && - cardToCard_ != net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance()) { - cardToCard_ = - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); - } else { - cardToCard_ = value; - } - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; - */ - private void clearCardToCard() { cardToCard_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); } public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 32; - private com.google.protobuf.Internal.ProtobufList botActionLists_; + private java.util.List botActionLists_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ + @java.lang.Override public java.util.List getBotActionListsList() { return botActionLists_; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ + @java.lang.Override public java.util.List getBotActionListsOrBuilderList() { return botActionLists_; @@ -19451,160 +27877,64 @@ public java.util.List getBo /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ + @java.lang.Override public int getBotActionListsCount() { return botActionLists_.size(); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { return botActionLists_.get(index); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( int index) { return botActionLists_.get(index); } - private void ensureBotActionListsIsMutable() { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - } - - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.set(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void addBotActionLists( - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void addAllBotActionLists( - java.lang.Iterable values) { - ensureBotActionListsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, botActionLists_); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void clearBotActionLists() { - botActionLists_ = emptyProtobufList(); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; - */ - private void removeBotActionLists(int index) { - ensureBotActionListsIsMutable(); - botActionLists_.remove(index); - } public static final int TEXT_SIGNS_FIELD_NUMBER = 33; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 33; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 33; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 33; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (messageId_ != 0L) { @@ -19622,8 +27952,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageType_ != net.iGap.proto.ProtoGlobal.RoomMessageType.TEXT.getNumber()) { output.writeEnum(5, messageType_); } - if (!message_.isEmpty()) { - output.writeString(6, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); } if (attachment_ != null) { output.writeMessage(7, getAttachment()); @@ -19676,8 +28006,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (additionalType_ != 0) { output.writeUInt32(23, additionalType_); } - if (!additionalData_.isEmpty()) { - output.writeString(24, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, additionalData_); } if (story_ != null) { output.writeMessage(25, getStory()); @@ -19706,10 +28036,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(33, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -19733,9 +28065,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, messageType_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_); } if (attachment_ != null) { size += com.google.protobuf.CodedOutputStream @@ -19805,9 +28136,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(23, additionalType_); } - if (!additionalData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(24, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, additionalData_); } if (story_ != null) { size += com.google.protobuf.CodedOutputStream @@ -19845,1192 +28175,3150 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessage other = (net.iGap.proto.ProtoGlobal.RoomMessage) obj; + + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getMessageVersion() + != other.getMessageVersion()) return false; + if (status_ != other.status_) return false; + if (getStatusVersion() + != other.getStatusVersion()) return false; + if (messageType_ != other.messageType_) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (hasAttachment() != other.hasAttachment()) return false; + if (hasAttachment()) { + if (!getAttachment() + .equals(other.getAttachment())) return false; + } + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor() + .equals(other.getAuthor())) return false; + } + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation() + .equals(other.getLocation())) return false; + } + if (hasLog() != other.hasLog()) return false; + if (hasLog()) { + if (!getLog() + .equals(other.getLog())) return false; + } + if (hasContact() != other.hasContact()) return false; + if (hasContact()) { + if (!getContact() + .equals(other.getContact())) return false; + } + if (hasWallet() != other.hasWallet()) return false; + if (hasWallet()) { + if (!getWallet() + .equals(other.getWallet())) return false; + } + if (getEdited() + != other.getEdited()) return false; + if (getCreateTime() + != other.getCreateTime()) return false; + if (getUpdateTime() + != other.getUpdateTime()) return false; + if (getDeleted() + != other.getDeleted()) return false; + if (hasForwardFrom() != other.hasForwardFrom()) return false; + if (hasForwardFrom()) { + if (!getForwardFrom() + .equals(other.getForwardFrom())) return false; + } + if (hasReplyTo() != other.hasReplyTo()) return false; + if (hasReplyTo()) { + if (!getReplyTo() + .equals(other.getReplyTo())) return false; + } + if (hasStory() != other.hasStory()) return false; + if (hasStory()) { + if (!getStory() + .equals(other.getStory())) return false; + } + if (getPreviousMessageId() + != other.getPreviousMessageId()) return false; + if (getRandomId() + != other.getRandomId()) return false; + if (getAdditionalType() + != other.getAdditionalType()) return false; + if (!getAdditionalData() + .equals(other.getAdditionalData())) return false; + if (extraType_ != other.extraType_) return false; + if (hasChannelExtra() != other.hasChannelExtra()) return false; + if (hasChannelExtra()) { + if (!getChannelExtra() + .equals(other.getChannelExtra())) return false; + } + if (getDocumentId() + != other.getDocumentId()) return false; + if (getVersionDocumentId() + != other.getVersionDocumentId()) return false; + if (hasGroupExtra() != other.hasGroupExtra()) return false; + if (hasGroupExtra()) { + if (!getGroupExtra() + .equals(other.getGroupExtra())) return false; + } + if (hasSticker() != other.hasSticker()) return false; + if (hasSticker()) { + if (!getSticker() + .equals(other.getSticker())) return false; + } + if (hasCardToCard() != other.hasCardToCard()) return false; + if (hasCardToCard()) { + if (!getCardToCard() + .equals(other.getCardToCard())) return false; + } + if (!getBotActionListsList() + .equals(other.getBotActionListsList())) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageVersion()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStatusVersion()); + hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (hasAttachment()) { + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + } + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + if (hasLog()) { + hash = (37 * hash) + LOG_FIELD_NUMBER; + hash = (53 * hash) + getLog().hashCode(); + } + if (hasContact()) { + hash = (37 * hash) + CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getContact().hashCode(); + } + if (hasWallet()) { + hash = (37 * hash) + WALLET_FIELD_NUMBER; + hash = (53 * hash) + getWallet().hashCode(); + } + hash = (37 * hash) + EDITED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEdited()); + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime(); + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleted()); + if (hasForwardFrom()) { + hash = (37 * hash) + FORWARD_FROM_FIELD_NUMBER; + hash = (53 * hash) + getForwardFrom().hashCode(); + } + if (hasReplyTo()) { + hash = (37 * hash) + REPLY_TO_FIELD_NUMBER; + hash = (53 * hash) + getReplyTo().hashCode(); + } + if (hasStory()) { + hash = (37 * hash) + STORY_FIELD_NUMBER; + hash = (53 * hash) + getStory().hashCode(); + } + hash = (37 * hash) + PREVIOUS_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPreviousMessageId()); + hash = (37 * hash) + RANDOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRandomId()); + hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalType(); + hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalData().hashCode(); + hash = (37 * hash) + EXTRA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + extraType_; + if (hasChannelExtra()) { + hash = (37 * hash) + CHANNEL_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getChannelExtra().hashCode(); + } + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (37 * hash) + VERSION_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionDocumentId()); + if (hasGroupExtra()) { + hash = (37 * hash) + GROUP_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getGroupExtra().hashCode(); + } + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessage) net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.class, net.iGap.proto.ProtoGlobal.RoomMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + roomId_ = 0L; + + messageId_ = 0L; + + messageVersion_ = 0L; + + status_ = 0; + + statusVersion_ = 0L; + + messageType_ = 0; + + message_ = ""; + + if (attachmentBuilder_ == null) { + attachment_ = null; + } else { + attachment_ = null; + attachmentBuilder_ = null; + } + if (authorBuilder_ == null) { + author_ = null; + } else { + author_ = null; + authorBuilder_ = null; + } + if (locationBuilder_ == null) { + location_ = null; + } else { + location_ = null; + locationBuilder_ = null; + } + if (logBuilder_ == null) { + log_ = null; + } else { + log_ = null; + logBuilder_ = null; + } + if (contactBuilder_ == null) { + contact_ = null; + } else { + contact_ = null; + contactBuilder_ = null; + } + if (walletBuilder_ == null) { + wallet_ = null; + } else { + wallet_ = null; + walletBuilder_ = null; + } + edited_ = false; + + createTime_ = 0; + + updateTime_ = 0; + + deleted_ = false; + + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + if (replyToBuilder_ == null) { + replyTo_ = null; + } else { + replyTo_ = null; + replyToBuilder_ = null; + } + if (storyBuilder_ == null) { + story_ = null; + } else { + story_ = null; + storyBuilder_ = null; + } + previousMessageId_ = 0L; + + randomId_ = 0L; + + additionalType_ = 0; + + additionalData_ = ""; + + extraType_ = 0; + + if (channelExtraBuilder_ == null) { + channelExtra_ = null; + } else { + channelExtra_ = null; + channelExtraBuilder_ = null; + } + documentId_ = 0L; + + versionDocumentId_ = 0L; + + if (groupExtraBuilder_ == null) { + groupExtra_ = null; + } else { + groupExtra_ = null; + groupExtraBuilder_ = null; + } + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage build() { + net.iGap.proto.ProtoGlobal.RoomMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessage result = new net.iGap.proto.ProtoGlobal.RoomMessage(this); + int from_bitField0_ = bitField0_; + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.messageVersion_ = messageVersion_; + result.status_ = status_; + result.statusVersion_ = statusVersion_; + result.messageType_ = messageType_; + result.message_ = message_; + if (attachmentBuilder_ == null) { + result.attachment_ = attachment_; + } else { + result.attachment_ = attachmentBuilder_.build(); + } + if (authorBuilder_ == null) { + result.author_ = author_; + } else { + result.author_ = authorBuilder_.build(); + } + if (locationBuilder_ == null) { + result.location_ = location_; + } else { + result.location_ = locationBuilder_.build(); + } + if (logBuilder_ == null) { + result.log_ = log_; + } else { + result.log_ = logBuilder_.build(); + } + if (contactBuilder_ == null) { + result.contact_ = contact_; + } else { + result.contact_ = contactBuilder_.build(); + } + if (walletBuilder_ == null) { + result.wallet_ = wallet_; + } else { + result.wallet_ = walletBuilder_.build(); + } + result.edited_ = edited_; + result.createTime_ = createTime_; + result.updateTime_ = updateTime_; + result.deleted_ = deleted_; + if (forwardFromBuilder_ == null) { + result.forwardFrom_ = forwardFrom_; + } else { + result.forwardFrom_ = forwardFromBuilder_.build(); + } + if (replyToBuilder_ == null) { + result.replyTo_ = replyTo_; + } else { + result.replyTo_ = replyToBuilder_.build(); + } + if (storyBuilder_ == null) { + result.story_ = story_; + } else { + result.story_ = storyBuilder_.build(); + } + result.previousMessageId_ = previousMessageId_; + result.randomId_ = randomId_; + result.additionalType_ = additionalType_; + result.additionalData_ = additionalData_; + result.extraType_ = extraType_; + if (channelExtraBuilder_ == null) { + result.channelExtra_ = channelExtra_; + } else { + result.channelExtra_ = channelExtraBuilder_.build(); + } + result.documentId_ = documentId_; + result.versionDocumentId_ = versionDocumentId_; + if (groupExtraBuilder_ == null) { + result.groupExtra_ = groupExtra_; + } else { + result.groupExtra_ = groupExtraBuilder_.build(); + } + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessage) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) return this; + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getMessageVersion() != 0L) { + setMessageVersion(other.getMessageVersion()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getStatusVersion() != 0L) { + setStatusVersion(other.getStatusVersion()); + } + if (other.messageType_ != 0) { + setMessageTypeValue(other.getMessageTypeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.hasAttachment()) { + mergeAttachment(other.getAttachment()); + } + if (other.hasAuthor()) { + mergeAuthor(other.getAuthor()); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + if (other.hasLog()) { + mergeLog(other.getLog()); + } + if (other.hasContact()) { + mergeContact(other.getContact()); + } + if (other.hasWallet()) { + mergeWallet(other.getWallet()); + } + if (other.getEdited() != false) { + setEdited(other.getEdited()); + } + if (other.getCreateTime() != 0) { + setCreateTime(other.getCreateTime()); + } + if (other.getUpdateTime() != 0) { + setUpdateTime(other.getUpdateTime()); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + if (other.hasForwardFrom()) { + mergeForwardFrom(other.getForwardFrom()); + } + if (other.hasReplyTo()) { + mergeReplyTo(other.getReplyTo()); + } + if (other.hasStory()) { + mergeStory(other.getStory()); + } + if (other.getPreviousMessageId() != 0L) { + setPreviousMessageId(other.getPreviousMessageId()); + } + if (other.getRandomId() != 0L) { + setRandomId(other.getRandomId()); + } + if (other.getAdditionalType() != 0) { + setAdditionalType(other.getAdditionalType()); + } + if (!other.getAdditionalData().isEmpty()) { + additionalData_ = other.additionalData_; + onChanged(); + } + if (other.extraType_ != 0) { + setExtraTypeValue(other.getExtraTypeValue()); + } + if (other.hasChannelExtra()) { + mergeChannelExtra(other.getChannelExtra()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.getVersionDocumentId() != 0L) { + setVersionDocumentId(other.getVersionDocumentId()); + } + if (other.hasGroupExtra()) { + mergeGroupExtra(other.getGroupExtra()); + } + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private long roomId_ ; /** - * optional uint64 room_id = 26; + * uint64 room_id = 26; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 26; + * uint64 room_id = 26; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 26; + * uint64 room_id = 26; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; + * uint64 message_id = 1 [jstype = JS_STRING]; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; + * uint64 message_id = 1 [jstype = JS_STRING]; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; + * uint64 message_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long messageVersion_ ; /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; + * uint64 message_version = 2 [jstype = JS_STRING]; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { - return instance.getMessageVersion(); + return messageVersion_; } /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; + * uint64 message_version = 2 [jstype = JS_STRING]; + * @param value The messageVersion to set. + * @return This builder for chaining. */ public Builder setMessageVersion(long value) { - copyOnWrite(); - instance.setMessageVersion(value); + + messageVersion_ = value; + onChanged(); return this; } /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; + * uint64 message_version = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearMessageVersion() { - copyOnWrite(); - instance.clearMessageVersion(); + + messageVersion_ = 0L; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 3; + * .proto.RoomMessageStatus status = 3; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long statusVersion_ ; /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; + * uint64 status_version = 4 [jstype = JS_STRING]; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { - return instance.getStatusVersion(); + return statusVersion_; } /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; + * uint64 status_version = 4 [jstype = JS_STRING]; + * @param value The statusVersion to set. + * @return This builder for chaining. */ public Builder setStatusVersion(long value) { - copyOnWrite(); - instance.setStatusVersion(value); + + statusVersion_ = value; + onChanged(); return this; } /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; + * uint64 status_version = 4 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearStatusVersion() { - copyOnWrite(); - instance.clearStatusVersion(); + + statusVersion_ = 0L; + onChanged(); return this; } + private int messageType_ = 0; /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { - return instance.getMessageTypeValue(); + @java.lang.Override public int getMessageTypeValue() { + return messageType_; } /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @param value The enum numeric value on the wire for messageType to set. + * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - copyOnWrite(); - instance.setMessageTypeValue(value); + + messageType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @return The messageType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - return instance.getMessageType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + if (value == null) { + throw new NullPointerException(); + } + + messageType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 5; + * .proto.RoomMessageType message_type = 5; + * @return This builder for chaining. */ public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); + + messageType_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 6; + * string message = 6; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 6; + * string message = 6; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 6; + * string message = 6; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 6; + * string message = 6; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 6; + * string message = 6; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.File attachment_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> attachmentBuilder_; /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; + * @return Whether the attachment field is set. */ public boolean hasAttachment() { - return instance.hasAttachment(); + return attachmentBuilder_ != null || attachment_ != null; } /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; + * @return The attachment. */ public net.iGap.proto.ProtoGlobal.File getAttachment() { - return instance.getAttachment(); + if (attachmentBuilder_ == null) { + return attachment_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : attachment_; + } else { + return attachmentBuilder_.getMessage(); + } } /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; */ public Builder setAttachment(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.setAttachment(value); - return this; + if (attachmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attachment_ = value; + onChanged(); + } else { + attachmentBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; */ public Builder setAttachment( net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - copyOnWrite(); - instance.setAttachment(builderForValue); + if (attachmentBuilder_ == null) { + attachment_ = builderForValue.build(); + onChanged(); + } else { + attachmentBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; */ public Builder mergeAttachment(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.mergeAttachment(value); + if (attachmentBuilder_ == null) { + if (attachment_ != null) { + attachment_ = + net.iGap.proto.ProtoGlobal.File.newBuilder(attachment_).mergeFrom(value).buildPartial(); + } else { + attachment_ = value; + } + onChanged(); + } else { + attachmentBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.File attachment = 7; + * .proto.File attachment = 7; */ - public Builder clearAttachment() { copyOnWrite(); - instance.clearAttachment(); + public Builder clearAttachment() { + if (attachmentBuilder_ == null) { + attachment_ = null; + onChanged(); + } else { + attachment_ = null; + attachmentBuilder_ = null; + } + return this; } + /** + * .proto.File attachment = 7; + */ + public net.iGap.proto.ProtoGlobal.File.Builder getAttachmentBuilder() { + + onChanged(); + return getAttachmentFieldBuilder().getBuilder(); + } + /** + * .proto.File attachment = 7; + */ + public net.iGap.proto.ProtoGlobal.FileOrBuilder getAttachmentOrBuilder() { + if (attachmentBuilder_ != null) { + return attachmentBuilder_.getMessageOrBuilder(); + } else { + return attachment_ == null ? + net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : attachment_; + } + } + /** + * .proto.File attachment = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> + getAttachmentFieldBuilder() { + if (attachmentBuilder_ == null) { + attachmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder>( + getAttachment(), + getParentForChildren(), + isClean()); + attachment_ = null; + } + return attachmentBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessage.Author author_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder> authorBuilder_; /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; + * @return Whether the author field is set. */ public boolean hasAuthor() { - return instance.hasAuthor(); + return authorBuilder_ != null || author_ != null; } /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; + * @return The author. */ public net.iGap.proto.ProtoGlobal.RoomMessage.Author getAuthor() { - return instance.getAuthor(); + if (authorBuilder_ == null) { + return author_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance() : author_; + } else { + return authorBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; */ public Builder setAuthor(net.iGap.proto.ProtoGlobal.RoomMessage.Author value) { - copyOnWrite(); - instance.setAuthor(value); - return this; + if (authorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + onChanged(); + } else { + authorBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; */ public Builder setAuthor( net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder builderForValue) { - copyOnWrite(); - instance.setAuthor(builderForValue); + if (authorBuilder_ == null) { + author_ = builderForValue.build(); + onChanged(); + } else { + authorBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; */ public Builder mergeAuthor(net.iGap.proto.ProtoGlobal.RoomMessage.Author value) { - copyOnWrite(); - instance.mergeAuthor(value); + if (authorBuilder_ == null) { + if (author_ != null) { + author_ = + net.iGap.proto.ProtoGlobal.RoomMessage.Author.newBuilder(author_).mergeFrom(value).buildPartial(); + } else { + author_ = value; + } + onChanged(); + } else { + authorBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage.Author author = 8; + * .proto.RoomMessage.Author author = 8; */ - public Builder clearAuthor() { copyOnWrite(); - instance.clearAuthor(); + public Builder clearAuthor() { + if (authorBuilder_ == null) { + author_ = null; + onChanged(); + } else { + author_ = null; + authorBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage.Author author = 8; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder getAuthorBuilder() { + + onChanged(); + return getAuthorFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage.Author author = 8; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder getAuthorOrBuilder() { + if (authorBuilder_ != null) { + return authorBuilder_.getMessageOrBuilder(); + } else { + return author_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance() : author_; + } + } + /** + * .proto.RoomMessage.Author author = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder> + getAuthorFieldBuilder() { + if (authorBuilder_ == null) { + authorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.Author, net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder>( + getAuthor(), + getParentForChildren(), + isClean()); + author_ = null; + } + return authorBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> locationBuilder_; /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; + * @return Whether the location field is set. */ public boolean hasLocation() { - return instance.hasLocation(); + return locationBuilder_ != null || location_ != null; } /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; + * @return The location. */ public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { - return instance.getLocation(); + if (locationBuilder_ == null) { + return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; */ public Builder setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.setLocation(value); - return this; + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; */ public Builder setLocation( net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - copyOnWrite(); - instance.setLocation(builderForValue); + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; */ public Builder mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.mergeLocation(value); + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 9; + * .proto.RoomMessageLocation location = 9; */ - public Builder clearLocation() { copyOnWrite(); - instance.clearLocation(); + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageLocation location = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageLocation location = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } + } + /** + * .proto.RoomMessageLocation location = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageLog log_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLog, net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder> logBuilder_; /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; + * @return Whether the log field is set. */ public boolean hasLog() { - return instance.hasLog(); + return logBuilder_ != null || log_ != null; } /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; + * @return The log. */ public net.iGap.proto.ProtoGlobal.RoomMessageLog getLog() { - return instance.getLog(); + if (logBuilder_ == null) { + return log_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance() : log_; + } else { + return logBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; */ public Builder setLog(net.iGap.proto.ProtoGlobal.RoomMessageLog value) { - copyOnWrite(); - instance.setLog(value); - return this; + if (logBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + log_ = value; + onChanged(); + } else { + logBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; */ public Builder setLog( net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder builderForValue) { - copyOnWrite(); - instance.setLog(builderForValue); + if (logBuilder_ == null) { + log_ = builderForValue.build(); + onChanged(); + } else { + logBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; */ public Builder mergeLog(net.iGap.proto.ProtoGlobal.RoomMessageLog value) { - copyOnWrite(); - instance.mergeLog(value); + if (logBuilder_ == null) { + if (log_ != null) { + log_ = + net.iGap.proto.ProtoGlobal.RoomMessageLog.newBuilder(log_).mergeFrom(value).buildPartial(); + } else { + log_ = value; + } + onChanged(); + } else { + logBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageLog log = 10; + * .proto.RoomMessageLog log = 10; */ - public Builder clearLog() { copyOnWrite(); - instance.clearLog(); + public Builder clearLog() { + if (logBuilder_ == null) { + log_ = null; + onChanged(); + } else { + log_ = null; + logBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageLog log = 10; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder getLogBuilder() { + + onChanged(); + return getLogFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageLog log = 10; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder getLogOrBuilder() { + if (logBuilder_ != null) { + return logBuilder_.getMessageOrBuilder(); + } else { + return log_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance() : log_; + } + } + /** + * .proto.RoomMessageLog log = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLog, net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder> + getLogFieldBuilder() { + if (logBuilder_ == null) { + logBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLog, net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder>( + getLog(), + getParentForChildren(), + isClean()); + log_ = null; + } + return logBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> contactBuilder_; /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; + * @return Whether the contact field is set. */ public boolean hasContact() { - return instance.hasContact(); + return contactBuilder_ != null || contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; + * @return The contact. */ public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { - return instance.getContact(); + if (contactBuilder_ == null) { + return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } else { + return contactBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; */ public Builder setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.setContact(value); - return this; + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contact_ = value; + onChanged(); + } else { + contactBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; */ public Builder setContact( net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - copyOnWrite(); - instance.setContact(builderForValue); + if (contactBuilder_ == null) { + contact_ = builderForValue.build(); + onChanged(); + } else { + contactBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; */ public Builder mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.mergeContact(value); + if (contactBuilder_ == null) { + if (contact_ != null) { + contact_ = + net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); + } else { + contact_ = value; + } + onChanged(); + } else { + contactBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 11; + * .proto.RoomMessageContact contact = 11; */ - public Builder clearContact() { copyOnWrite(); - instance.clearContact(); + public Builder clearContact() { + if (contactBuilder_ == null) { + contact_ = null; + onChanged(); + } else { + contact_ = null; + contactBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageContact contact = 11; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder getContactBuilder() { + + onChanged(); + return getContactFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageContact contact = 11; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + if (contactBuilder_ != null) { + return contactBuilder_.getMessageOrBuilder(); + } else { + return contact_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } + } + /** + * .proto.RoomMessageContact contact = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> + getContactFieldBuilder() { + if (contactBuilder_ == null) { + contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder>( + getContact(), + getParentForChildren(), + isClean()); + contact_ = null; + } + return contactBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageWallet wallet_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder> walletBuilder_; /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; + * @return Whether the wallet field is set. */ public boolean hasWallet() { - return instance.hasWallet(); + return walletBuilder_ != null || wallet_ != null; } /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; + * @return The wallet. */ public net.iGap.proto.ProtoGlobal.RoomMessageWallet getWallet() { - return instance.getWallet(); + if (walletBuilder_ == null) { + return wallet_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance() : wallet_; + } else { + return walletBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; */ public Builder setWallet(net.iGap.proto.ProtoGlobal.RoomMessageWallet value) { - copyOnWrite(); - instance.setWallet(value); - return this; + if (walletBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wallet_ = value; + onChanged(); + } else { + walletBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; */ public Builder setWallet( net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder builderForValue) { - copyOnWrite(); - instance.setWallet(builderForValue); + if (walletBuilder_ == null) { + wallet_ = builderForValue.build(); + onChanged(); + } else { + walletBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; */ public Builder mergeWallet(net.iGap.proto.ProtoGlobal.RoomMessageWallet value) { - copyOnWrite(); - instance.mergeWallet(value); + if (walletBuilder_ == null) { + if (wallet_ != null) { + wallet_ = + net.iGap.proto.ProtoGlobal.RoomMessageWallet.newBuilder(wallet_).mergeFrom(value).buildPartial(); + } else { + wallet_ = value; + } + onChanged(); + } else { + walletBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageWallet wallet = 22; + * .proto.RoomMessageWallet wallet = 22; */ - public Builder clearWallet() { copyOnWrite(); - instance.clearWallet(); + public Builder clearWallet() { + if (walletBuilder_ == null) { + wallet_ = null; + onChanged(); + } else { + wallet_ = null; + walletBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageWallet wallet = 22; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder getWalletBuilder() { + + onChanged(); + return getWalletFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageWallet wallet = 22; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder getWalletOrBuilder() { + if (walletBuilder_ != null) { + return walletBuilder_.getMessageOrBuilder(); + } else { + return wallet_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance() : wallet_; + } + } + /** + * .proto.RoomMessageWallet wallet = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder> + getWalletFieldBuilder() { + if (walletBuilder_ == null) { + walletBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageWallet, net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder, net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder>( + getWallet(), + getParentForChildren(), + isClean()); + wallet_ = null; + } + return walletBuilder_; + } + private boolean edited_ ; /** - * optional bool edited = 12; + * bool edited = 12; + * @return The edited. */ + @java.lang.Override public boolean getEdited() { - return instance.getEdited(); + return edited_; } /** - * optional bool edited = 12; + * bool edited = 12; + * @param value The edited to set. + * @return This builder for chaining. */ public Builder setEdited(boolean value) { - copyOnWrite(); - instance.setEdited(value); + + edited_ = value; + onChanged(); return this; } /** - * optional bool edited = 12; + * bool edited = 12; + * @return This builder for chaining. */ public Builder clearEdited() { - copyOnWrite(); - instance.clearEdited(); + + edited_ = false; + onChanged(); return this; } + private int createTime_ ; /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return The createTime. */ + @java.lang.Override public int getCreateTime() { - return instance.getCreateTime(); + return createTime_; } /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @param value The createTime to set. + * @return This builder for chaining. */ public Builder setCreateTime(int value) { - copyOnWrite(); - instance.setCreateTime(value); + + createTime_ = value; + onChanged(); return this; } /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return This builder for chaining. */ public Builder clearCreateTime() { - copyOnWrite(); - instance.clearCreateTime(); + + createTime_ = 0; + onChanged(); return this; } + private int updateTime_ ; /** - * optional uint32 update_time = 14; + * uint32 update_time = 14; + * @return The updateTime. */ + @java.lang.Override public int getUpdateTime() { - return instance.getUpdateTime(); + return updateTime_; } /** - * optional uint32 update_time = 14; + * uint32 update_time = 14; + * @param value The updateTime to set. + * @return This builder for chaining. */ public Builder setUpdateTime(int value) { - copyOnWrite(); - instance.setUpdateTime(value); + + updateTime_ = value; + onChanged(); return this; } /** - * optional uint32 update_time = 14; + * uint32 update_time = 14; + * @return This builder for chaining. */ public Builder clearUpdateTime() { - copyOnWrite(); - instance.clearUpdateTime(); + + updateTime_ = 0; + onChanged(); return this; } + private boolean deleted_ ; /** - * optional bool deleted = 15; + * bool deleted = 15; + * @return The deleted. */ + @java.lang.Override public boolean getDeleted() { - return instance.getDeleted(); + return deleted_; } /** - * optional bool deleted = 15; + * bool deleted = 15; + * @param value The deleted to set. + * @return This builder for chaining. */ public Builder setDeleted(boolean value) { - copyOnWrite(); - instance.setDeleted(value); + + deleted_ = value; + onChanged(); return this; } /** - * optional bool deleted = 15; + * bool deleted = 15; + * @return This builder for chaining. */ public Builder clearDeleted() { - copyOnWrite(); - instance.clearDeleted(); + + deleted_ = false; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage forwardFrom_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> forwardFromBuilder_; /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; + * @return Whether the forwardFrom field is set. */ public boolean hasForwardFrom() { - return instance.hasForwardFrom(); + return forwardFromBuilder_ != null || forwardFrom_ != null; } /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; + * @return The forwardFrom. */ public net.iGap.proto.ProtoGlobal.RoomMessage getForwardFrom() { - return instance.getForwardFrom(); + if (forwardFromBuilder_ == null) { + return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : forwardFrom_; + } else { + return forwardFromBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; */ public Builder setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setForwardFrom(value); - return this; + if (forwardFromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forwardFrom_ = value; + onChanged(); + } else { + forwardFromBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; */ public Builder setForwardFrom( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setForwardFrom(builderForValue); + if (forwardFromBuilder_ == null) { + forwardFrom_ = builderForValue.build(); + onChanged(); + } else { + forwardFromBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; */ public Builder mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeForwardFrom(value); + if (forwardFromBuilder_ == null) { + if (forwardFrom_ != null) { + forwardFrom_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); + } else { + forwardFrom_ = value; + } + onChanged(); + } else { + forwardFromBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage forward_from = 16; + * .proto.RoomMessage forward_from = 16; */ - public Builder clearForwardFrom() { copyOnWrite(); - instance.clearForwardFrom(); + public Builder clearForwardFrom() { + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + onChanged(); + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage forward_from = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getForwardFromBuilder() { + + onChanged(); + return getForwardFromFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage forward_from = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getForwardFromOrBuilder() { + if (forwardFromBuilder_ != null) { + return forwardFromBuilder_.getMessageOrBuilder(); + } else { + return forwardFrom_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : forwardFrom_; + } + } + /** + * .proto.RoomMessage forward_from = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getForwardFromFieldBuilder() { + if (forwardFromBuilder_ == null) { + forwardFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getForwardFrom(), + getParentForChildren(), + isClean()); + forwardFrom_ = null; + } + return forwardFromBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessage replyTo_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> replyToBuilder_; /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; + * @return Whether the replyTo field is set. */ public boolean hasReplyTo() { - return instance.hasReplyTo(); + return replyToBuilder_ != null || replyTo_ != null; } /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; + * @return The replyTo. */ public net.iGap.proto.ProtoGlobal.RoomMessage getReplyTo() { - return instance.getReplyTo(); + if (replyToBuilder_ == null) { + return replyTo_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : replyTo_; + } else { + return replyToBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; */ public Builder setReplyTo(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setReplyTo(value); - return this; + if (replyToBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + replyTo_ = value; + onChanged(); + } else { + replyToBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; */ public Builder setReplyTo( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setReplyTo(builderForValue); + if (replyToBuilder_ == null) { + replyTo_ = builderForValue.build(); + onChanged(); + } else { + replyToBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; */ public Builder mergeReplyTo(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeReplyTo(value); - return this; - } + if (replyToBuilder_ == null) { + if (replyTo_ != null) { + replyTo_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(replyTo_).mergeFrom(value).buildPartial(); + } else { + replyTo_ = value; + } + onChanged(); + } else { + replyToBuilder_.mergeFrom(value); + } + + return this; + } /** - * optional .proto.RoomMessage reply_to = 17; + * .proto.RoomMessage reply_to = 17; */ - public Builder clearReplyTo() { copyOnWrite(); - instance.clearReplyTo(); + public Builder clearReplyTo() { + if (replyToBuilder_ == null) { + replyTo_ = null; + onChanged(); + } else { + replyTo_ = null; + replyToBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage reply_to = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getReplyToBuilder() { + + onChanged(); + return getReplyToFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage reply_to = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getReplyToOrBuilder() { + if (replyToBuilder_ != null) { + return replyToBuilder_.getMessageOrBuilder(); + } else { + return replyTo_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : replyTo_; + } + } + /** + * .proto.RoomMessage reply_to = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getReplyToFieldBuilder() { + if (replyToBuilder_ == null) { + replyToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getReplyTo(), + getParentForChildren(), + isClean()); + replyTo_ = null; + } + return replyToBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageStory story_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStory, net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder> storyBuilder_; /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; + * @return Whether the story field is set. */ public boolean hasStory() { - return instance.hasStory(); + return storyBuilder_ != null || story_ != null; } /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; + * @return The story. */ public net.iGap.proto.ProtoGlobal.RoomMessageStory getStory() { - return instance.getStory(); + if (storyBuilder_ == null) { + return story_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance() : story_; + } else { + return storyBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; */ public Builder setStory(net.iGap.proto.ProtoGlobal.RoomMessageStory value) { - copyOnWrite(); - instance.setStory(value); - return this; + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + story_ = value; + onChanged(); + } else { + storyBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; */ public Builder setStory( net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder builderForValue) { - copyOnWrite(); - instance.setStory(builderForValue); + if (storyBuilder_ == null) { + story_ = builderForValue.build(); + onChanged(); + } else { + storyBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; */ public Builder mergeStory(net.iGap.proto.ProtoGlobal.RoomMessageStory value) { - copyOnWrite(); - instance.mergeStory(value); + if (storyBuilder_ == null) { + if (story_ != null) { + story_ = + net.iGap.proto.ProtoGlobal.RoomMessageStory.newBuilder(story_).mergeFrom(value).buildPartial(); + } else { + story_ = value; + } + onChanged(); + } else { + storyBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageStory story = 25; + * .proto.RoomMessageStory story = 25; */ - public Builder clearStory() { copyOnWrite(); - instance.clearStory(); + public Builder clearStory() { + if (storyBuilder_ == null) { + story_ = null; + onChanged(); + } else { + story_ = null; + storyBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageStory story = 25; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder getStoryBuilder() { + + onChanged(); + return getStoryFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageStory story = 25; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder getStoryOrBuilder() { + if (storyBuilder_ != null) { + return storyBuilder_.getMessageOrBuilder(); + } else { + return story_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance() : story_; + } + } + /** + * .proto.RoomMessageStory story = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStory, net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder> + getStoryFieldBuilder() { + if (storyBuilder_ == null) { + storyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStory, net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder>( + getStory(), + getParentForChildren(), + isClean()); + story_ = null; + } + return storyBuilder_; + } + private long previousMessageId_ ; /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; + * uint64 previous_message_id = 18 [jstype = JS_STRING]; + * @return The previousMessageId. */ + @java.lang.Override public long getPreviousMessageId() { - return instance.getPreviousMessageId(); + return previousMessageId_; } /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; + * uint64 previous_message_id = 18 [jstype = JS_STRING]; + * @param value The previousMessageId to set. + * @return This builder for chaining. */ public Builder setPreviousMessageId(long value) { - copyOnWrite(); - instance.setPreviousMessageId(value); + + previousMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; + * uint64 previous_message_id = 18 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearPreviousMessageId() { - copyOnWrite(); - instance.clearPreviousMessageId(); + + previousMessageId_ = 0L; + onChanged(); return this; } + private long randomId_ ; /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; + * uint64 random_id = 21 [jstype = JS_STRING]; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { - return instance.getRandomId(); + return randomId_; } /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; + * uint64 random_id = 21 [jstype = JS_STRING]; + * @param value The randomId to set. + * @return This builder for chaining. */ public Builder setRandomId(long value) { - copyOnWrite(); - instance.setRandomId(value); + + randomId_ = value; + onChanged(); return this; } /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; + * uint64 random_id = 21 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRandomId() { - copyOnWrite(); - instance.clearRandomId(); + + randomId_ = 0L; + onChanged(); return this; } + private int additionalType_ ; /** - * optional uint32 additional_type = 23; + * uint32 additional_type = 23; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { - return instance.getAdditionalType(); + return additionalType_; } /** - * optional uint32 additional_type = 23; + * uint32 additional_type = 23; + * @param value The additionalType to set. + * @return This builder for chaining. */ public Builder setAdditionalType(int value) { - copyOnWrite(); - instance.setAdditionalType(value); + + additionalType_ = value; + onChanged(); return this; } /** - * optional uint32 additional_type = 23; + * uint32 additional_type = 23; + * @return This builder for chaining. */ public Builder clearAdditionalType() { - copyOnWrite(); - instance.clearAdditionalType(); + + additionalType_ = 0; + onChanged(); return this; } + private java.lang.Object additionalData_ = ""; /** - * optional string additional_data = 24; + * string additional_data = 24; + * @return The additionalData. */ public java.lang.String getAdditionalData() { - return instance.getAdditionalData(); + java.lang.Object ref = additionalData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string additional_data = 24; + * string additional_data = 24; + * @return The bytes for additionalData. */ public com.google.protobuf.ByteString getAdditionalDataBytes() { - return instance.getAdditionalDataBytes(); + java.lang.Object ref = additionalData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string additional_data = 24; + * string additional_data = 24; + * @param value The additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalData( java.lang.String value) { - copyOnWrite(); - instance.setAdditionalData(value); + if (value == null) { + throw new NullPointerException(); + } + + additionalData_ = value; + onChanged(); return this; } /** - * optional string additional_data = 24; + * string additional_data = 24; + * @return This builder for chaining. */ public Builder clearAdditionalData() { - copyOnWrite(); - instance.clearAdditionalData(); + + additionalData_ = getDefaultInstance().getAdditionalData(); + onChanged(); return this; } /** - * optional string additional_data = 24; + * string additional_data = 24; + * @param value The bytes for additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalDataBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAdditionalDataBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + additionalData_ = value; + onChanged(); return this; } + private int extraType_ = 0; /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @return The enum numeric value on the wire for extraType. */ - public int getExtraTypeValue() { - return instance.getExtraTypeValue(); + @java.lang.Override public int getExtraTypeValue() { + return extraType_; } /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @param value The enum numeric value on the wire for extraType to set. + * @return This builder for chaining. */ public Builder setExtraTypeValue(int value) { - copyOnWrite(); - instance.setExtraTypeValue(value); + + extraType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @return The extraType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType getExtraType() { - return instance.getExtraType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.valueOf(extraType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @param value The extraType to set. + * @return This builder for chaining. */ public Builder setExtraType(net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType value) { - copyOnWrite(); - instance.setExtraType(value); + if (value == null) { + throw new NullPointerException(); + } + + extraType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * .proto.RoomMessage.ExtraType extra_type = 19; + * @return This builder for chaining. */ public Builder clearExtraType() { - copyOnWrite(); - instance.clearExtraType(); + + extraType_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra channelExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder> channelExtraBuilder_; /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + * @return Whether the channelExtra field is set. */ public boolean hasChannelExtra() { - return instance.hasChannelExtra(); + return channelExtraBuilder_ != null || channelExtra_ != null; } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + * @return The channelExtra. */ public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getChannelExtra() { - return instance.getChannelExtra(); + if (channelExtraBuilder_ == null) { + return channelExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance() : channelExtra_; + } else { + return channelExtraBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; */ public Builder setChannelExtra(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra value) { - copyOnWrite(); - instance.setChannelExtra(value); - return this; + if (channelExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelExtra_ = value; + onChanged(); + } else { + channelExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; */ public Builder setChannelExtra( net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder builderForValue) { - copyOnWrite(); - instance.setChannelExtra(builderForValue); + if (channelExtraBuilder_ == null) { + channelExtra_ = builderForValue.build(); + onChanged(); + } else { + channelExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; */ public Builder mergeChannelExtra(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra value) { - copyOnWrite(); - instance.mergeChannelExtra(value); + if (channelExtraBuilder_ == null) { + if (channelExtra_ != null) { + channelExtra_ = + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.newBuilder(channelExtra_).mergeFrom(value).buildPartial(); + } else { + channelExtra_ = value; + } + onChanged(); + } else { + channelExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * .proto.RoomMessage.ChannelExtra channel_extra = 20; */ - public Builder clearChannelExtra() { copyOnWrite(); - instance.clearChannelExtra(); + public Builder clearChannelExtra() { + if (channelExtraBuilder_ == null) { + channelExtra_ = null; + onChanged(); + } else { + channelExtra_ = null; + channelExtraBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder getChannelExtraBuilder() { + + onChanged(); + return getChannelExtraFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder getChannelExtraOrBuilder() { + if (channelExtraBuilder_ != null) { + return channelExtraBuilder_.getMessageOrBuilder(); + } else { + return channelExtra_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance() : channelExtra_; + } + } + /** + * .proto.RoomMessage.ChannelExtra channel_extra = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder> + getChannelExtraFieldBuilder() { + if (channelExtraBuilder_ == null) { + channelExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder>( + getChannelExtra(), + getParentForChildren(), + isClean()); + channelExtra_ = null; + } + return channelExtraBuilder_; + } + private long documentId_ ; /** - * optional uint64 document_id = 27; + * uint64 document_id = 27; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 27; + * uint64 document_id = 27; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 27; + * uint64 document_id = 27; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private long versionDocumentId_ ; /** - * optional uint64 version_document_id = 28; + * uint64 version_document_id = 28; + * @return The versionDocumentId. */ + @java.lang.Override public long getVersionDocumentId() { - return instance.getVersionDocumentId(); + return versionDocumentId_; } /** - * optional uint64 version_document_id = 28; + * uint64 version_document_id = 28; + * @param value The versionDocumentId to set. + * @return This builder for chaining. */ public Builder setVersionDocumentId(long value) { - copyOnWrite(); - instance.setVersionDocumentId(value); + + versionDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 version_document_id = 28; + * uint64 version_document_id = 28; + * @return This builder for chaining. */ public Builder clearVersionDocumentId() { - copyOnWrite(); - instance.clearVersionDocumentId(); + + versionDocumentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra groupExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder> groupExtraBuilder_; /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; + * @return Whether the groupExtra field is set. */ public boolean hasGroupExtra() { - return instance.hasGroupExtra(); + return groupExtraBuilder_ != null || groupExtra_ != null; } /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; + * @return The groupExtra. */ public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getGroupExtra() { - return instance.getGroupExtra(); + if (groupExtraBuilder_ == null) { + return groupExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance() : groupExtra_; + } else { + return groupExtraBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; */ public Builder setGroupExtra(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra value) { - copyOnWrite(); - instance.setGroupExtra(value); - return this; + if (groupExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groupExtra_ = value; + onChanged(); + } else { + groupExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; */ public Builder setGroupExtra( net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder builderForValue) { - copyOnWrite(); - instance.setGroupExtra(builderForValue); + if (groupExtraBuilder_ == null) { + groupExtra_ = builderForValue.build(); + onChanged(); + } else { + groupExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; */ public Builder mergeGroupExtra(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra value) { - copyOnWrite(); - instance.mergeGroupExtra(value); + if (groupExtraBuilder_ == null) { + if (groupExtra_ != null) { + groupExtra_ = + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.newBuilder(groupExtra_).mergeFrom(value).buildPartial(); + } else { + groupExtra_ = value; + } + onChanged(); + } else { + groupExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage.GroupExtra group_extra = 29; + * .proto.RoomMessage.GroupExtra group_extra = 29; */ - public Builder clearGroupExtra() { copyOnWrite(); - instance.clearGroupExtra(); + public Builder clearGroupExtra() { + if (groupExtraBuilder_ == null) { + groupExtra_ = null; + onChanged(); + } else { + groupExtra_ = null; + groupExtraBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder getGroupExtraBuilder() { + + onChanged(); + return getGroupExtraFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder getGroupExtraOrBuilder() { + if (groupExtraBuilder_ != null) { + return groupExtraBuilder_.getMessageOrBuilder(); + } else { + return groupExtra_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance() : groupExtra_; + } + } + /** + * .proto.RoomMessage.GroupExtra group_extra = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder> + getGroupExtraFieldBuilder() { + if (groupExtraBuilder_ == null) { + groupExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder>( + getGroupExtra(), + getParentForChildren(), + isClean()); + groupExtra_ = null; + } + return groupExtraBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; + * @return Whether the sticker field is set. */ public boolean hasSticker() { - return instance.hasSticker(); + return stickerBuilder_ != null || sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; + * @return The sticker. */ public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { - return instance.getSticker(); + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; */ public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.setSticker(value); - return this; + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; */ public Builder setSticker( net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - copyOnWrite(); - instance.setSticker(builderForValue); + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; */ public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.mergeSticker(value); + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 30; + * .proto.RoomMessageSticker sticker = 30; */ - public Builder clearSticker() { copyOnWrite(); - instance.clearSticker(); + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageSticker sticker = 30; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { + + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageSticker sticker = 30; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * .proto.RoomMessageSticker sticker = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; + * @return Whether the cardToCard field is set. */ public boolean hasCardToCard() { - return instance.hasCardToCard(); + return cardToCardBuilder_ != null || cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; + * @return The cardToCard. */ public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { - return instance.getCardToCard(); + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; */ public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.setCardToCard(value); - return this; + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; */ public Builder setCardToCard( net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - copyOnWrite(); - instance.setCardToCard(builderForValue); + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; */ public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.mergeCardToCard(value); + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 31; + * .proto.RoomMessageCardToCard card_to_card = 31; */ - public Builder clearCardToCard() { copyOnWrite(); - instance.clearCardToCard(); + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageCardToCard card_to_card = 31; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { + + onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageCardToCard card_to_card = 31; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * .proto.RoomMessageCardToCard card_to_card = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ public java.util.List getBotActionListsList() { - return java.util.Collections.unmodifiableList( - instance.getBotActionListsList()); + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ public int getBotActionListsCount() { - return instance.getBotActionListsCount(); - }/** + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { - return instance.getBotActionLists(index); + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.setBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } return this; } /** @@ -21038,16 +31326,29 @@ public Builder setBotActionLists( */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.setBotActionLists(index, builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } return this; } /** @@ -21055,8 +31356,16 @@ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotAction */ public Builder addBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } return this; } /** @@ -21064,8 +31373,13 @@ public Builder addBotActionLists( */ public Builder addBotActionLists( net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -21073,8 +31387,13 @@ public Builder addBotActionLists( */ public Builder addBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(index, builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -21082,630 +31401,476 @@ public Builder addBotActionLists( */ public Builder addAllBotActionLists( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllBotActionLists(values); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ public Builder clearBotActionLists() { - copyOnWrite(); - instance.clearBotActionLists(); + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; */ public Builder removeBotActionLists(int index) { - copyOnWrite(); - instance.removeBotActionLists(index); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } return this; } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; + } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 33; + * .proto.TextSigns text_signs = 33; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessage(); + /** + * .proto.TextSigns text_signs = 33; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 33; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; + } + /** + * .proto.TextSigns text_signs = 33; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } - case MAKE_IMMUTABLE: { - botActionLists_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessage other = (net.iGap.proto.ProtoGlobal.RoomMessage) arg1; - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - messageVersion_ = visitor.visitLong(messageVersion_ != 0L, messageVersion_, - other.messageVersion_ != 0L, other.messageVersion_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - statusVersion_ = visitor.visitLong(statusVersion_ != 0L, statusVersion_, - other.statusVersion_ != 0L, other.statusVersion_); - messageType_ = visitor.visitInt(messageType_ != 0, messageType_, other.messageType_ != 0, other.messageType_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - attachment_ = visitor.visitMessage(attachment_, other.attachment_); - author_ = visitor.visitMessage(author_, other.author_); - location_ = visitor.visitMessage(location_, other.location_); - log_ = visitor.visitMessage(log_, other.log_); - contact_ = visitor.visitMessage(contact_, other.contact_); - wallet_ = visitor.visitMessage(wallet_, other.wallet_); - edited_ = visitor.visitBoolean(edited_ != false, edited_, - other.edited_ != false, other.edited_); - createTime_ = visitor.visitInt(createTime_ != 0, createTime_, - other.createTime_ != 0, other.createTime_); - updateTime_ = visitor.visitInt(updateTime_ != 0, updateTime_, - other.updateTime_ != 0, other.updateTime_); - deleted_ = visitor.visitBoolean(deleted_ != false, deleted_, - other.deleted_ != false, other.deleted_); - forwardFrom_ = visitor.visitMessage(forwardFrom_, other.forwardFrom_); - replyTo_ = visitor.visitMessage(replyTo_, other.replyTo_); - story_ = visitor.visitMessage(story_, other.story_); - previousMessageId_ = visitor.visitLong(previousMessageId_ != 0L, previousMessageId_, - other.previousMessageId_ != 0L, other.previousMessageId_); - randomId_ = visitor.visitLong(randomId_ != 0L, randomId_, - other.randomId_ != 0L, other.randomId_); - additionalType_ = visitor.visitInt(additionalType_ != 0, additionalType_, - other.additionalType_ != 0, other.additionalType_); - additionalData_ = visitor.visitString(!additionalData_.isEmpty(), additionalData_, - !other.additionalData_.isEmpty(), other.additionalData_); - extraType_ = visitor.visitInt(extraType_ != 0, extraType_, other.extraType_ != 0, other.extraType_); - channelExtra_ = visitor.visitMessage(channelExtra_, other.channelExtra_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - versionDocumentId_ = visitor.visitLong(versionDocumentId_ != 0L, versionDocumentId_, - other.versionDocumentId_ != 0L, other.versionDocumentId_); - groupExtra_ = visitor.visitMessage(groupExtra_, other.groupExtra_); - sticker_ = visitor.visitMessage(sticker_, other.sticker_); - cardToCard_ = visitor.visitMessage(cardToCard_, other.cardToCard_); - botActionLists_= visitor.visitList(botActionLists_, other.botActionLists_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - messageId_ = input.readUInt64(); - break; - } - case 16: { - - messageVersion_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 32: { - - statusVersion_ = input.readUInt64(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; - if (attachment_ != null) { - subBuilder = attachment_.toBuilder(); - } - attachment_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attachment_); - attachment_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - net.iGap.proto.ProtoGlobal.RoomMessage.Author.Builder subBuilder = null; - if (author_ != null) { - subBuilder = author_.toBuilder(); - } - author_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.Author.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(author_); - author_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; - if (location_ != null) { - subBuilder = location_.toBuilder(); - } - location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(location_); - location_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - net.iGap.proto.ProtoGlobal.RoomMessageLog.Builder subBuilder = null; - if (log_ != null) { - subBuilder = log_.toBuilder(); - } - log_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLog.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(log_); - log_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); - } - contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - edited_ = input.readBool(); - break; - } - case 104: { - - createTime_ = input.readUInt32(); - break; - } - case 112: { - - updateTime_ = input.readUInt32(); - break; - } - case 120: { - - deleted_ = input.readBool(); - break; - } - case 130: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (forwardFrom_ != null) { - subBuilder = forwardFrom_.toBuilder(); - } - forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(forwardFrom_); - forwardFrom_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (replyTo_ != null) { - subBuilder = replyTo_.toBuilder(); - } - replyTo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(replyTo_); - replyTo_ = subBuilder.buildPartial(); - } - - break; - } - case 144: { - - previousMessageId_ = input.readUInt64(); - break; - } - case 152: { - int rawValue = input.readEnum(); - - extraType_ = rawValue; - break; - } - case 162: { - net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.Builder subBuilder = null; - if (channelExtra_ != null) { - subBuilder = channelExtra_.toBuilder(); - } - channelExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channelExtra_); - channelExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 168: { - - randomId_ = input.readUInt64(); - break; - } - case 178: { - net.iGap.proto.ProtoGlobal.RoomMessageWallet.Builder subBuilder = null; - if (wallet_ != null) { - subBuilder = wallet_.toBuilder(); - } - wallet_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageWallet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(wallet_); - wallet_ = subBuilder.buildPartial(); - } - - break; - } - case 184: { - - additionalType_ = input.readUInt32(); - break; - } - case 194: { - String s = input.readStringRequireUtf8(); - - additionalData_ = s; - break; - } - case 202: { - net.iGap.proto.ProtoGlobal.RoomMessageStory.Builder subBuilder = null; - if (story_ != null) { - subBuilder = story_.toBuilder(); - } - story_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStory.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(story_); - story_ = subBuilder.buildPartial(); - } - - break; - } - case 208: { - - roomId_ = input.readUInt64(); - break; - } - case 216: { - - documentId_ = input.readUInt64(); - break; - } - case 224: { - - versionDocumentId_ = input.readUInt64(); - break; - } - case 234: { - net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder subBuilder = null; - if (groupExtra_ != null) { - subBuilder = groupExtra_.toBuilder(); - } - groupExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(groupExtra_); - groupExtra_ = subBuilder.buildPartial(); - } + return textSignsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - break; - } - case 242: { - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; - if (sticker_ != null) { - subBuilder = sticker_.toBuilder(); - } - sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sticker_); - sticker_ = subBuilder.buildPartial(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - break; - } - case 250: { - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; - if (cardToCard_ != null) { - subBuilder = cardToCard_.toBuilder(); - } - cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cardToCard_); - cardToCard_ = subBuilder.buildPartial(); - } - break; - } - case 258: { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - botActionLists_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); - break; - } - case 266: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessage) } - // @@protoc_insertion_point(class_scope:proto.RoomMessage) private static final net.iGap.proto.ProtoGlobal.RoomMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessage(); } public static net.iGap.proto.ProtoGlobal.RoomMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomDraftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomDraft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string message = 1; + * string message = 1; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 1; + * string message = 1; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint64 reply_to = 2 [jstype = JS_STRING]; + * uint64 reply_to = 2 [jstype = JS_STRING]; + * @return The replyTo. */ long getReplyTo(); /** - * optional uint32 draft_time = 3; + * uint32 draft_time = 3; + * @return The draftTime. */ int getDraftTime(); } /** * Protobuf type {@code proto.RoomDraft} */ - public static final class RoomDraft extends - com.google.protobuf.GeneratedMessageLite< - RoomDraft, RoomDraft.Builder> implements + public static final class RoomDraft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomDraft) RoomDraftOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomDraft.newBuilder() to construct. + private RoomDraft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomDraft() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomDraft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomDraft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 16: { + + replyTo_ = input.readUInt64(); + break; + } + case 24: { + + draftTime_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomDraft.class, net.iGap.proto.ProtoGlobal.RoomDraft.Builder.class); + } + public static final int MESSAGE_FIELD_NUMBER = 1; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 1; + * string message = 1; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 1; + * string message = 1; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 1; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 1; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 1; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int REPLY_TO_FIELD_NUMBER = 2; private long replyTo_; /** - * optional uint64 reply_to = 2 [jstype = JS_STRING]; + * uint64 reply_to = 2 [jstype = JS_STRING]; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { return replyTo_; } - /** - * optional uint64 reply_to = 2 [jstype = JS_STRING]; - */ - private void setReplyTo(long value) { - - replyTo_ = value; - } - /** - * optional uint64 reply_to = 2 [jstype = JS_STRING]; - */ - private void clearReplyTo() { - - replyTo_ = 0L; - } public static final int DRAFT_TIME_FIELD_NUMBER = 3; private int draftTime_; /** - * optional uint32 draft_time = 3; + * uint32 draft_time = 3; + * @return The draftTime. */ + @java.lang.Override public int getDraftTime() { return draftTime_; } - /** - * optional uint32 draft_time = 3; - */ - private void setDraftTime(int value) { - - draftTime_ = value; - } - /** - * optional uint32 draft_time = 3; - */ - private void clearDraftTime() { - - draftTime_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!message_.isEmpty()) { - output.writeString(1, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (replyTo_ != 0L) { output.writeUInt64(2, replyTo_); @@ -21713,16 +31878,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draftTime_ != 0) { output.writeUInt32(3, draftTime_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (replyTo_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -21732,468 +31898,970 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, draftTime_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomDraft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomDraft other = (net.iGap.proto.ProtoGlobal.RoomDraft) obj; + + if (!getMessage() + .equals(other.getMessage())) return false; + if (getReplyTo() + != other.getReplyTo()) return false; + if (getDraftTime() + != other.getDraftTime()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + REPLY_TO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReplyTo()); + hash = (37 * hash) + DRAFT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDraftTime(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomDraft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomDraft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomDraft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomDraft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomDraft) net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomDraft.class, net.iGap.proto.ProtoGlobal.RoomDraft.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + replyTo_ = 0L; + + draftTime_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomDraft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraft getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraft build() { + net.iGap.proto.ProtoGlobal.RoomDraft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraft buildPartial() { + net.iGap.proto.ProtoGlobal.RoomDraft result = new net.iGap.proto.ProtoGlobal.RoomDraft(this); + result.message_ = message_; + result.replyTo_ = replyTo_; + result.draftTime_ = draftTime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomDraft) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomDraft)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomDraft other) { + if (other == net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getReplyTo() != 0L) { + setReplyTo(other.getReplyTo()); + } + if (other.getDraftTime() != 0) { + setDraftTime(other.getDraftTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomDraft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomDraft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; /** - * optional string message = 1; + * string message = 1; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 1; + * string message = 1; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 1; + * string message = 1; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 1; + * string message = 1; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 1; + * string message = 1; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private long replyTo_ ; /** - * optional uint64 reply_to = 2 [jstype = JS_STRING]; + * uint64 reply_to = 2 [jstype = JS_STRING]; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { - return instance.getReplyTo(); + return replyTo_; } /** - * optional uint64 reply_to = 2 [jstype = JS_STRING]; + * uint64 reply_to = 2 [jstype = JS_STRING]; + * @param value The replyTo to set. + * @return This builder for chaining. */ public Builder setReplyTo(long value) { - copyOnWrite(); - instance.setReplyTo(value); + + replyTo_ = value; + onChanged(); return this; } /** - * optional uint64 reply_to = 2 [jstype = JS_STRING]; + * uint64 reply_to = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearReplyTo() { - copyOnWrite(); - instance.clearReplyTo(); + + replyTo_ = 0L; + onChanged(); return this; } + private int draftTime_ ; /** - * optional uint32 draft_time = 3; + * uint32 draft_time = 3; + * @return The draftTime. */ + @java.lang.Override public int getDraftTime() { - return instance.getDraftTime(); - } - /** - * optional uint32 draft_time = 3; - */ - public Builder setDraftTime(int value) { - copyOnWrite(); - instance.setDraftTime(value); - return this; - } - /** - * optional uint32 draft_time = 3; - */ - public Builder clearDraftTime() { - copyOnWrite(); - instance.clearDraftTime(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.RoomDraft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomDraft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomDraft other = (net.iGap.proto.ProtoGlobal.RoomDraft) arg1; - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - replyTo_ = visitor.visitLong(replyTo_ != 0L, replyTo_, - other.replyTo_ != 0L, other.replyTo_); - draftTime_ = visitor.visitInt(draftTime_ != 0, draftTime_, - other.draftTime_ != 0, other.draftTime_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); + return draftTime_; + } + /** + * uint32 draft_time = 3; + * @param value The draftTime to set. + * @return This builder for chaining. + */ + public Builder setDraftTime(int value) { + + draftTime_ = value; + onChanged(); + return this; + } + /** + * uint32 draft_time = 3; + * @return This builder for chaining. + */ + public Builder clearDraftTime() { + + draftTime_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - message_ = s; - break; - } - case 16: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - replyTo_ = input.readUInt64(); - break; - } - case 24: { - draftTime_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomDraft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomDraft) } - // @@protoc_insertion_point(class_scope:proto.RoomDraft) private static final net.iGap.proto.ProtoGlobal.RoomDraft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomDraft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomDraft(); } public static net.iGap.proto.ProtoGlobal.RoomDraft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomDraft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomDraft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Room) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ long getId(); /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @return The type. */ net.iGap.proto.ProtoGlobal.Room.Type getType(); /** - * optional string title = 3; + * string title = 3; + * @return The title. */ java.lang.String getTitle(); /** - * optional string title = 3; + * string title = 3; + * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** - * optional string initials = 4; + * string initials = 4; + * @return The initials. */ java.lang.String getInitials(); /** - * optional string initials = 4; + * string initials = 4; + * @return The bytes for initials. */ com.google.protobuf.ByteString getInitialsBytes(); /** - * optional string color = 5; + * string color = 5; + * @return The color. */ java.lang.String getColor(); /** - * optional string color = 5; + * string color = 5; + * @return The bytes for color. */ com.google.protobuf.ByteString getColorBytes(); /** - * optional uint32 unread_count = 6; + * uint32 unread_count = 6; + * @return The unreadCount. */ int getUnreadCount(); /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; + * @return Whether the lastMessage field is set. */ boolean hasLastMessage(); /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; + * @return The lastMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getLastMessage(); + /** + * .proto.RoomMessage last_message = 7; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getLastMessageOrBuilder(); /** - * optional bool read_only = 8; + * bool read_only = 8; + * @return The readOnly. */ boolean getReadOnly(); /** - * optional bool is_participant = 9; + * bool is_participant = 9; + * @return The isParticipant. */ boolean getIsParticipant(); /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 10; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; + * @return Whether the firstUnreadMessage field is set. */ boolean hasFirstUnreadMessage(); /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; + * @return The firstUnreadMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getFirstUnreadMessage(); + /** + * .proto.RoomMessage first_unread_message = 14; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getFirstUnreadMessageOrBuilder(); /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @return The enum numeric value on the wire for roomMute. */ int getRoomMuteValue(); /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @return The roomMute. */ net.iGap.proto.ProtoGlobal.RoomMute getRoomMute(); /** - * optional uint64 pin_id = 16 [jstype = JS_STRING]; + * uint64 pin_id = 16 [jstype = JS_STRING]; + * @return The pinId. */ long getPinId(); /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; + * @return Whether the pinnedMessage field is set. */ boolean hasPinnedMessage(); /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; + * @return The pinnedMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage(); + /** + * .proto.RoomMessage pinned_message = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder(); /** - * optional uint32 priority = 18; + * uint32 priority = 18; + * @return The priority. */ int getPriority(); /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; + * @return Whether the chatRoomExtra field is set. */ boolean hasChatRoomExtra(); /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; + * @return The chatRoomExtra. */ net.iGap.proto.ProtoGlobal.ChatRoom getChatRoomExtra(); + /** + * .proto.ChatRoom chat_room_extra = 11; + */ + net.iGap.proto.ProtoGlobal.ChatRoomOrBuilder getChatRoomExtraOrBuilder(); /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; + * @return Whether the groupRoomExtra field is set. */ boolean hasGroupRoomExtra(); /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; + * @return The groupRoomExtra. */ net.iGap.proto.ProtoGlobal.GroupRoom getGroupRoomExtra(); + /** + * .proto.GroupRoom group_room_extra = 12; + */ + net.iGap.proto.ProtoGlobal.GroupRoomOrBuilder getGroupRoomExtraOrBuilder(); /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; + * @return Whether the channelRoomExtra field is set. */ boolean hasChannelRoomExtra(); /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; + * @return The channelRoomExtra. */ net.iGap.proto.ProtoGlobal.ChannelRoom getChannelRoomExtra(); + /** + * .proto.ChannelRoom channel_room_extra = 13; + */ + net.iGap.proto.ProtoGlobal.ChannelRoomOrBuilder getChannelRoomExtraOrBuilder(); /** - * optional uint32 app_id = 19; + * uint32 app_id = 19; + * @return The appId. */ int getAppId(); /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; + * @return The permission. */ net.iGap.proto.ProtoGlobal.RoomAccess getPermission(); + /** + * .proto.RoomAccess permission = 20; + */ + net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.Room} */ - public static final class Room extends - com.google.protobuf.GeneratedMessageLite< - Room, Room.Builder> implements + public static final class Room extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Room) RoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use Room.newBuilder() to construct. + private Room(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Room() { + type_ = 0; title_ = ""; initials_ = ""; color_ = ""; + roomMute_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Room(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Room( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + initials_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + color_ = s; + break; + } + case 48: { + + unreadCount_ = input.readUInt32(); + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (lastMessage_ != null) { + subBuilder = lastMessage_.toBuilder(); + } + lastMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastMessage_); + lastMessage_ = subBuilder.buildPartial(); + } + + break; + } + case 64: { + + readOnly_ = input.readBool(); + break; + } + case 72: { + + isParticipant_ = input.readBool(); + break; + } + case 82: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + net.iGap.proto.ProtoGlobal.ChatRoom.Builder subBuilder = null; + if (chatRoomExtra_ != null) { + subBuilder = chatRoomExtra_.toBuilder(); + } + chatRoomExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChatRoom.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(chatRoomExtra_); + chatRoomExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + net.iGap.proto.ProtoGlobal.GroupRoom.Builder subBuilder = null; + if (groupRoomExtra_ != null) { + subBuilder = groupRoomExtra_.toBuilder(); + } + groupRoomExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.GroupRoom.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(groupRoomExtra_); + groupRoomExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 106: { + net.iGap.proto.ProtoGlobal.ChannelRoom.Builder subBuilder = null; + if (channelRoomExtra_ != null) { + subBuilder = channelRoomExtra_.toBuilder(); + } + channelRoomExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChannelRoom.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(channelRoomExtra_); + channelRoomExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (firstUnreadMessage_ != null) { + subBuilder = firstUnreadMessage_.toBuilder(); + } + firstUnreadMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(firstUnreadMessage_); + firstUnreadMessage_ = subBuilder.buildPartial(); + } + + break; + } + case 120: { + int rawValue = input.readEnum(); + + roomMute_ = rawValue; + break; + } + case 128: { + + pinId_ = input.readUInt64(); + break; + } + case 138: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (pinnedMessage_ != null) { + subBuilder = pinnedMessage_.toBuilder(); + } + pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pinnedMessage_); + pinnedMessage_ = subBuilder.buildPartial(); + } + + break; + } + case 144: { + + priority_ = input.readUInt32(); + break; + } + case 152: { + + appId_ = input.readUInt32(); + break; + } + case 162: { + net.iGap.proto.ProtoGlobal.RoomAccess.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomAccess.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Room_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Room.class, net.iGap.proto.ProtoGlobal.Room.Builder.class); + } + /** * Protobuf enum {@code proto.Room.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * CHAT = 0; */ @@ -22224,10 +32892,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -22235,6 +32909,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return CHAT; @@ -22256,6 +32934,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.Room.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -22268,796 +32977,452 @@ private Type(int value) { public static final int ID_FIELD_NUMBER = 1; private long id_; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1 [jstype = JS_STRING]; - */ - private void clearId() { - - id_ = 0L; - } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.Room.Type getType() { - net.iGap.proto.ProtoGlobal.Room.Type result = net.iGap.proto.ProtoGlobal.Room.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Room.Type result = net.iGap.proto.ProtoGlobal.Room.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.Room.Type.UNRECOGNIZED : result; } - /** - * optional .proto.Room.Type type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.Room.Type type = 2; - */ - private void setType(net.iGap.proto.ProtoGlobal.Room.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.Room.Type type = 2; - */ - private void clearType() { - - type_ = 0; - } public static final int TITLE_FIELD_NUMBER = 3; - private java.lang.String title_; + private volatile java.lang.Object title_; /** - * optional string title = 3; + * string title = 3; + * @return The title. */ + @java.lang.Override public java.lang.String getTitle() { - return title_; + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } } /** - * optional string title = 3; + * string title = 3; + * @return The bytes for title. */ + @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(title_); - } - /** - * optional string title = 3; - */ - private void setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - } - /** - * optional string title = 3; - */ - private void clearTitle() { - - title_ = getDefaultInstance().getTitle(); - } - /** - * optional string title = 3; - */ - private void setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value.toStringUtf8(); + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INITIALS_FIELD_NUMBER = 4; - private java.lang.String initials_; + private volatile java.lang.Object initials_; /** - * optional string initials = 4; + * string initials = 4; + * @return The initials. */ + @java.lang.Override public java.lang.String getInitials() { - return initials_; + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } } /** - * optional string initials = 4; + * string initials = 4; + * @return The bytes for initials. */ + @java.lang.Override public com.google.protobuf.ByteString getInitialsBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(initials_); - } - /** - * optional string initials = 4; - */ - private void setInitials( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initials_ = value; - } - /** - * optional string initials = 4; - */ - private void clearInitials() { - - initials_ = getDefaultInstance().getInitials(); - } - /** - * optional string initials = 4; - */ - private void setInitialsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initials_ = value.toStringUtf8(); + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int COLOR_FIELD_NUMBER = 5; - private java.lang.String color_; + private volatile java.lang.Object color_; /** - * optional string color = 5; + * string color = 5; + * @return The color. */ + @java.lang.Override public java.lang.String getColor() { - return color_; + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } } /** - * optional string color = 5; + * string color = 5; + * @return The bytes for color. */ + @java.lang.Override public com.google.protobuf.ByteString getColorBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(color_); - } - /** - * optional string color = 5; - */ - private void setColor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - color_ = value; - } - /** - * optional string color = 5; - */ - private void clearColor() { - - color_ = getDefaultInstance().getColor(); - } - /** - * optional string color = 5; - */ - private void setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - color_ = value.toStringUtf8(); + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int UNREAD_COUNT_FIELD_NUMBER = 6; private int unreadCount_; /** - * optional uint32 unread_count = 6; + * uint32 unread_count = 6; + * @return The unreadCount. */ + @java.lang.Override public int getUnreadCount() { return unreadCount_; } - /** - * optional uint32 unread_count = 6; - */ - private void setUnreadCount(int value) { - - unreadCount_ = value; - } - /** - * optional uint32 unread_count = 6; - */ - private void clearUnreadCount() { - - unreadCount_ = 0; - } public static final int LAST_MESSAGE_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.RoomMessage lastMessage_; /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; + * @return Whether the lastMessage field is set. */ + @java.lang.Override public boolean hasLastMessage() { return lastMessage_ != null; } /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; + * @return The lastMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getLastMessage() { return lastMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : lastMessage_; } /** - * optional .proto.RoomMessage last_message = 7; - */ - private void setLastMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - lastMessage_ = value; - - } - /** - * optional .proto.RoomMessage last_message = 7; - */ - private void setLastMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - lastMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; */ - private void mergeLastMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (lastMessage_ != null && - lastMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - lastMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(lastMessage_).mergeFrom(value).buildPartial(); - } else { - lastMessage_ = value; - } - - } - /** - * optional .proto.RoomMessage last_message = 7; - */ - private void clearLastMessage() { lastMessage_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getLastMessageOrBuilder() { + return getLastMessage(); } public static final int READ_ONLY_FIELD_NUMBER = 8; private boolean readOnly_; /** - * optional bool read_only = 8; + * bool read_only = 8; + * @return The readOnly. */ + @java.lang.Override public boolean getReadOnly() { return readOnly_; } - /** - * optional bool read_only = 8; - */ - private void setReadOnly(boolean value) { - - readOnly_ = value; - } - /** - * optional bool read_only = 8; - */ - private void clearReadOnly() { - - readOnly_ = false; - } public static final int IS_PARTICIPANT_FIELD_NUMBER = 9; private boolean isParticipant_; /** - * optional bool is_participant = 9; + * bool is_participant = 9; + * @return The isParticipant. */ + @java.lang.Override public boolean getIsParticipant() { return isParticipant_; } - /** - * optional bool is_participant = 9; - */ - private void setIsParticipant(boolean value) { - - isParticipant_ = value; - } - /** - * optional bool is_participant = 9; - */ - private void clearIsParticipant() { - - isParticipant_ = false; - } public static final int DRAFT_FIELD_NUMBER = 10; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 10; - */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 10; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - - } - /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - - } - /** - * optional .proto.RoomDraft draft = 10; - */ - private void clearDraft() { draft_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } public static final int FIRST_UNREAD_MESSAGE_FIELD_NUMBER = 14; private net.iGap.proto.ProtoGlobal.RoomMessage firstUnreadMessage_; /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; + * @return Whether the firstUnreadMessage field is set. */ + @java.lang.Override public boolean hasFirstUnreadMessage() { return firstUnreadMessage_ != null; } /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; + * @return The firstUnreadMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getFirstUnreadMessage() { return firstUnreadMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : firstUnreadMessage_; } /** - * optional .proto.RoomMessage first_unread_message = 14; - */ - private void setFirstUnreadMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - firstUnreadMessage_ = value; - - } - /** - * optional .proto.RoomMessage first_unread_message = 14; - */ - private void setFirstUnreadMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - firstUnreadMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage first_unread_message = 14; - */ - private void mergeFirstUnreadMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (firstUnreadMessage_ != null && - firstUnreadMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - firstUnreadMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(firstUnreadMessage_).mergeFrom(value).buildPartial(); - } else { - firstUnreadMessage_ = value; - } - - } - /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; */ - private void clearFirstUnreadMessage() { firstUnreadMessage_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getFirstUnreadMessageOrBuilder() { + return getFirstUnreadMessage(); } public static final int ROOM_MUTE_FIELD_NUMBER = 15; private int roomMute_; /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @return The enum numeric value on the wire for roomMute. */ - public int getRoomMuteValue() { + @java.lang.Override public int getRoomMuteValue() { return roomMute_; } /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @return The roomMute. */ - public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { - net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.forNumber(roomMute_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.valueOf(roomMute_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMute.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMute room_mute = 15; - */ - private void setRoomMuteValue(int value) { - roomMute_ = value; - } - /** - * optional .proto.RoomMute room_mute = 15; - */ - private void setRoomMute(net.iGap.proto.ProtoGlobal.RoomMute value) { - if (value == null) { - throw new NullPointerException(); - } - - roomMute_ = value.getNumber(); - } - /** - * optional .proto.RoomMute room_mute = 15; - */ - private void clearRoomMute() { - - roomMute_ = 0; - } public static final int PIN_ID_FIELD_NUMBER = 16; private long pinId_; /** - * optional uint64 pin_id = 16 [jstype = JS_STRING]; + * uint64 pin_id = 16 [jstype = JS_STRING]; + * @return The pinId. */ + @java.lang.Override public long getPinId() { return pinId_; } - /** - * optional uint64 pin_id = 16 [jstype = JS_STRING]; - */ - private void setPinId(long value) { - - pinId_ = value; - } - /** - * optional uint64 pin_id = 16 [jstype = JS_STRING]; - */ - private void clearPinId() { - - pinId_ = 0L; - } public static final int PINNED_MESSAGE_FIELD_NUMBER = 17; private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; + * @return Whether the pinnedMessage field is set. */ + @java.lang.Override public boolean hasPinnedMessage() { return pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; + * @return The pinnedMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; } /** - * optional .proto.RoomMessage pinned_message = 17; - */ - private void setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - pinnedMessage_ = value; - - } - /** - * optional .proto.RoomMessage pinned_message = 17; - */ - private void setPinnedMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - pinnedMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage pinned_message = 17; - */ - private void mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (pinnedMessage_ != null && - pinnedMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - pinnedMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); - } else { - pinnedMessage_ = value; - } - - } - /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; */ - private void clearPinnedMessage() { pinnedMessage_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + return getPinnedMessage(); } public static final int PRIORITY_FIELD_NUMBER = 18; private int priority_; /** - * optional uint32 priority = 18; + * uint32 priority = 18; + * @return The priority. */ + @java.lang.Override public int getPriority() { return priority_; } - /** - * optional uint32 priority = 18; - */ - private void setPriority(int value) { - - priority_ = value; - } - /** - * optional uint32 priority = 18; - */ - private void clearPriority() { - - priority_ = 0; - } public static final int CHAT_ROOM_EXTRA_FIELD_NUMBER = 11; private net.iGap.proto.ProtoGlobal.ChatRoom chatRoomExtra_; /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; + * @return Whether the chatRoomExtra field is set. */ + @java.lang.Override public boolean hasChatRoomExtra() { return chatRoomExtra_ != null; } /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; + * @return The chatRoomExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChatRoom getChatRoomExtra() { return chatRoomExtra_ == null ? net.iGap.proto.ProtoGlobal.ChatRoom.getDefaultInstance() : chatRoomExtra_; } /** - * optional .proto.ChatRoom chat_room_extra = 11; - */ - private void setChatRoomExtra(net.iGap.proto.ProtoGlobal.ChatRoom value) { - if (value == null) { - throw new NullPointerException(); - } - chatRoomExtra_ = value; - - } - /** - * optional .proto.ChatRoom chat_room_extra = 11; - */ - private void setChatRoomExtra( - net.iGap.proto.ProtoGlobal.ChatRoom.Builder builderForValue) { - chatRoomExtra_ = builderForValue.build(); - - } - /** - * optional .proto.ChatRoom chat_room_extra = 11; - */ - private void mergeChatRoomExtra(net.iGap.proto.ProtoGlobal.ChatRoom value) { - if (chatRoomExtra_ != null && - chatRoomExtra_ != net.iGap.proto.ProtoGlobal.ChatRoom.getDefaultInstance()) { - chatRoomExtra_ = - net.iGap.proto.ProtoGlobal.ChatRoom.newBuilder(chatRoomExtra_).mergeFrom(value).buildPartial(); - } else { - chatRoomExtra_ = value; - } - - } - /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; */ - private void clearChatRoomExtra() { chatRoomExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChatRoomOrBuilder getChatRoomExtraOrBuilder() { + return getChatRoomExtra(); } public static final int GROUP_ROOM_EXTRA_FIELD_NUMBER = 12; private net.iGap.proto.ProtoGlobal.GroupRoom groupRoomExtra_; /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; + * @return Whether the groupRoomExtra field is set. */ + @java.lang.Override public boolean hasGroupRoomExtra() { return groupRoomExtra_ != null; } /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; + * @return The groupRoomExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom getGroupRoomExtra() { return groupRoomExtra_ == null ? net.iGap.proto.ProtoGlobal.GroupRoom.getDefaultInstance() : groupRoomExtra_; } /** - * optional .proto.GroupRoom group_room_extra = 12; - */ - private void setGroupRoomExtra(net.iGap.proto.ProtoGlobal.GroupRoom value) { - if (value == null) { - throw new NullPointerException(); - } - groupRoomExtra_ = value; - - } - /** - * optional .proto.GroupRoom group_room_extra = 12; - */ - private void setGroupRoomExtra( - net.iGap.proto.ProtoGlobal.GroupRoom.Builder builderForValue) { - groupRoomExtra_ = builderForValue.build(); - - } - /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; */ - private void mergeGroupRoomExtra(net.iGap.proto.ProtoGlobal.GroupRoom value) { - if (groupRoomExtra_ != null && - groupRoomExtra_ != net.iGap.proto.ProtoGlobal.GroupRoom.getDefaultInstance()) { - groupRoomExtra_ = - net.iGap.proto.ProtoGlobal.GroupRoom.newBuilder(groupRoomExtra_).mergeFrom(value).buildPartial(); - } else { - groupRoomExtra_ = value; - } - - } - /** - * optional .proto.GroupRoom group_room_extra = 12; - */ - private void clearGroupRoomExtra() { groupRoomExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoomOrBuilder getGroupRoomExtraOrBuilder() { + return getGroupRoomExtra(); } public static final int CHANNEL_ROOM_EXTRA_FIELD_NUMBER = 13; private net.iGap.proto.ProtoGlobal.ChannelRoom channelRoomExtra_; /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; + * @return Whether the channelRoomExtra field is set. */ + @java.lang.Override public boolean hasChannelRoomExtra() { return channelRoomExtra_ != null; } /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; + * @return The channelRoomExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom getChannelRoomExtra() { return channelRoomExtra_ == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.getDefaultInstance() : channelRoomExtra_; } /** - * optional .proto.ChannelRoom channel_room_extra = 13; - */ - private void setChannelRoomExtra(net.iGap.proto.ProtoGlobal.ChannelRoom value) { - if (value == null) { - throw new NullPointerException(); - } - channelRoomExtra_ = value; - - } - /** - * optional .proto.ChannelRoom channel_room_extra = 13; - */ - private void setChannelRoomExtra( - net.iGap.proto.ProtoGlobal.ChannelRoom.Builder builderForValue) { - channelRoomExtra_ = builderForValue.build(); - - } - /** - * optional .proto.ChannelRoom channel_room_extra = 13; - */ - private void mergeChannelRoomExtra(net.iGap.proto.ProtoGlobal.ChannelRoom value) { - if (channelRoomExtra_ != null && - channelRoomExtra_ != net.iGap.proto.ProtoGlobal.ChannelRoom.getDefaultInstance()) { - channelRoomExtra_ = - net.iGap.proto.ProtoGlobal.ChannelRoom.newBuilder(channelRoomExtra_).mergeFrom(value).buildPartial(); - } else { - channelRoomExtra_ = value; - } - - } - /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; */ - private void clearChannelRoomExtra() { channelRoomExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoomOrBuilder getChannelRoomExtraOrBuilder() { + return getChannelRoomExtra(); } public static final int APP_ID_FIELD_NUMBER = 19; private int appId_; /** - * optional uint32 app_id = 19; + * uint32 app_id = 19; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 19; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 19; - */ - private void clearAppId() { - - appId_ = 0; - } public static final int PERMISSION_FIELD_NUMBER = 20; private net.iGap.proto.ProtoGlobal.RoomAccess permission_; /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomAccess getPermission() { return permission_ == null ? net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : permission_; } /** - * optional .proto.RoomAccess permission = 20; - */ - private void setPermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.RoomAccess permission = 20; - */ - private void setPermission( - net.iGap.proto.ProtoGlobal.RoomAccess.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; */ - private void mergePermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoGlobal.RoomAccess.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.RoomAccess permission = 20; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { @@ -23066,14 +33431,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoGlobal.Room.Type.CHAT.getNumber()) { output.writeEnum(2, type_); } - if (!title_.isEmpty()) { - output.writeString(3, getTitle()); + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); } - if (!initials_.isEmpty()) { - output.writeString(4, getInitials()); + if (!getInitialsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, initials_); } - if (!color_.isEmpty()) { - output.writeString(5, getColor()); + if (!getColorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, color_); } if (unreadCount_ != 0) { output.writeUInt32(6, unreadCount_); @@ -23120,10 +33485,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(20, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -23135,17 +33502,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } - if (!title_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getTitle()); + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); } - if (!initials_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getInitials()); + if (!getInitialsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, initials_); } - if (!color_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getColor()); + if (!getColorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, color_); } if (unreadCount_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -23207,1233 +33571,2335 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getPermission()); } - memoizedSerializedSize = size; - return size; - } - - public static net.iGap.proto.ProtoGlobal.Room parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoGlobal.Room parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoGlobal.Room parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoGlobal.Room parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoGlobal.Room parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoGlobal.Room parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoGlobal.Room parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoGlobal.Room parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoGlobal.Room parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoGlobal.Room parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Room)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Room other = (net.iGap.proto.ProtoGlobal.Room) obj; + + if (getId() + != other.getId()) return false; + if (type_ != other.type_) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getInitials() + .equals(other.getInitials())) return false; + if (!getColor() + .equals(other.getColor())) return false; + if (getUnreadCount() + != other.getUnreadCount()) return false; + if (hasLastMessage() != other.hasLastMessage()) return false; + if (hasLastMessage()) { + if (!getLastMessage() + .equals(other.getLastMessage())) return false; + } + if (getReadOnly() + != other.getReadOnly()) return false; + if (getIsParticipant() + != other.getIsParticipant()) return false; + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (hasFirstUnreadMessage() != other.hasFirstUnreadMessage()) return false; + if (hasFirstUnreadMessage()) { + if (!getFirstUnreadMessage() + .equals(other.getFirstUnreadMessage())) return false; + } + if (roomMute_ != other.roomMute_) return false; + if (getPinId() + != other.getPinId()) return false; + if (hasPinnedMessage() != other.hasPinnedMessage()) return false; + if (hasPinnedMessage()) { + if (!getPinnedMessage() + .equals(other.getPinnedMessage())) return false; + } + if (getPriority() + != other.getPriority()) return false; + if (hasChatRoomExtra() != other.hasChatRoomExtra()) return false; + if (hasChatRoomExtra()) { + if (!getChatRoomExtra() + .equals(other.getChatRoomExtra())) return false; + } + if (hasGroupRoomExtra() != other.hasGroupRoomExtra()) return false; + if (hasGroupRoomExtra()) { + if (!getGroupRoomExtra() + .equals(other.getGroupRoomExtra())) return false; + } + if (hasChannelRoomExtra() != other.hasChannelRoomExtra()) return false; + if (hasChannelRoomExtra()) { + if (!getChannelRoomExtra() + .equals(other.getChannelRoomExtra())) return false; + } + if (getAppId() + != other.getAppId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + INITIALS_FIELD_NUMBER; + hash = (53 * hash) + getInitials().hashCode(); + hash = (37 * hash) + COLOR_FIELD_NUMBER; + hash = (53 * hash) + getColor().hashCode(); + hash = (37 * hash) + UNREAD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getUnreadCount(); + if (hasLastMessage()) { + hash = (37 * hash) + LAST_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getLastMessage().hashCode(); + } + hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReadOnly()); + hash = (37 * hash) + IS_PARTICIPANT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsParticipant()); + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + if (hasFirstUnreadMessage()) { + hash = (37 * hash) + FIRST_UNREAD_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getFirstUnreadMessage().hashCode(); + } + hash = (37 * hash) + ROOM_MUTE_FIELD_NUMBER; + hash = (53 * hash) + roomMute_; + hash = (37 * hash) + PIN_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPinId()); + if (hasPinnedMessage()) { + hash = (37 * hash) + PINNED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getPinnedMessage().hashCode(); + } + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPriority(); + if (hasChatRoomExtra()) { + hash = (37 * hash) + CHAT_ROOM_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getChatRoomExtra().hashCode(); + } + if (hasGroupRoomExtra()) { + hash = (37 * hash) + GROUP_ROOM_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getGroupRoomExtra().hashCode(); + } + if (hasChannelRoomExtra()) { + hash = (37 * hash) + CHANNEL_ROOM_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getChannelRoomExtra().hashCode(); + } + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.Room parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.Room parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.Room parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Room prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Room} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.Room) + net.iGap.proto.ProtoGlobal.RoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Room_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Room.class, net.iGap.proto.ProtoGlobal.Room.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.Room.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + type_ = 0; + + title_ = ""; + + initials_ = ""; + + color_ = ""; + + unreadCount_ = 0; + + if (lastMessageBuilder_ == null) { + lastMessage_ = null; + } else { + lastMessage_ = null; + lastMessageBuilder_ = null; + } + readOnly_ = false; + + isParticipant_ = false; + + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + if (firstUnreadMessageBuilder_ == null) { + firstUnreadMessage_ = null; + } else { + firstUnreadMessage_ = null; + firstUnreadMessageBuilder_ = null; + } + roomMute_ = 0; + + pinId_ = 0L; + + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + priority_ = 0; + + if (chatRoomExtraBuilder_ == null) { + chatRoomExtra_ = null; + } else { + chatRoomExtra_ = null; + chatRoomExtraBuilder_ = null; + } + if (groupRoomExtraBuilder_ == null) { + groupRoomExtra_ = null; + } else { + groupRoomExtra_ = null; + groupRoomExtraBuilder_ = null; + } + if (channelRoomExtraBuilder_ == null) { + channelRoomExtra_ = null; + } else { + channelRoomExtra_ = null; + channelRoomExtraBuilder_ = null; + } + appId_ = 0; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Room_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Room getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Room.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Room build() { + net.iGap.proto.ProtoGlobal.Room result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Room buildPartial() { + net.iGap.proto.ProtoGlobal.Room result = new net.iGap.proto.ProtoGlobal.Room(this); + result.id_ = id_; + result.type_ = type_; + result.title_ = title_; + result.initials_ = initials_; + result.color_ = color_; + result.unreadCount_ = unreadCount_; + if (lastMessageBuilder_ == null) { + result.lastMessage_ = lastMessage_; + } else { + result.lastMessage_ = lastMessageBuilder_.build(); + } + result.readOnly_ = readOnly_; + result.isParticipant_ = isParticipant_; + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + if (firstUnreadMessageBuilder_ == null) { + result.firstUnreadMessage_ = firstUnreadMessage_; + } else { + result.firstUnreadMessage_ = firstUnreadMessageBuilder_.build(); + } + result.roomMute_ = roomMute_; + result.pinId_ = pinId_; + if (pinnedMessageBuilder_ == null) { + result.pinnedMessage_ = pinnedMessage_; + } else { + result.pinnedMessage_ = pinnedMessageBuilder_.build(); + } + result.priority_ = priority_; + if (chatRoomExtraBuilder_ == null) { + result.chatRoomExtra_ = chatRoomExtra_; + } else { + result.chatRoomExtra_ = chatRoomExtraBuilder_.build(); + } + if (groupRoomExtraBuilder_ == null) { + result.groupRoomExtra_ = groupRoomExtra_; + } else { + result.groupRoomExtra_ = groupRoomExtraBuilder_.build(); + } + if (channelRoomExtraBuilder_ == null) { + result.channelRoomExtra_ = channelRoomExtra_; + } else { + result.channelRoomExtra_ = channelRoomExtraBuilder_.build(); + } + result.appId_ = appId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Room) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Room)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Room prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Room other) { + if (other == net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getInitials().isEmpty()) { + initials_ = other.initials_; + onChanged(); + } + if (!other.getColor().isEmpty()) { + color_ = other.color_; + onChanged(); + } + if (other.getUnreadCount() != 0) { + setUnreadCount(other.getUnreadCount()); + } + if (other.hasLastMessage()) { + mergeLastMessage(other.getLastMessage()); + } + if (other.getReadOnly() != false) { + setReadOnly(other.getReadOnly()); + } + if (other.getIsParticipant() != false) { + setIsParticipant(other.getIsParticipant()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + if (other.hasFirstUnreadMessage()) { + mergeFirstUnreadMessage(other.getFirstUnreadMessage()); + } + if (other.roomMute_ != 0) { + setRoomMuteValue(other.getRoomMuteValue()); + } + if (other.getPinId() != 0L) { + setPinId(other.getPinId()); + } + if (other.hasPinnedMessage()) { + mergePinnedMessage(other.getPinnedMessage()); + } + if (other.getPriority() != 0) { + setPriority(other.getPriority()); + } + if (other.hasChatRoomExtra()) { + mergeChatRoomExtra(other.getChatRoomExtra()); + } + if (other.hasGroupRoomExtra()) { + mergeGroupRoomExtra(other.getGroupRoomExtra()); + } + if (other.hasChannelRoomExtra()) { + mergeChannelRoomExtra(other.getChannelRoomExtra()); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * Protobuf type {@code proto.Room} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Room, Builder> implements - // @@protoc_insertion_point(builder_implements:proto.Room) - net.iGap.proto.ProtoGlobal.RoomOrBuilder { - // Construct using net.iGap.proto.ProtoGlobal.Room.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Room parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Room) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long id_ ; /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1 [jstype = JS_STRING]; + * uint64 id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Room.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Room.Type result = net.iGap.proto.ProtoGlobal.Room.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.Room.Type.UNRECOGNIZED : result; } /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.Room.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Room.Type type = 2; + * .proto.Room.Type type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private java.lang.Object title_ = ""; /** - * optional string title = 3; + * string title = 3; + * @return The title. */ public java.lang.String getTitle() { - return instance.getTitle(); + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string title = 3; + * string title = 3; + * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { - return instance.getTitleBytes(); + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string title = 3; + * string title = 3; + * @param value The title to set. + * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { - copyOnWrite(); - instance.setTitle(value); + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); return this; } /** - * optional string title = 3; + * string title = 3; + * @return This builder for chaining. */ public Builder clearTitle() { - copyOnWrite(); - instance.clearTitle(); + + title_ = getDefaultInstance().getTitle(); + onChanged(); return this; } /** - * optional string title = 3; + * string title = 3; + * @param value The bytes for title to set. + * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTitleBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); return this; } + private java.lang.Object initials_ = ""; /** - * optional string initials = 4; + * string initials = 4; + * @return The initials. */ public java.lang.String getInitials() { - return instance.getInitials(); + java.lang.Object ref = initials_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string initials = 4; + * string initials = 4; + * @return The bytes for initials. */ public com.google.protobuf.ByteString getInitialsBytes() { - return instance.getInitialsBytes(); + java.lang.Object ref = initials_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string initials = 4; + * string initials = 4; + * @param value The initials to set. + * @return This builder for chaining. */ public Builder setInitials( java.lang.String value) { - copyOnWrite(); - instance.setInitials(value); + if (value == null) { + throw new NullPointerException(); + } + + initials_ = value; + onChanged(); return this; } /** - * optional string initials = 4; + * string initials = 4; + * @return This builder for chaining. */ public Builder clearInitials() { - copyOnWrite(); - instance.clearInitials(); + + initials_ = getDefaultInstance().getInitials(); + onChanged(); return this; } /** - * optional string initials = 4; + * string initials = 4; + * @param value The bytes for initials to set. + * @return This builder for chaining. */ public Builder setInitialsBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInitialsBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initials_ = value; + onChanged(); return this; } + private java.lang.Object color_ = ""; /** - * optional string color = 5; + * string color = 5; + * @return The color. */ public java.lang.String getColor() { - return instance.getColor(); + java.lang.Object ref = color_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string color = 5; + * string color = 5; + * @return The bytes for color. */ public com.google.protobuf.ByteString getColorBytes() { - return instance.getColorBytes(); + java.lang.Object ref = color_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string color = 5; + * string color = 5; + * @param value The color to set. + * @return This builder for chaining. */ public Builder setColor( java.lang.String value) { - copyOnWrite(); - instance.setColor(value); + if (value == null) { + throw new NullPointerException(); + } + + color_ = value; + onChanged(); return this; } /** - * optional string color = 5; + * string color = 5; + * @return This builder for chaining. */ public Builder clearColor() { - copyOnWrite(); - instance.clearColor(); + + color_ = getDefaultInstance().getColor(); + onChanged(); return this; } /** - * optional string color = 5; + * string color = 5; + * @param value The bytes for color to set. + * @return This builder for chaining. */ public Builder setColorBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setColorBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + color_ = value; + onChanged(); return this; } + private int unreadCount_ ; /** - * optional uint32 unread_count = 6; + * uint32 unread_count = 6; + * @return The unreadCount. */ + @java.lang.Override public int getUnreadCount() { - return instance.getUnreadCount(); + return unreadCount_; } /** - * optional uint32 unread_count = 6; + * uint32 unread_count = 6; + * @param value The unreadCount to set. + * @return This builder for chaining. */ public Builder setUnreadCount(int value) { - copyOnWrite(); - instance.setUnreadCount(value); + + unreadCount_ = value; + onChanged(); return this; } /** - * optional uint32 unread_count = 6; + * uint32 unread_count = 6; + * @return This builder for chaining. */ public Builder clearUnreadCount() { - copyOnWrite(); - instance.clearUnreadCount(); + + unreadCount_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage lastMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> lastMessageBuilder_; /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; + * @return Whether the lastMessage field is set. */ public boolean hasLastMessage() { - return instance.hasLastMessage(); + return lastMessageBuilder_ != null || lastMessage_ != null; } /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; + * @return The lastMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getLastMessage() { - return instance.getLastMessage(); + if (lastMessageBuilder_ == null) { + return lastMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : lastMessage_; + } else { + return lastMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; */ public Builder setLastMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setLastMessage(value); - return this; + if (lastMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastMessage_ = value; + onChanged(); + } else { + lastMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; */ public Builder setLastMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setLastMessage(builderForValue); + if (lastMessageBuilder_ == null) { + lastMessage_ = builderForValue.build(); + onChanged(); + } else { + lastMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; */ public Builder mergeLastMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeLastMessage(value); + if (lastMessageBuilder_ == null) { + if (lastMessage_ != null) { + lastMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(lastMessage_).mergeFrom(value).buildPartial(); + } else { + lastMessage_ = value; + } + onChanged(); + } else { + lastMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage last_message = 7; + * .proto.RoomMessage last_message = 7; */ - public Builder clearLastMessage() { copyOnWrite(); - instance.clearLastMessage(); + public Builder clearLastMessage() { + if (lastMessageBuilder_ == null) { + lastMessage_ = null; + onChanged(); + } else { + lastMessage_ = null; + lastMessageBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage last_message = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getLastMessageBuilder() { + + onChanged(); + return getLastMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage last_message = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getLastMessageOrBuilder() { + if (lastMessageBuilder_ != null) { + return lastMessageBuilder_.getMessageOrBuilder(); + } else { + return lastMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : lastMessage_; + } + } + /** + * .proto.RoomMessage last_message = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getLastMessageFieldBuilder() { + if (lastMessageBuilder_ == null) { + lastMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getLastMessage(), + getParentForChildren(), + isClean()); + lastMessage_ = null; + } + return lastMessageBuilder_; + } + private boolean readOnly_ ; /** - * optional bool read_only = 8; + * bool read_only = 8; + * @return The readOnly. */ + @java.lang.Override public boolean getReadOnly() { - return instance.getReadOnly(); + return readOnly_; } /** - * optional bool read_only = 8; + * bool read_only = 8; + * @param value The readOnly to set. + * @return This builder for chaining. */ public Builder setReadOnly(boolean value) { - copyOnWrite(); - instance.setReadOnly(value); + + readOnly_ = value; + onChanged(); return this; } /** - * optional bool read_only = 8; + * bool read_only = 8; + * @return This builder for chaining. */ public Builder clearReadOnly() { - copyOnWrite(); - instance.clearReadOnly(); + + readOnly_ = false; + onChanged(); return this; } + private boolean isParticipant_ ; /** - * optional bool is_participant = 9; + * bool is_participant = 9; + * @return The isParticipant. */ + @java.lang.Override public boolean getIsParticipant() { - return instance.getIsParticipant(); + return isParticipant_; } /** - * optional bool is_participant = 9; + * bool is_participant = 9; + * @param value The isParticipant to set. + * @return This builder for chaining. */ public Builder setIsParticipant(boolean value) { - copyOnWrite(); - instance.setIsParticipant(value); + + isParticipant_ = value; + onChanged(); return this; } /** - * optional bool is_participant = 9; + * bool is_participant = 9; + * @return This builder for chaining. */ public Builder clearIsParticipant() { - copyOnWrite(); - instance.clearIsParticipant(); + + isParticipant_ = false; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 10; + * .proto.RoomDraft draft = 10; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } + /** + * .proto.RoomDraft draft = 10; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 10; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } + } + /** + * .proto.RoomDraft draft = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; + } + return draftBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessage firstUnreadMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> firstUnreadMessageBuilder_; /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; + * @return Whether the firstUnreadMessage field is set. */ public boolean hasFirstUnreadMessage() { - return instance.hasFirstUnreadMessage(); + return firstUnreadMessageBuilder_ != null || firstUnreadMessage_ != null; } /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; + * @return The firstUnreadMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getFirstUnreadMessage() { - return instance.getFirstUnreadMessage(); + if (firstUnreadMessageBuilder_ == null) { + return firstUnreadMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : firstUnreadMessage_; + } else { + return firstUnreadMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; */ public Builder setFirstUnreadMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setFirstUnreadMessage(value); - return this; + if (firstUnreadMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firstUnreadMessage_ = value; + onChanged(); + } else { + firstUnreadMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; */ public Builder setFirstUnreadMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setFirstUnreadMessage(builderForValue); + if (firstUnreadMessageBuilder_ == null) { + firstUnreadMessage_ = builderForValue.build(); + onChanged(); + } else { + firstUnreadMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; */ public Builder mergeFirstUnreadMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeFirstUnreadMessage(value); + if (firstUnreadMessageBuilder_ == null) { + if (firstUnreadMessage_ != null) { + firstUnreadMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(firstUnreadMessage_).mergeFrom(value).buildPartial(); + } else { + firstUnreadMessage_ = value; + } + onChanged(); + } else { + firstUnreadMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage first_unread_message = 14; + * .proto.RoomMessage first_unread_message = 14; */ - public Builder clearFirstUnreadMessage() { copyOnWrite(); - instance.clearFirstUnreadMessage(); + public Builder clearFirstUnreadMessage() { + if (firstUnreadMessageBuilder_ == null) { + firstUnreadMessage_ = null; + onChanged(); + } else { + firstUnreadMessage_ = null; + firstUnreadMessageBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage first_unread_message = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getFirstUnreadMessageBuilder() { + + onChanged(); + return getFirstUnreadMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage first_unread_message = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getFirstUnreadMessageOrBuilder() { + if (firstUnreadMessageBuilder_ != null) { + return firstUnreadMessageBuilder_.getMessageOrBuilder(); + } else { + return firstUnreadMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : firstUnreadMessage_; + } + } + /** + * .proto.RoomMessage first_unread_message = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getFirstUnreadMessageFieldBuilder() { + if (firstUnreadMessageBuilder_ == null) { + firstUnreadMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getFirstUnreadMessage(), + getParentForChildren(), + isClean()); + firstUnreadMessage_ = null; + } + return firstUnreadMessageBuilder_; + } + private int roomMute_ = 0; /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @return The enum numeric value on the wire for roomMute. */ - public int getRoomMuteValue() { - return instance.getRoomMuteValue(); + @java.lang.Override public int getRoomMuteValue() { + return roomMute_; } /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @param value The enum numeric value on the wire for roomMute to set. + * @return This builder for chaining. */ public Builder setRoomMuteValue(int value) { - copyOnWrite(); - instance.setRoomMuteValue(value); + + roomMute_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @return The roomMute. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMute getRoomMute() { - return instance.getRoomMute(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMute result = net.iGap.proto.ProtoGlobal.RoomMute.valueOf(roomMute_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMute.UNRECOGNIZED : result; } /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @param value The roomMute to set. + * @return This builder for chaining. */ public Builder setRoomMute(net.iGap.proto.ProtoGlobal.RoomMute value) { - copyOnWrite(); - instance.setRoomMute(value); + if (value == null) { + throw new NullPointerException(); + } + + roomMute_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMute room_mute = 15; + * .proto.RoomMute room_mute = 15; + * @return This builder for chaining. */ public Builder clearRoomMute() { - copyOnWrite(); - instance.clearRoomMute(); + + roomMute_ = 0; + onChanged(); return this; } + private long pinId_ ; /** - * optional uint64 pin_id = 16 [jstype = JS_STRING]; + * uint64 pin_id = 16 [jstype = JS_STRING]; + * @return The pinId. */ + @java.lang.Override public long getPinId() { - return instance.getPinId(); + return pinId_; } /** - * optional uint64 pin_id = 16 [jstype = JS_STRING]; + * uint64 pin_id = 16 [jstype = JS_STRING]; + * @param value The pinId to set. + * @return This builder for chaining. */ public Builder setPinId(long value) { - copyOnWrite(); - instance.setPinId(value); + + pinId_ = value; + onChanged(); return this; } /** - * optional uint64 pin_id = 16 [jstype = JS_STRING]; + * uint64 pin_id = 16 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearPinId() { - copyOnWrite(); - instance.clearPinId(); + + pinId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> pinnedMessageBuilder_; /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; + * @return Whether the pinnedMessage field is set. */ public boolean hasPinnedMessage() { - return instance.hasPinnedMessage(); + return pinnedMessageBuilder_ != null || pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; + * @return The pinnedMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { - return instance.getPinnedMessage(); + if (pinnedMessageBuilder_ == null) { + return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } else { + return pinnedMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; */ public Builder setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setPinnedMessage(value); - return this; + if (pinnedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pinnedMessage_ = value; + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; */ public Builder setPinnedMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPinnedMessage(builderForValue); + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = builderForValue.build(); + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; */ public Builder mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergePinnedMessage(value); + if (pinnedMessageBuilder_ == null) { + if (pinnedMessage_ != null) { + pinnedMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); + } else { + pinnedMessage_ = value; + } + onChanged(); + } else { + pinnedMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 17; + * .proto.RoomMessage pinned_message = 17; */ - public Builder clearPinnedMessage() { copyOnWrite(); - instance.clearPinnedMessage(); + public Builder clearPinnedMessage() { + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + onChanged(); + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessage pinned_message = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getPinnedMessageBuilder() { + + onChanged(); + return getPinnedMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage pinned_message = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + if (pinnedMessageBuilder_ != null) { + return pinnedMessageBuilder_.getMessageOrBuilder(); + } else { + return pinnedMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } + } + /** + * .proto.RoomMessage pinned_message = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getPinnedMessageFieldBuilder() { + if (pinnedMessageBuilder_ == null) { + pinnedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getPinnedMessage(), + getParentForChildren(), + isClean()); + pinnedMessage_ = null; + } + return pinnedMessageBuilder_; + } + private int priority_ ; /** - * optional uint32 priority = 18; + * uint32 priority = 18; + * @return The priority. */ + @java.lang.Override public int getPriority() { - return instance.getPriority(); + return priority_; } /** - * optional uint32 priority = 18; + * uint32 priority = 18; + * @param value The priority to set. + * @return This builder for chaining. */ public Builder setPriority(int value) { - copyOnWrite(); - instance.setPriority(value); + + priority_ = value; + onChanged(); return this; } /** - * optional uint32 priority = 18; + * uint32 priority = 18; + * @return This builder for chaining. */ public Builder clearPriority() { - copyOnWrite(); - instance.clearPriority(); + + priority_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.ChatRoom chatRoomExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChatRoom, net.iGap.proto.ProtoGlobal.ChatRoom.Builder, net.iGap.proto.ProtoGlobal.ChatRoomOrBuilder> chatRoomExtraBuilder_; /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; + * @return Whether the chatRoomExtra field is set. */ public boolean hasChatRoomExtra() { - return instance.hasChatRoomExtra(); + return chatRoomExtraBuilder_ != null || chatRoomExtra_ != null; } /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; + * @return The chatRoomExtra. */ public net.iGap.proto.ProtoGlobal.ChatRoom getChatRoomExtra() { - return instance.getChatRoomExtra(); + if (chatRoomExtraBuilder_ == null) { + return chatRoomExtra_ == null ? net.iGap.proto.ProtoGlobal.ChatRoom.getDefaultInstance() : chatRoomExtra_; + } else { + return chatRoomExtraBuilder_.getMessage(); + } } /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; */ public Builder setChatRoomExtra(net.iGap.proto.ProtoGlobal.ChatRoom value) { - copyOnWrite(); - instance.setChatRoomExtra(value); - return this; + if (chatRoomExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chatRoomExtra_ = value; + onChanged(); + } else { + chatRoomExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; */ public Builder setChatRoomExtra( net.iGap.proto.ProtoGlobal.ChatRoom.Builder builderForValue) { - copyOnWrite(); - instance.setChatRoomExtra(builderForValue); + if (chatRoomExtraBuilder_ == null) { + chatRoomExtra_ = builderForValue.build(); + onChanged(); + } else { + chatRoomExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; */ public Builder mergeChatRoomExtra(net.iGap.proto.ProtoGlobal.ChatRoom value) { - copyOnWrite(); - instance.mergeChatRoomExtra(value); + if (chatRoomExtraBuilder_ == null) { + if (chatRoomExtra_ != null) { + chatRoomExtra_ = + net.iGap.proto.ProtoGlobal.ChatRoom.newBuilder(chatRoomExtra_).mergeFrom(value).buildPartial(); + } else { + chatRoomExtra_ = value; + } + onChanged(); + } else { + chatRoomExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChatRoom chat_room_extra = 11; + * .proto.ChatRoom chat_room_extra = 11; */ - public Builder clearChatRoomExtra() { copyOnWrite(); - instance.clearChatRoomExtra(); + public Builder clearChatRoomExtra() { + if (chatRoomExtraBuilder_ == null) { + chatRoomExtra_ = null; + onChanged(); + } else { + chatRoomExtra_ = null; + chatRoomExtraBuilder_ = null; + } + return this; } + /** + * .proto.ChatRoom chat_room_extra = 11; + */ + public net.iGap.proto.ProtoGlobal.ChatRoom.Builder getChatRoomExtraBuilder() { + + onChanged(); + return getChatRoomExtraFieldBuilder().getBuilder(); + } + /** + * .proto.ChatRoom chat_room_extra = 11; + */ + public net.iGap.proto.ProtoGlobal.ChatRoomOrBuilder getChatRoomExtraOrBuilder() { + if (chatRoomExtraBuilder_ != null) { + return chatRoomExtraBuilder_.getMessageOrBuilder(); + } else { + return chatRoomExtra_ == null ? + net.iGap.proto.ProtoGlobal.ChatRoom.getDefaultInstance() : chatRoomExtra_; + } + } + /** + * .proto.ChatRoom chat_room_extra = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChatRoom, net.iGap.proto.ProtoGlobal.ChatRoom.Builder, net.iGap.proto.ProtoGlobal.ChatRoomOrBuilder> + getChatRoomExtraFieldBuilder() { + if (chatRoomExtraBuilder_ == null) { + chatRoomExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChatRoom, net.iGap.proto.ProtoGlobal.ChatRoom.Builder, net.iGap.proto.ProtoGlobal.ChatRoomOrBuilder>( + getChatRoomExtra(), + getParentForChildren(), + isClean()); + chatRoomExtra_ = null; + } + return chatRoomExtraBuilder_; + } + private net.iGap.proto.ProtoGlobal.GroupRoom groupRoomExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom, net.iGap.proto.ProtoGlobal.GroupRoom.Builder, net.iGap.proto.ProtoGlobal.GroupRoomOrBuilder> groupRoomExtraBuilder_; /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; + * @return Whether the groupRoomExtra field is set. */ public boolean hasGroupRoomExtra() { - return instance.hasGroupRoomExtra(); + return groupRoomExtraBuilder_ != null || groupRoomExtra_ != null; } /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; + * @return The groupRoomExtra. */ public net.iGap.proto.ProtoGlobal.GroupRoom getGroupRoomExtra() { - return instance.getGroupRoomExtra(); + if (groupRoomExtraBuilder_ == null) { + return groupRoomExtra_ == null ? net.iGap.proto.ProtoGlobal.GroupRoom.getDefaultInstance() : groupRoomExtra_; + } else { + return groupRoomExtraBuilder_.getMessage(); + } } /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; */ public Builder setGroupRoomExtra(net.iGap.proto.ProtoGlobal.GroupRoom value) { - copyOnWrite(); - instance.setGroupRoomExtra(value); - return this; + if (groupRoomExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groupRoomExtra_ = value; + onChanged(); + } else { + groupRoomExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; */ public Builder setGroupRoomExtra( net.iGap.proto.ProtoGlobal.GroupRoom.Builder builderForValue) { - copyOnWrite(); - instance.setGroupRoomExtra(builderForValue); + if (groupRoomExtraBuilder_ == null) { + groupRoomExtra_ = builderForValue.build(); + onChanged(); + } else { + groupRoomExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; */ public Builder mergeGroupRoomExtra(net.iGap.proto.ProtoGlobal.GroupRoom value) { - copyOnWrite(); - instance.mergeGroupRoomExtra(value); + if (groupRoomExtraBuilder_ == null) { + if (groupRoomExtra_ != null) { + groupRoomExtra_ = + net.iGap.proto.ProtoGlobal.GroupRoom.newBuilder(groupRoomExtra_).mergeFrom(value).buildPartial(); + } else { + groupRoomExtra_ = value; + } + onChanged(); + } else { + groupRoomExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupRoom group_room_extra = 12; + * .proto.GroupRoom group_room_extra = 12; */ - public Builder clearGroupRoomExtra() { copyOnWrite(); - instance.clearGroupRoomExtra(); + public Builder clearGroupRoomExtra() { + if (groupRoomExtraBuilder_ == null) { + groupRoomExtra_ = null; + onChanged(); + } else { + groupRoomExtra_ = null; + groupRoomExtraBuilder_ = null; + } + return this; } + /** + * .proto.GroupRoom group_room_extra = 12; + */ + public net.iGap.proto.ProtoGlobal.GroupRoom.Builder getGroupRoomExtraBuilder() { + + onChanged(); + return getGroupRoomExtraFieldBuilder().getBuilder(); + } + /** + * .proto.GroupRoom group_room_extra = 12; + */ + public net.iGap.proto.ProtoGlobal.GroupRoomOrBuilder getGroupRoomExtraOrBuilder() { + if (groupRoomExtraBuilder_ != null) { + return groupRoomExtraBuilder_.getMessageOrBuilder(); + } else { + return groupRoomExtra_ == null ? + net.iGap.proto.ProtoGlobal.GroupRoom.getDefaultInstance() : groupRoomExtra_; + } + } + /** + * .proto.GroupRoom group_room_extra = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom, net.iGap.proto.ProtoGlobal.GroupRoom.Builder, net.iGap.proto.ProtoGlobal.GroupRoomOrBuilder> + getGroupRoomExtraFieldBuilder() { + if (groupRoomExtraBuilder_ == null) { + groupRoomExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom, net.iGap.proto.ProtoGlobal.GroupRoom.Builder, net.iGap.proto.ProtoGlobal.GroupRoomOrBuilder>( + getGroupRoomExtra(), + getParentForChildren(), + isClean()); + groupRoomExtra_ = null; + } + return groupRoomExtraBuilder_; + } + private net.iGap.proto.ProtoGlobal.ChannelRoom channelRoomExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom, net.iGap.proto.ProtoGlobal.ChannelRoom.Builder, net.iGap.proto.ProtoGlobal.ChannelRoomOrBuilder> channelRoomExtraBuilder_; /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; + * @return Whether the channelRoomExtra field is set. */ public boolean hasChannelRoomExtra() { - return instance.hasChannelRoomExtra(); + return channelRoomExtraBuilder_ != null || channelRoomExtra_ != null; } /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; + * @return The channelRoomExtra. */ public net.iGap.proto.ProtoGlobal.ChannelRoom getChannelRoomExtra() { - return instance.getChannelRoomExtra(); + if (channelRoomExtraBuilder_ == null) { + return channelRoomExtra_ == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.getDefaultInstance() : channelRoomExtra_; + } else { + return channelRoomExtraBuilder_.getMessage(); + } } /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; */ public Builder setChannelRoomExtra(net.iGap.proto.ProtoGlobal.ChannelRoom value) { - copyOnWrite(); - instance.setChannelRoomExtra(value); - return this; + if (channelRoomExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelRoomExtra_ = value; + onChanged(); + } else { + channelRoomExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; */ public Builder setChannelRoomExtra( net.iGap.proto.ProtoGlobal.ChannelRoom.Builder builderForValue) { - copyOnWrite(); - instance.setChannelRoomExtra(builderForValue); + if (channelRoomExtraBuilder_ == null) { + channelRoomExtra_ = builderForValue.build(); + onChanged(); + } else { + channelRoomExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; */ public Builder mergeChannelRoomExtra(net.iGap.proto.ProtoGlobal.ChannelRoom value) { - copyOnWrite(); - instance.mergeChannelRoomExtra(value); + if (channelRoomExtraBuilder_ == null) { + if (channelRoomExtra_ != null) { + channelRoomExtra_ = + net.iGap.proto.ProtoGlobal.ChannelRoom.newBuilder(channelRoomExtra_).mergeFrom(value).buildPartial(); + } else { + channelRoomExtra_ = value; + } + onChanged(); + } else { + channelRoomExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChannelRoom channel_room_extra = 13; + * .proto.ChannelRoom channel_room_extra = 13; */ - public Builder clearChannelRoomExtra() { copyOnWrite(); - instance.clearChannelRoomExtra(); + public Builder clearChannelRoomExtra() { + if (channelRoomExtraBuilder_ == null) { + channelRoomExtra_ = null; + onChanged(); + } else { + channelRoomExtra_ = null; + channelRoomExtraBuilder_ = null; + } + return this; } + /** + * .proto.ChannelRoom channel_room_extra = 13; + */ + public net.iGap.proto.ProtoGlobal.ChannelRoom.Builder getChannelRoomExtraBuilder() { + + onChanged(); + return getChannelRoomExtraFieldBuilder().getBuilder(); + } + /** + * .proto.ChannelRoom channel_room_extra = 13; + */ + public net.iGap.proto.ProtoGlobal.ChannelRoomOrBuilder getChannelRoomExtraOrBuilder() { + if (channelRoomExtraBuilder_ != null) { + return channelRoomExtraBuilder_.getMessageOrBuilder(); + } else { + return channelRoomExtra_ == null ? + net.iGap.proto.ProtoGlobal.ChannelRoom.getDefaultInstance() : channelRoomExtra_; + } + } + /** + * .proto.ChannelRoom channel_room_extra = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom, net.iGap.proto.ProtoGlobal.ChannelRoom.Builder, net.iGap.proto.ProtoGlobal.ChannelRoomOrBuilder> + getChannelRoomExtraFieldBuilder() { + if (channelRoomExtraBuilder_ == null) { + channelRoomExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom, net.iGap.proto.ProtoGlobal.ChannelRoom.Builder, net.iGap.proto.ProtoGlobal.ChannelRoomOrBuilder>( + getChannelRoomExtra(), + getParentForChildren(), + isClean()); + channelRoomExtra_ = null; + } + return channelRoomExtraBuilder_; + } + private int appId_ ; /** - * optional uint32 app_id = 19; + * uint32 app_id = 19; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 19; + * uint32 app_id = 19; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 19; + * uint32 app_id = 19; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomAccess permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder> permissionBuilder_; /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; + * @return The permission. */ public net.iGap.proto.ProtoGlobal.RoomAccess getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; */ public Builder setPermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } - /** - * optional .proto.RoomAccess permission = 20; - */ - public Builder setPermission( - net.iGap.proto.ProtoGlobal.RoomAccess.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + return this; } /** - * optional .proto.RoomAccess permission = 20; + * .proto.RoomAccess permission = 20; */ - public Builder mergePermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { - copyOnWrite(); - instance.mergePermission(value); + public Builder setPermission( + net.iGap.proto.ProtoGlobal.RoomAccess.Builder builderForValue) { + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomAccess permission = 20; - */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.Room) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Room(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Room other = (net.iGap.proto.ProtoGlobal.Room) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - title_ = visitor.visitString(!title_.isEmpty(), title_, - !other.title_.isEmpty(), other.title_); - initials_ = visitor.visitString(!initials_.isEmpty(), initials_, - !other.initials_.isEmpty(), other.initials_); - color_ = visitor.visitString(!color_.isEmpty(), color_, - !other.color_.isEmpty(), other.color_); - unreadCount_ = visitor.visitInt(unreadCount_ != 0, unreadCount_, - other.unreadCount_ != 0, other.unreadCount_); - lastMessage_ = visitor.visitMessage(lastMessage_, other.lastMessage_); - readOnly_ = visitor.visitBoolean(readOnly_ != false, readOnly_, - other.readOnly_ != false, other.readOnly_); - isParticipant_ = visitor.visitBoolean(isParticipant_ != false, isParticipant_, - other.isParticipant_ != false, other.isParticipant_); - draft_ = visitor.visitMessage(draft_, other.draft_); - firstUnreadMessage_ = visitor.visitMessage(firstUnreadMessage_, other.firstUnreadMessage_); - roomMute_ = visitor.visitInt(roomMute_ != 0, roomMute_, other.roomMute_ != 0, other.roomMute_); - pinId_ = visitor.visitLong(pinId_ != 0L, pinId_, - other.pinId_ != 0L, other.pinId_); - pinnedMessage_ = visitor.visitMessage(pinnedMessage_, other.pinnedMessage_); - priority_ = visitor.visitInt(priority_ != 0, priority_, - other.priority_ != 0, other.priority_); - chatRoomExtra_ = visitor.visitMessage(chatRoomExtra_, other.chatRoomExtra_); - groupRoomExtra_ = visitor.visitMessage(groupRoomExtra_, other.groupRoomExtra_); - channelRoomExtra_ = visitor.visitMessage(channelRoomExtra_, other.channelRoomExtra_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - initials_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - color_ = s; - break; - } - case 48: { - - unreadCount_ = input.readUInt32(); - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (lastMessage_ != null) { - subBuilder = lastMessage_.toBuilder(); - } - lastMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastMessage_); - lastMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - readOnly_ = input.readBool(); - break; - } - case 72: { - - isParticipant_ = input.readBool(); - break; - } - case 82: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - net.iGap.proto.ProtoGlobal.ChatRoom.Builder subBuilder = null; - if (chatRoomExtra_ != null) { - subBuilder = chatRoomExtra_.toBuilder(); - } - chatRoomExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChatRoom.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chatRoomExtra_); - chatRoomExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - net.iGap.proto.ProtoGlobal.GroupRoom.Builder subBuilder = null; - if (groupRoomExtra_ != null) { - subBuilder = groupRoomExtra_.toBuilder(); - } - groupRoomExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.GroupRoom.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(groupRoomExtra_); - groupRoomExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 106: { - net.iGap.proto.ProtoGlobal.ChannelRoom.Builder subBuilder = null; - if (channelRoomExtra_ != null) { - subBuilder = channelRoomExtra_.toBuilder(); - } - channelRoomExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChannelRoom.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channelRoomExtra_); - channelRoomExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 114: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (firstUnreadMessage_ != null) { - subBuilder = firstUnreadMessage_.toBuilder(); - } - firstUnreadMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(firstUnreadMessage_); - firstUnreadMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 120: { - int rawValue = input.readEnum(); - - roomMute_ = rawValue; - break; - } - case 128: { - - pinId_ = input.readUInt64(); - break; - } - case 138: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (pinnedMessage_ != null) { - subBuilder = pinnedMessage_.toBuilder(); - } - pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pinnedMessage_); - pinnedMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 144: { - - priority_ = input.readUInt32(); - break; - } - case 152: { - - appId_ = input.readUInt32(); - break; - } - case 162: { - net.iGap.proto.ProtoGlobal.RoomAccess.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomAccess.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { + * .proto.RoomAccess permission = 20; + */ + public Builder mergePermission(net.iGap.proto.ProtoGlobal.RoomAccess value) { + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoGlobal.RoomAccess.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + + return this; + } + /** + * .proto.RoomAccess permission = 20; + */ + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Room.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + + return this; + } + /** + * .proto.RoomAccess permission = 20; + */ + public net.iGap.proto.ProtoGlobal.RoomAccess.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.RoomAccess permission = 20; + */ + public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance() : permission_; } } - throw new UnsupportedOperationException(); - } + /** + * .proto.RoomAccess permission = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomAccess, net.iGap.proto.ProtoGlobal.RoomAccess.Builder, net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; + } + return permissionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:proto.Room) + } + // @@protoc_insertion_point(class_scope:proto.Room) private static final net.iGap.proto.ProtoGlobal.Room DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Room(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Room(); } public static net.iGap.proto.ProtoGlobal.Room getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Room parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Room(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Room getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface ChatRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChatRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; + * @return Whether the peer field is set. */ boolean hasPeer(); /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; + * @return The peer. */ net.iGap.proto.ProtoGlobal.RegisteredUser getPeer(); + /** + * .proto.RegisteredUser peer = 1; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder(); /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; + * @return Whether the botInfo field is set. */ boolean hasBotInfo(); /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; + * @return The botInfo. */ net.iGap.proto.ProtoGlobal.BotInfo getBotInfo(); + /** + * .proto.BotInfo botInfo = 2; + */ + net.iGap.proto.ProtoGlobal.BotInfoOrBuilder getBotInfoOrBuilder(); } /** * Protobuf type {@code proto.ChatRoom} */ - public static final class ChatRoom extends - com.google.protobuf.GeneratedMessageLite< - ChatRoom, ChatRoom.Builder> implements + public static final class ChatRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChatRoom) ChatRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChatRoom.newBuilder() to construct. + private ChatRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChatRoom() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChatRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChatRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (peer_ != null) { + subBuilder = peer_.toBuilder(); + } + peer_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(peer_); + peer_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.BotInfo.Builder subBuilder = null; + if (botInfo_ != null) { + subBuilder = botInfo_.toBuilder(); + } + botInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.BotInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(botInfo_); + botInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChatRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChatRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChatRoom.class, net.iGap.proto.ProtoGlobal.ChatRoom.Builder.class); + } + public static final int PEER_FIELD_NUMBER = 1; private net.iGap.proto.ProtoGlobal.RegisteredUser peer_; /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; + * @return Whether the peer field is set. */ + @java.lang.Override public boolean hasPeer() { return peer_ != null; } /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; + * @return The peer. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getPeer() { return peer_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : peer_; } /** - * optional .proto.RegisteredUser peer = 1; - */ - private void setPeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - peer_ = value; - - } - /** - * optional .proto.RegisteredUser peer = 1; - */ - private void setPeer( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - peer_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser peer = 1; - */ - private void mergePeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (peer_ != null && - peer_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - peer_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(peer_).mergeFrom(value).buildPartial(); - } else { - peer_ = value; - } - - } - /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; */ - private void clearPeer() { peer_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder() { + return getPeer(); } public static final int BOTINFO_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.BotInfo botInfo_; /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; + * @return Whether the botInfo field is set. */ + @java.lang.Override public boolean hasBotInfo() { return botInfo_ != null; } /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; + * @return The botInfo. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.BotInfo getBotInfo() { return botInfo_ == null ? net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance() : botInfo_; } /** - * optional .proto.BotInfo botInfo = 2; - */ - private void setBotInfo(net.iGap.proto.ProtoGlobal.BotInfo value) { - if (value == null) { - throw new NullPointerException(); - } - botInfo_ = value; - - } - /** - * optional .proto.BotInfo botInfo = 2; - */ - private void setBotInfo( - net.iGap.proto.ProtoGlobal.BotInfo.Builder builderForValue) { - botInfo_ = builderForValue.build(); - - } - /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; */ - private void mergeBotInfo(net.iGap.proto.ProtoGlobal.BotInfo value) { - if (botInfo_ != null && - botInfo_ != net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance()) { - botInfo_ = - net.iGap.proto.ProtoGlobal.BotInfo.newBuilder(botInfo_).mergeFrom(value).buildPartial(); - } else { - botInfo_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfoOrBuilder getBotInfoOrBuilder() { + return getBotInfo(); } - /** - * optional .proto.BotInfo botInfo = 2; - */ - private void clearBotInfo() { botInfo_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peer_ != null) { @@ -24442,10 +35908,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (botInfo_ != null) { output.writeMessage(2, getBotInfo()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -24457,427 +35925,939 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBotInfo()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.ChatRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.ChatRoom other = (net.iGap.proto.ProtoGlobal.ChatRoom) obj; + + if (hasPeer() != other.hasPeer()) return false; + if (hasPeer()) { + if (!getPeer() + .equals(other.getPeer())) return false; + } + if (hasBotInfo() != other.hasBotInfo()) return false; + if (hasBotInfo()) { + if (!getBotInfo() + .equals(other.getBotInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPeer()) { + hash = (37 * hash) + PEER_FIELD_NUMBER; + hash = (53 * hash) + getPeer().hashCode(); + } + if (hasBotInfo()) { + hash = (37 * hash) + BOTINFO_FIELD_NUMBER; + hash = (53 * hash) + getBotInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChatRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.ChatRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChatRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.ChatRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChatRoom) net.iGap.proto.ProtoGlobal.ChatRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChatRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChatRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChatRoom.class, net.iGap.proto.ProtoGlobal.ChatRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.ChatRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (peerBuilder_ == null) { + peer_ = null; + } else { + peer_ = null; + peerBuilder_ = null; + } + if (botInfoBuilder_ == null) { + botInfo_ = null; + } else { + botInfo_ = null; + botInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChatRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChatRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.ChatRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChatRoom build() { + net.iGap.proto.ProtoGlobal.ChatRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChatRoom buildPartial() { + net.iGap.proto.ProtoGlobal.ChatRoom result = new net.iGap.proto.ProtoGlobal.ChatRoom(this); + if (peerBuilder_ == null) { + result.peer_ = peer_; + } else { + result.peer_ = peerBuilder_.build(); + } + if (botInfoBuilder_ == null) { + result.botInfo_ = botInfo_; + } else { + result.botInfo_ = botInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.ChatRoom) { + return mergeFrom((net.iGap.proto.ProtoGlobal.ChatRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.ChatRoom other) { + if (other == net.iGap.proto.ProtoGlobal.ChatRoom.getDefaultInstance()) return this; + if (other.hasPeer()) { + mergePeer(other.getPeer()); + } + if (other.hasBotInfo()) { + mergeBotInfo(other.getBotInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.ChatRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.ChatRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoGlobal.RegisteredUser peer_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> peerBuilder_; /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; + * @return Whether the peer field is set. */ public boolean hasPeer() { - return instance.hasPeer(); + return peerBuilder_ != null || peer_ != null; } /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; + * @return The peer. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getPeer() { - return instance.getPeer(); + if (peerBuilder_ == null) { + return peer_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : peer_; + } else { + return peerBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; */ public Builder setPeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setPeer(value); - return this; + if (peerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + peer_ = value; + onChanged(); + } else { + peerBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; */ public Builder setPeer( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setPeer(builderForValue); + if (peerBuilder_ == null) { + peer_ = builderForValue.build(); + onChanged(); + } else { + peerBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; */ public Builder mergePeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergePeer(value); + if (peerBuilder_ == null) { + if (peer_ != null) { + peer_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(peer_).mergeFrom(value).buildPartial(); + } else { + peer_ = value; + } + onChanged(); + } else { + peerBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser peer = 1; + * .proto.RegisteredUser peer = 1; */ - public Builder clearPeer() { copyOnWrite(); - instance.clearPeer(); + public Builder clearPeer() { + if (peerBuilder_ == null) { + peer_ = null; + onChanged(); + } else { + peer_ = null; + peerBuilder_ = null; + } + return this; } + /** + * .proto.RegisteredUser peer = 1; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getPeerBuilder() { + + onChanged(); + return getPeerFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser peer = 1; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder() { + if (peerBuilder_ != null) { + return peerBuilder_.getMessageOrBuilder(); + } else { + return peer_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : peer_; + } + } + /** + * .proto.RegisteredUser peer = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getPeerFieldBuilder() { + if (peerBuilder_ == null) { + peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getPeer(), + getParentForChildren(), + isClean()); + peer_ = null; + } + return peerBuilder_; + } + private net.iGap.proto.ProtoGlobal.BotInfo botInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo, net.iGap.proto.ProtoGlobal.BotInfo.Builder, net.iGap.proto.ProtoGlobal.BotInfoOrBuilder> botInfoBuilder_; /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; + * @return Whether the botInfo field is set. */ public boolean hasBotInfo() { - return instance.hasBotInfo(); + return botInfoBuilder_ != null || botInfo_ != null; } /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; + * @return The botInfo. */ public net.iGap.proto.ProtoGlobal.BotInfo getBotInfo() { - return instance.getBotInfo(); + if (botInfoBuilder_ == null) { + return botInfo_ == null ? net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance() : botInfo_; + } else { + return botInfoBuilder_.getMessage(); + } } /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; */ public Builder setBotInfo(net.iGap.proto.ProtoGlobal.BotInfo value) { - copyOnWrite(); - instance.setBotInfo(value); - return this; + if (botInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + botInfo_ = value; + onChanged(); + } else { + botInfoBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; */ public Builder setBotInfo( net.iGap.proto.ProtoGlobal.BotInfo.Builder builderForValue) { - copyOnWrite(); - instance.setBotInfo(builderForValue); + if (botInfoBuilder_ == null) { + botInfo_ = builderForValue.build(); + onChanged(); + } else { + botInfoBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; */ public Builder mergeBotInfo(net.iGap.proto.ProtoGlobal.BotInfo value) { - copyOnWrite(); - instance.mergeBotInfo(value); + if (botInfoBuilder_ == null) { + if (botInfo_ != null) { + botInfo_ = + net.iGap.proto.ProtoGlobal.BotInfo.newBuilder(botInfo_).mergeFrom(value).buildPartial(); + } else { + botInfo_ = value; + } + onChanged(); + } else { + botInfoBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.BotInfo botInfo = 2; + * .proto.BotInfo botInfo = 2; */ - public Builder clearBotInfo() { copyOnWrite(); - instance.clearBotInfo(); + public Builder clearBotInfo() { + if (botInfoBuilder_ == null) { + botInfo_ = null; + onChanged(); + } else { + botInfo_ = null; + botInfoBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.ChatRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.ChatRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); + /** + * .proto.BotInfo botInfo = 2; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.Builder getBotInfoBuilder() { + + onChanged(); + return getBotInfoFieldBuilder().getBuilder(); + } + /** + * .proto.BotInfo botInfo = 2; + */ + public net.iGap.proto.ProtoGlobal.BotInfoOrBuilder getBotInfoOrBuilder() { + if (botInfoBuilder_ != null) { + return botInfoBuilder_.getMessageOrBuilder(); + } else { + return botInfo_ == null ? + net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance() : botInfo_; } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.ChatRoom other = (net.iGap.proto.ProtoGlobal.ChatRoom) arg1; - peer_ = visitor.visitMessage(peer_, other.peer_); - botInfo_ = visitor.visitMessage(botInfo_, other.botInfo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + } + /** + * .proto.BotInfo botInfo = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo, net.iGap.proto.ProtoGlobal.BotInfo.Builder, net.iGap.proto.ProtoGlobal.BotInfoOrBuilder> + getBotInfoFieldBuilder() { + if (botInfoBuilder_ == null) { + botInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo, net.iGap.proto.ProtoGlobal.BotInfo.Builder, net.iGap.proto.ProtoGlobal.BotInfoOrBuilder>( + getBotInfo(), + getParentForChildren(), + isClean()); + botInfo_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (peer_ != null) { - subBuilder = peer_.toBuilder(); - } - peer_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(peer_); - peer_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.BotInfo.Builder subBuilder = null; - if (botInfo_ != null) { - subBuilder = botInfo_.toBuilder(); - } - botInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.BotInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(botInfo_); - botInfo_ = subBuilder.buildPartial(); - } + return botInfoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.ChatRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChatRoom) + } + // @@protoc_insertion_point(class_scope:proto.ChatRoom) private static final net.iGap.proto.ProtoGlobal.ChatRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChatRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.ChatRoom(); } public static net.iGap.proto.ProtoGlobal.ChatRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChatRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChatRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @return The type. */ net.iGap.proto.ProtoGlobal.GroupRoom.Type getType(); /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The role. */ net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole(); /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return The participantsCount. */ int getParticipantsCount(); /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The participantsCountLabel. */ java.lang.String getParticipantsCountLabel(); /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The bytes for participantsCountLabel. */ com.google.protobuf.ByteString getParticipantsCountLabelBytes(); /** - * optional uint32 participants_count_limit = 5; + * uint32 participants_count_limit = 5; + * @return The participantsCountLimit. */ int getParticipantsCountLimit(); /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @return The participantsCountLimitLabel. */ java.lang.String getParticipantsCountLimitLabel(); /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @return The bytes for participantsCountLimitLabel. */ com.google.protobuf.ByteString getParticipantsCountLimitLabelBytes(); /** - * optional string description = 7; + * string description = 7; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 7; + * string description = 7; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * optional uint32 avatar_count = 8; + * uint32 avatar_count = 8; + * @return The avatarCount. */ int getAvatarCount(); /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; + * @return Whether the avatar field is set. */ boolean hasAvatar(); /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; + * @return The avatar. */ net.iGap.proto.ProtoGlobal.Avatar getAvatar(); + /** + * .proto.Avatar avatar = 9; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder(); /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; + * @return Whether the privateExtra field is set. */ boolean hasPrivateExtra(); /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; + * @return The privateExtra. */ net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra getPrivateExtra(); + /** + * .proto.GroupRoom.PrivateExtra private_extra = 10; + */ + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtraOrBuilder getPrivateExtraOrBuilder(); /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; + * @return Whether the publicExtra field is set. */ boolean hasPublicExtra(); /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; + * @return The publicExtra. */ net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra getPublicExtra(); + /** + * .proto.GroupRoom.PublicExtra public_extra = 11; + */ + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtraOrBuilder getPublicExtraOrBuilder(); /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * @return Whether the roomRights field is set. */ boolean hasRoomRights(); /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * @return The roomRights. */ net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getRoomRights(); + /** + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + */ + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getRoomRightsOrBuilder(); /** - * optional bool is_mention = 13; + * bool is_mention = 13; + * @return The isMention. */ boolean getIsMention(); } /** * Protobuf type {@code proto.GroupRoom} */ - public static final class GroupRoom extends - com.google.protobuf.GeneratedMessageLite< - GroupRoom, GroupRoom.Builder> implements + public static final class GroupRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRoom) GroupRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupRoom.newBuilder() to construct. + private GroupRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupRoom() { + type_ = 0; + role_ = 0; participantsCountLabel_ = ""; participantsCountLimitLabel_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + case 24: { + + participantsCount_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + participantsCountLabel_ = s; + break; + } + case 40: { + + participantsCountLimit_ = input.readUInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + participantsCountLimitLabel_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 64: { + + avatarCount_ = input.readUInt32(); + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; + if (avatar_ != null) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder subBuilder = null; + if (privateExtra_ != null) { + subBuilder = privateExtra_.toBuilder(); + } + privateExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateExtra_); + privateExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder subBuilder = null; + if (publicExtra_ != null) { + subBuilder = publicExtra_.toBuilder(); + } + publicExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publicExtra_); + publicExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; + if (roomRights_ != null) { + subBuilder = roomRights_.toBuilder(); + } + roomRights_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(roomRights_); + roomRights_ = subBuilder.buildPartial(); + } + + break; + } + case 104: { + + isMention_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.GroupRoom.class, net.iGap.proto.ProtoGlobal.GroupRoom.Builder.class); + } + /** * Protobuf enum {@code proto.GroupRoom.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * PRIVATE_ROOM = 0; */ @@ -24900,10 +36880,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -24911,6 +36897,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return PRIVATE_ROOM; @@ -24931,6 +36921,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.GroupRoom.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -24944,7 +36965,7 @@ private Type(int value) { * Protobuf enum {@code proto.GroupRoom.Role} */ public enum Role - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MEMBER = 0; */ @@ -24983,10 +37004,16 @@ public enum Role public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -24994,6 +37021,10 @@ public static Role valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Role forNumber(int value) { switch (value) { case 0: return MEMBER; @@ -25016,6 +37047,37 @@ public Role findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.GroupRoom.getDescriptor().getEnumTypes().get(1); + } + + private static final Role[] VALUES = values(); + + public static Role valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Role(int value) { @@ -25027,24 +37089,28 @@ private Role(int value) { public interface PrivateExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRoom.PrivateExtra) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The inviteLink. */ java.lang.String getInviteLink(); /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The bytes for inviteLink. */ com.google.protobuf.ByteString getInviteLinkBytes(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ java.lang.String getInviteToken(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ com.google.protobuf.ByteString getInviteTokenBytes(); @@ -25052,413 +37118,705 @@ public interface PrivateExtraOrBuilder extends /** * Protobuf type {@code proto.GroupRoom.PrivateExtra} */ - public static final class PrivateExtra extends - com.google.protobuf.GeneratedMessageLite< - PrivateExtra, PrivateExtra.Builder> implements + public static final class PrivateExtra extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRoom.PrivateExtra) PrivateExtraOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateExtra.newBuilder() to construct. + private PrivateExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PrivateExtra() { inviteLink_ = ""; inviteToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrivateExtra(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrivateExtra( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteLink_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PrivateExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PrivateExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.class, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder.class); + } + public static final int INVITE_LINK_FIELD_NUMBER = 1; - private java.lang.String inviteLink_; + private volatile java.lang.Object inviteLink_; /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The inviteLink. */ + @java.lang.Override public java.lang.String getInviteLink() { - return inviteLink_; + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The bytes for inviteLink. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteLink_); - } - /** - * optional string invite_link = 1; - */ - private void setInviteLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteLink_ = value; - } - /** - * optional string invite_link = 1; - */ - private void clearInviteLink() { - - inviteLink_ = getDefaultInstance().getInviteLink(); - } - /** - * optional string invite_link = 1; - */ - private void setInviteLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteLink_ = value.toStringUtf8(); + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INVITE_TOKEN_FIELD_NUMBER = 2; - private java.lang.String inviteToken_; + private volatile java.lang.Object inviteToken_; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ + @java.lang.Override public java.lang.String getInviteToken() { - return inviteToken_; + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteToken_); - } - /** - * optional string invite_token = 2; - */ - private void setInviteToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteToken_ = value; - } - /** - * optional string invite_token = 2; - */ - private void clearInviteToken() { - - inviteToken_ = getDefaultInstance().getInviteToken(); + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_token = 2; - */ - private void setInviteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!inviteLink_.isEmpty()) { - output.writeString(1, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inviteLink_); } - if (!inviteToken_.isEmpty()) { - output.writeString(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inviteToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!inviteLink_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inviteLink_); } - if (!inviteToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inviteToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra other = (net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra) obj; + + if (!getInviteLink() + .equals(other.getInviteLink())) return false; + if (!getInviteToken() + .equals(other.getInviteToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INVITE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getInviteLink().hashCode(); + hash = (37 * hash) + INVITE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getInviteToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRoom.PrivateExtra} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRoom.PrivateExtra) net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PrivateExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PrivateExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.class, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inviteLink_ = ""; + + inviteToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PrivateExtra_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra build() { + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra buildPartial() { + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra result = new net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra(this); + result.inviteLink_ = inviteLink_; + result.inviteToken_ = inviteToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra) { + return mergeFrom((net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra other) { + if (other == net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.getDefaultInstance()) return this; + if (!other.getInviteLink().isEmpty()) { + inviteLink_ = other.inviteLink_; + onChanged(); + } + if (!other.getInviteToken().isEmpty()) { + inviteToken_ = other.inviteToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object inviteLink_ = ""; /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The inviteLink. */ public java.lang.String getInviteLink() { - return instance.getInviteLink(); + java.lang.Object ref = inviteLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The bytes for inviteLink. */ public com.google.protobuf.ByteString getInviteLinkBytes() { - return instance.getInviteLinkBytes(); + java.lang.Object ref = inviteLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @param value The inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLink( java.lang.String value) { - copyOnWrite(); - instance.setInviteLink(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteLink_ = value; + onChanged(); return this; } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return This builder for chaining. */ public Builder clearInviteLink() { - copyOnWrite(); - instance.clearInviteLink(); + + inviteLink_ = getDefaultInstance().getInviteLink(); + onChanged(); return this; } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @param value The bytes for inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteLink_ = value; + onChanged(); return this; } + private java.lang.Object inviteToken_ = ""; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ public java.lang.String getInviteToken() { - return instance.getInviteToken(); + java.lang.Object ref = inviteToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ public com.google.protobuf.ByteString getInviteTokenBytes() { - return instance.getInviteTokenBytes(); + java.lang.Object ref = inviteToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteToken( java.lang.String value) { - copyOnWrite(); - instance.setInviteToken(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteToken_ = value; + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return This builder for chaining. */ public Builder clearInviteToken() { - copyOnWrite(); - instance.clearInviteToken(); + + inviteToken_ = getDefaultInstance().getInviteToken(); + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The bytes for inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRoom.PrivateExtra) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra other = (net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra) arg1; - inviteLink_ = visitor.visitString(!inviteLink_.isEmpty(), inviteLink_, - !other.inviteLink_.isEmpty(), other.inviteLink_); - inviteToken_ = visitor.visitString(!inviteToken_.isEmpty(), inviteToken_, - !other.inviteToken_.isEmpty(), other.inviteToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - inviteLink_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - inviteToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.GroupRoom.PrivateExtra) } - // @@protoc_insertion_point(class_scope:proto.GroupRoom.PrivateExtra) private static final net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PrivateExtra(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra(); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateExtra parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateExtra(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface PublicExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRoom.PublicExtra) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string username = 1; + * string username = 1; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 1; + * string username = 1; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -25466,817 +37824,867 @@ public interface PublicExtraOrBuilder extends /** * Protobuf type {@code proto.GroupRoom.PublicExtra} */ - public static final class PublicExtra extends - com.google.protobuf.GeneratedMessageLite< - PublicExtra, PublicExtra.Builder> implements + public static final class PublicExtra extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRoom.PublicExtra) PublicExtraOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicExtra.newBuilder() to construct. + private PublicExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PublicExtra() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PublicExtra(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublicExtra( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PublicExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PublicExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.class, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder.class); + } + public static final int USERNAME_FIELD_NUMBER = 1; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 1; + * string username = 1; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 1; + * string username = 1; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 1; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 1; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 1; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!username_.isEmpty()) { - output.writeString(1, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra other = (net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra) obj; + + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRoom.PublicExtra} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRoom.PublicExtra) net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PublicExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PublicExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.class, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_PublicExtra_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra build() { + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra buildPartial() { + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra result = new net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra(this); + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra) { + return mergeFrom((net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra other) { + if (other == net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object username_ = ""; /** - * optional string username = 1; + * string username = 1; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 1; + * string username = 1; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 1; + * string username = 1; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 1; + * string username = 1; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 1; + * string username = 1; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRoom.PublicExtra) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra other = (net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra) arg1; - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupRoom.PublicExtra) + } + // @@protoc_insertion_point(class_scope:proto.GroupRoom.PublicExtra) private static final net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PublicExtra(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra(); } public static net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicExtra parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicExtra(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.GroupRoom.Type getType() { - net.iGap.proto.ProtoGlobal.GroupRoom.Type result = net.iGap.proto.ProtoGlobal.GroupRoom.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Type result = net.iGap.proto.ProtoGlobal.GroupRoom.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Type.UNRECOGNIZED : result; } - /** - * optional .proto.GroupRoom.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.GroupRoom.Type type = 1; - */ - private void setType(net.iGap.proto.ProtoGlobal.GroupRoom.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.GroupRoom.Type type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int ROLE_FIELD_NUMBER = 2; private int role_; /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The role. */ - public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } - /** - * optional .proto.GroupRoom.Role role = 2; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.GroupRoom.Role role = 2; - */ - private void setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.GroupRoom.Role role = 2; - */ - private void clearRole() { - - role_ = 0; - } public static final int PARTICIPANTS_COUNT_FIELD_NUMBER = 3; private int participantsCount_; /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return The participantsCount. */ + @java.lang.Override public int getParticipantsCount() { return participantsCount_; } - /** - * optional uint32 participants_count = 3; - */ - private void setParticipantsCount(int value) { - - participantsCount_ = value; - } - /** - * optional uint32 participants_count = 3; - */ - private void clearParticipantsCount() { - - participantsCount_ = 0; - } public static final int PARTICIPANTS_COUNT_LABEL_FIELD_NUMBER = 4; - private java.lang.String participantsCountLabel_; + private volatile java.lang.Object participantsCountLabel_; /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The participantsCountLabel. */ + @java.lang.Override public java.lang.String getParticipantsCountLabel() { - return participantsCountLabel_; + java.lang.Object ref = participantsCountLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantsCountLabel_ = s; + return s; + } } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The bytes for participantsCountLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getParticipantsCountLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(participantsCountLabel_); - } - /** - * optional string participants_count_label = 4; - */ - private void setParticipantsCountLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - participantsCountLabel_ = value; - } - /** - * optional string participants_count_label = 4; - */ - private void clearParticipantsCountLabel() { - - participantsCountLabel_ = getDefaultInstance().getParticipantsCountLabel(); - } - /** - * optional string participants_count_label = 4; - */ - private void setParticipantsCountLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - participantsCountLabel_ = value.toStringUtf8(); + java.lang.Object ref = participantsCountLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantsCountLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PARTICIPANTS_COUNT_LIMIT_FIELD_NUMBER = 5; private int participantsCountLimit_; /** - * optional uint32 participants_count_limit = 5; + * uint32 participants_count_limit = 5; + * @return The participantsCountLimit. */ + @java.lang.Override public int getParticipantsCountLimit() { return participantsCountLimit_; } - /** - * optional uint32 participants_count_limit = 5; - */ - private void setParticipantsCountLimit(int value) { - - participantsCountLimit_ = value; - } - /** - * optional uint32 participants_count_limit = 5; - */ - private void clearParticipantsCountLimit() { - - participantsCountLimit_ = 0; - } public static final int PARTICIPANTS_COUNT_LIMIT_LABEL_FIELD_NUMBER = 6; - private java.lang.String participantsCountLimitLabel_; + private volatile java.lang.Object participantsCountLimitLabel_; /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @return The participantsCountLimitLabel. */ + @java.lang.Override public java.lang.String getParticipantsCountLimitLabel() { - return participantsCountLimitLabel_; + java.lang.Object ref = participantsCountLimitLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantsCountLimitLabel_ = s; + return s; + } } /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @return The bytes for participantsCountLimitLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getParticipantsCountLimitLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(participantsCountLimitLabel_); - } - /** - * optional string participants_count_limit_label = 6; - */ - private void setParticipantsCountLimitLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - participantsCountLimitLabel_ = value; - } - /** - * optional string participants_count_limit_label = 6; - */ - private void clearParticipantsCountLimitLabel() { - - participantsCountLimitLabel_ = getDefaultInstance().getParticipantsCountLimitLabel(); - } - /** - * optional string participants_count_limit_label = 6; - */ - private void setParticipantsCountLimitLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - participantsCountLimitLabel_ = value.toStringUtf8(); + java.lang.Object ref = participantsCountLimitLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantsCountLimitLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 7; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 7; + * string description = 7; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 7; + * string description = 7; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 7; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 7; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); - } - /** - * optional string description = 7; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int AVATAR_COUNT_FIELD_NUMBER = 8; private int avatarCount_; /** - * optional uint32 avatar_count = 8; + * uint32 avatar_count = 8; + * @return The avatarCount. */ + @java.lang.Override public int getAvatarCount() { return avatarCount_; } - /** - * optional uint32 avatar_count = 8; - */ - private void setAvatarCount(int value) { - - avatarCount_ = value; - } - /** - * optional uint32 avatar_count = 8; - */ - private void clearAvatarCount() { - - avatarCount_ = 0; - } public static final int AVATAR_FIELD_NUMBER = 9; private net.iGap.proto.ProtoGlobal.Avatar avatar_; /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; + * @return Whether the avatar field is set. */ + @java.lang.Override public boolean hasAvatar() { return avatar_ != null; } /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; + * @return The avatar. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; } /** - * optional .proto.Avatar avatar = 9; - */ - private void setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - - } - /** - * optional .proto.Avatar avatar = 9; - */ - private void setAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - avatar_ = builderForValue.build(); - - } - /** - * optional .proto.Avatar avatar = 9; - */ - private void mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (avatar_ != null && - avatar_ != net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()) { - avatar_ = - net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - - } - /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; */ - private void clearAvatar() { avatar_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + return getAvatar(); } public static final int PRIVATE_EXTRA_FIELD_NUMBER = 10; private net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra privateExtra_; /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; + * @return Whether the privateExtra field is set. */ + @java.lang.Override public boolean hasPrivateExtra() { return privateExtra_ != null; } /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; + * @return The privateExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra getPrivateExtra() { return privateExtra_ == null ? net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.getDefaultInstance() : privateExtra_; } /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; - */ - private void setPrivateExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra value) { - if (value == null) { - throw new NullPointerException(); - } - privateExtra_ = value; - - } - /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; - */ - private void setPrivateExtra( - net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder builderForValue) { - privateExtra_ = builderForValue.build(); - - } - /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; */ - private void mergePrivateExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra value) { - if (privateExtra_ != null && - privateExtra_ != net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.getDefaultInstance()) { - privateExtra_ = - net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.newBuilder(privateExtra_).mergeFrom(value).buildPartial(); - } else { - privateExtra_ = value; - } - - } - /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; - */ - private void clearPrivateExtra() { privateExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtraOrBuilder getPrivateExtraOrBuilder() { + return getPrivateExtra(); } public static final int PUBLIC_EXTRA_FIELD_NUMBER = 11; private net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra publicExtra_; /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; + * @return Whether the publicExtra field is set. */ + @java.lang.Override public boolean hasPublicExtra() { return publicExtra_ != null; } /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; + * @return The publicExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra getPublicExtra() { return publicExtra_ == null ? net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.getDefaultInstance() : publicExtra_; } /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; - */ - private void setPublicExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra value) { - if (value == null) { - throw new NullPointerException(); - } - publicExtra_ = value; - - } - /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; - */ - private void setPublicExtra( - net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder builderForValue) { - publicExtra_ = builderForValue.build(); - - } - /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; - */ - private void mergePublicExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra value) { - if (publicExtra_ != null && - publicExtra_ != net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.getDefaultInstance()) { - publicExtra_ = - net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.newBuilder(publicExtra_).mergeFrom(value).buildPartial(); - } else { - publicExtra_ = value; - } - - } - /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; */ - private void clearPublicExtra() { publicExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtraOrBuilder getPublicExtraOrBuilder() { + return getPublicExtra(); } public static final int ROOM_RIGHTS_FIELD_NUMBER = 12; private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights roomRights_; /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * @return Whether the roomRights field is set. */ + @java.lang.Override public boolean hasRoomRights() { return roomRights_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * @return The roomRights. */ + @java.lang.Override public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getRoomRights() { return roomRights_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : roomRights_; } /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; - */ - private void setRoomRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (value == null) { - throw new NullPointerException(); - } - roomRights_ = value; - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; - */ - private void setRoomRights( - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - roomRights_ = builderForValue.build(); - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; */ - private void mergeRoomRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (roomRights_ != null && - roomRights_ != net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance()) { - roomRights_ = - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(roomRights_).mergeFrom(value).buildPartial(); - } else { - roomRights_ = value; - } - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; - */ - private void clearRoomRights() { roomRights_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getRoomRightsOrBuilder() { + return getRoomRights(); } public static final int IS_MENTION_FIELD_NUMBER = 13; private boolean isMention_; /** - * optional bool is_mention = 13; + * bool is_mention = 13; + * @return The isMention. */ + @java.lang.Override public boolean getIsMention() { return isMention_; } - /** - * optional bool is_mention = 13; - */ - private void setIsMention(boolean value) { - - isMention_ = value; - } - /** - * optional bool is_mention = 13; - */ - private void clearIsMention() { - - isMention_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoGlobal.GroupRoom.Type.PRIVATE_ROOM.getNumber()) { @@ -26288,17 +38696,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (participantsCount_ != 0) { output.writeUInt32(3, participantsCount_); } - if (!participantsCountLabel_.isEmpty()) { - output.writeString(4, getParticipantsCountLabel()); + if (!getParticipantsCountLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, participantsCountLabel_); } if (participantsCountLimit_ != 0) { output.writeUInt32(5, participantsCountLimit_); } - if (!participantsCountLimitLabel_.isEmpty()) { - output.writeString(6, getParticipantsCountLimitLabel()); + if (!getParticipantsCountLimitLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, participantsCountLimitLabel_); } - if (!description_.isEmpty()) { - output.writeString(7, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); } if (avatarCount_ != 0) { output.writeUInt32(8, avatarCount_); @@ -26318,10 +38726,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (isMention_ != false) { output.writeBool(13, isMention_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -26337,21 +38747,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, participantsCount_); } - if (!participantsCountLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getParticipantsCountLabel()); + if (!getParticipantsCountLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, participantsCountLabel_); } if (participantsCountLimit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, participantsCountLimit_); } - if (!participantsCountLimitLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getParticipantsCountLimitLabel()); + if (!getParticipantsCountLimitLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, participantsCountLimitLabel_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } if (avatarCount_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -26377,887 +38784,1750 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, isMention_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.GroupRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.GroupRoom other = (net.iGap.proto.ProtoGlobal.GroupRoom) obj; + + if (type_ != other.type_) return false; + if (role_ != other.role_) return false; + if (getParticipantsCount() + != other.getParticipantsCount()) return false; + if (!getParticipantsCountLabel() + .equals(other.getParticipantsCountLabel())) return false; + if (getParticipantsCountLimit() + != other.getParticipantsCountLimit()) return false; + if (!getParticipantsCountLimitLabel() + .equals(other.getParticipantsCountLimitLabel())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getAvatarCount() + != other.getAvatarCount()) return false; + if (hasAvatar() != other.hasAvatar()) return false; + if (hasAvatar()) { + if (!getAvatar() + .equals(other.getAvatar())) return false; + } + if (hasPrivateExtra() != other.hasPrivateExtra()) return false; + if (hasPrivateExtra()) { + if (!getPrivateExtra() + .equals(other.getPrivateExtra())) return false; + } + if (hasPublicExtra() != other.hasPublicExtra()) return false; + if (hasPublicExtra()) { + if (!getPublicExtra() + .equals(other.getPublicExtra())) return false; + } + if (hasRoomRights() != other.hasRoomRights()) return false; + if (hasRoomRights()) { + if (!getRoomRights() + .equals(other.getRoomRights())) return false; + } + if (getIsMention() + != other.getIsMention()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (37 * hash) + PARTICIPANTS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsCount(); + hash = (37 * hash) + PARTICIPANTS_COUNT_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsCountLabel().hashCode(); + hash = (37 * hash) + PARTICIPANTS_COUNT_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsCountLimit(); + hash = (37 * hash) + PARTICIPANTS_COUNT_LIMIT_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsCountLimitLabel().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + AVATAR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAvatarCount(); + if (hasAvatar()) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + } + if (hasPrivateExtra()) { + hash = (37 * hash) + PRIVATE_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateExtra().hashCode(); + } + if (hasPublicExtra()) { + hash = (37 * hash) + PUBLIC_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getPublicExtra().hashCode(); + } + if (hasRoomRights()) { + hash = (37 * hash) + ROOM_RIGHTS_FIELD_NUMBER; + hash = (53 * hash) + getRoomRights().hashCode(); + } + hash = (37 * hash) + IS_MENTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMention()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.GroupRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.GroupRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.GroupRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRoom) net.iGap.proto.ProtoGlobal.GroupRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.GroupRoom.class, net.iGap.proto.ProtoGlobal.GroupRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.GroupRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + role_ = 0; + + participantsCount_ = 0; + + participantsCountLabel_ = ""; + + participantsCountLimit_ = 0; + + participantsCountLimitLabel_ = ""; + + description_ = ""; + + avatarCount_ = 0; + + if (avatarBuilder_ == null) { + avatar_ = null; + } else { + avatar_ = null; + avatarBuilder_ = null; + } + if (privateExtraBuilder_ == null) { + privateExtra_ = null; + } else { + privateExtra_ = null; + privateExtraBuilder_ = null; + } + if (publicExtraBuilder_ == null) { + publicExtra_ = null; + } else { + publicExtra_ = null; + publicExtraBuilder_ = null; + } + if (roomRightsBuilder_ == null) { + roomRights_ = null; + } else { + roomRights_ = null; + roomRightsBuilder_ = null; + } + isMention_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_GroupRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.GroupRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom build() { + net.iGap.proto.ProtoGlobal.GroupRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom buildPartial() { + net.iGap.proto.ProtoGlobal.GroupRoom result = new net.iGap.proto.ProtoGlobal.GroupRoom(this); + result.type_ = type_; + result.role_ = role_; + result.participantsCount_ = participantsCount_; + result.participantsCountLabel_ = participantsCountLabel_; + result.participantsCountLimit_ = participantsCountLimit_; + result.participantsCountLimitLabel_ = participantsCountLimitLabel_; + result.description_ = description_; + result.avatarCount_ = avatarCount_; + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + if (privateExtraBuilder_ == null) { + result.privateExtra_ = privateExtra_; + } else { + result.privateExtra_ = privateExtraBuilder_.build(); + } + if (publicExtraBuilder_ == null) { + result.publicExtra_ = publicExtra_; + } else { + result.publicExtra_ = publicExtraBuilder_.build(); + } + if (roomRightsBuilder_ == null) { + result.roomRights_ = roomRights_; + } else { + result.roomRights_ = roomRightsBuilder_.build(); + } + result.isMention_ = isMention_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.GroupRoom) { + return mergeFrom((net.iGap.proto.ProtoGlobal.GroupRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.GroupRoom other) { + if (other == net.iGap.proto.ProtoGlobal.GroupRoom.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (other.getParticipantsCount() != 0) { + setParticipantsCount(other.getParticipantsCount()); + } + if (!other.getParticipantsCountLabel().isEmpty()) { + participantsCountLabel_ = other.participantsCountLabel_; + onChanged(); + } + if (other.getParticipantsCountLimit() != 0) { + setParticipantsCountLimit(other.getParticipantsCountLimit()); + } + if (!other.getParticipantsCountLimitLabel().isEmpty()) { + participantsCountLimitLabel_ = other.participantsCountLimitLabel_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getAvatarCount() != 0) { + setAvatarCount(other.getAvatarCount()); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.hasPrivateExtra()) { + mergePrivateExtra(other.getPrivateExtra()); + } + if (other.hasPublicExtra()) { + mergePublicExtra(other.getPublicExtra()); + } + if (other.hasRoomRights()) { + mergeRoomRights(other.getRoomRights()); + } + if (other.getIsMention() != false) { + setIsMention(other.getIsMention()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.GroupRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.GroupRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int type_ = 0; /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Type result = net.iGap.proto.ProtoGlobal.GroupRoom.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Type.UNRECOGNIZED : result; } /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.GroupRoom.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupRoom.Type type = 1; + * .proto.GroupRoom.Type type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + private int participantsCount_ ; /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return The participantsCount. */ + @java.lang.Override public int getParticipantsCount() { - return instance.getParticipantsCount(); + return participantsCount_; } /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @param value The participantsCount to set. + * @return This builder for chaining. */ public Builder setParticipantsCount(int value) { - copyOnWrite(); - instance.setParticipantsCount(value); + + participantsCount_ = value; + onChanged(); return this; } /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return This builder for chaining. */ public Builder clearParticipantsCount() { - copyOnWrite(); - instance.clearParticipantsCount(); + + participantsCount_ = 0; + onChanged(); return this; } + private java.lang.Object participantsCountLabel_ = ""; /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The participantsCountLabel. */ public java.lang.String getParticipantsCountLabel() { - return instance.getParticipantsCountLabel(); + java.lang.Object ref = participantsCountLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantsCountLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The bytes for participantsCountLabel. */ public com.google.protobuf.ByteString getParticipantsCountLabelBytes() { - return instance.getParticipantsCountLabelBytes(); + java.lang.Object ref = participantsCountLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantsCountLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @param value The participantsCountLabel to set. + * @return This builder for chaining. */ public Builder setParticipantsCountLabel( java.lang.String value) { - copyOnWrite(); - instance.setParticipantsCountLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + participantsCountLabel_ = value; + onChanged(); return this; } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return This builder for chaining. */ public Builder clearParticipantsCountLabel() { - copyOnWrite(); - instance.clearParticipantsCountLabel(); + + participantsCountLabel_ = getDefaultInstance().getParticipantsCountLabel(); + onChanged(); return this; } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @param value The bytes for participantsCountLabel to set. + * @return This builder for chaining. */ public Builder setParticipantsCountLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setParticipantsCountLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + participantsCountLabel_ = value; + onChanged(); return this; } + private int participantsCountLimit_ ; /** - * optional uint32 participants_count_limit = 5; + * uint32 participants_count_limit = 5; + * @return The participantsCountLimit. */ + @java.lang.Override public int getParticipantsCountLimit() { - return instance.getParticipantsCountLimit(); + return participantsCountLimit_; } /** - * optional uint32 participants_count_limit = 5; + * uint32 participants_count_limit = 5; + * @param value The participantsCountLimit to set. + * @return This builder for chaining. */ public Builder setParticipantsCountLimit(int value) { - copyOnWrite(); - instance.setParticipantsCountLimit(value); + + participantsCountLimit_ = value; + onChanged(); return this; } /** - * optional uint32 participants_count_limit = 5; + * uint32 participants_count_limit = 5; + * @return This builder for chaining. */ public Builder clearParticipantsCountLimit() { - copyOnWrite(); - instance.clearParticipantsCountLimit(); + + participantsCountLimit_ = 0; + onChanged(); return this; } + private java.lang.Object participantsCountLimitLabel_ = ""; /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @return The participantsCountLimitLabel. */ public java.lang.String getParticipantsCountLimitLabel() { - return instance.getParticipantsCountLimitLabel(); + java.lang.Object ref = participantsCountLimitLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantsCountLimitLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @return The bytes for participantsCountLimitLabel. */ public com.google.protobuf.ByteString getParticipantsCountLimitLabelBytes() { - return instance.getParticipantsCountLimitLabelBytes(); + java.lang.Object ref = participantsCountLimitLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantsCountLimitLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @param value The participantsCountLimitLabel to set. + * @return This builder for chaining. */ public Builder setParticipantsCountLimitLabel( java.lang.String value) { - copyOnWrite(); - instance.setParticipantsCountLimitLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + participantsCountLimitLabel_ = value; + onChanged(); return this; } /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @return This builder for chaining. */ public Builder clearParticipantsCountLimitLabel() { - copyOnWrite(); - instance.clearParticipantsCountLimitLabel(); + + participantsCountLimitLabel_ = getDefaultInstance().getParticipantsCountLimitLabel(); + onChanged(); return this; } /** - * optional string participants_count_limit_label = 6; + * string participants_count_limit_label = 6; + * @param value The bytes for participantsCountLimitLabel to set. + * @return This builder for chaining. */ public Builder setParticipantsCountLimitLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setParticipantsCountLimitLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + participantsCountLimitLabel_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 7; + * string description = 7; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 7; + * string description = 7; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 7; + * string description = 7; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 7; + * string description = 7; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 7; + * string description = 7; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + private int avatarCount_ ; /** - * optional uint32 avatar_count = 8; + * uint32 avatar_count = 8; + * @return The avatarCount. */ + @java.lang.Override public int getAvatarCount() { - return instance.getAvatarCount(); + return avatarCount_; } /** - * optional uint32 avatar_count = 8; + * uint32 avatar_count = 8; + * @param value The avatarCount to set. + * @return This builder for chaining. */ public Builder setAvatarCount(int value) { - copyOnWrite(); - instance.setAvatarCount(value); + + avatarCount_ = value; + onChanged(); return this; } /** - * optional uint32 avatar_count = 8; + * uint32 avatar_count = 8; + * @return This builder for chaining. */ public Builder clearAvatarCount() { - copyOnWrite(); - instance.clearAvatarCount(); + + avatarCount_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Avatar avatar_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; + * @return Whether the avatar field is set. */ public boolean hasAvatar() { - return instance.hasAvatar(); + return avatarBuilder_ != null || avatar_ != null; } /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; + * @return The avatar. */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { - return instance.getAvatar(); + if (avatarBuilder_ == null) { + return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } else { + return avatarBuilder_.getMessage(); + } } /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; */ public Builder setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(value); - return this; + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; */ public Builder setAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(builderForValue); + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; */ public Builder mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.mergeAvatar(value); + if (avatarBuilder_ == null) { + if (avatar_ != null) { + avatar_ = + net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Avatar avatar = 9; + * .proto.Avatar avatar = 9; */ - public Builder clearAvatar() { copyOnWrite(); - instance.clearAvatar(); + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + return this; } + /** + * .proto.Avatar avatar = 9; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .proto.Avatar avatar = 9; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_ == null ? + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } + } + /** + * .proto.Avatar avatar = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + getAvatar(), + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + private net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra privateExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtraOrBuilder> privateExtraBuilder_; /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; + * @return Whether the privateExtra field is set. */ public boolean hasPrivateExtra() { - return instance.hasPrivateExtra(); + return privateExtraBuilder_ != null || privateExtra_ != null; } /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; + * @return The privateExtra. */ public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra getPrivateExtra() { - return instance.getPrivateExtra(); + if (privateExtraBuilder_ == null) { + return privateExtra_ == null ? net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.getDefaultInstance() : privateExtra_; + } else { + return privateExtraBuilder_.getMessage(); + } } /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; */ public Builder setPrivateExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra value) { - copyOnWrite(); - instance.setPrivateExtra(value); - return this; + if (privateExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateExtra_ = value; + onChanged(); + } else { + privateExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; */ public Builder setPrivateExtra( net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder builderForValue) { - copyOnWrite(); - instance.setPrivateExtra(builderForValue); + if (privateExtraBuilder_ == null) { + privateExtra_ = builderForValue.build(); + onChanged(); + } else { + privateExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; */ public Builder mergePrivateExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra value) { - copyOnWrite(); - instance.mergePrivateExtra(value); + if (privateExtraBuilder_ == null) { + if (privateExtra_ != null) { + privateExtra_ = + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.newBuilder(privateExtra_).mergeFrom(value).buildPartial(); + } else { + privateExtra_ = value; + } + onChanged(); + } else { + privateExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupRoom.PrivateExtra private_extra = 10; + * .proto.GroupRoom.PrivateExtra private_extra = 10; */ - public Builder clearPrivateExtra() { copyOnWrite(); - instance.clearPrivateExtra(); + public Builder clearPrivateExtra() { + if (privateExtraBuilder_ == null) { + privateExtra_ = null; + onChanged(); + } else { + privateExtra_ = null; + privateExtraBuilder_ = null; + } + return this; } + /** + * .proto.GroupRoom.PrivateExtra private_extra = 10; + */ + public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder getPrivateExtraBuilder() { + + onChanged(); + return getPrivateExtraFieldBuilder().getBuilder(); + } + /** + * .proto.GroupRoom.PrivateExtra private_extra = 10; + */ + public net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtraOrBuilder getPrivateExtraOrBuilder() { + if (privateExtraBuilder_ != null) { + return privateExtraBuilder_.getMessageOrBuilder(); + } else { + return privateExtra_ == null ? + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.getDefaultInstance() : privateExtra_; + } + } + /** + * .proto.GroupRoom.PrivateExtra private_extra = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtraOrBuilder> + getPrivateExtraFieldBuilder() { + if (privateExtraBuilder_ == null) { + privateExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder, net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtraOrBuilder>( + getPrivateExtra(), + getParentForChildren(), + isClean()); + privateExtra_ = null; + } + return privateExtraBuilder_; + } + private net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra publicExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtraOrBuilder> publicExtraBuilder_; /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; + * @return Whether the publicExtra field is set. */ public boolean hasPublicExtra() { - return instance.hasPublicExtra(); + return publicExtraBuilder_ != null || publicExtra_ != null; } /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; + * @return The publicExtra. */ public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra getPublicExtra() { - return instance.getPublicExtra(); + if (publicExtraBuilder_ == null) { + return publicExtra_ == null ? net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.getDefaultInstance() : publicExtra_; + } else { + return publicExtraBuilder_.getMessage(); + } } /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; */ public Builder setPublicExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra value) { - copyOnWrite(); - instance.setPublicExtra(value); - return this; + if (publicExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publicExtra_ = value; + onChanged(); + } else { + publicExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; */ public Builder setPublicExtra( net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder builderForValue) { - copyOnWrite(); - instance.setPublicExtra(builderForValue); + if (publicExtraBuilder_ == null) { + publicExtra_ = builderForValue.build(); + onChanged(); + } else { + publicExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; */ public Builder mergePublicExtra(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra value) { - copyOnWrite(); - instance.mergePublicExtra(value); + if (publicExtraBuilder_ == null) { + if (publicExtra_ != null) { + publicExtra_ = + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.newBuilder(publicExtra_).mergeFrom(value).buildPartial(); + } else { + publicExtra_ = value; + } + onChanged(); + } else { + publicExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupRoom.PublicExtra public_extra = 11; + * .proto.GroupRoom.PublicExtra public_extra = 11; */ - public Builder clearPublicExtra() { copyOnWrite(); - instance.clearPublicExtra(); + public Builder clearPublicExtra() { + if (publicExtraBuilder_ == null) { + publicExtra_ = null; + onChanged(); + } else { + publicExtra_ = null; + publicExtraBuilder_ = null; + } + return this; } + /** + * .proto.GroupRoom.PublicExtra public_extra = 11; + */ + public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder getPublicExtraBuilder() { + + onChanged(); + return getPublicExtraFieldBuilder().getBuilder(); + } + /** + * .proto.GroupRoom.PublicExtra public_extra = 11; + */ + public net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtraOrBuilder getPublicExtraOrBuilder() { + if (publicExtraBuilder_ != null) { + return publicExtraBuilder_.getMessageOrBuilder(); + } else { + return publicExtra_ == null ? + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.getDefaultInstance() : publicExtra_; + } + } + /** + * .proto.GroupRoom.PublicExtra public_extra = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtraOrBuilder> + getPublicExtraFieldBuilder() { + if (publicExtraBuilder_ == null) { + publicExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder, net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtraOrBuilder>( + getPublicExtra(), + getParentForChildren(), + isClean()); + publicExtra_ = null; + } + return publicExtraBuilder_; + } + private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights roomRights_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> roomRightsBuilder_; /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * @return Whether the roomRights field is set. */ public boolean hasRoomRights() { - return instance.hasRoomRights(); + return roomRightsBuilder_ != null || roomRights_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * @return The roomRights. */ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getRoomRights() { - return instance.getRoomRights(); + if (roomRightsBuilder_ == null) { + return roomRights_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : roomRights_; + } else { + return roomRightsBuilder_.getMessage(); + } } /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; */ public Builder setRoomRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.setRoomRights(value); - return this; + if (roomRightsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + roomRights_ = value; + onChanged(); + } else { + roomRightsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; */ public Builder setRoomRights( net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - copyOnWrite(); - instance.setRoomRights(builderForValue); + if (roomRightsBuilder_ == null) { + roomRights_ = builderForValue.build(); + onChanged(); + } else { + roomRightsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; */ public Builder mergeRoomRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.mergeRoomRights(value); + if (roomRightsBuilder_ == null) { + if (roomRights_ != null) { + roomRights_ = + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(roomRights_).mergeFrom(value).buildPartial(); + } else { + roomRights_ = value; + } + onChanged(); + } else { + roomRightsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; */ - public Builder clearRoomRights() { copyOnWrite(); - instance.clearRoomRights(); + public Builder clearRoomRights() { + if (roomRightsBuilder_ == null) { + roomRights_ = null; + onChanged(); + } else { + roomRights_ = null; + roomRightsBuilder_ = null; + } + return this; } + /** + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder getRoomRightsBuilder() { + + onChanged(); + return getRoomRightsFieldBuilder().getBuilder(); + } + /** + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getRoomRightsOrBuilder() { + if (roomRightsBuilder_ != null) { + return roomRightsBuilder_.getMessageOrBuilder(); + } else { + return roomRights_ == null ? + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : roomRights_; + } + } + /** + * .proto.GroupChangeMemberRights.MemberRights room_rights = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> + getRoomRightsFieldBuilder() { + if (roomRightsBuilder_ == null) { + roomRightsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder>( + getRoomRights(), + getParentForChildren(), + isClean()); + roomRights_ = null; + } + return roomRightsBuilder_; + } + private boolean isMention_ ; /** - * optional bool is_mention = 13; + * bool is_mention = 13; + * @return The isMention. */ + @java.lang.Override public boolean getIsMention() { - return instance.getIsMention(); + return isMention_; } /** - * optional bool is_mention = 13; + * bool is_mention = 13; + * @param value The isMention to set. + * @return This builder for chaining. */ public Builder setIsMention(boolean value) { - copyOnWrite(); - instance.setIsMention(value); + + isMention_ = value; + onChanged(); return this; } /** - * optional bool is_mention = 13; + * bool is_mention = 13; + * @return This builder for chaining. */ public Builder clearIsMention() { - copyOnWrite(); - instance.clearIsMention(); + + isMention_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.GroupRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.GroupRoom other = (net.iGap.proto.ProtoGlobal.GroupRoom) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - participantsCount_ = visitor.visitInt(participantsCount_ != 0, participantsCount_, - other.participantsCount_ != 0, other.participantsCount_); - participantsCountLabel_ = visitor.visitString(!participantsCountLabel_.isEmpty(), participantsCountLabel_, - !other.participantsCountLabel_.isEmpty(), other.participantsCountLabel_); - participantsCountLimit_ = visitor.visitInt(participantsCountLimit_ != 0, participantsCountLimit_, - other.participantsCountLimit_ != 0, other.participantsCountLimit_); - participantsCountLimitLabel_ = visitor.visitString(!participantsCountLimitLabel_.isEmpty(), participantsCountLimitLabel_, - !other.participantsCountLimitLabel_.isEmpty(), other.participantsCountLimitLabel_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - avatarCount_ = visitor.visitInt(avatarCount_ != 0, avatarCount_, - other.avatarCount_ != 0, other.avatarCount_); - avatar_ = visitor.visitMessage(avatar_, other.avatar_); - privateExtra_ = visitor.visitMessage(privateExtra_, other.privateExtra_); - publicExtra_ = visitor.visitMessage(publicExtra_, other.publicExtra_); - roomRights_ = visitor.visitMessage(roomRights_, other.roomRights_); - isMention_ = visitor.visitBoolean(isMention_ != false, isMention_, - other.isMention_ != false, other.isMention_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - role_ = rawValue; - break; - } - case 24: { - - participantsCount_ = input.readUInt32(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - participantsCountLabel_ = s; - break; - } - case 40: { - - participantsCountLimit_ = input.readUInt32(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - participantsCountLimitLabel_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 64: { - - avatarCount_ = input.readUInt32(); - break; - } - case 74: { - net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.Builder subBuilder = null; - if (privateExtra_ != null) { - subBuilder = privateExtra_.toBuilder(); - } - privateExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.GroupRoom.PrivateExtra.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(privateExtra_); - privateExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.Builder subBuilder = null; - if (publicExtra_ != null) { - subBuilder = publicExtra_.toBuilder(); - } - publicExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.GroupRoom.PublicExtra.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(publicExtra_); - publicExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; - if (roomRights_ != null) { - subBuilder = roomRights_.toBuilder(); - } - roomRights_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roomRights_); - roomRights_ = subBuilder.buildPartial(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - break; - } - case 104: { - isMention_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.GroupRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.GroupRoom) } - // @@protoc_insertion_point(class_scope:proto.GroupRoom) private static final net.iGap.proto.ProtoGlobal.GroupRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.GroupRoom(); } public static net.iGap.proto.ProtoGlobal.GroupRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.GroupRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ChannelRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @return The type. */ net.iGap.proto.ProtoGlobal.ChannelRoom.Type getType(); /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The role. */ net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole(); /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return The participantsCount. */ int getParticipantsCount(); /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The participantsCountLabel. */ java.lang.String getParticipantsCountLabel(); /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The bytes for participantsCountLabel. */ com.google.protobuf.ByteString getParticipantsCountLabelBytes(); /** - * optional string description = 5; + * string description = 5; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 5; + * string description = 5; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * optional uint32 avatar_count = 6; + * uint32 avatar_count = 6; + * @return The avatarCount. */ int getAvatarCount(); /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; + * @return Whether the avatar field is set. */ boolean hasAvatar(); /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; + * @return The avatar. */ net.iGap.proto.ProtoGlobal.Avatar getAvatar(); + /** + * .proto.Avatar avatar = 7; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder(); /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + * @return Whether the privateExtra field is set. */ boolean hasPrivateExtra(); /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + * @return The privateExtra. */ net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra getPrivateExtra(); + /** + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + */ + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtraOrBuilder getPrivateExtraOrBuilder(); /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; + * @return Whether the publicExtra field is set. */ boolean hasPublicExtra(); /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; + * @return The publicExtra. */ net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra getPublicExtra(); + /** + * .proto.ChannelRoom.PublicExtra public_extra = 9; + */ + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtraOrBuilder getPublicExtraOrBuilder(); /** - * optional bool signature = 10; + * bool signature = 10; + * @return The signature. */ boolean getSignature(); /** - * optional uint64 seen_id = 11 [jstype = JS_STRING]; + * uint64 seen_id = 11 [jstype = JS_STRING]; + * @return The seenId. */ long getSeenId(); /** - * optional bool verified = 12; + * bool verified = 12; + * @return The verified. */ boolean getVerified(); /** - * optional bool reaction_status = 13; + * bool reaction_status = 13; + * @return The reactionStatus. */ boolean getReactionStatus(); } /** * Protobuf type {@code proto.ChannelRoom} */ - public static final class ChannelRoom extends - com.google.protobuf.GeneratedMessageLite< - ChannelRoom, ChannelRoom.Builder> implements + public static final class ChannelRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelRoom) ChannelRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelRoom.newBuilder() to construct. + private ChannelRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private ChannelRoom() { + type_ = 0; + role_ = 0; participantsCountLabel_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChannelRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChannelRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + case 24: { + + participantsCount_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + participantsCountLabel_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 48: { + + avatarCount_ = input.readUInt32(); + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; + if (avatar_ != null) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder subBuilder = null; + if (privateExtra_ != null) { + subBuilder = privateExtra_.toBuilder(); + } + privateExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateExtra_); + privateExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder subBuilder = null; + if (publicExtra_ != null) { + subBuilder = publicExtra_.toBuilder(); + } + publicExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publicExtra_); + publicExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 80: { + + signature_ = input.readBool(); + break; + } + case 88: { + + seenId_ = input.readUInt64(); + break; + } + case 96: { + + verified_ = input.readBool(); + break; + } + case 104: { + + reactionStatus_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChannelRoom.class, net.iGap.proto.ProtoGlobal.ChannelRoom.Builder.class); + } + /** * Protobuf enum {@code proto.ChannelRoom.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * PRIVATE_ROOM = 0; */ @@ -27280,10 +40550,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -27291,6 +40567,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return PRIVATE_ROOM; @@ -27311,6 +40591,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.ChannelRoom.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -27324,7 +40635,7 @@ private Type(int value) { * Protobuf enum {@code proto.ChannelRoom.Role} */ public enum Role - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MEMBER = 0; */ @@ -27363,10 +40674,16 @@ public enum Role public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -27374,6 +40691,10 @@ public static Role valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Role forNumber(int value) { switch (value) { case 0: return MEMBER; @@ -27396,6 +40717,37 @@ public Role findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.ChannelRoom.getDescriptor().getEnumTypes().get(1); + } + + private static final Role[] VALUES = values(); + + public static Role valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Role(int value) { @@ -27407,24 +40759,28 @@ private Role(int value) { public interface PrivateExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelRoom.PrivateExtra) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The inviteLink. */ java.lang.String getInviteLink(); /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The bytes for inviteLink. */ com.google.protobuf.ByteString getInviteLinkBytes(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ java.lang.String getInviteToken(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ com.google.protobuf.ByteString getInviteTokenBytes(); @@ -27432,413 +40788,705 @@ public interface PrivateExtraOrBuilder extends /** * Protobuf type {@code proto.ChannelRoom.PrivateExtra} */ - public static final class PrivateExtra extends - com.google.protobuf.GeneratedMessageLite< - PrivateExtra, PrivateExtra.Builder> implements + public static final class PrivateExtra extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelRoom.PrivateExtra) PrivateExtraOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateExtra.newBuilder() to construct. + private PrivateExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PrivateExtra() { inviteLink_ = ""; inviteToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrivateExtra(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrivateExtra( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteLink_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PrivateExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PrivateExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.class, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder.class); + } + public static final int INVITE_LINK_FIELD_NUMBER = 1; - private java.lang.String inviteLink_; + private volatile java.lang.Object inviteLink_; /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The inviteLink. */ + @java.lang.Override public java.lang.String getInviteLink() { - return inviteLink_; + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The bytes for inviteLink. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteLink_); - } - /** - * optional string invite_link = 1; - */ - private void setInviteLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteLink_ = value; - } - /** - * optional string invite_link = 1; - */ - private void clearInviteLink() { - - inviteLink_ = getDefaultInstance().getInviteLink(); - } - /** - * optional string invite_link = 1; - */ - private void setInviteLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteLink_ = value.toStringUtf8(); + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INVITE_TOKEN_FIELD_NUMBER = 2; - private java.lang.String inviteToken_; + private volatile java.lang.Object inviteToken_; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ + @java.lang.Override public java.lang.String getInviteToken() { - return inviteToken_; + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteToken_); - } - /** - * optional string invite_token = 2; - */ - private void setInviteToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteToken_ = value; - } - /** - * optional string invite_token = 2; - */ - private void clearInviteToken() { - - inviteToken_ = getDefaultInstance().getInviteToken(); + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_token = 2; - */ - private void setInviteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!inviteLink_.isEmpty()) { - output.writeString(1, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inviteLink_); } - if (!inviteToken_.isEmpty()) { - output.writeString(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inviteToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!inviteLink_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inviteLink_); } - if (!inviteToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inviteToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra other = (net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra) obj; + + if (!getInviteLink() + .equals(other.getInviteLink())) return false; + if (!getInviteToken() + .equals(other.getInviteToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INVITE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getInviteLink().hashCode(); + hash = (37 * hash) + INVITE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getInviteToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelRoom.PrivateExtra} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelRoom.PrivateExtra) net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PrivateExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PrivateExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.class, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inviteLink_ = ""; + + inviteToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PrivateExtra_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra build() { + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra buildPartial() { + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra result = new net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra(this); + result.inviteLink_ = inviteLink_; + result.inviteToken_ = inviteToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra) { + return mergeFrom((net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra other) { + if (other == net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.getDefaultInstance()) return this; + if (!other.getInviteLink().isEmpty()) { + inviteLink_ = other.inviteLink_; + onChanged(); + } + if (!other.getInviteToken().isEmpty()) { + inviteToken_ = other.inviteToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object inviteLink_ = ""; /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The inviteLink. */ public java.lang.String getInviteLink() { - return instance.getInviteLink(); + java.lang.Object ref = inviteLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return The bytes for inviteLink. */ public com.google.protobuf.ByteString getInviteLinkBytes() { - return instance.getInviteLinkBytes(); + java.lang.Object ref = inviteLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @param value The inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLink( java.lang.String value) { - copyOnWrite(); - instance.setInviteLink(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteLink_ = value; + onChanged(); return this; } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @return This builder for chaining. */ public Builder clearInviteLink() { - copyOnWrite(); - instance.clearInviteLink(); + + inviteLink_ = getDefaultInstance().getInviteLink(); + onChanged(); return this; } /** - * optional string invite_link = 1; + * string invite_link = 1; + * @param value The bytes for inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteLink_ = value; + onChanged(); return this; } + private java.lang.Object inviteToken_ = ""; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ public java.lang.String getInviteToken() { - return instance.getInviteToken(); + java.lang.Object ref = inviteToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ public com.google.protobuf.ByteString getInviteTokenBytes() { - return instance.getInviteTokenBytes(); + java.lang.Object ref = inviteToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteToken( java.lang.String value) { - copyOnWrite(); - instance.setInviteToken(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteToken_ = value; + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return This builder for chaining. */ public Builder clearInviteToken() { - copyOnWrite(); - instance.clearInviteToken(); + + inviteToken_ = getDefaultInstance().getInviteToken(); + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The bytes for inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelRoom.PrivateExtra) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra other = (net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra) arg1; - inviteLink_ = visitor.visitString(!inviteLink_.isEmpty(), inviteLink_, - !other.inviteLink_.isEmpty(), other.inviteLink_); - inviteToken_ = visitor.visitString(!inviteToken_.isEmpty(), inviteToken_, - !other.inviteToken_.isEmpty(), other.inviteToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - inviteLink_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - inviteToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.ChannelRoom.PrivateExtra) } - // @@protoc_insertion_point(class_scope:proto.ChannelRoom.PrivateExtra) private static final net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PrivateExtra(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra(); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateExtra parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateExtra(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface PublicExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ChannelRoom.PublicExtra) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string username = 1; + * string username = 1; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 1; + * string username = 1; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -27846,765 +41494,825 @@ public interface PublicExtraOrBuilder extends /** * Protobuf type {@code proto.ChannelRoom.PublicExtra} */ - public static final class PublicExtra extends - com.google.protobuf.GeneratedMessageLite< - PublicExtra, PublicExtra.Builder> implements + public static final class PublicExtra extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ChannelRoom.PublicExtra) PublicExtraOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicExtra.newBuilder() to construct. + private PublicExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PublicExtra() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PublicExtra(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublicExtra( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PublicExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PublicExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.class, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder.class); + } + public static final int USERNAME_FIELD_NUMBER = 1; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 1; + * string username = 1; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 1; + * string username = 1; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 1; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 1; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 1; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!username_.isEmpty()) { - output.writeString(1, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra other = (net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra) obj; + + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelRoom.PublicExtra} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelRoom.PublicExtra) net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PublicExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PublicExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.class, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_PublicExtra_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra build() { + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra buildPartial() { + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra result = new net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra(this); + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra) { + return mergeFrom((net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra other) { + if (other == net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object username_ = ""; /** - * optional string username = 1; + * string username = 1; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 1; + * string username = 1; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 1; + * string username = 1; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 1; + * string username = 1; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 1; + * string username = 1; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelRoom.PublicExtra) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra other = (net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra) arg1; - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.ChannelRoom.PublicExtra) + } + // @@protoc_insertion_point(class_scope:proto.ChannelRoom.PublicExtra) private static final net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PublicExtra(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra(); } public static net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicExtra parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicExtra(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.ChannelRoom.Type getType() { - net.iGap.proto.ProtoGlobal.ChannelRoom.Type result = net.iGap.proto.ProtoGlobal.ChannelRoom.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Type result = net.iGap.proto.ProtoGlobal.ChannelRoom.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Type.UNRECOGNIZED : result; } - /** - * optional .proto.ChannelRoom.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.ChannelRoom.Type type = 1; - */ - private void setType(net.iGap.proto.ProtoGlobal.ChannelRoom.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.ChannelRoom.Type type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int ROLE_FIELD_NUMBER = 2; private int role_; /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The role. */ - public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { - net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Role.UNRECOGNIZED : result; } - /** - * optional .proto.ChannelRoom.Role role = 2; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.ChannelRoom.Role role = 2; - */ - private void setRole(net.iGap.proto.ProtoGlobal.ChannelRoom.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.ChannelRoom.Role role = 2; - */ - private void clearRole() { - - role_ = 0; - } public static final int PARTICIPANTS_COUNT_FIELD_NUMBER = 3; private int participantsCount_; /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return The participantsCount. */ + @java.lang.Override public int getParticipantsCount() { return participantsCount_; } - /** - * optional uint32 participants_count = 3; - */ - private void setParticipantsCount(int value) { - - participantsCount_ = value; - } - /** - * optional uint32 participants_count = 3; - */ - private void clearParticipantsCount() { - - participantsCount_ = 0; - } public static final int PARTICIPANTS_COUNT_LABEL_FIELD_NUMBER = 4; - private java.lang.String participantsCountLabel_; + private volatile java.lang.Object participantsCountLabel_; /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The participantsCountLabel. */ + @java.lang.Override public java.lang.String getParticipantsCountLabel() { - return participantsCountLabel_; + java.lang.Object ref = participantsCountLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantsCountLabel_ = s; + return s; + } } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The bytes for participantsCountLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getParticipantsCountLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(participantsCountLabel_); - } - /** - * optional string participants_count_label = 4; - */ - private void setParticipantsCountLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - participantsCountLabel_ = value; - } - /** - * optional string participants_count_label = 4; - */ - private void clearParticipantsCountLabel() { - - participantsCountLabel_ = getDefaultInstance().getParticipantsCountLabel(); - } - /** - * optional string participants_count_label = 4; - */ - private void setParticipantsCountLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - participantsCountLabel_ = value.toStringUtf8(); + java.lang.Object ref = participantsCountLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantsCountLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 5; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 5; + * string description = 5; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 5; + * string description = 5; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 5; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 5; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); - } - /** - * optional string description = 5; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int AVATAR_COUNT_FIELD_NUMBER = 6; private int avatarCount_; /** - * optional uint32 avatar_count = 6; + * uint32 avatar_count = 6; + * @return The avatarCount. */ + @java.lang.Override public int getAvatarCount() { return avatarCount_; } - /** - * optional uint32 avatar_count = 6; - */ - private void setAvatarCount(int value) { - - avatarCount_ = value; - } - /** - * optional uint32 avatar_count = 6; - */ - private void clearAvatarCount() { - - avatarCount_ = 0; - } public static final int AVATAR_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.Avatar avatar_; /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; + * @return Whether the avatar field is set. */ + @java.lang.Override public boolean hasAvatar() { return avatar_ != null; } /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; + * @return The avatar. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; } /** - * optional .proto.Avatar avatar = 7; - */ - private void setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - - } - /** - * optional .proto.Avatar avatar = 7; - */ - private void setAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - avatar_ = builderForValue.build(); - - } - /** - * optional .proto.Avatar avatar = 7; - */ - private void mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (avatar_ != null && - avatar_ != net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()) { - avatar_ = - net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - - } - /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; */ - private void clearAvatar() { avatar_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + return getAvatar(); } public static final int PRIVATE_EXTRA_FIELD_NUMBER = 8; private net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra privateExtra_; /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + * @return Whether the privateExtra field is set. */ + @java.lang.Override public boolean hasPrivateExtra() { return privateExtra_ != null; } /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + * @return The privateExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra getPrivateExtra() { return privateExtra_ == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.getDefaultInstance() : privateExtra_; } /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; - */ - private void setPrivateExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra value) { - if (value == null) { - throw new NullPointerException(); - } - privateExtra_ = value; - - } - /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; - */ - private void setPrivateExtra( - net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder builderForValue) { - privateExtra_ = builderForValue.build(); - - } - /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; - */ - private void mergePrivateExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra value) { - if (privateExtra_ != null && - privateExtra_ != net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.getDefaultInstance()) { - privateExtra_ = - net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.newBuilder(privateExtra_).mergeFrom(value).buildPartial(); - } else { - privateExtra_ = value; - } - - } - /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; */ - private void clearPrivateExtra() { privateExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtraOrBuilder getPrivateExtraOrBuilder() { + return getPrivateExtra(); } public static final int PUBLIC_EXTRA_FIELD_NUMBER = 9; private net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra publicExtra_; /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; + * @return Whether the publicExtra field is set. */ + @java.lang.Override public boolean hasPublicExtra() { return publicExtra_ != null; } /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; + * @return The publicExtra. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra getPublicExtra() { return publicExtra_ == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.getDefaultInstance() : publicExtra_; } /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; - */ - private void setPublicExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra value) { - if (value == null) { - throw new NullPointerException(); - } - publicExtra_ = value; - - } - /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; - */ - private void setPublicExtra( - net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder builderForValue) { - publicExtra_ = builderForValue.build(); - - } - /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; - */ - private void mergePublicExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra value) { - if (publicExtra_ != null && - publicExtra_ != net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.getDefaultInstance()) { - publicExtra_ = - net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.newBuilder(publicExtra_).mergeFrom(value).buildPartial(); - } else { - publicExtra_ = value; - } - - } - /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; */ - private void clearPublicExtra() { publicExtra_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtraOrBuilder getPublicExtraOrBuilder() { + return getPublicExtra(); } public static final int SIGNATURE_FIELD_NUMBER = 10; private boolean signature_; /** - * optional bool signature = 10; + * bool signature = 10; + * @return The signature. */ + @java.lang.Override public boolean getSignature() { return signature_; } - /** - * optional bool signature = 10; - */ - private void setSignature(boolean value) { - - signature_ = value; - } - /** - * optional bool signature = 10; - */ - private void clearSignature() { - - signature_ = false; - } public static final int SEEN_ID_FIELD_NUMBER = 11; private long seenId_; /** - * optional uint64 seen_id = 11 [jstype = JS_STRING]; + * uint64 seen_id = 11 [jstype = JS_STRING]; + * @return The seenId. */ + @java.lang.Override public long getSeenId() { return seenId_; } - /** - * optional uint64 seen_id = 11 [jstype = JS_STRING]; - */ - private void setSeenId(long value) { - - seenId_ = value; - } - /** - * optional uint64 seen_id = 11 [jstype = JS_STRING]; - */ - private void clearSeenId() { - - seenId_ = 0L; - } public static final int VERIFIED_FIELD_NUMBER = 12; private boolean verified_; /** - * optional bool verified = 12; + * bool verified = 12; + * @return The verified. */ + @java.lang.Override public boolean getVerified() { return verified_; } - /** - * optional bool verified = 12; - */ - private void setVerified(boolean value) { - - verified_ = value; - } - /** - * optional bool verified = 12; - */ - private void clearVerified() { - - verified_ = false; - } public static final int REACTION_STATUS_FIELD_NUMBER = 13; private boolean reactionStatus_; /** - * optional bool reaction_status = 13; + * bool reaction_status = 13; + * @return The reactionStatus. */ + @java.lang.Override public boolean getReactionStatus() { return reactionStatus_; } - /** - * optional bool reaction_status = 13; - */ - private void setReactionStatus(boolean value) { - - reactionStatus_ = value; - } - /** - * optional bool reaction_status = 13; - */ - private void clearReactionStatus() { - - reactionStatus_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoGlobal.ChannelRoom.Type.PRIVATE_ROOM.getNumber()) { @@ -28616,11 +42324,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (participantsCount_ != 0) { output.writeUInt32(3, participantsCount_); } - if (!participantsCountLabel_.isEmpty()) { - output.writeString(4, getParticipantsCountLabel()); + if (!getParticipantsCountLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, participantsCountLabel_); } - if (!description_.isEmpty()) { - output.writeString(5, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (avatarCount_ != 0) { output.writeUInt32(6, avatarCount_); @@ -28646,10 +42354,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reactionStatus_ != false) { output.writeBool(13, reactionStatus_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -28665,13 +42375,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, participantsCount_); } - if (!participantsCountLabel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getParticipantsCountLabel()); + if (!getParticipantsCountLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, participantsCountLabel_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (avatarCount_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -28705,769 +42413,1350 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, reactionStatus_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.ChannelRoom)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.ChannelRoom other = (net.iGap.proto.ProtoGlobal.ChannelRoom) obj; + + if (type_ != other.type_) return false; + if (role_ != other.role_) return false; + if (getParticipantsCount() + != other.getParticipantsCount()) return false; + if (!getParticipantsCountLabel() + .equals(other.getParticipantsCountLabel())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getAvatarCount() + != other.getAvatarCount()) return false; + if (hasAvatar() != other.hasAvatar()) return false; + if (hasAvatar()) { + if (!getAvatar() + .equals(other.getAvatar())) return false; + } + if (hasPrivateExtra() != other.hasPrivateExtra()) return false; + if (hasPrivateExtra()) { + if (!getPrivateExtra() + .equals(other.getPrivateExtra())) return false; + } + if (hasPublicExtra() != other.hasPublicExtra()) return false; + if (hasPublicExtra()) { + if (!getPublicExtra() + .equals(other.getPublicExtra())) return false; + } + if (getSignature() + != other.getSignature()) return false; + if (getSeenId() + != other.getSeenId()) return false; + if (getVerified() + != other.getVerified()) return false; + if (getReactionStatus() + != other.getReactionStatus()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (37 * hash) + PARTICIPANTS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsCount(); + hash = (37 * hash) + PARTICIPANTS_COUNT_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsCountLabel().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + AVATAR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAvatarCount(); + if (hasAvatar()) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + } + if (hasPrivateExtra()) { + hash = (37 * hash) + PRIVATE_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateExtra().hashCode(); + } + if (hasPublicExtra()) { + hash = (37 * hash) + PUBLIC_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getPublicExtra().hashCode(); + } + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSignature()); + hash = (37 * hash) + SEEN_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSeenId()); + hash = (37 * hash) + VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerified()); + hash = (37 * hash) + REACTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReactionStatus()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.ChannelRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.ChannelRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.ChannelRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.ChannelRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ChannelRoom) net.iGap.proto.ProtoGlobal.ChannelRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.ChannelRoom.class, net.iGap.proto.ProtoGlobal.ChannelRoom.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.ChannelRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + role_ = 0; + + participantsCount_ = 0; + + participantsCountLabel_ = ""; + + description_ = ""; + + avatarCount_ = 0; + + if (avatarBuilder_ == null) { + avatar_ = null; + } else { + avatar_ = null; + avatarBuilder_ = null; + } + if (privateExtraBuilder_ == null) { + privateExtra_ = null; + } else { + privateExtra_ = null; + privateExtraBuilder_ = null; + } + if (publicExtraBuilder_ == null) { + publicExtra_ = null; + } else { + publicExtra_ = null; + publicExtraBuilder_ = null; + } + signature_ = false; + + seenId_ = 0L; + + verified_ = false; + + reactionStatus_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_ChannelRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.ChannelRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom build() { + net.iGap.proto.ProtoGlobal.ChannelRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom buildPartial() { + net.iGap.proto.ProtoGlobal.ChannelRoom result = new net.iGap.proto.ProtoGlobal.ChannelRoom(this); + result.type_ = type_; + result.role_ = role_; + result.participantsCount_ = participantsCount_; + result.participantsCountLabel_ = participantsCountLabel_; + result.description_ = description_; + result.avatarCount_ = avatarCount_; + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + if (privateExtraBuilder_ == null) { + result.privateExtra_ = privateExtra_; + } else { + result.privateExtra_ = privateExtraBuilder_.build(); + } + if (publicExtraBuilder_ == null) { + result.publicExtra_ = publicExtra_; + } else { + result.publicExtra_ = publicExtraBuilder_.build(); + } + result.signature_ = signature_; + result.seenId_ = seenId_; + result.verified_ = verified_; + result.reactionStatus_ = reactionStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.ChannelRoom) { + return mergeFrom((net.iGap.proto.ProtoGlobal.ChannelRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.ChannelRoom other) { + if (other == net.iGap.proto.ProtoGlobal.ChannelRoom.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (other.getParticipantsCount() != 0) { + setParticipantsCount(other.getParticipantsCount()); + } + if (!other.getParticipantsCountLabel().isEmpty()) { + participantsCountLabel_ = other.participantsCountLabel_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getAvatarCount() != 0) { + setAvatarCount(other.getAvatarCount()); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.hasPrivateExtra()) { + mergePrivateExtra(other.getPrivateExtra()); + } + if (other.hasPublicExtra()) { + mergePublicExtra(other.getPublicExtra()); + } + if (other.getSignature() != false) { + setSignature(other.getSignature()); + } + if (other.getSeenId() != 0L) { + setSeenId(other.getSeenId()); + } + if (other.getVerified() != false) { + setVerified(other.getVerified()); + } + if (other.getReactionStatus() != false) { + setReactionStatus(other.getReactionStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.ChannelRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.ChannelRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int type_ = 0; /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Type result = net.iGap.proto.ProtoGlobal.ChannelRoom.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Type.UNRECOGNIZED : result; } /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.ChannelRoom.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Type type = 1; + * .proto.ChannelRoom.Type type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ChannelRoom.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ChannelRoom.Role result = net.iGap.proto.ProtoGlobal.ChannelRoom.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.Role.UNRECOGNIZED : result; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoGlobal.ChannelRoom.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ChannelRoom.Role role = 2; + * .proto.ChannelRoom.Role role = 2; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + private int participantsCount_ ; /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return The participantsCount. */ + @java.lang.Override public int getParticipantsCount() { - return instance.getParticipantsCount(); + return participantsCount_; } /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @param value The participantsCount to set. + * @return This builder for chaining. */ public Builder setParticipantsCount(int value) { - copyOnWrite(); - instance.setParticipantsCount(value); + + participantsCount_ = value; + onChanged(); return this; } /** - * optional uint32 participants_count = 3; + * uint32 participants_count = 3; + * @return This builder for chaining. */ public Builder clearParticipantsCount() { - copyOnWrite(); - instance.clearParticipantsCount(); + + participantsCount_ = 0; + onChanged(); return this; } + private java.lang.Object participantsCountLabel_ = ""; /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The participantsCountLabel. */ public java.lang.String getParticipantsCountLabel() { - return instance.getParticipantsCountLabel(); + java.lang.Object ref = participantsCountLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantsCountLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return The bytes for participantsCountLabel. */ public com.google.protobuf.ByteString getParticipantsCountLabelBytes() { - return instance.getParticipantsCountLabelBytes(); + java.lang.Object ref = participantsCountLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantsCountLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @param value The participantsCountLabel to set. + * @return This builder for chaining. */ public Builder setParticipantsCountLabel( java.lang.String value) { - copyOnWrite(); - instance.setParticipantsCountLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + participantsCountLabel_ = value; + onChanged(); return this; } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @return This builder for chaining. */ public Builder clearParticipantsCountLabel() { - copyOnWrite(); - instance.clearParticipantsCountLabel(); + + participantsCountLabel_ = getDefaultInstance().getParticipantsCountLabel(); + onChanged(); return this; } /** - * optional string participants_count_label = 4; + * string participants_count_label = 4; + * @param value The bytes for participantsCountLabel to set. + * @return This builder for chaining. */ public Builder setParticipantsCountLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setParticipantsCountLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + participantsCountLabel_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 5; + * string description = 5; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 5; + * string description = 5; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 5; + * string description = 5; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 5; + * string description = 5; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 5; + * string description = 5; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + private int avatarCount_ ; /** - * optional uint32 avatar_count = 6; + * uint32 avatar_count = 6; + * @return The avatarCount. */ + @java.lang.Override public int getAvatarCount() { - return instance.getAvatarCount(); + return avatarCount_; } /** - * optional uint32 avatar_count = 6; + * uint32 avatar_count = 6; + * @param value The avatarCount to set. + * @return This builder for chaining. */ public Builder setAvatarCount(int value) { - copyOnWrite(); - instance.setAvatarCount(value); + + avatarCount_ = value; + onChanged(); return this; } /** - * optional uint32 avatar_count = 6; + * uint32 avatar_count = 6; + * @return This builder for chaining. */ public Builder clearAvatarCount() { - copyOnWrite(); - instance.clearAvatarCount(); + + avatarCount_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Avatar avatar_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; + * @return Whether the avatar field is set. */ public boolean hasAvatar() { - return instance.hasAvatar(); + return avatarBuilder_ != null || avatar_ != null; } /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; + * @return The avatar. */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { - return instance.getAvatar(); + if (avatarBuilder_ == null) { + return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } else { + return avatarBuilder_.getMessage(); + } } /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; */ public Builder setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(value); - return this; + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; */ public Builder setAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(builderForValue); + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; */ public Builder mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.mergeAvatar(value); + if (avatarBuilder_ == null) { + if (avatar_ != null) { + avatar_ = + net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Avatar avatar = 7; + * .proto.Avatar avatar = 7; */ - public Builder clearAvatar() { copyOnWrite(); - instance.clearAvatar(); + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + return this; } + /** + * .proto.Avatar avatar = 7; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .proto.Avatar avatar = 7; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_ == null ? + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } + } + /** + * .proto.Avatar avatar = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + getAvatar(), + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + private net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra privateExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtraOrBuilder> privateExtraBuilder_; /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + * @return Whether the privateExtra field is set. */ public boolean hasPrivateExtra() { - return instance.hasPrivateExtra(); + return privateExtraBuilder_ != null || privateExtra_ != null; } /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + * @return The privateExtra. */ public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra getPrivateExtra() { - return instance.getPrivateExtra(); + if (privateExtraBuilder_ == null) { + return privateExtra_ == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.getDefaultInstance() : privateExtra_; + } else { + return privateExtraBuilder_.getMessage(); + } } /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; */ public Builder setPrivateExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra value) { - copyOnWrite(); - instance.setPrivateExtra(value); - return this; + if (privateExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateExtra_ = value; + onChanged(); + } else { + privateExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; */ public Builder setPrivateExtra( net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder builderForValue) { - copyOnWrite(); - instance.setPrivateExtra(builderForValue); + if (privateExtraBuilder_ == null) { + privateExtra_ = builderForValue.build(); + onChanged(); + } else { + privateExtraBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; */ public Builder mergePrivateExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra value) { - copyOnWrite(); - instance.mergePrivateExtra(value); + if (privateExtraBuilder_ == null) { + if (privateExtra_ != null) { + privateExtra_ = + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.newBuilder(privateExtra_).mergeFrom(value).buildPartial(); + } else { + privateExtra_ = value; + } + onChanged(); + } else { + privateExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChannelRoom.PrivateExtra private_extra = 8; + * .proto.ChannelRoom.PrivateExtra private_extra = 8; */ - public Builder clearPrivateExtra() { copyOnWrite(); - instance.clearPrivateExtra(); + public Builder clearPrivateExtra() { + if (privateExtraBuilder_ == null) { + privateExtra_ = null; + onChanged(); + } else { + privateExtra_ = null; + privateExtraBuilder_ = null; + } + return this; } + /** + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + */ + public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder getPrivateExtraBuilder() { + + onChanged(); + return getPrivateExtraFieldBuilder().getBuilder(); + } + /** + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + */ + public net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtraOrBuilder getPrivateExtraOrBuilder() { + if (privateExtraBuilder_ != null) { + return privateExtraBuilder_.getMessageOrBuilder(); + } else { + return privateExtra_ == null ? + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.getDefaultInstance() : privateExtra_; + } + } + /** + * .proto.ChannelRoom.PrivateExtra private_extra = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtraOrBuilder> + getPrivateExtraFieldBuilder() { + if (privateExtraBuilder_ == null) { + privateExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder, net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtraOrBuilder>( + getPrivateExtra(), + getParentForChildren(), + isClean()); + privateExtra_ = null; + } + return privateExtraBuilder_; + } + private net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra publicExtra_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtraOrBuilder> publicExtraBuilder_; /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; + * @return Whether the publicExtra field is set. */ public boolean hasPublicExtra() { - return instance.hasPublicExtra(); + return publicExtraBuilder_ != null || publicExtra_ != null; } /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; + * @return The publicExtra. */ public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra getPublicExtra() { - return instance.getPublicExtra(); + if (publicExtraBuilder_ == null) { + return publicExtra_ == null ? net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.getDefaultInstance() : publicExtra_; + } else { + return publicExtraBuilder_.getMessage(); + } } /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; */ public Builder setPublicExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra value) { - copyOnWrite(); - instance.setPublicExtra(value); - return this; + if (publicExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publicExtra_ = value; + onChanged(); + } else { + publicExtraBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; */ public Builder setPublicExtra( net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder builderForValue) { - copyOnWrite(); - instance.setPublicExtra(builderForValue); + if (publicExtraBuilder_ == null) { + publicExtra_ = builderForValue.build(); + onChanged(); + } else { + publicExtraBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .proto.ChannelRoom.PublicExtra public_extra = 9; + */ + public Builder mergePublicExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra value) { + if (publicExtraBuilder_ == null) { + if (publicExtra_ != null) { + publicExtra_ = + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.newBuilder(publicExtra_).mergeFrom(value).buildPartial(); + } else { + publicExtra_ = value; + } + onChanged(); + } else { + publicExtraBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; + */ + public Builder clearPublicExtra() { + if (publicExtraBuilder_ == null) { + publicExtra_ = null; + onChanged(); + } else { + publicExtra_ = null; + publicExtraBuilder_ = null; + } + + return this; + } + /** + * .proto.ChannelRoom.PublicExtra public_extra = 9; + */ + public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder getPublicExtraBuilder() { + + onChanged(); + return getPublicExtraFieldBuilder().getBuilder(); + } + /** + * .proto.ChannelRoom.PublicExtra public_extra = 9; */ - public Builder mergePublicExtra(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra value) { - copyOnWrite(); - instance.mergePublicExtra(value); - return this; + public net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtraOrBuilder getPublicExtraOrBuilder() { + if (publicExtraBuilder_ != null) { + return publicExtraBuilder_.getMessageOrBuilder(); + } else { + return publicExtra_ == null ? + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.getDefaultInstance() : publicExtra_; + } } /** - * optional .proto.ChannelRoom.PublicExtra public_extra = 9; + * .proto.ChannelRoom.PublicExtra public_extra = 9; */ - public Builder clearPublicExtra() { copyOnWrite(); - instance.clearPublicExtra(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtraOrBuilder> + getPublicExtraFieldBuilder() { + if (publicExtraBuilder_ == null) { + publicExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder, net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtraOrBuilder>( + getPublicExtra(), + getParentForChildren(), + isClean()); + publicExtra_ = null; + } + return publicExtraBuilder_; } + private boolean signature_ ; /** - * optional bool signature = 10; + * bool signature = 10; + * @return The signature. */ + @java.lang.Override public boolean getSignature() { - return instance.getSignature(); + return signature_; } /** - * optional bool signature = 10; + * bool signature = 10; + * @param value The signature to set. + * @return This builder for chaining. */ public Builder setSignature(boolean value) { - copyOnWrite(); - instance.setSignature(value); + + signature_ = value; + onChanged(); return this; } /** - * optional bool signature = 10; + * bool signature = 10; + * @return This builder for chaining. */ public Builder clearSignature() { - copyOnWrite(); - instance.clearSignature(); + + signature_ = false; + onChanged(); return this; } + private long seenId_ ; /** - * optional uint64 seen_id = 11 [jstype = JS_STRING]; + * uint64 seen_id = 11 [jstype = JS_STRING]; + * @return The seenId. */ + @java.lang.Override public long getSeenId() { - return instance.getSeenId(); + return seenId_; } /** - * optional uint64 seen_id = 11 [jstype = JS_STRING]; + * uint64 seen_id = 11 [jstype = JS_STRING]; + * @param value The seenId to set. + * @return This builder for chaining. */ public Builder setSeenId(long value) { - copyOnWrite(); - instance.setSeenId(value); + + seenId_ = value; + onChanged(); return this; } /** - * optional uint64 seen_id = 11 [jstype = JS_STRING]; + * uint64 seen_id = 11 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearSeenId() { - copyOnWrite(); - instance.clearSeenId(); + + seenId_ = 0L; + onChanged(); return this; } + private boolean verified_ ; /** - * optional bool verified = 12; + * bool verified = 12; + * @return The verified. */ + @java.lang.Override public boolean getVerified() { - return instance.getVerified(); + return verified_; } /** - * optional bool verified = 12; + * bool verified = 12; + * @param value The verified to set. + * @return This builder for chaining. */ public Builder setVerified(boolean value) { - copyOnWrite(); - instance.setVerified(value); + + verified_ = value; + onChanged(); return this; } /** - * optional bool verified = 12; + * bool verified = 12; + * @return This builder for chaining. */ public Builder clearVerified() { - copyOnWrite(); - instance.clearVerified(); + + verified_ = false; + onChanged(); return this; } + private boolean reactionStatus_ ; /** - * optional bool reaction_status = 13; + * bool reaction_status = 13; + * @return The reactionStatus. */ + @java.lang.Override public boolean getReactionStatus() { - return instance.getReactionStatus(); + return reactionStatus_; } /** - * optional bool reaction_status = 13; + * bool reaction_status = 13; + * @param value The reactionStatus to set. + * @return This builder for chaining. */ public Builder setReactionStatus(boolean value) { - copyOnWrite(); - instance.setReactionStatus(value); + + reactionStatus_ = value; + onChanged(); return this; } /** - * optional bool reaction_status = 13; + * bool reaction_status = 13; + * @return This builder for chaining. */ public Builder clearReactionStatus() { - copyOnWrite(); - instance.clearReactionStatus(); + + reactionStatus_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.ChannelRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.ChannelRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.ChannelRoom other = (net.iGap.proto.ProtoGlobal.ChannelRoom) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - participantsCount_ = visitor.visitInt(participantsCount_ != 0, participantsCount_, - other.participantsCount_ != 0, other.participantsCount_); - participantsCountLabel_ = visitor.visitString(!participantsCountLabel_.isEmpty(), participantsCountLabel_, - !other.participantsCountLabel_.isEmpty(), other.participantsCountLabel_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - avatarCount_ = visitor.visitInt(avatarCount_ != 0, avatarCount_, - other.avatarCount_ != 0, other.avatarCount_); - avatar_ = visitor.visitMessage(avatar_, other.avatar_); - privateExtra_ = visitor.visitMessage(privateExtra_, other.privateExtra_); - publicExtra_ = visitor.visitMessage(publicExtra_, other.publicExtra_); - signature_ = visitor.visitBoolean(signature_ != false, signature_, - other.signature_ != false, other.signature_); - seenId_ = visitor.visitLong(seenId_ != 0L, seenId_, - other.seenId_ != 0L, other.seenId_); - verified_ = visitor.visitBoolean(verified_ != false, verified_, - other.verified_ != false, other.verified_); - reactionStatus_ = visitor.visitBoolean(reactionStatus_ != false, reactionStatus_, - other.reactionStatus_ != false, other.reactionStatus_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - role_ = rawValue; - break; - } - case 24: { - - participantsCount_ = input.readUInt32(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - participantsCountLabel_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 48: { - - avatarCount_ = input.readUInt32(); - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.Builder subBuilder = null; - if (privateExtra_ != null) { - subBuilder = privateExtra_.toBuilder(); - } - privateExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChannelRoom.PrivateExtra.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(privateExtra_); - privateExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.Builder subBuilder = null; - if (publicExtra_ != null) { - subBuilder = publicExtra_.toBuilder(); - } - publicExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.ChannelRoom.PublicExtra.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(publicExtra_); - publicExtra_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - - signature_ = input.readBool(); - break; - } - case 88: { - - seenId_ = input.readUInt64(); - break; - } - case 96: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - verified_ = input.readBool(); - break; - } - case 104: { - reactionStatus_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.ChannelRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.ChannelRoom) } - // @@protoc_insertion_point(class_scope:proto.ChannelRoom) private static final net.iGap.proto.ProtoGlobal.ChannelRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new ChannelRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.ChannelRoom(); } public static net.iGap.proto.ProtoGlobal.ChannelRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChannelRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ChannelRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface ThumbnailOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Thumbnail) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional int64 size = 1; + * int64 size = 1; + * @return The size. */ long getSize(); /** - * optional int32 width = 2; + * int32 width = 2; + * @return The width. */ int getWidth(); /** - * optional int32 height = 3; + * int32 height = 3; + * @return The height. */ int getHeight(); /** - * optional string cache_id = 4; + * string cache_id = 4; + * @return The cacheId. */ java.lang.String getCacheId(); /** - * optional string cache_id = 4; + * string cache_id = 4; + * @return The bytes for cacheId. */ com.google.protobuf.ByteString getCacheIdBytes(); /** - * optional string name = 5; + * string name = 5; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 5; + * string name = 5; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string mime = 6; + * string mime = 6; + * @return The mime. */ java.lang.String getMime(); /** - * optional string mime = 6; + * string mime = 6; + * @return The bytes for mime. */ com.google.protobuf.ByteString getMimeBytes(); @@ -29475,223 +43764,275 @@ public interface ThumbnailOrBuilder extends /** * Protobuf type {@code proto.Thumbnail} */ - public static final class Thumbnail extends - com.google.protobuf.GeneratedMessageLite< - Thumbnail, Thumbnail.Builder> implements + public static final class Thumbnail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Thumbnail) ThumbnailOrBuilder { + private static final long serialVersionUID = 0L; + // Use Thumbnail.newBuilder() to construct. + private Thumbnail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Thumbnail() { cacheId_ = ""; name_ = ""; mime_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Thumbnail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Thumbnail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + size_ = input.readInt64(); + break; + } + case 16: { + + width_ = input.readInt32(); + break; + } + case 24: { + + height_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + cacheId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + mime_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Thumbnail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Thumbnail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Thumbnail.class, net.iGap.proto.ProtoGlobal.Thumbnail.Builder.class); + } + public static final int SIZE_FIELD_NUMBER = 1; private long size_; /** - * optional int64 size = 1; + * int64 size = 1; + * @return The size. */ + @java.lang.Override public long getSize() { return size_; } - /** - * optional int64 size = 1; - */ - private void setSize(long value) { - - size_ = value; - } - /** - * optional int64 size = 1; - */ - private void clearSize() { - - size_ = 0L; - } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** - * optional int32 width = 2; + * int32 width = 2; + * @return The width. */ + @java.lang.Override public int getWidth() { return width_; } - /** - * optional int32 width = 2; - */ - private void setWidth(int value) { - - width_ = value; - } - /** - * optional int32 width = 2; - */ - private void clearWidth() { - - width_ = 0; - } public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** - * optional int32 height = 3; + * int32 height = 3; + * @return The height. */ + @java.lang.Override public int getHeight() { return height_; } - /** - * optional int32 height = 3; - */ - private void setHeight(int value) { - - height_ = value; - } - /** - * optional int32 height = 3; - */ - private void clearHeight() { - - height_ = 0; - } public static final int CACHE_ID_FIELD_NUMBER = 4; - private java.lang.String cacheId_; + private volatile java.lang.Object cacheId_; /** - * optional string cache_id = 4; + * string cache_id = 4; + * @return The cacheId. */ + @java.lang.Override public java.lang.String getCacheId() { - return cacheId_; + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } } /** - * optional string cache_id = 4; + * string cache_id = 4; + * @return The bytes for cacheId. */ + @java.lang.Override public com.google.protobuf.ByteString getCacheIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cacheId_); - } - /** - * optional string cache_id = 4; - */ - private void setCacheId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheId_ = value; - } - /** - * optional string cache_id = 4; - */ - private void clearCacheId() { - - cacheId_ = getDefaultInstance().getCacheId(); - } - /** - * optional string cache_id = 4; - */ - private void setCacheIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cacheId_ = value.toStringUtf8(); + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int NAME_FIELD_NUMBER = 5; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 5; + * string name = 5; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 5; + * string name = 5; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 5; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 5; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 5; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MIME_FIELD_NUMBER = 6; - private java.lang.String mime_; + private volatile java.lang.Object mime_; /** - * optional string mime = 6; + * string mime = 6; + * @return The mime. */ + @java.lang.Override public java.lang.String getMime() { - return mime_; + java.lang.Object ref = mime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mime_ = s; + return s; + } } /** - * optional string mime = 6; + * string mime = 6; + * @return The bytes for mime. */ + @java.lang.Override public com.google.protobuf.ByteString getMimeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(mime_); - } - /** - * optional string mime = 6; - */ - private void setMime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mime_ = value; - } - /** - * optional string mime = 6; - */ - private void clearMime() { - - mime_ = getDefaultInstance().getMime(); + java.lang.Object ref = mime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string mime = 6; - */ - private void setMimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mime_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (size_ != 0L) { @@ -29703,19 +44044,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (height_ != 0) { output.writeInt32(3, height_); } - if (!cacheId_.isEmpty()) { - output.writeString(4, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cacheId_); } - if (!name_.isEmpty()) { - output.writeString(5, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - if (!mime_.isEmpty()) { - output.writeString(6, getMime()); + if (!getMimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mime_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -29731,526 +44074,843 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, height_); } - if (!cacheId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cacheId_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - if (!mime_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getMime()); + if (!getMimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mime_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Thumbnail)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Thumbnail other = (net.iGap.proto.ProtoGlobal.Thumbnail) obj; + + if (getSize() + != other.getSize()) return false; + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; + if (!getCacheId() + .equals(other.getCacheId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getMime() + .equals(other.getMime())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + WIDTH_FIELD_NUMBER; + hash = (53 * hash) + getWidth(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getHeight(); + hash = (37 * hash) + CACHE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCacheId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MIME_FIELD_NUMBER; + hash = (53 * hash) + getMime().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Thumbnail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Thumbnail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Thumbnail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Thumbnail, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Thumbnail) net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Thumbnail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Thumbnail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Thumbnail.class, net.iGap.proto.ProtoGlobal.Thumbnail.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Thumbnail.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + size_ = 0L; + + width_ = 0; + + height_ = 0; + + cacheId_ = ""; + + name_ = ""; + + mime_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Thumbnail_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Thumbnail getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Thumbnail build() { + net.iGap.proto.ProtoGlobal.Thumbnail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Thumbnail buildPartial() { + net.iGap.proto.ProtoGlobal.Thumbnail result = new net.iGap.proto.ProtoGlobal.Thumbnail(this); + result.size_ = size_; + result.width_ = width_; + result.height_ = height_; + result.cacheId_ = cacheId_; + result.name_ = name_; + result.mime_ = mime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Thumbnail) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Thumbnail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Thumbnail other) { + if (other == net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance()) return this; + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getWidth() != 0) { + setWidth(other.getWidth()); + } + if (other.getHeight() != 0) { + setHeight(other.getHeight()); + } + if (!other.getCacheId().isEmpty()) { + cacheId_ = other.cacheId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getMime().isEmpty()) { + mime_ = other.mime_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Thumbnail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Thumbnail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long size_ ; /** - * optional int64 size = 1; + * int64 size = 1; + * @return The size. */ + @java.lang.Override public long getSize() { - return instance.getSize(); + return size_; } /** - * optional int64 size = 1; + * int64 size = 1; + * @param value The size to set. + * @return This builder for chaining. */ public Builder setSize(long value) { - copyOnWrite(); - instance.setSize(value); + + size_ = value; + onChanged(); return this; } /** - * optional int64 size = 1; + * int64 size = 1; + * @return This builder for chaining. */ public Builder clearSize() { - copyOnWrite(); - instance.clearSize(); + + size_ = 0L; + onChanged(); return this; } + private int width_ ; /** - * optional int32 width = 2; + * int32 width = 2; + * @return The width. */ + @java.lang.Override public int getWidth() { - return instance.getWidth(); + return width_; } /** - * optional int32 width = 2; + * int32 width = 2; + * @param value The width to set. + * @return This builder for chaining. */ public Builder setWidth(int value) { - copyOnWrite(); - instance.setWidth(value); + + width_ = value; + onChanged(); return this; } /** - * optional int32 width = 2; + * int32 width = 2; + * @return This builder for chaining. */ public Builder clearWidth() { - copyOnWrite(); - instance.clearWidth(); + + width_ = 0; + onChanged(); return this; } + private int height_ ; /** - * optional int32 height = 3; + * int32 height = 3; + * @return The height. */ + @java.lang.Override public int getHeight() { - return instance.getHeight(); + return height_; } /** - * optional int32 height = 3; + * int32 height = 3; + * @param value The height to set. + * @return This builder for chaining. */ public Builder setHeight(int value) { - copyOnWrite(); - instance.setHeight(value); + + height_ = value; + onChanged(); return this; } /** - * optional int32 height = 3; + * int32 height = 3; + * @return This builder for chaining. */ public Builder clearHeight() { - copyOnWrite(); - instance.clearHeight(); + + height_ = 0; + onChanged(); return this; } + private java.lang.Object cacheId_ = ""; /** - * optional string cache_id = 4; + * string cache_id = 4; + * @return The cacheId. */ public java.lang.String getCacheId() { - return instance.getCacheId(); + java.lang.Object ref = cacheId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string cache_id = 4; + * string cache_id = 4; + * @return The bytes for cacheId. */ public com.google.protobuf.ByteString getCacheIdBytes() { - return instance.getCacheIdBytes(); + java.lang.Object ref = cacheId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string cache_id = 4; + * string cache_id = 4; + * @param value The cacheId to set. + * @return This builder for chaining. */ public Builder setCacheId( java.lang.String value) { - copyOnWrite(); - instance.setCacheId(value); + if (value == null) { + throw new NullPointerException(); + } + + cacheId_ = value; + onChanged(); return this; } /** - * optional string cache_id = 4; + * string cache_id = 4; + * @return This builder for chaining. */ public Builder clearCacheId() { - copyOnWrite(); - instance.clearCacheId(); + + cacheId_ = getDefaultInstance().getCacheId(); + onChanged(); return this; } /** - * optional string cache_id = 4; + * string cache_id = 4; + * @param value The bytes for cacheId to set. + * @return This builder for chaining. */ public Builder setCacheIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCacheIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cacheId_ = value; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 5; + * string name = 5; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 5; + * string name = 5; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 5; + * string name = 5; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 5; + * string name = 5; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 5; + * string name = 5; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object mime_ = ""; /** - * optional string mime = 6; + * string mime = 6; + * @return The mime. */ public java.lang.String getMime() { - return instance.getMime(); + java.lang.Object ref = mime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mime_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string mime = 6; + * string mime = 6; + * @return The bytes for mime. */ public com.google.protobuf.ByteString getMimeBytes() { - return instance.getMimeBytes(); + java.lang.Object ref = mime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string mime = 6; + * string mime = 6; + * @param value The mime to set. + * @return This builder for chaining. */ public Builder setMime( java.lang.String value) { - copyOnWrite(); - instance.setMime(value); + if (value == null) { + throw new NullPointerException(); + } + + mime_ = value; + onChanged(); return this; } /** - * optional string mime = 6; + * string mime = 6; + * @return This builder for chaining. */ public Builder clearMime() { - copyOnWrite(); - instance.clearMime(); + + mime_ = getDefaultInstance().getMime(); + onChanged(); return this; } /** - * optional string mime = 6; + * string mime = 6; + * @param value The bytes for mime to set. + * @return This builder for chaining. */ public Builder setMimeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMimeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mime_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Thumbnail) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Thumbnail(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Thumbnail other = (net.iGap.proto.ProtoGlobal.Thumbnail) arg1; - size_ = visitor.visitLong(size_ != 0L, size_, - other.size_ != 0L, other.size_); - width_ = visitor.visitInt(width_ != 0, width_, - other.width_ != 0, other.width_); - height_ = visitor.visitInt(height_ != 0, height_, - other.height_ != 0, other.height_); - cacheId_ = visitor.visitString(!cacheId_.isEmpty(), cacheId_, - !other.cacheId_.isEmpty(), other.cacheId_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - mime_ = visitor.visitString(!mime_.isEmpty(), mime_, - !other.mime_.isEmpty(), other.mime_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - size_ = input.readInt64(); - break; - } - case 16: { - - width_ = input.readInt32(); - break; - } - case 24: { - - height_ = input.readInt32(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - cacheId_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - name_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - mime_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Thumbnail.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.Thumbnail) } - // @@protoc_insertion_point(class_scope:proto.Thumbnail) private static final net.iGap.proto.ProtoGlobal.Thumbnail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Thumbnail(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Thumbnail(); } public static net.iGap.proto.ProtoGlobal.Thumbnail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Thumbnail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Thumbnail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Thumbnail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface FileOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.File) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string token = 1; + * string token = 1; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 1; + * string token = 1; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional string name = 2; + * string name = 2; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional int64 size = 3; + * int64 size = 3; + * @return The size. */ long getSize(); /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; + * @return Whether the largeThumbnail field is set. */ boolean hasLargeThumbnail(); /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; + * @return The largeThumbnail. */ net.iGap.proto.ProtoGlobal.Thumbnail getLargeThumbnail(); + /** + * .proto.Thumbnail large_thumbnail = 4; + */ + net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getLargeThumbnailOrBuilder(); /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; + * @return Whether the smallThumbnail field is set. */ boolean hasSmallThumbnail(); /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; + * @return The smallThumbnail. */ net.iGap.proto.ProtoGlobal.Thumbnail getSmallThumbnail(); + /** + * .proto.Thumbnail small_thumbnail = 5; + */ + net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getSmallThumbnailOrBuilder(); /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; + * @return Whether the waveformThumbnail field is set. */ boolean hasWaveformThumbnail(); /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; + * @return The waveformThumbnail. */ net.iGap.proto.ProtoGlobal.Thumbnail getWaveformThumbnail(); + /** + * .proto.Thumbnail waveform_thumbnail = 6; + */ + net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getWaveformThumbnailOrBuilder(); /** - * optional int32 width = 7; + * int32 width = 7; + * @return The width. */ int getWidth(); /** - * optional int32 height = 8; + * int32 height = 8; + * @return The height. */ int getHeight(); /** - * optional double duration = 9; + * double duration = 9; + * @return The duration. */ double getDuration(); /** - * optional string cache_id = 10; + * string cache_id = 10; + * @return The cacheId. */ java.lang.String getCacheId(); /** - * optional string cache_id = 10; + * string cache_id = 10; + * @return The bytes for cacheId. */ com.google.protobuf.ByteString getCacheIdBytes(); /** - * optional string mime = 11; + * string mime = 11; + * @return The mime. */ java.lang.String getMime(); /** - * optional string mime = 11; + * string mime = 11; + * @return The bytes for mime. */ com.google.protobuf.ByteString getMimeBytes(); /** - * optional string public_url = 12; + * string public_url = 12; + * @return The publicUrl. */ java.lang.String getPublicUrl(); /** - * optional string public_url = 12; + * string public_url = 12; + * @return The bytes for publicUrl. */ com.google.protobuf.ByteString getPublicUrlBytes(); @@ -30258,11 +44918,15 @@ public interface FileOrBuilder extends /** * Protobuf type {@code proto.File} */ - public static final class File extends - com.google.protobuf.GeneratedMessageLite< - File, File.Builder> implements + public static final class File extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.File) FileOrBuilder { + private static final long serialVersionUID = 0L; + // Use File.newBuilder() to construct. + private File(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private File() { token_ = ""; name_ = ""; @@ -30270,491 +44934,489 @@ private File() { mime_ = ""; publicUrl_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new File(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private File( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + + size_ = input.readInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Thumbnail.Builder subBuilder = null; + if (largeThumbnail_ != null) { + subBuilder = largeThumbnail_.toBuilder(); + } + largeThumbnail_ = input.readMessage(net.iGap.proto.ProtoGlobal.Thumbnail.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(largeThumbnail_); + largeThumbnail_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + net.iGap.proto.ProtoGlobal.Thumbnail.Builder subBuilder = null; + if (smallThumbnail_ != null) { + subBuilder = smallThumbnail_.toBuilder(); + } + smallThumbnail_ = input.readMessage(net.iGap.proto.ProtoGlobal.Thumbnail.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(smallThumbnail_); + smallThumbnail_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.Thumbnail.Builder subBuilder = null; + if (waveformThumbnail_ != null) { + subBuilder = waveformThumbnail_.toBuilder(); + } + waveformThumbnail_ = input.readMessage(net.iGap.proto.ProtoGlobal.Thumbnail.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(waveformThumbnail_); + waveformThumbnail_ = subBuilder.buildPartial(); + } + + break; + } + case 56: { + + width_ = input.readInt32(); + break; + } + case 64: { + + height_ = input.readInt32(); + break; + } + case 73: { + + duration_ = input.readDouble(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + cacheId_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + mime_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + publicUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.File.class, net.iGap.proto.ProtoGlobal.File.Builder.class); + } + public static final int TOKEN_FIELD_NUMBER = 1; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 1; + * string token = 1; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 1; + * string token = 1; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 1; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 1; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 1; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int NAME_FIELD_NUMBER = 2; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 2; + * string name = 2; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 2; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 2; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 2; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SIZE_FIELD_NUMBER = 3; private long size_; /** - * optional int64 size = 3; + * int64 size = 3; + * @return The size. */ + @java.lang.Override public long getSize() { - return size_; - } - /** - * optional int64 size = 3; - */ - private void setSize(long value) { - - size_ = value; - } - /** - * optional int64 size = 3; - */ - private void clearSize() { - - size_ = 0L; - } - - public static final int LARGE_THUMBNAIL_FIELD_NUMBER = 4; - private net.iGap.proto.ProtoGlobal.Thumbnail largeThumbnail_; - /** - * optional .proto.Thumbnail large_thumbnail = 4; - */ - public boolean hasLargeThumbnail() { - return largeThumbnail_ != null; - } - /** - * optional .proto.Thumbnail large_thumbnail = 4; - */ - public net.iGap.proto.ProtoGlobal.Thumbnail getLargeThumbnail() { - return largeThumbnail_ == null ? net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : largeThumbnail_; - } - /** - * optional .proto.Thumbnail large_thumbnail = 4; - */ - private void setLargeThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - if (value == null) { - throw new NullPointerException(); - } - largeThumbnail_ = value; - - } + return size_; + } + + public static final int LARGE_THUMBNAIL_FIELD_NUMBER = 4; + private net.iGap.proto.ProtoGlobal.Thumbnail largeThumbnail_; /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; + * @return Whether the largeThumbnail field is set. */ - private void setLargeThumbnail( - net.iGap.proto.ProtoGlobal.Thumbnail.Builder builderForValue) { - largeThumbnail_ = builderForValue.build(); - + @java.lang.Override + public boolean hasLargeThumbnail() { + return largeThumbnail_ != null; } /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; + * @return The largeThumbnail. */ - private void mergeLargeThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - if (largeThumbnail_ != null && - largeThumbnail_ != net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance()) { - largeThumbnail_ = - net.iGap.proto.ProtoGlobal.Thumbnail.newBuilder(largeThumbnail_).mergeFrom(value).buildPartial(); - } else { - largeThumbnail_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Thumbnail getLargeThumbnail() { + return largeThumbnail_ == null ? net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : largeThumbnail_; } /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; */ - private void clearLargeThumbnail() { largeThumbnail_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getLargeThumbnailOrBuilder() { + return getLargeThumbnail(); } public static final int SMALL_THUMBNAIL_FIELD_NUMBER = 5; private net.iGap.proto.ProtoGlobal.Thumbnail smallThumbnail_; /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; + * @return Whether the smallThumbnail field is set. */ + @java.lang.Override public boolean hasSmallThumbnail() { return smallThumbnail_ != null; } /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; + * @return The smallThumbnail. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Thumbnail getSmallThumbnail() { return smallThumbnail_ == null ? net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : smallThumbnail_; } /** - * optional .proto.Thumbnail small_thumbnail = 5; - */ - private void setSmallThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - if (value == null) { - throw new NullPointerException(); - } - smallThumbnail_ = value; - - } - /** - * optional .proto.Thumbnail small_thumbnail = 5; - */ - private void setSmallThumbnail( - net.iGap.proto.ProtoGlobal.Thumbnail.Builder builderForValue) { - smallThumbnail_ = builderForValue.build(); - - } - /** - * optional .proto.Thumbnail small_thumbnail = 5; - */ - private void mergeSmallThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - if (smallThumbnail_ != null && - smallThumbnail_ != net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance()) { - smallThumbnail_ = - net.iGap.proto.ProtoGlobal.Thumbnail.newBuilder(smallThumbnail_).mergeFrom(value).buildPartial(); - } else { - smallThumbnail_ = value; - } - - } - /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; */ - private void clearSmallThumbnail() { smallThumbnail_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getSmallThumbnailOrBuilder() { + return getSmallThumbnail(); } public static final int WAVEFORM_THUMBNAIL_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.Thumbnail waveformThumbnail_; /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; + * @return Whether the waveformThumbnail field is set. */ + @java.lang.Override public boolean hasWaveformThumbnail() { return waveformThumbnail_ != null; } /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; + * @return The waveformThumbnail. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Thumbnail getWaveformThumbnail() { return waveformThumbnail_ == null ? net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : waveformThumbnail_; } /** - * optional .proto.Thumbnail waveform_thumbnail = 6; - */ - private void setWaveformThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - if (value == null) { - throw new NullPointerException(); - } - waveformThumbnail_ = value; - - } - /** - * optional .proto.Thumbnail waveform_thumbnail = 6; - */ - private void setWaveformThumbnail( - net.iGap.proto.ProtoGlobal.Thumbnail.Builder builderForValue) { - waveformThumbnail_ = builderForValue.build(); - - } - /** - * optional .proto.Thumbnail waveform_thumbnail = 6; - */ - private void mergeWaveformThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - if (waveformThumbnail_ != null && - waveformThumbnail_ != net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance()) { - waveformThumbnail_ = - net.iGap.proto.ProtoGlobal.Thumbnail.newBuilder(waveformThumbnail_).mergeFrom(value).buildPartial(); - } else { - waveformThumbnail_ = value; - } - - } - /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; */ - private void clearWaveformThumbnail() { waveformThumbnail_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getWaveformThumbnailOrBuilder() { + return getWaveformThumbnail(); } public static final int WIDTH_FIELD_NUMBER = 7; private int width_; /** - * optional int32 width = 7; + * int32 width = 7; + * @return The width. */ + @java.lang.Override public int getWidth() { return width_; } - /** - * optional int32 width = 7; - */ - private void setWidth(int value) { - - width_ = value; - } - /** - * optional int32 width = 7; - */ - private void clearWidth() { - - width_ = 0; - } public static final int HEIGHT_FIELD_NUMBER = 8; private int height_; /** - * optional int32 height = 8; + * int32 height = 8; + * @return The height. */ + @java.lang.Override public int getHeight() { return height_; } - /** - * optional int32 height = 8; - */ - private void setHeight(int value) { - - height_ = value; - } - /** - * optional int32 height = 8; - */ - private void clearHeight() { - - height_ = 0; - } public static final int DURATION_FIELD_NUMBER = 9; private double duration_; /** - * optional double duration = 9; + * double duration = 9; + * @return The duration. */ + @java.lang.Override public double getDuration() { return duration_; } - /** - * optional double duration = 9; - */ - private void setDuration(double value) { - - duration_ = value; - } - /** - * optional double duration = 9; - */ - private void clearDuration() { - - duration_ = 0D; - } public static final int CACHE_ID_FIELD_NUMBER = 10; - private java.lang.String cacheId_; + private volatile java.lang.Object cacheId_; /** - * optional string cache_id = 10; + * string cache_id = 10; + * @return The cacheId. */ + @java.lang.Override public java.lang.String getCacheId() { - return cacheId_; + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } } /** - * optional string cache_id = 10; + * string cache_id = 10; + * @return The bytes for cacheId. */ + @java.lang.Override public com.google.protobuf.ByteString getCacheIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cacheId_); - } - /** - * optional string cache_id = 10; - */ - private void setCacheId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheId_ = value; - } - /** - * optional string cache_id = 10; - */ - private void clearCacheId() { - - cacheId_ = getDefaultInstance().getCacheId(); - } - /** - * optional string cache_id = 10; - */ - private void setCacheIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cacheId_ = value.toStringUtf8(); + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MIME_FIELD_NUMBER = 11; - private java.lang.String mime_; + private volatile java.lang.Object mime_; /** - * optional string mime = 11; + * string mime = 11; + * @return The mime. */ + @java.lang.Override public java.lang.String getMime() { - return mime_; + java.lang.Object ref = mime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mime_ = s; + return s; + } } /** - * optional string mime = 11; + * string mime = 11; + * @return The bytes for mime. */ + @java.lang.Override public com.google.protobuf.ByteString getMimeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(mime_); - } - /** - * optional string mime = 11; - */ - private void setMime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mime_ = value; - } - /** - * optional string mime = 11; - */ - private void clearMime() { - - mime_ = getDefaultInstance().getMime(); - } - /** - * optional string mime = 11; - */ - private void setMimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mime_ = value.toStringUtf8(); + java.lang.Object ref = mime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PUBLIC_URL_FIELD_NUMBER = 12; - private java.lang.String publicUrl_; + private volatile java.lang.Object publicUrl_; /** - * optional string public_url = 12; + * string public_url = 12; + * @return The publicUrl. */ + @java.lang.Override public java.lang.String getPublicUrl() { - return publicUrl_; + java.lang.Object ref = publicUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicUrl_ = s; + return s; + } } /** - * optional string public_url = 12; + * string public_url = 12; + * @return The bytes for publicUrl. */ + @java.lang.Override public com.google.protobuf.ByteString getPublicUrlBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(publicUrl_); - } - /** - * optional string public_url = 12; - */ - private void setPublicUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicUrl_ = value; - } - /** - * optional string public_url = 12; - */ - private void clearPublicUrl() { - - publicUrl_ = getDefaultInstance().getPublicUrl(); + java.lang.Object ref = publicUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string public_url = 12; - */ - private void setPublicUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicUrl_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!token_.isEmpty()) { - output.writeString(1, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } - if (!name_.isEmpty()) { - output.writeString(2, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (size_ != 0L) { output.writeInt64(3, size_); @@ -30777,29 +45439,29 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (duration_ != 0D) { output.writeDouble(9, duration_); } - if (!cacheId_.isEmpty()) { - output.writeString(10, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, cacheId_); } - if (!mime_.isEmpty()) { - output.writeString(11, getMime()); + if (!getMimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, mime_); } - if (!publicUrl_.isEmpty()) { - output.writeString(12, getPublicUrl()); + if (!getPublicUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, publicUrl_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -30829,886 +45491,1560 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(9, duration_); } - if (!cacheId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, cacheId_); } - if (!mime_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(11, getMime()); + if (!getMimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, mime_); } - if (!publicUrl_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(12, getPublicUrl()); + if (!getPublicUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, publicUrl_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.File)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.File other = (net.iGap.proto.ProtoGlobal.File) obj; + + if (!getToken() + .equals(other.getToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getSize() + != other.getSize()) return false; + if (hasLargeThumbnail() != other.hasLargeThumbnail()) return false; + if (hasLargeThumbnail()) { + if (!getLargeThumbnail() + .equals(other.getLargeThumbnail())) return false; + } + if (hasSmallThumbnail() != other.hasSmallThumbnail()) return false; + if (hasSmallThumbnail()) { + if (!getSmallThumbnail() + .equals(other.getSmallThumbnail())) return false; + } + if (hasWaveformThumbnail() != other.hasWaveformThumbnail()) return false; + if (hasWaveformThumbnail()) { + if (!getWaveformThumbnail() + .equals(other.getWaveformThumbnail())) return false; + } + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; + if (java.lang.Double.doubleToLongBits(getDuration()) + != java.lang.Double.doubleToLongBits( + other.getDuration())) return false; + if (!getCacheId() + .equals(other.getCacheId())) return false; + if (!getMime() + .equals(other.getMime())) return false; + if (!getPublicUrl() + .equals(other.getPublicUrl())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + if (hasLargeThumbnail()) { + hash = (37 * hash) + LARGE_THUMBNAIL_FIELD_NUMBER; + hash = (53 * hash) + getLargeThumbnail().hashCode(); + } + if (hasSmallThumbnail()) { + hash = (37 * hash) + SMALL_THUMBNAIL_FIELD_NUMBER; + hash = (53 * hash) + getSmallThumbnail().hashCode(); + } + if (hasWaveformThumbnail()) { + hash = (37 * hash) + WAVEFORM_THUMBNAIL_FIELD_NUMBER; + hash = (53 * hash) + getWaveformThumbnail().hashCode(); + } + hash = (37 * hash) + WIDTH_FIELD_NUMBER; + hash = (53 * hash) + getWidth(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getHeight(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDuration())); + hash = (37 * hash) + CACHE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCacheId().hashCode(); + hash = (37 * hash) + MIME_FIELD_NUMBER; + hash = (53 * hash) + getMime().hashCode(); + hash = (37 * hash) + PUBLIC_URL_FIELD_NUMBER; + hash = (53 * hash) + getPublicUrl().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.File parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.File parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.File parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.File parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.File parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.File parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.File parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.File parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.File parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.File parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.File parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.File prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.File} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.File, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.File) net.iGap.proto.ProtoGlobal.FileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.File.class, net.iGap.proto.ProtoGlobal.File.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.File.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + token_ = ""; + + name_ = ""; + + size_ = 0L; + + if (largeThumbnailBuilder_ == null) { + largeThumbnail_ = null; + } else { + largeThumbnail_ = null; + largeThumbnailBuilder_ = null; + } + if (smallThumbnailBuilder_ == null) { + smallThumbnail_ = null; + } else { + smallThumbnail_ = null; + smallThumbnailBuilder_ = null; + } + if (waveformThumbnailBuilder_ == null) { + waveformThumbnail_ = null; + } else { + waveformThumbnail_ = null; + waveformThumbnailBuilder_ = null; + } + width_ = 0; + + height_ = 0; + + duration_ = 0D; + + cacheId_ = ""; + + mime_ = ""; + + publicUrl_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_File_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.File getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.File.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.File build() { + net.iGap.proto.ProtoGlobal.File result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.File buildPartial() { + net.iGap.proto.ProtoGlobal.File result = new net.iGap.proto.ProtoGlobal.File(this); + result.token_ = token_; + result.name_ = name_; + result.size_ = size_; + if (largeThumbnailBuilder_ == null) { + result.largeThumbnail_ = largeThumbnail_; + } else { + result.largeThumbnail_ = largeThumbnailBuilder_.build(); + } + if (smallThumbnailBuilder_ == null) { + result.smallThumbnail_ = smallThumbnail_; + } else { + result.smallThumbnail_ = smallThumbnailBuilder_.build(); + } + if (waveformThumbnailBuilder_ == null) { + result.waveformThumbnail_ = waveformThumbnail_; + } else { + result.waveformThumbnail_ = waveformThumbnailBuilder_.build(); + } + result.width_ = width_; + result.height_ = height_; + result.duration_ = duration_; + result.cacheId_ = cacheId_; + result.mime_ = mime_; + result.publicUrl_ = publicUrl_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.File) { + return mergeFrom((net.iGap.proto.ProtoGlobal.File)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.File other) { + if (other == net.iGap.proto.ProtoGlobal.File.getDefaultInstance()) return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.hasLargeThumbnail()) { + mergeLargeThumbnail(other.getLargeThumbnail()); + } + if (other.hasSmallThumbnail()) { + mergeSmallThumbnail(other.getSmallThumbnail()); + } + if (other.hasWaveformThumbnail()) { + mergeWaveformThumbnail(other.getWaveformThumbnail()); + } + if (other.getWidth() != 0) { + setWidth(other.getWidth()); + } + if (other.getHeight() != 0) { + setHeight(other.getHeight()); + } + if (other.getDuration() != 0D) { + setDuration(other.getDuration()); + } + if (!other.getCacheId().isEmpty()) { + cacheId_ = other.cacheId_; + onChanged(); + } + if (!other.getMime().isEmpty()) { + mime_ = other.mime_; + onChanged(); + } + if (!other.getPublicUrl().isEmpty()) { + publicUrl_ = other.publicUrl_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.File parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.File) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object token_ = ""; /** - * optional string token = 1; + * string token = 1; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 1; + * string token = 1; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 1; + * string token = 1; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 1; + * string token = 1; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 1; + * string token = 1; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 2; + * string name = 2; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 2; + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 2; + * string name = 2; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 2; + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private long size_ ; /** - * optional int64 size = 3; + * int64 size = 3; + * @return The size. */ + @java.lang.Override public long getSize() { - return instance.getSize(); + return size_; } /** - * optional int64 size = 3; + * int64 size = 3; + * @param value The size to set. + * @return This builder for chaining. */ public Builder setSize(long value) { - copyOnWrite(); - instance.setSize(value); + + size_ = value; + onChanged(); return this; } /** - * optional int64 size = 3; + * int64 size = 3; + * @return This builder for chaining. */ public Builder clearSize() { - copyOnWrite(); - instance.clearSize(); + + size_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Thumbnail largeThumbnail_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder> largeThumbnailBuilder_; /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; + * @return Whether the largeThumbnail field is set. */ public boolean hasLargeThumbnail() { - return instance.hasLargeThumbnail(); + return largeThumbnailBuilder_ != null || largeThumbnail_ != null; } /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; + * @return The largeThumbnail. */ public net.iGap.proto.ProtoGlobal.Thumbnail getLargeThumbnail() { - return instance.getLargeThumbnail(); + if (largeThumbnailBuilder_ == null) { + return largeThumbnail_ == null ? net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : largeThumbnail_; + } else { + return largeThumbnailBuilder_.getMessage(); + } } /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; */ public Builder setLargeThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - copyOnWrite(); - instance.setLargeThumbnail(value); - return this; + if (largeThumbnailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + largeThumbnail_ = value; + onChanged(); + } else { + largeThumbnailBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; */ public Builder setLargeThumbnail( net.iGap.proto.ProtoGlobal.Thumbnail.Builder builderForValue) { - copyOnWrite(); - instance.setLargeThumbnail(builderForValue); + if (largeThumbnailBuilder_ == null) { + largeThumbnail_ = builderForValue.build(); + onChanged(); + } else { + largeThumbnailBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; */ public Builder mergeLargeThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - copyOnWrite(); - instance.mergeLargeThumbnail(value); + if (largeThumbnailBuilder_ == null) { + if (largeThumbnail_ != null) { + largeThumbnail_ = + net.iGap.proto.ProtoGlobal.Thumbnail.newBuilder(largeThumbnail_).mergeFrom(value).buildPartial(); + } else { + largeThumbnail_ = value; + } + onChanged(); + } else { + largeThumbnailBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Thumbnail large_thumbnail = 4; + * .proto.Thumbnail large_thumbnail = 4; */ - public Builder clearLargeThumbnail() { copyOnWrite(); - instance.clearLargeThumbnail(); + public Builder clearLargeThumbnail() { + if (largeThumbnailBuilder_ == null) { + largeThumbnail_ = null; + onChanged(); + } else { + largeThumbnail_ = null; + largeThumbnailBuilder_ = null; + } + return this; } + /** + * .proto.Thumbnail large_thumbnail = 4; + */ + public net.iGap.proto.ProtoGlobal.Thumbnail.Builder getLargeThumbnailBuilder() { + + onChanged(); + return getLargeThumbnailFieldBuilder().getBuilder(); + } + /** + * .proto.Thumbnail large_thumbnail = 4; + */ + public net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getLargeThumbnailOrBuilder() { + if (largeThumbnailBuilder_ != null) { + return largeThumbnailBuilder_.getMessageOrBuilder(); + } else { + return largeThumbnail_ == null ? + net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : largeThumbnail_; + } + } + /** + * .proto.Thumbnail large_thumbnail = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder> + getLargeThumbnailFieldBuilder() { + if (largeThumbnailBuilder_ == null) { + largeThumbnailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder>( + getLargeThumbnail(), + getParentForChildren(), + isClean()); + largeThumbnail_ = null; + } + return largeThumbnailBuilder_; + } + private net.iGap.proto.ProtoGlobal.Thumbnail smallThumbnail_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder> smallThumbnailBuilder_; /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; + * @return Whether the smallThumbnail field is set. */ public boolean hasSmallThumbnail() { - return instance.hasSmallThumbnail(); + return smallThumbnailBuilder_ != null || smallThumbnail_ != null; } /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; + * @return The smallThumbnail. */ public net.iGap.proto.ProtoGlobal.Thumbnail getSmallThumbnail() { - return instance.getSmallThumbnail(); + if (smallThumbnailBuilder_ == null) { + return smallThumbnail_ == null ? net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : smallThumbnail_; + } else { + return smallThumbnailBuilder_.getMessage(); + } } /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; */ public Builder setSmallThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - copyOnWrite(); - instance.setSmallThumbnail(value); - return this; + if (smallThumbnailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + smallThumbnail_ = value; + onChanged(); + } else { + smallThumbnailBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; */ public Builder setSmallThumbnail( net.iGap.proto.ProtoGlobal.Thumbnail.Builder builderForValue) { - copyOnWrite(); - instance.setSmallThumbnail(builderForValue); + if (smallThumbnailBuilder_ == null) { + smallThumbnail_ = builderForValue.build(); + onChanged(); + } else { + smallThumbnailBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; */ public Builder mergeSmallThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - copyOnWrite(); - instance.mergeSmallThumbnail(value); + if (smallThumbnailBuilder_ == null) { + if (smallThumbnail_ != null) { + smallThumbnail_ = + net.iGap.proto.ProtoGlobal.Thumbnail.newBuilder(smallThumbnail_).mergeFrom(value).buildPartial(); + } else { + smallThumbnail_ = value; + } + onChanged(); + } else { + smallThumbnailBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Thumbnail small_thumbnail = 5; + * .proto.Thumbnail small_thumbnail = 5; */ - public Builder clearSmallThumbnail() { copyOnWrite(); - instance.clearSmallThumbnail(); + public Builder clearSmallThumbnail() { + if (smallThumbnailBuilder_ == null) { + smallThumbnail_ = null; + onChanged(); + } else { + smallThumbnail_ = null; + smallThumbnailBuilder_ = null; + } + return this; } + /** + * .proto.Thumbnail small_thumbnail = 5; + */ + public net.iGap.proto.ProtoGlobal.Thumbnail.Builder getSmallThumbnailBuilder() { + + onChanged(); + return getSmallThumbnailFieldBuilder().getBuilder(); + } + /** + * .proto.Thumbnail small_thumbnail = 5; + */ + public net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getSmallThumbnailOrBuilder() { + if (smallThumbnailBuilder_ != null) { + return smallThumbnailBuilder_.getMessageOrBuilder(); + } else { + return smallThumbnail_ == null ? + net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : smallThumbnail_; + } + } + /** + * .proto.Thumbnail small_thumbnail = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder> + getSmallThumbnailFieldBuilder() { + if (smallThumbnailBuilder_ == null) { + smallThumbnailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder>( + getSmallThumbnail(), + getParentForChildren(), + isClean()); + smallThumbnail_ = null; + } + return smallThumbnailBuilder_; + } + private net.iGap.proto.ProtoGlobal.Thumbnail waveformThumbnail_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder> waveformThumbnailBuilder_; /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; + * @return Whether the waveformThumbnail field is set. */ public boolean hasWaveformThumbnail() { - return instance.hasWaveformThumbnail(); + return waveformThumbnailBuilder_ != null || waveformThumbnail_ != null; } /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; + * @return The waveformThumbnail. */ public net.iGap.proto.ProtoGlobal.Thumbnail getWaveformThumbnail() { - return instance.getWaveformThumbnail(); + if (waveformThumbnailBuilder_ == null) { + return waveformThumbnail_ == null ? net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : waveformThumbnail_; + } else { + return waveformThumbnailBuilder_.getMessage(); + } } /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; */ public Builder setWaveformThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - copyOnWrite(); - instance.setWaveformThumbnail(value); - return this; + if (waveformThumbnailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + waveformThumbnail_ = value; + onChanged(); + } else { + waveformThumbnailBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; */ public Builder setWaveformThumbnail( net.iGap.proto.ProtoGlobal.Thumbnail.Builder builderForValue) { - copyOnWrite(); - instance.setWaveformThumbnail(builderForValue); + if (waveformThumbnailBuilder_ == null) { + waveformThumbnail_ = builderForValue.build(); + onChanged(); + } else { + waveformThumbnailBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; */ public Builder mergeWaveformThumbnail(net.iGap.proto.ProtoGlobal.Thumbnail value) { - copyOnWrite(); - instance.mergeWaveformThumbnail(value); + if (waveformThumbnailBuilder_ == null) { + if (waveformThumbnail_ != null) { + waveformThumbnail_ = + net.iGap.proto.ProtoGlobal.Thumbnail.newBuilder(waveformThumbnail_).mergeFrom(value).buildPartial(); + } else { + waveformThumbnail_ = value; + } + onChanged(); + } else { + waveformThumbnailBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Thumbnail waveform_thumbnail = 6; + * .proto.Thumbnail waveform_thumbnail = 6; */ - public Builder clearWaveformThumbnail() { copyOnWrite(); - instance.clearWaveformThumbnail(); + public Builder clearWaveformThumbnail() { + if (waveformThumbnailBuilder_ == null) { + waveformThumbnail_ = null; + onChanged(); + } else { + waveformThumbnail_ = null; + waveformThumbnailBuilder_ = null; + } + return this; } + /** + * .proto.Thumbnail waveform_thumbnail = 6; + */ + public net.iGap.proto.ProtoGlobal.Thumbnail.Builder getWaveformThumbnailBuilder() { + + onChanged(); + return getWaveformThumbnailFieldBuilder().getBuilder(); + } + /** + * .proto.Thumbnail waveform_thumbnail = 6; + */ + public net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder getWaveformThumbnailOrBuilder() { + if (waveformThumbnailBuilder_ != null) { + return waveformThumbnailBuilder_.getMessageOrBuilder(); + } else { + return waveformThumbnail_ == null ? + net.iGap.proto.ProtoGlobal.Thumbnail.getDefaultInstance() : waveformThumbnail_; + } + } + /** + * .proto.Thumbnail waveform_thumbnail = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder> + getWaveformThumbnailFieldBuilder() { + if (waveformThumbnailBuilder_ == null) { + waveformThumbnailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Thumbnail, net.iGap.proto.ProtoGlobal.Thumbnail.Builder, net.iGap.proto.ProtoGlobal.ThumbnailOrBuilder>( + getWaveformThumbnail(), + getParentForChildren(), + isClean()); + waveformThumbnail_ = null; + } + return waveformThumbnailBuilder_; + } + private int width_ ; /** - * optional int32 width = 7; + * int32 width = 7; + * @return The width. */ + @java.lang.Override public int getWidth() { - return instance.getWidth(); + return width_; } /** - * optional int32 width = 7; + * int32 width = 7; + * @param value The width to set. + * @return This builder for chaining. */ public Builder setWidth(int value) { - copyOnWrite(); - instance.setWidth(value); + + width_ = value; + onChanged(); return this; } /** - * optional int32 width = 7; + * int32 width = 7; + * @return This builder for chaining. */ public Builder clearWidth() { - copyOnWrite(); - instance.clearWidth(); + + width_ = 0; + onChanged(); return this; } + private int height_ ; /** - * optional int32 height = 8; + * int32 height = 8; + * @return The height. */ + @java.lang.Override public int getHeight() { - return instance.getHeight(); + return height_; } /** - * optional int32 height = 8; + * int32 height = 8; + * @param value The height to set. + * @return This builder for chaining. */ public Builder setHeight(int value) { - copyOnWrite(); - instance.setHeight(value); + + height_ = value; + onChanged(); return this; } /** - * optional int32 height = 8; + * int32 height = 8; + * @return This builder for chaining. */ public Builder clearHeight() { - copyOnWrite(); - instance.clearHeight(); + + height_ = 0; + onChanged(); return this; } + private double duration_ ; /** - * optional double duration = 9; + * double duration = 9; + * @return The duration. */ + @java.lang.Override public double getDuration() { - return instance.getDuration(); + return duration_; } /** - * optional double duration = 9; + * double duration = 9; + * @param value The duration to set. + * @return This builder for chaining. */ public Builder setDuration(double value) { - copyOnWrite(); - instance.setDuration(value); + + duration_ = value; + onChanged(); return this; } /** - * optional double duration = 9; + * double duration = 9; + * @return This builder for chaining. */ public Builder clearDuration() { - copyOnWrite(); - instance.clearDuration(); + + duration_ = 0D; + onChanged(); return this; } + private java.lang.Object cacheId_ = ""; /** - * optional string cache_id = 10; + * string cache_id = 10; + * @return The cacheId. */ public java.lang.String getCacheId() { - return instance.getCacheId(); + java.lang.Object ref = cacheId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string cache_id = 10; + * string cache_id = 10; + * @return The bytes for cacheId. */ public com.google.protobuf.ByteString getCacheIdBytes() { - return instance.getCacheIdBytes(); + java.lang.Object ref = cacheId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string cache_id = 10; + * string cache_id = 10; + * @param value The cacheId to set. + * @return This builder for chaining. */ public Builder setCacheId( java.lang.String value) { - copyOnWrite(); - instance.setCacheId(value); + if (value == null) { + throw new NullPointerException(); + } + + cacheId_ = value; + onChanged(); return this; } /** - * optional string cache_id = 10; + * string cache_id = 10; + * @return This builder for chaining. */ public Builder clearCacheId() { - copyOnWrite(); - instance.clearCacheId(); + + cacheId_ = getDefaultInstance().getCacheId(); + onChanged(); return this; } /** - * optional string cache_id = 10; + * string cache_id = 10; + * @param value The bytes for cacheId to set. + * @return This builder for chaining. */ public Builder setCacheIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCacheIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cacheId_ = value; + onChanged(); return this; } + private java.lang.Object mime_ = ""; /** - * optional string mime = 11; + * string mime = 11; + * @return The mime. */ public java.lang.String getMime() { - return instance.getMime(); + java.lang.Object ref = mime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mime_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string mime = 11; + * string mime = 11; + * @return The bytes for mime. */ public com.google.protobuf.ByteString getMimeBytes() { - return instance.getMimeBytes(); + java.lang.Object ref = mime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string mime = 11; + * string mime = 11; + * @param value The mime to set. + * @return This builder for chaining. */ public Builder setMime( java.lang.String value) { - copyOnWrite(); - instance.setMime(value); + if (value == null) { + throw new NullPointerException(); + } + + mime_ = value; + onChanged(); return this; } /** - * optional string mime = 11; + * string mime = 11; + * @return This builder for chaining. */ public Builder clearMime() { - copyOnWrite(); - instance.clearMime(); + + mime_ = getDefaultInstance().getMime(); + onChanged(); return this; } /** - * optional string mime = 11; + * string mime = 11; + * @param value The bytes for mime to set. + * @return This builder for chaining. */ public Builder setMimeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMimeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mime_ = value; + onChanged(); return this; } + private java.lang.Object publicUrl_ = ""; /** - * optional string public_url = 12; + * string public_url = 12; + * @return The publicUrl. */ public java.lang.String getPublicUrl() { - return instance.getPublicUrl(); + java.lang.Object ref = publicUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string public_url = 12; + * string public_url = 12; + * @return The bytes for publicUrl. */ public com.google.protobuf.ByteString getPublicUrlBytes() { - return instance.getPublicUrlBytes(); + java.lang.Object ref = publicUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string public_url = 12; + * string public_url = 12; + * @param value The publicUrl to set. + * @return This builder for chaining. */ public Builder setPublicUrl( java.lang.String value) { - copyOnWrite(); - instance.setPublicUrl(value); + if (value == null) { + throw new NullPointerException(); + } + + publicUrl_ = value; + onChanged(); return this; } /** - * optional string public_url = 12; + * string public_url = 12; + * @return This builder for chaining. */ public Builder clearPublicUrl() { - copyOnWrite(); - instance.clearPublicUrl(); + + publicUrl_ = getDefaultInstance().getPublicUrl(); + onChanged(); return this; } /** - * optional string public_url = 12; + * string public_url = 12; + * @param value The bytes for publicUrl to set. + * @return This builder for chaining. */ public Builder setPublicUrlBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPublicUrlBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicUrl_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.File) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.File(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.File other = (net.iGap.proto.ProtoGlobal.File) arg1; - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - size_ = visitor.visitLong(size_ != 0L, size_, - other.size_ != 0L, other.size_); - largeThumbnail_ = visitor.visitMessage(largeThumbnail_, other.largeThumbnail_); - smallThumbnail_ = visitor.visitMessage(smallThumbnail_, other.smallThumbnail_); - waveformThumbnail_ = visitor.visitMessage(waveformThumbnail_, other.waveformThumbnail_); - width_ = visitor.visitInt(width_ != 0, width_, - other.width_ != 0, other.width_); - height_ = visitor.visitInt(height_ != 0, height_, - other.height_ != 0, other.height_); - duration_ = visitor.visitDouble(duration_ != 0D, duration_, - other.duration_ != 0D, other.duration_); - cacheId_ = visitor.visitString(!cacheId_.isEmpty(), cacheId_, - !other.cacheId_.isEmpty(), other.cacheId_); - mime_ = visitor.visitString(!mime_.isEmpty(), mime_, - !other.mime_.isEmpty(), other.mime_); - publicUrl_ = visitor.visitString(!publicUrl_.isEmpty(), publicUrl_, - !other.publicUrl_.isEmpty(), other.publicUrl_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { - - size_ = input.readInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Thumbnail.Builder subBuilder = null; - if (largeThumbnail_ != null) { - subBuilder = largeThumbnail_.toBuilder(); - } - largeThumbnail_ = input.readMessage(net.iGap.proto.ProtoGlobal.Thumbnail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(largeThumbnail_); - largeThumbnail_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - net.iGap.proto.ProtoGlobal.Thumbnail.Builder subBuilder = null; - if (smallThumbnail_ != null) { - subBuilder = smallThumbnail_.toBuilder(); - } - smallThumbnail_ = input.readMessage(net.iGap.proto.ProtoGlobal.Thumbnail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(smallThumbnail_); - smallThumbnail_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.Thumbnail.Builder subBuilder = null; - if (waveformThumbnail_ != null) { - subBuilder = waveformThumbnail_.toBuilder(); - } - waveformThumbnail_ = input.readMessage(net.iGap.proto.ProtoGlobal.Thumbnail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(waveformThumbnail_); - waveformThumbnail_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - width_ = input.readInt32(); - break; - } - case 64: { - - height_ = input.readInt32(); - break; - } - case 73: { - - duration_ = input.readDouble(); - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - cacheId_ = s; - break; - } - case 90: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - mime_ = s; - break; - } - case 98: { - String s = input.readStringRequireUtf8(); - publicUrl_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.File.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.File) } - // @@protoc_insertion_point(class_scope:proto.File) private static final net.iGap.proto.ProtoGlobal.File DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new File(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.File(); } public static net.iGap.proto.ProtoGlobal.File getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new File(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.File getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface PostMessageRightsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PostMessageRights) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return The sendText. */ boolean getSendText(); /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return The sendMedia. */ boolean getSendMedia(); /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return The sendGif. */ boolean getSendGif(); /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return The sendSticker. */ boolean getSendSticker(); /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return The sendLink. */ boolean getSendLink(); } /** * Protobuf type {@code proto.PostMessageRights} */ - public static final class PostMessageRights extends - com.google.protobuf.GeneratedMessageLite< - PostMessageRights, PostMessageRights.Builder> implements + public static final class PostMessageRights extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PostMessageRights) PostMessageRightsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostMessageRights.newBuilder() to construct. + private PostMessageRights(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PostMessageRights() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PostMessageRights(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PostMessageRights( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + sendText_ = input.readBool(); + break; + } + case 24: { + + sendMedia_ = input.readBool(); + break; + } + case 32: { + + sendGif_ = input.readBool(); + break; + } + case 40: { + + sendSticker_ = input.readBool(); + break; + } + case 48: { + + sendLink_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PostMessageRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PostMessageRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.PostMessageRights.class, net.iGap.proto.ProtoGlobal.PostMessageRights.Builder.class); + } + public static final int SEND_TEXT_FIELD_NUMBER = 1; private boolean sendText_; /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return The sendText. */ + @java.lang.Override public boolean getSendText() { return sendText_; } - /** - * optional bool send_text = 1; - */ - private void setSendText(boolean value) { - - sendText_ = value; - } - /** - * optional bool send_text = 1; - */ - private void clearSendText() { - - sendText_ = false; - } public static final int SEND_MEDIA_FIELD_NUMBER = 3; private boolean sendMedia_; /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return The sendMedia. */ + @java.lang.Override public boolean getSendMedia() { return sendMedia_; } - /** - * optional bool send_media = 3; - */ - private void setSendMedia(boolean value) { - - sendMedia_ = value; - } - /** - * optional bool send_media = 3; - */ - private void clearSendMedia() { - - sendMedia_ = false; - } public static final int SEND_GIF_FIELD_NUMBER = 4; private boolean sendGif_; /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return The sendGif. */ + @java.lang.Override public boolean getSendGif() { return sendGif_; } - /** - * optional bool send_gif = 4; - */ - private void setSendGif(boolean value) { - - sendGif_ = value; - } - /** - * optional bool send_gif = 4; - */ - private void clearSendGif() { - - sendGif_ = false; - } public static final int SEND_STICKER_FIELD_NUMBER = 5; private boolean sendSticker_; /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return The sendSticker. */ + @java.lang.Override public boolean getSendSticker() { - return sendSticker_; - } - /** - * optional bool send_sticker = 5; - */ - private void setSendSticker(boolean value) { - - sendSticker_ = value; - } - /** - * optional bool send_sticker = 5; - */ - private void clearSendSticker() { - - sendSticker_ = false; + return sendSticker_; } public static final int SEND_LINK_FIELD_NUMBER = 6; private boolean sendLink_; /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return The sendLink. */ + @java.lang.Override public boolean getSendLink() { return sendLink_; } - /** - * optional bool send_link = 6; - */ - private void setSendLink(boolean value) { - - sendLink_ = value; - } - /** - * optional bool send_link = 6; - */ - private void clearSendLink() { - - sendLink_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sendText_ != false) { @@ -31726,10 +47062,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sendLink_ != false) { output.writeBool(6, sendLink_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -31753,716 +47091,919 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, sendLink_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.PostMessageRights)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.PostMessageRights other = (net.iGap.proto.ProtoGlobal.PostMessageRights) obj; + + if (getSendText() + != other.getSendText()) return false; + if (getSendMedia() + != other.getSendMedia()) return false; + if (getSendGif() + != other.getSendGif()) return false; + if (getSendSticker() + != other.getSendSticker()) return false; + if (getSendLink() + != other.getSendLink()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEND_TEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendText()); + hash = (37 * hash) + SEND_MEDIA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendMedia()); + hash = (37 * hash) + SEND_GIF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendGif()); + hash = (37 * hash) + SEND_STICKER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendSticker()); + hash = (37 * hash) + SEND_LINK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendLink()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.PostMessageRights parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.PostMessageRights prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PostMessageRights} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.PostMessageRights, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PostMessageRights) net.iGap.proto.ProtoGlobal.PostMessageRightsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PostMessageRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PostMessageRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.PostMessageRights.class, net.iGap.proto.ProtoGlobal.PostMessageRights.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.PostMessageRights.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sendText_ = false; + + sendMedia_ = false; + + sendGif_ = false; + + sendSticker_ = false; + + sendLink_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PostMessageRights_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PostMessageRights getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.PostMessageRights.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PostMessageRights build() { + net.iGap.proto.ProtoGlobal.PostMessageRights result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PostMessageRights buildPartial() { + net.iGap.proto.ProtoGlobal.PostMessageRights result = new net.iGap.proto.ProtoGlobal.PostMessageRights(this); + result.sendText_ = sendText_; + result.sendMedia_ = sendMedia_; + result.sendGif_ = sendGif_; + result.sendSticker_ = sendSticker_; + result.sendLink_ = sendLink_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.PostMessageRights) { + return mergeFrom((net.iGap.proto.ProtoGlobal.PostMessageRights)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.PostMessageRights other) { + if (other == net.iGap.proto.ProtoGlobal.PostMessageRights.getDefaultInstance()) return this; + if (other.getSendText() != false) { + setSendText(other.getSendText()); + } + if (other.getSendMedia() != false) { + setSendMedia(other.getSendMedia()); + } + if (other.getSendGif() != false) { + setSendGif(other.getSendGif()); + } + if (other.getSendSticker() != false) { + setSendSticker(other.getSendSticker()); + } + if (other.getSendLink() != false) { + setSendLink(other.getSendLink()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.PostMessageRights parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.PostMessageRights) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private boolean sendText_ ; /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return The sendText. */ + @java.lang.Override public boolean getSendText() { - return instance.getSendText(); + return sendText_; } /** - * optional bool send_text = 1; + * bool send_text = 1; + * @param value The sendText to set. + * @return This builder for chaining. */ public Builder setSendText(boolean value) { - copyOnWrite(); - instance.setSendText(value); + + sendText_ = value; + onChanged(); return this; } /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return This builder for chaining. */ public Builder clearSendText() { - copyOnWrite(); - instance.clearSendText(); + + sendText_ = false; + onChanged(); return this; } + private boolean sendMedia_ ; /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return The sendMedia. */ + @java.lang.Override public boolean getSendMedia() { - return instance.getSendMedia(); + return sendMedia_; } /** - * optional bool send_media = 3; + * bool send_media = 3; + * @param value The sendMedia to set. + * @return This builder for chaining. */ public Builder setSendMedia(boolean value) { - copyOnWrite(); - instance.setSendMedia(value); + + sendMedia_ = value; + onChanged(); return this; } /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return This builder for chaining. */ public Builder clearSendMedia() { - copyOnWrite(); - instance.clearSendMedia(); + + sendMedia_ = false; + onChanged(); return this; } + private boolean sendGif_ ; /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return The sendGif. */ + @java.lang.Override public boolean getSendGif() { - return instance.getSendGif(); + return sendGif_; } /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @param value The sendGif to set. + * @return This builder for chaining. */ public Builder setSendGif(boolean value) { - copyOnWrite(); - instance.setSendGif(value); + + sendGif_ = value; + onChanged(); return this; } /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return This builder for chaining. */ public Builder clearSendGif() { - copyOnWrite(); - instance.clearSendGif(); + + sendGif_ = false; + onChanged(); return this; } + private boolean sendSticker_ ; /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return The sendSticker. */ + @java.lang.Override public boolean getSendSticker() { - return instance.getSendSticker(); + return sendSticker_; } /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @param value The sendSticker to set. + * @return This builder for chaining. */ public Builder setSendSticker(boolean value) { - copyOnWrite(); - instance.setSendSticker(value); + + sendSticker_ = value; + onChanged(); return this; } /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return This builder for chaining. */ public Builder clearSendSticker() { - copyOnWrite(); - instance.clearSendSticker(); + + sendSticker_ = false; + onChanged(); return this; } + private boolean sendLink_ ; /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return The sendLink. */ + @java.lang.Override public boolean getSendLink() { - return instance.getSendLink(); + return sendLink_; } /** - * optional bool send_link = 6; + * bool send_link = 6; + * @param value The sendLink to set. + * @return This builder for chaining. */ public Builder setSendLink(boolean value) { - copyOnWrite(); - instance.setSendLink(value); + + sendLink_ = value; + onChanged(); return this; } /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return This builder for chaining. */ public Builder clearSendLink() { - copyOnWrite(); - instance.clearSendLink(); + + sendLink_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PostMessageRights) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.PostMessageRights(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.PostMessageRights other = (net.iGap.proto.ProtoGlobal.PostMessageRights) arg1; - sendText_ = visitor.visitBoolean(sendText_ != false, sendText_, - other.sendText_ != false, other.sendText_); - sendMedia_ = visitor.visitBoolean(sendMedia_ != false, sendMedia_, - other.sendMedia_ != false, other.sendMedia_); - sendGif_ = visitor.visitBoolean(sendGif_ != false, sendGif_, - other.sendGif_ != false, other.sendGif_); - sendSticker_ = visitor.visitBoolean(sendSticker_ != false, sendSticker_, - other.sendSticker_ != false, other.sendSticker_); - sendLink_ = visitor.visitBoolean(sendLink_ != false, sendLink_, - other.sendLink_ != false, other.sendLink_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - sendText_ = input.readBool(); - break; - } - case 24: { - - sendMedia_ = input.readBool(); - break; - } - case 32: { - - sendGif_ = input.readBool(); - break; - } - case 40: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - sendSticker_ = input.readBool(); - break; - } - case 48: { - sendLink_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.PostMessageRights.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.PostMessageRights) } - // @@protoc_insertion_point(class_scope:proto.PostMessageRights) private static final net.iGap.proto.ProtoGlobal.PostMessageRights DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PostMessageRights(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.PostMessageRights(); } public static net.iGap.proto.ProtoGlobal.PostMessageRights getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostMessageRights parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostMessageRights(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PostMessageRights getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomAccessOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomAccess) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ boolean getModifyRoom(); /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; + * @return Whether the postMessage field is set. */ boolean hasPostMessage(); /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; + * @return The postMessage. */ net.iGap.proto.ProtoGlobal.PostMessageRights getPostMessage(); + /** + * .proto.PostMessageRights post_message = 2; + */ + net.iGap.proto.ProtoGlobal.PostMessageRightsOrBuilder getPostMessageOrBuilder(); /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return The editMessage. */ boolean getEditMessage(); /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return The deleteMessage. */ boolean getDeleteMessage(); /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return The pinMessage. */ boolean getPinMessage(); /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return The addMember. */ boolean getAddMember(); /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return The banMember. */ boolean getBanMember(); /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return The getMember. */ boolean getGetMember(); /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return The addAdmin. */ boolean getAddAdmin(); /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return The addStory. */ boolean getAddStory(); /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return The deleteStory. */ boolean getDeleteStory(); /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return The showStoryViews. */ boolean getShowStoryViews(); } /** * Protobuf type {@code proto.RoomAccess} */ - public static final class RoomAccess extends - com.google.protobuf.GeneratedMessageLite< - RoomAccess, RoomAccess.Builder> implements + public static final class RoomAccess extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomAccess) RoomAccessOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomAccess.newBuilder() to construct. + private RoomAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomAccess() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomAccess(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomAccess( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + modifyRoom_ = input.readBool(); + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.PostMessageRights.Builder subBuilder = null; + if (postMessage_ != null) { + subBuilder = postMessage_.toBuilder(); + } + postMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.PostMessageRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postMessage_); + postMessage_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + editMessage_ = input.readBool(); + break; + } + case 32: { + + deleteMessage_ = input.readBool(); + break; + } + case 40: { + + pinMessage_ = input.readBool(); + break; + } + case 48: { + + addMember_ = input.readBool(); + break; + } + case 56: { + + banMember_ = input.readBool(); + break; + } + case 64: { + + getMember_ = input.readBool(); + break; + } + case 72: { + + addAdmin_ = input.readBool(); + break; + } + case 80: { + + addStory_ = input.readBool(); + break; + } + case 88: { + + deleteStory_ = input.readBool(); + break; + } + case 96: { + + showStoryViews_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomAccess_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomAccess_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomAccess.class, net.iGap.proto.ProtoGlobal.RoomAccess.Builder.class); + } + public static final int MODIFY_ROOM_FIELD_NUMBER = 1; private boolean modifyRoom_; /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ + @java.lang.Override public boolean getModifyRoom() { return modifyRoom_; } - /** - * optional bool modify_room = 1; - */ - private void setModifyRoom(boolean value) { - - modifyRoom_ = value; - } - /** - * optional bool modify_room = 1; - */ - private void clearModifyRoom() { - - modifyRoom_ = false; - } public static final int POST_MESSAGE_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.PostMessageRights postMessage_; /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; + * @return Whether the postMessage field is set. */ + @java.lang.Override public boolean hasPostMessage() { return postMessage_ != null; } /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; + * @return The postMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PostMessageRights getPostMessage() { return postMessage_ == null ? net.iGap.proto.ProtoGlobal.PostMessageRights.getDefaultInstance() : postMessage_; } /** - * optional .proto.PostMessageRights post_message = 2; - */ - private void setPostMessage(net.iGap.proto.ProtoGlobal.PostMessageRights value) { - if (value == null) { - throw new NullPointerException(); - } - postMessage_ = value; - - } - /** - * optional .proto.PostMessageRights post_message = 2; - */ - private void setPostMessage( - net.iGap.proto.ProtoGlobal.PostMessageRights.Builder builderForValue) { - postMessage_ = builderForValue.build(); - - } - /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; */ - private void mergePostMessage(net.iGap.proto.ProtoGlobal.PostMessageRights value) { - if (postMessage_ != null && - postMessage_ != net.iGap.proto.ProtoGlobal.PostMessageRights.getDefaultInstance()) { - postMessage_ = - net.iGap.proto.ProtoGlobal.PostMessageRights.newBuilder(postMessage_).mergeFrom(value).buildPartial(); - } else { - postMessage_ = value; - } - - } - /** - * optional .proto.PostMessageRights post_message = 2; - */ - private void clearPostMessage() { postMessage_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PostMessageRightsOrBuilder getPostMessageOrBuilder() { + return getPostMessage(); } public static final int EDIT_MESSAGE_FIELD_NUMBER = 3; private boolean editMessage_; /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return The editMessage. */ + @java.lang.Override public boolean getEditMessage() { return editMessage_; } - /** - * optional bool edit_message = 3; - */ - private void setEditMessage(boolean value) { - - editMessage_ = value; - } - /** - * optional bool edit_message = 3; - */ - private void clearEditMessage() { - - editMessage_ = false; - } public static final int DELETE_MESSAGE_FIELD_NUMBER = 4; private boolean deleteMessage_; /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return The deleteMessage. */ + @java.lang.Override public boolean getDeleteMessage() { return deleteMessage_; } - /** - * optional bool delete_message = 4; - */ - private void setDeleteMessage(boolean value) { - - deleteMessage_ = value; - } - /** - * optional bool delete_message = 4; - */ - private void clearDeleteMessage() { - - deleteMessage_ = false; - } public static final int PIN_MESSAGE_FIELD_NUMBER = 5; private boolean pinMessage_; /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { return pinMessage_; } - /** - * optional bool pin_message = 5; - */ - private void setPinMessage(boolean value) { - - pinMessage_ = value; - } - /** - * optional bool pin_message = 5; - */ - private void clearPinMessage() { - - pinMessage_ = false; - } public static final int ADD_MEMBER_FIELD_NUMBER = 6; private boolean addMember_; /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { return addMember_; } - /** - * optional bool add_member = 6; - */ - private void setAddMember(boolean value) { - - addMember_ = value; - } - /** - * optional bool add_member = 6; - */ - private void clearAddMember() { - - addMember_ = false; - } public static final int BAN_MEMBER_FIELD_NUMBER = 7; private boolean banMember_; /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return The banMember. */ + @java.lang.Override public boolean getBanMember() { return banMember_; } - /** - * optional bool ban_member = 7; - */ - private void setBanMember(boolean value) { - - banMember_ = value; - } - /** - * optional bool ban_member = 7; - */ - private void clearBanMember() { - - banMember_ = false; - } public static final int GET_MEMBER_FIELD_NUMBER = 8; private boolean getMember_; /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { return getMember_; } - /** - * optional bool get_member = 8; - */ - private void setGetMember(boolean value) { - - getMember_ = value; - } - /** - * optional bool get_member = 8; - */ - private void clearGetMember() { - - getMember_ = false; - } public static final int ADD_ADMIN_FIELD_NUMBER = 9; private boolean addAdmin_; /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return The addAdmin. */ + @java.lang.Override public boolean getAddAdmin() { return addAdmin_; } - /** - * optional bool add_admin = 9; - */ - private void setAddAdmin(boolean value) { - - addAdmin_ = value; - } - /** - * optional bool add_admin = 9; - */ - private void clearAddAdmin() { - - addAdmin_ = false; - } public static final int ADD_STORY_FIELD_NUMBER = 10; private boolean addStory_; /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return The addStory. */ + @java.lang.Override public boolean getAddStory() { return addStory_; } - /** - * optional bool add_story = 10; - */ - private void setAddStory(boolean value) { - - addStory_ = value; - } - /** - * optional bool add_story = 10; - */ - private void clearAddStory() { - - addStory_ = false; - } public static final int DELETE_STORY_FIELD_NUMBER = 11; private boolean deleteStory_; /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return The deleteStory. */ + @java.lang.Override public boolean getDeleteStory() { return deleteStory_; } - /** - * optional bool delete_story = 11; - */ - private void setDeleteStory(boolean value) { - - deleteStory_ = value; - } - /** - * optional bool delete_story = 11; - */ - private void clearDeleteStory() { - - deleteStory_ = false; - } public static final int SHOW_STORY_VIEWS_FIELD_NUMBER = 12; private boolean showStoryViews_; /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return The showStoryViews. */ + @java.lang.Override public boolean getShowStoryViews() { return showStoryViews_; } - /** - * optional bool show_story_views = 12; - */ - private void setShowStoryViews(boolean value) { - - showStoryViews_ = value; - } - /** - * optional bool show_story_views = 12; - */ - private void clearShowStoryViews() { - - showStoryViews_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (modifyRoom_ != false) { @@ -32501,10 +48042,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (showStoryViews_ != false) { output.writeBool(12, showStoryViews_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -32556,716 +48099,1142 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, showStoryViews_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomAccess)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomAccess other = (net.iGap.proto.ProtoGlobal.RoomAccess) obj; + + if (getModifyRoom() + != other.getModifyRoom()) return false; + if (hasPostMessage() != other.hasPostMessage()) return false; + if (hasPostMessage()) { + if (!getPostMessage() + .equals(other.getPostMessage())) return false; + } + if (getEditMessage() + != other.getEditMessage()) return false; + if (getDeleteMessage() + != other.getDeleteMessage()) return false; + if (getPinMessage() + != other.getPinMessage()) return false; + if (getAddMember() + != other.getAddMember()) return false; + if (getBanMember() + != other.getBanMember()) return false; + if (getGetMember() + != other.getGetMember()) return false; + if (getAddAdmin() + != other.getAddAdmin()) return false; + if (getAddStory() + != other.getAddStory()) return false; + if (getDeleteStory() + != other.getDeleteStory()) return false; + if (getShowStoryViews() + != other.getShowStoryViews()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODIFY_ROOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getModifyRoom()); + if (hasPostMessage()) { + hash = (37 * hash) + POST_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getPostMessage().hashCode(); + } + hash = (37 * hash) + EDIT_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEditMessage()); + hash = (37 * hash) + DELETE_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleteMessage()); + hash = (37 * hash) + PIN_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinMessage()); + hash = (37 * hash) + ADD_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddMember()); + hash = (37 * hash) + BAN_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBanMember()); + hash = (37 * hash) + GET_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGetMember()); + hash = (37 * hash) + ADD_ADMIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddAdmin()); + hash = (37 * hash) + ADD_STORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddStory()); + hash = (37 * hash) + DELETE_STORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleteStory()); + hash = (37 * hash) + SHOW_STORY_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowStoryViews()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomAccess parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomAccess prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomAccess} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomAccess, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomAccess) net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomAccess_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomAccess_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomAccess.class, net.iGap.proto.ProtoGlobal.RoomAccess.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomAccess.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + modifyRoom_ = false; + + if (postMessageBuilder_ == null) { + postMessage_ = null; + } else { + postMessage_ = null; + postMessageBuilder_ = null; + } + editMessage_ = false; + + deleteMessage_ = false; + + pinMessage_ = false; + + addMember_ = false; + + banMember_ = false; + + getMember_ = false; + + addAdmin_ = false; + + addStory_ = false; + + deleteStory_ = false; + + showStoryViews_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomAccess_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomAccess getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomAccess build() { + net.iGap.proto.ProtoGlobal.RoomAccess result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomAccess buildPartial() { + net.iGap.proto.ProtoGlobal.RoomAccess result = new net.iGap.proto.ProtoGlobal.RoomAccess(this); + result.modifyRoom_ = modifyRoom_; + if (postMessageBuilder_ == null) { + result.postMessage_ = postMessage_; + } else { + result.postMessage_ = postMessageBuilder_.build(); + } + result.editMessage_ = editMessage_; + result.deleteMessage_ = deleteMessage_; + result.pinMessage_ = pinMessage_; + result.addMember_ = addMember_; + result.banMember_ = banMember_; + result.getMember_ = getMember_; + result.addAdmin_ = addAdmin_; + result.addStory_ = addStory_; + result.deleteStory_ = deleteStory_; + result.showStoryViews_ = showStoryViews_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomAccess) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomAccess)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomAccess other) { + if (other == net.iGap.proto.ProtoGlobal.RoomAccess.getDefaultInstance()) return this; + if (other.getModifyRoom() != false) { + setModifyRoom(other.getModifyRoom()); + } + if (other.hasPostMessage()) { + mergePostMessage(other.getPostMessage()); + } + if (other.getEditMessage() != false) { + setEditMessage(other.getEditMessage()); + } + if (other.getDeleteMessage() != false) { + setDeleteMessage(other.getDeleteMessage()); + } + if (other.getPinMessage() != false) { + setPinMessage(other.getPinMessage()); + } + if (other.getAddMember() != false) { + setAddMember(other.getAddMember()); + } + if (other.getBanMember() != false) { + setBanMember(other.getBanMember()); + } + if (other.getGetMember() != false) { + setGetMember(other.getGetMember()); + } + if (other.getAddAdmin() != false) { + setAddAdmin(other.getAddAdmin()); + } + if (other.getAddStory() != false) { + setAddStory(other.getAddStory()); + } + if (other.getDeleteStory() != false) { + setDeleteStory(other.getDeleteStory()); + } + if (other.getShowStoryViews() != false) { + setShowStoryViews(other.getShowStoryViews()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomAccess parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomAccess) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private boolean modifyRoom_ ; /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ + @java.lang.Override public boolean getModifyRoom() { - return instance.getModifyRoom(); + return modifyRoom_; } /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @param value The modifyRoom to set. + * @return This builder for chaining. */ public Builder setModifyRoom(boolean value) { - copyOnWrite(); - instance.setModifyRoom(value); + + modifyRoom_ = value; + onChanged(); return this; } /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return This builder for chaining. */ public Builder clearModifyRoom() { - copyOnWrite(); - instance.clearModifyRoom(); + + modifyRoom_ = false; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.PostMessageRights postMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.PostMessageRights, net.iGap.proto.ProtoGlobal.PostMessageRights.Builder, net.iGap.proto.ProtoGlobal.PostMessageRightsOrBuilder> postMessageBuilder_; /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; + * @return Whether the postMessage field is set. */ public boolean hasPostMessage() { - return instance.hasPostMessage(); + return postMessageBuilder_ != null || postMessage_ != null; } /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; + * @return The postMessage. */ public net.iGap.proto.ProtoGlobal.PostMessageRights getPostMessage() { - return instance.getPostMessage(); + if (postMessageBuilder_ == null) { + return postMessage_ == null ? net.iGap.proto.ProtoGlobal.PostMessageRights.getDefaultInstance() : postMessage_; + } else { + return postMessageBuilder_.getMessage(); + } } /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; */ public Builder setPostMessage(net.iGap.proto.ProtoGlobal.PostMessageRights value) { - copyOnWrite(); - instance.setPostMessage(value); - return this; + if (postMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postMessage_ = value; + onChanged(); + } else { + postMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; */ public Builder setPostMessage( net.iGap.proto.ProtoGlobal.PostMessageRights.Builder builderForValue) { - copyOnWrite(); - instance.setPostMessage(builderForValue); + if (postMessageBuilder_ == null) { + postMessage_ = builderForValue.build(); + onChanged(); + } else { + postMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; */ public Builder mergePostMessage(net.iGap.proto.ProtoGlobal.PostMessageRights value) { - copyOnWrite(); - instance.mergePostMessage(value); + if (postMessageBuilder_ == null) { + if (postMessage_ != null) { + postMessage_ = + net.iGap.proto.ProtoGlobal.PostMessageRights.newBuilder(postMessage_).mergeFrom(value).buildPartial(); + } else { + postMessage_ = value; + } + onChanged(); + } else { + postMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.PostMessageRights post_message = 2; + * .proto.PostMessageRights post_message = 2; */ - public Builder clearPostMessage() { copyOnWrite(); - instance.clearPostMessage(); + public Builder clearPostMessage() { + if (postMessageBuilder_ == null) { + postMessage_ = null; + onChanged(); + } else { + postMessage_ = null; + postMessageBuilder_ = null; + } + return this; } + /** + * .proto.PostMessageRights post_message = 2; + */ + public net.iGap.proto.ProtoGlobal.PostMessageRights.Builder getPostMessageBuilder() { + + onChanged(); + return getPostMessageFieldBuilder().getBuilder(); + } + /** + * .proto.PostMessageRights post_message = 2; + */ + public net.iGap.proto.ProtoGlobal.PostMessageRightsOrBuilder getPostMessageOrBuilder() { + if (postMessageBuilder_ != null) { + return postMessageBuilder_.getMessageOrBuilder(); + } else { + return postMessage_ == null ? + net.iGap.proto.ProtoGlobal.PostMessageRights.getDefaultInstance() : postMessage_; + } + } + /** + * .proto.PostMessageRights post_message = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.PostMessageRights, net.iGap.proto.ProtoGlobal.PostMessageRights.Builder, net.iGap.proto.ProtoGlobal.PostMessageRightsOrBuilder> + getPostMessageFieldBuilder() { + if (postMessageBuilder_ == null) { + postMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.PostMessageRights, net.iGap.proto.ProtoGlobal.PostMessageRights.Builder, net.iGap.proto.ProtoGlobal.PostMessageRightsOrBuilder>( + getPostMessage(), + getParentForChildren(), + isClean()); + postMessage_ = null; + } + return postMessageBuilder_; + } + private boolean editMessage_ ; /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return The editMessage. */ + @java.lang.Override public boolean getEditMessage() { - return instance.getEditMessage(); + return editMessage_; } /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @param value The editMessage to set. + * @return This builder for chaining. */ public Builder setEditMessage(boolean value) { - copyOnWrite(); - instance.setEditMessage(value); + + editMessage_ = value; + onChanged(); return this; } /** - * optional bool edit_message = 3; + * bool edit_message = 3; + * @return This builder for chaining. */ public Builder clearEditMessage() { - copyOnWrite(); - instance.clearEditMessage(); + + editMessage_ = false; + onChanged(); return this; } + private boolean deleteMessage_ ; /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return The deleteMessage. */ + @java.lang.Override public boolean getDeleteMessage() { - return instance.getDeleteMessage(); + return deleteMessage_; } /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @param value The deleteMessage to set. + * @return This builder for chaining. */ public Builder setDeleteMessage(boolean value) { - copyOnWrite(); - instance.setDeleteMessage(value); + + deleteMessage_ = value; + onChanged(); return this; } /** - * optional bool delete_message = 4; + * bool delete_message = 4; + * @return This builder for chaining. */ public Builder clearDeleteMessage() { - copyOnWrite(); - instance.clearDeleteMessage(); + + deleteMessage_ = false; + onChanged(); return this; } + private boolean pinMessage_ ; /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { - return instance.getPinMessage(); + return pinMessage_; } /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @param value The pinMessage to set. + * @return This builder for chaining. */ public Builder setPinMessage(boolean value) { - copyOnWrite(); - instance.setPinMessage(value); + + pinMessage_ = value; + onChanged(); return this; } /** - * optional bool pin_message = 5; + * bool pin_message = 5; + * @return This builder for chaining. */ public Builder clearPinMessage() { - copyOnWrite(); - instance.clearPinMessage(); + + pinMessage_ = false; + onChanged(); return this; } + private boolean addMember_ ; /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { - return instance.getAddMember(); + return addMember_; } /** - * optional bool add_member = 6; + * bool add_member = 6; + * @param value The addMember to set. + * @return This builder for chaining. */ public Builder setAddMember(boolean value) { - copyOnWrite(); - instance.setAddMember(value); + + addMember_ = value; + onChanged(); return this; } /** - * optional bool add_member = 6; + * bool add_member = 6; + * @return This builder for chaining. */ public Builder clearAddMember() { - copyOnWrite(); - instance.clearAddMember(); + + addMember_ = false; + onChanged(); return this; } + private boolean banMember_ ; /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return The banMember. */ + @java.lang.Override public boolean getBanMember() { - return instance.getBanMember(); + return banMember_; } /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @param value The banMember to set. + * @return This builder for chaining. */ public Builder setBanMember(boolean value) { - copyOnWrite(); - instance.setBanMember(value); + + banMember_ = value; + onChanged(); return this; } /** - * optional bool ban_member = 7; + * bool ban_member = 7; + * @return This builder for chaining. */ public Builder clearBanMember() { - copyOnWrite(); - instance.clearBanMember(); + + banMember_ = false; + onChanged(); return this; } + private boolean getMember_ ; /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { - return instance.getGetMember(); + return getMember_; } /** - * optional bool get_member = 8; + * bool get_member = 8; + * @param value The getMember to set. + * @return This builder for chaining. */ public Builder setGetMember(boolean value) { - copyOnWrite(); - instance.setGetMember(value); + + getMember_ = value; + onChanged(); return this; } /** - * optional bool get_member = 8; + * bool get_member = 8; + * @return This builder for chaining. */ public Builder clearGetMember() { - copyOnWrite(); - instance.clearGetMember(); + + getMember_ = false; + onChanged(); return this; } + private boolean addAdmin_ ; /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return The addAdmin. */ + @java.lang.Override public boolean getAddAdmin() { - return instance.getAddAdmin(); + return addAdmin_; } /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @param value The addAdmin to set. + * @return This builder for chaining. */ public Builder setAddAdmin(boolean value) { - copyOnWrite(); - instance.setAddAdmin(value); + + addAdmin_ = value; + onChanged(); return this; } /** - * optional bool add_admin = 9; + * bool add_admin = 9; + * @return This builder for chaining. */ public Builder clearAddAdmin() { - copyOnWrite(); - instance.clearAddAdmin(); + + addAdmin_ = false; + onChanged(); return this; } + private boolean addStory_ ; /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return The addStory. */ + @java.lang.Override public boolean getAddStory() { - return instance.getAddStory(); + return addStory_; } /** - * optional bool add_story = 10; + * bool add_story = 10; + * @param value The addStory to set. + * @return This builder for chaining. */ public Builder setAddStory(boolean value) { - copyOnWrite(); - instance.setAddStory(value); + + addStory_ = value; + onChanged(); return this; } /** - * optional bool add_story = 10; + * bool add_story = 10; + * @return This builder for chaining. */ public Builder clearAddStory() { - copyOnWrite(); - instance.clearAddStory(); + + addStory_ = false; + onChanged(); return this; } + private boolean deleteStory_ ; /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return The deleteStory. */ + @java.lang.Override public boolean getDeleteStory() { - return instance.getDeleteStory(); + return deleteStory_; } /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @param value The deleteStory to set. + * @return This builder for chaining. */ public Builder setDeleteStory(boolean value) { - copyOnWrite(); - instance.setDeleteStory(value); + + deleteStory_ = value; + onChanged(); return this; } /** - * optional bool delete_story = 11; + * bool delete_story = 11; + * @return This builder for chaining. */ public Builder clearDeleteStory() { - copyOnWrite(); - instance.clearDeleteStory(); + + deleteStory_ = false; + onChanged(); return this; } + private boolean showStoryViews_ ; /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return The showStoryViews. */ + @java.lang.Override public boolean getShowStoryViews() { - return instance.getShowStoryViews(); + return showStoryViews_; } /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @param value The showStoryViews to set. + * @return This builder for chaining. */ public Builder setShowStoryViews(boolean value) { - copyOnWrite(); - instance.setShowStoryViews(value); + + showStoryViews_ = value; + onChanged(); return this; } /** - * optional bool show_story_views = 12; + * bool show_story_views = 12; + * @return This builder for chaining. */ public Builder clearShowStoryViews() { - copyOnWrite(); - instance.clearShowStoryViews(); + + showStoryViews_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomAccess) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomAccess(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomAccess other = (net.iGap.proto.ProtoGlobal.RoomAccess) arg1; - modifyRoom_ = visitor.visitBoolean(modifyRoom_ != false, modifyRoom_, - other.modifyRoom_ != false, other.modifyRoom_); - postMessage_ = visitor.visitMessage(postMessage_, other.postMessage_); - editMessage_ = visitor.visitBoolean(editMessage_ != false, editMessage_, - other.editMessage_ != false, other.editMessage_); - deleteMessage_ = visitor.visitBoolean(deleteMessage_ != false, deleteMessage_, - other.deleteMessage_ != false, other.deleteMessage_); - pinMessage_ = visitor.visitBoolean(pinMessage_ != false, pinMessage_, - other.pinMessage_ != false, other.pinMessage_); - addMember_ = visitor.visitBoolean(addMember_ != false, addMember_, - other.addMember_ != false, other.addMember_); - banMember_ = visitor.visitBoolean(banMember_ != false, banMember_, - other.banMember_ != false, other.banMember_); - getMember_ = visitor.visitBoolean(getMember_ != false, getMember_, - other.getMember_ != false, other.getMember_); - addAdmin_ = visitor.visitBoolean(addAdmin_ != false, addAdmin_, - other.addAdmin_ != false, other.addAdmin_); - addStory_ = visitor.visitBoolean(addStory_ != false, addStory_, - other.addStory_ != false, other.addStory_); - deleteStory_ = visitor.visitBoolean(deleteStory_ != false, deleteStory_, - other.deleteStory_ != false, other.deleteStory_); - showStoryViews_ = visitor.visitBoolean(showStoryViews_ != false, showStoryViews_, - other.showStoryViews_ != false, other.showStoryViews_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - modifyRoom_ = input.readBool(); - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.PostMessageRights.Builder subBuilder = null; - if (postMessage_ != null) { - subBuilder = postMessage_.toBuilder(); - } - postMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.PostMessageRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(postMessage_); - postMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - editMessage_ = input.readBool(); - break; - } - case 32: { - - deleteMessage_ = input.readBool(); - break; - } - case 40: { - - pinMessage_ = input.readBool(); - break; - } - case 48: { - - addMember_ = input.readBool(); - break; - } - case 56: { - - banMember_ = input.readBool(); - break; - } - case 64: { - - getMember_ = input.readBool(); - break; - } - case 72: { - - addAdmin_ = input.readBool(); - break; - } - case 80: { - - addStory_ = input.readBool(); - break; - } - case 88: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - deleteStory_ = input.readBool(); - break; - } - case 96: { - showStoryViews_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomAccess.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomAccess) } - // @@protoc_insertion_point(class_scope:proto.RoomAccess) private static final net.iGap.proto.ProtoGlobal.RoomAccess DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomAccess(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomAccess(); } public static net.iGap.proto.ProtoGlobal.RoomAccess getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomAccess parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomAccess(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomAccess getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface WallpaperOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Wallpaper) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.File file = 1; + * .proto.File file = 1; + * @return Whether the file field is set. */ boolean hasFile(); /** - * optional .proto.File file = 1; + * .proto.File file = 1; + * @return The file. */ net.iGap.proto.ProtoGlobal.File getFile(); + /** + * .proto.File file = 1; + */ + net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder(); + + /** + * string color = 2; + * @return The color. + */ + java.lang.String getColor(); + /** + * string color = 2; + * @return The bytes for color. + */ + com.google.protobuf.ByteString + getColorBytes(); + } + /** + * Protobuf type {@code proto.Wallpaper} + */ + public static final class Wallpaper extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.Wallpaper) + WallpaperOrBuilder { + private static final long serialVersionUID = 0L; + // Use Wallpaper.newBuilder() to construct. + private Wallpaper(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Wallpaper() { + color_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Wallpaper(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Wallpaper( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; + if (file_ != null) { + subBuilder = file_.toBuilder(); + } + file_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(file_); + file_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + color_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Wallpaper_descriptor; + } - /** - * optional string color = 2; - */ - java.lang.String getColor(); - /** - * optional string color = 2; - */ - com.google.protobuf.ByteString - getColorBytes(); - } - /** - * Protobuf type {@code proto.Wallpaper} - */ - public static final class Wallpaper extends - com.google.protobuf.GeneratedMessageLite< - Wallpaper, Wallpaper.Builder> implements - // @@protoc_insertion_point(message_implements:proto.Wallpaper) - WallpaperOrBuilder { - private Wallpaper() { - color_ = ""; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Wallpaper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Wallpaper.class, net.iGap.proto.ProtoGlobal.Wallpaper.Builder.class); } + public static final int FILE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoGlobal.File file_; /** - * optional .proto.File file = 1; + * .proto.File file = 1; + * @return Whether the file field is set. */ + @java.lang.Override public boolean hasFile() { return file_ != null; } /** - * optional .proto.File file = 1; + * .proto.File file = 1; + * @return The file. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.File getFile() { return file_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; } /** - * optional .proto.File file = 1; - */ - private void setFile(net.iGap.proto.ProtoGlobal.File value) { - if (value == null) { - throw new NullPointerException(); - } - file_ = value; - - } - /** - * optional .proto.File file = 1; - */ - private void setFile( - net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - file_ = builderForValue.build(); - - } - /** - * optional .proto.File file = 1; - */ - private void mergeFile(net.iGap.proto.ProtoGlobal.File value) { - if (file_ != null && - file_ != net.iGap.proto.ProtoGlobal.File.getDefaultInstance()) { - file_ = - net.iGap.proto.ProtoGlobal.File.newBuilder(file_).mergeFrom(value).buildPartial(); - } else { - file_ = value; - } - - } - /** - * optional .proto.File file = 1; + * .proto.File file = 1; */ - private void clearFile() { file_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder() { + return getFile(); } public static final int COLOR_FIELD_NUMBER = 2; - private java.lang.String color_; + private volatile java.lang.Object color_; /** - * optional string color = 2; + * string color = 2; + * @return The color. */ + @java.lang.Override public java.lang.String getColor() { - return color_; + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } } /** - * optional string color = 2; + * string color = 2; + * @return The bytes for color. */ + @java.lang.Override public com.google.protobuf.ByteString getColorBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(color_); - } - /** - * optional string color = 2; - */ - private void setColor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - color_ = value; - } - /** - * optional string color = 2; - */ - private void clearColor() { - - color_ = getDefaultInstance().getColor(); + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string color = 2; - */ - private void setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - color_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (file_ != null) { output.writeMessage(1, getFile()); } - if (!color_.isEmpty()) { - output.writeString(2, getColor()); + if (!getColorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, color_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -33273,364 +49242,689 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFile()); } - if (!color_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getColor()); + if (!getColorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, color_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Wallpaper)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Wallpaper other = (net.iGap.proto.ProtoGlobal.Wallpaper) obj; + + if (hasFile() != other.hasFile()) return false; + if (hasFile()) { + if (!getFile() + .equals(other.getFile())) return false; + } + if (!getColor() + .equals(other.getColor())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFile()) { + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + } + hash = (37 * hash) + COLOR_FIELD_NUMBER; + hash = (53 * hash) + getColor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Wallpaper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Wallpaper prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Wallpaper} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Wallpaper, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Wallpaper) net.iGap.proto.ProtoGlobal.WallpaperOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Wallpaper_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Wallpaper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Wallpaper.class, net.iGap.proto.ProtoGlobal.Wallpaper.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Wallpaper.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (fileBuilder_ == null) { + file_ = null; + } else { + file_ = null; + fileBuilder_ = null; + } + color_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Wallpaper_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Wallpaper getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Wallpaper.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Wallpaper build() { + net.iGap.proto.ProtoGlobal.Wallpaper result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Wallpaper buildPartial() { + net.iGap.proto.ProtoGlobal.Wallpaper result = new net.iGap.proto.ProtoGlobal.Wallpaper(this); + if (fileBuilder_ == null) { + result.file_ = file_; + } else { + result.file_ = fileBuilder_.build(); + } + result.color_ = color_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Wallpaper) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Wallpaper)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Wallpaper other) { + if (other == net.iGap.proto.ProtoGlobal.Wallpaper.getDefaultInstance()) return this; + if (other.hasFile()) { + mergeFile(other.getFile()); + } + if (!other.getColor().isEmpty()) { + color_ = other.color_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Wallpaper parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Wallpaper) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoGlobal.File file_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> fileBuilder_; /** - * optional .proto.File file = 1; + * .proto.File file = 1; + * @return Whether the file field is set. */ public boolean hasFile() { - return instance.hasFile(); + return fileBuilder_ != null || file_ != null; } /** - * optional .proto.File file = 1; + * .proto.File file = 1; + * @return The file. */ public net.iGap.proto.ProtoGlobal.File getFile() { - return instance.getFile(); + if (fileBuilder_ == null) { + return file_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; + } else { + return fileBuilder_.getMessage(); + } } /** - * optional .proto.File file = 1; + * .proto.File file = 1; */ public Builder setFile(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.setFile(value); - return this; + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + onChanged(); + } else { + fileBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.File file = 1; + * .proto.File file = 1; */ public Builder setFile( net.iGap.proto.ProtoGlobal.File.Builder builderForValue) { - copyOnWrite(); - instance.setFile(builderForValue); + if (fileBuilder_ == null) { + file_ = builderForValue.build(); + onChanged(); + } else { + fileBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.File file = 1; + * .proto.File file = 1; */ public Builder mergeFile(net.iGap.proto.ProtoGlobal.File value) { - copyOnWrite(); - instance.mergeFile(value); + if (fileBuilder_ == null) { + if (file_ != null) { + file_ = + net.iGap.proto.ProtoGlobal.File.newBuilder(file_).mergeFrom(value).buildPartial(); + } else { + file_ = value; + } + onChanged(); + } else { + fileBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.File file = 1; + * .proto.File file = 1; */ - public Builder clearFile() { copyOnWrite(); - instance.clearFile(); + public Builder clearFile() { + if (fileBuilder_ == null) { + file_ = null; + onChanged(); + } else { + file_ = null; + fileBuilder_ = null; + } + return this; } + /** + * .proto.File file = 1; + */ + public net.iGap.proto.ProtoGlobal.File.Builder getFileBuilder() { + + onChanged(); + return getFileFieldBuilder().getBuilder(); + } + /** + * .proto.File file = 1; + */ + public net.iGap.proto.ProtoGlobal.FileOrBuilder getFileOrBuilder() { + if (fileBuilder_ != null) { + return fileBuilder_.getMessageOrBuilder(); + } else { + return file_ == null ? + net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : file_; + } + } + /** + * .proto.File file = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder> + getFileFieldBuilder() { + if (fileBuilder_ == null) { + fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.File, net.iGap.proto.ProtoGlobal.File.Builder, net.iGap.proto.ProtoGlobal.FileOrBuilder>( + getFile(), + getParentForChildren(), + isClean()); + file_ = null; + } + return fileBuilder_; + } + private java.lang.Object color_ = ""; /** - * optional string color = 2; + * string color = 2; + * @return The color. */ public java.lang.String getColor() { - return instance.getColor(); + java.lang.Object ref = color_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string color = 2; + * string color = 2; + * @return The bytes for color. */ public com.google.protobuf.ByteString getColorBytes() { - return instance.getColorBytes(); + java.lang.Object ref = color_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string color = 2; + * string color = 2; + * @param value The color to set. + * @return This builder for chaining. */ public Builder setColor( java.lang.String value) { - copyOnWrite(); - instance.setColor(value); + if (value == null) { + throw new NullPointerException(); + } + + color_ = value; + onChanged(); return this; } /** - * optional string color = 2; + * string color = 2; + * @return This builder for chaining. */ public Builder clearColor() { - copyOnWrite(); - instance.clearColor(); + + color_ = getDefaultInstance().getColor(); + onChanged(); return this; } /** - * optional string color = 2; + * string color = 2; + * @param value The bytes for color to set. + * @return This builder for chaining. */ public Builder setColorBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setColorBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + color_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Wallpaper) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Wallpaper(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Wallpaper other = (net.iGap.proto.ProtoGlobal.Wallpaper) arg1; - file_ = visitor.visitMessage(file_, other.file_); - color_ = visitor.visitString(!color_.isEmpty(), color_, - !other.color_.isEmpty(), other.color_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoGlobal.File.Builder subBuilder = null; - if (file_ != null) { - subBuilder = file_.toBuilder(); - } - file_ = input.readMessage(net.iGap.proto.ProtoGlobal.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(file_); - file_ = subBuilder.buildPartial(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - color_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Wallpaper.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.Wallpaper) } - // @@protoc_insertion_point(class_scope:proto.Wallpaper) private static final net.iGap.proto.ProtoGlobal.Wallpaper DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Wallpaper(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Wallpaper(); } public static net.iGap.proto.ProtoGlobal.Wallpaper getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Wallpaper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Wallpaper(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Wallpaper getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface PaginationOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Pagination) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint32 offset = 1; + * uint32 offset = 1; + * @return The offset. */ int getOffset(); /** - * optional uint32 limit = 2; + * uint32 limit = 2; + * @return The limit. */ int getLimit(); } /** * Protobuf type {@code proto.Pagination} */ - public static final class Pagination extends - com.google.protobuf.GeneratedMessageLite< - Pagination, Pagination.Builder> implements + public static final class Pagination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Pagination) PaginationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Pagination.newBuilder() to construct. + private Pagination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Pagination() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Pagination(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Pagination( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + offset_ = input.readUInt32(); + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Pagination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Pagination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Pagination.class, net.iGap.proto.ProtoGlobal.Pagination.Builder.class); + } + public static final int OFFSET_FIELD_NUMBER = 1; private int offset_; /** - * optional uint32 offset = 1; + * uint32 offset = 1; + * @return The offset. */ + @java.lang.Override public int getOffset() { return offset_; } - /** - * optional uint32 offset = 1; - */ - private void setOffset(int value) { - - offset_ = value; - } - /** - * optional uint32 offset = 1; - */ - private void clearOffset() { - - offset_ = 0; - } public static final int LIMIT_FIELD_NUMBER = 2; private int limit_; /** - * optional uint32 limit = 2; + * uint32 limit = 2; + * @return The limit. */ + @java.lang.Override public int getLimit() { return limit_; } - /** - * optional uint32 limit = 2; - */ - private void setLimit(int value) { - - limit_ = value; - } - /** - * optional uint32 limit = 2; - */ - private void clearLimit() { - - limit_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (offset_ != 0) { @@ -33639,10 +49933,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (limit_ != 0) { output.writeUInt32(2, limit_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -33654,293 +49950,462 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, limit_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Pagination)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Pagination other = (net.iGap.proto.ProtoGlobal.Pagination) obj; + + if (getOffset() + != other.getOffset()) return false; + if (getLimit() + != other.getLimit()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Pagination parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Pagination parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Pagination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Pagination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Pagination} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Pagination, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Pagination) net.iGap.proto.ProtoGlobal.PaginationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Pagination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Pagination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Pagination.class, net.iGap.proto.ProtoGlobal.Pagination.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Pagination.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + offset_ = 0; + + limit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Pagination_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Pagination getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Pagination build() { + net.iGap.proto.ProtoGlobal.Pagination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Pagination buildPartial() { + net.iGap.proto.ProtoGlobal.Pagination result = new net.iGap.proto.ProtoGlobal.Pagination(this); + result.offset_ = offset_; + result.limit_ = limit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Pagination) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Pagination)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Pagination other) { + if (other == net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) return this; + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Pagination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Pagination) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int offset_ ; /** - * optional uint32 offset = 1; + * uint32 offset = 1; + * @return The offset. */ + @java.lang.Override public int getOffset() { - return instance.getOffset(); + return offset_; } /** - * optional uint32 offset = 1; + * uint32 offset = 1; + * @param value The offset to set. + * @return This builder for chaining. */ public Builder setOffset(int value) { - copyOnWrite(); - instance.setOffset(value); + + offset_ = value; + onChanged(); return this; } /** - * optional uint32 offset = 1; + * uint32 offset = 1; + * @return This builder for chaining. */ public Builder clearOffset() { - copyOnWrite(); - instance.clearOffset(); + + offset_ = 0; + onChanged(); return this; } + private int limit_ ; /** - * optional uint32 limit = 2; + * uint32 limit = 2; + * @return The limit. */ + @java.lang.Override public int getLimit() { - return instance.getLimit(); + return limit_; } /** - * optional uint32 limit = 2; + * uint32 limit = 2; + * @param value The limit to set. + * @return This builder for chaining. */ public Builder setLimit(int value) { - copyOnWrite(); - instance.setLimit(value); + + limit_ = value; + onChanged(); return this; } /** - * optional uint32 limit = 2; + * uint32 limit = 2; + * @return This builder for chaining. */ public Builder clearLimit() { - copyOnWrite(); - instance.clearLimit(); + + limit_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Pagination) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Pagination(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Pagination other = (net.iGap.proto.ProtoGlobal.Pagination) arg1; - offset_ = visitor.visitInt(offset_ != 0, offset_, - other.offset_ != 0, other.offset_); - limit_ = visitor.visitInt(limit_ != 0, limit_, - other.limit_ != 0, other.limit_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - offset_ = input.readUInt32(); - break; - } - case 16: { - limit_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Pagination.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.Pagination) } - // @@protoc_insertion_point(class_scope:proto.Pagination) private static final net.iGap.proto.ProtoGlobal.Pagination DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Pagination(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Pagination(); } public static net.iGap.proto.ProtoGlobal.Pagination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Pagination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Pagination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Pagination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface FavoriteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Favorite) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string name = 1; + * string name = 1; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 1; + * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string textcolor = 2; + * string textcolor = 2; + * @return The textcolor. */ java.lang.String getTextcolor(); /** - * optional string textcolor = 2; + * string textcolor = 2; + * @return The bytes for textcolor. */ com.google.protobuf.ByteString getTextcolorBytes(); /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @return The bgcolor. */ java.lang.String getBgcolor(); /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @return The bytes for bgcolor. */ com.google.protobuf.ByteString getBgcolorBytes(); /** - * optional string value = 4; + * string value = 4; + * @return The value. */ java.lang.String getValue(); /** - * optional string value = 4; + * string value = 4; + * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** - * optional string image = 5; + * string image = 5; + * @return The image. */ java.lang.String getImage(); /** - * optional string image = 5; + * string image = 5; + * @return The bytes for image. */ com.google.protobuf.ByteString getImageBytes(); @@ -33948,11 +50413,15 @@ public interface FavoriteOrBuilder extends /** * Protobuf type {@code proto.Favorite} */ - public static final class Favorite extends - com.google.protobuf.GeneratedMessageLite< - Favorite, Favorite.Builder> implements + public static final class Favorite extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Favorite) FavoriteOrBuilder { + private static final long serialVersionUID = 0L; + // Use Favorite.newBuilder() to construct. + private Favorite(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Favorite() { name_ = ""; textcolor_ = ""; @@ -33960,766 +50429,1174 @@ private Favorite() { value_ = ""; image_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Favorite(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Favorite( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + textcolor_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + bgcolor_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Favorite_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Favorite_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Favorite.class, net.iGap.proto.ProtoGlobal.Favorite.Builder.class); + } + public static final int NAME_FIELD_NUMBER = 1; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 1; + * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 1; + * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 1; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 1; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 1; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TEXTCOLOR_FIELD_NUMBER = 2; - private java.lang.String textcolor_; + private volatile java.lang.Object textcolor_; /** - * optional string textcolor = 2; + * string textcolor = 2; + * @return The textcolor. */ + @java.lang.Override public java.lang.String getTextcolor() { - return textcolor_; + java.lang.Object ref = textcolor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textcolor_ = s; + return s; + } } /** - * optional string textcolor = 2; + * string textcolor = 2; + * @return The bytes for textcolor. */ + @java.lang.Override public com.google.protobuf.ByteString getTextcolorBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(textcolor_); - } - /** - * optional string textcolor = 2; - */ - private void setTextcolor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - textcolor_ = value; - } - /** - * optional string textcolor = 2; - */ - private void clearTextcolor() { - - textcolor_ = getDefaultInstance().getTextcolor(); - } - /** - * optional string textcolor = 2; - */ - private void setTextcolorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - textcolor_ = value.toStringUtf8(); + java.lang.Object ref = textcolor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + textcolor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BGCOLOR_FIELD_NUMBER = 3; - private java.lang.String bgcolor_; + private volatile java.lang.Object bgcolor_; /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @return The bgcolor. */ + @java.lang.Override public java.lang.String getBgcolor() { - return bgcolor_; + java.lang.Object ref = bgcolor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bgcolor_ = s; + return s; + } } /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @return The bytes for bgcolor. */ + @java.lang.Override public com.google.protobuf.ByteString getBgcolorBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(bgcolor_); - } - /** - * optional string bgcolor = 3; - */ - private void setBgcolor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bgcolor_ = value; - } - /** - * optional string bgcolor = 3; - */ - private void clearBgcolor() { - - bgcolor_ = getDefaultInstance().getBgcolor(); - } - /** - * optional string bgcolor = 3; - */ - private void setBgcolorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bgcolor_ = value.toStringUtf8(); + java.lang.Object ref = bgcolor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bgcolor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VALUE_FIELD_NUMBER = 4; - private java.lang.String value_; + private volatile java.lang.Object value_; /** - * optional string value = 4; + * string value = 4; + * @return The value. */ + @java.lang.Override public java.lang.String getValue() { - return value_; + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } } /** - * optional string value = 4; + * string value = 4; + * @return The bytes for value. */ + @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(value_); - } - /** - * optional string value = 4; - */ - private void setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - } - /** - * optional string value = 4; - */ - private void clearValue() { - - value_ = getDefaultInstance().getValue(); - } - /** - * optional string value = 4; - */ - private void setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value.toStringUtf8(); + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int IMAGE_FIELD_NUMBER = 5; - private java.lang.String image_; + private volatile java.lang.Object image_; /** - * optional string image = 5; + * string image = 5; + * @return The image. */ + @java.lang.Override public java.lang.String getImage() { - return image_; + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } } /** - * optional string image = 5; + * string image = 5; + * @return The bytes for image. */ + @java.lang.Override public com.google.protobuf.ByteString getImageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(image_); - } - /** - * optional string image = 5; - */ - private void setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - } - /** - * optional string image = 5; - */ - private void clearImage() { - - image_ = getDefaultInstance().getImage(); + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string image = 5; - */ - private void setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!name_.isEmpty()) { - output.writeString(1, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!textcolor_.isEmpty()) { - output.writeString(2, getTextcolor()); + if (!getTextcolorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, textcolor_); } - if (!bgcolor_.isEmpty()) { - output.writeString(3, getBgcolor()); + if (!getBgcolorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bgcolor_); } - if (!value_.isEmpty()) { - output.writeString(4, getValue()); + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); } - if (!image_.isEmpty()) { - output.writeString(5, getImage()); + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, image_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!textcolor_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getTextcolor()); + if (!getTextcolorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, textcolor_); } - if (!bgcolor_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getBgcolor()); + if (!getBgcolorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bgcolor_); } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getValue()); + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); } - if (!image_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getImage()); + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, image_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Favorite)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Favorite other = (net.iGap.proto.ProtoGlobal.Favorite) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getTextcolor() + .equals(other.getTextcolor())) return false; + if (!getBgcolor() + .equals(other.getBgcolor())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getImage() + .equals(other.getImage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TEXTCOLOR_FIELD_NUMBER; + hash = (53 * hash) + getTextcolor().hashCode(); + hash = (37 * hash) + BGCOLOR_FIELD_NUMBER; + hash = (53 * hash) + getBgcolor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Favorite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Favorite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Favorite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Favorite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Favorite} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Favorite, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Favorite) net.iGap.proto.ProtoGlobal.FavoriteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Favorite_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Favorite_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Favorite.class, net.iGap.proto.ProtoGlobal.Favorite.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Favorite.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + textcolor_ = ""; + + bgcolor_ = ""; + + value_ = ""; + + image_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Favorite_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Favorite getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Favorite.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Favorite build() { + net.iGap.proto.ProtoGlobal.Favorite result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Favorite buildPartial() { + net.iGap.proto.ProtoGlobal.Favorite result = new net.iGap.proto.ProtoGlobal.Favorite(this); + result.name_ = name_; + result.textcolor_ = textcolor_; + result.bgcolor_ = bgcolor_; + result.value_ = value_; + result.image_ = image_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Favorite) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Favorite)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Favorite other) { + if (other == net.iGap.proto.ProtoGlobal.Favorite.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getTextcolor().isEmpty()) { + textcolor_ = other.textcolor_; + onChanged(); + } + if (!other.getBgcolor().isEmpty()) { + bgcolor_ = other.bgcolor_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Favorite parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Favorite) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; /** - * optional string name = 1; + * string name = 1; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 1; + * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 1; + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 1; + * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 1; + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object textcolor_ = ""; /** - * optional string textcolor = 2; + * string textcolor = 2; + * @return The textcolor. */ public java.lang.String getTextcolor() { - return instance.getTextcolor(); + java.lang.Object ref = textcolor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textcolor_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string textcolor = 2; + * string textcolor = 2; + * @return The bytes for textcolor. */ public com.google.protobuf.ByteString getTextcolorBytes() { - return instance.getTextcolorBytes(); + java.lang.Object ref = textcolor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + textcolor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string textcolor = 2; + * string textcolor = 2; + * @param value The textcolor to set. + * @return This builder for chaining. */ public Builder setTextcolor( java.lang.String value) { - copyOnWrite(); - instance.setTextcolor(value); + if (value == null) { + throw new NullPointerException(); + } + + textcolor_ = value; + onChanged(); return this; } /** - * optional string textcolor = 2; + * string textcolor = 2; + * @return This builder for chaining. */ public Builder clearTextcolor() { - copyOnWrite(); - instance.clearTextcolor(); + + textcolor_ = getDefaultInstance().getTextcolor(); + onChanged(); return this; } /** - * optional string textcolor = 2; + * string textcolor = 2; + * @param value The bytes for textcolor to set. + * @return This builder for chaining. */ public Builder setTextcolorBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTextcolorBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + textcolor_ = value; + onChanged(); return this; } + private java.lang.Object bgcolor_ = ""; /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @return The bgcolor. */ public java.lang.String getBgcolor() { - return instance.getBgcolor(); + java.lang.Object ref = bgcolor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bgcolor_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @return The bytes for bgcolor. */ public com.google.protobuf.ByteString getBgcolorBytes() { - return instance.getBgcolorBytes(); + java.lang.Object ref = bgcolor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bgcolor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @param value The bgcolor to set. + * @return This builder for chaining. */ public Builder setBgcolor( java.lang.String value) { - copyOnWrite(); - instance.setBgcolor(value); + if (value == null) { + throw new NullPointerException(); + } + + bgcolor_ = value; + onChanged(); return this; } /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @return This builder for chaining. */ public Builder clearBgcolor() { - copyOnWrite(); - instance.clearBgcolor(); + + bgcolor_ = getDefaultInstance().getBgcolor(); + onChanged(); return this; } /** - * optional string bgcolor = 3; + * string bgcolor = 3; + * @param value The bytes for bgcolor to set. + * @return This builder for chaining. */ public Builder setBgcolorBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBgcolorBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bgcolor_ = value; + onChanged(); return this; } + private java.lang.Object value_ = ""; /** - * optional string value = 4; + * string value = 4; + * @return The value. */ public java.lang.String getValue() { - return instance.getValue(); + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string value = 4; + * string value = 4; + * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { - return instance.getValueBytes(); + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string value = 4; + * string value = 4; + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { - copyOnWrite(); - instance.setValue(value); + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); return this; } /** - * optional string value = 4; + * string value = 4; + * @return This builder for chaining. */ public Builder clearValue() { - copyOnWrite(); - instance.clearValue(); + + value_ = getDefaultInstance().getValue(); + onChanged(); return this; } /** - * optional string value = 4; + * string value = 4; + * @param value The bytes for value to set. + * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setValueBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); return this; } + private java.lang.Object image_ = ""; /** - * optional string image = 5; + * string image = 5; + * @return The image. */ public java.lang.String getImage() { - return instance.getImage(); + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string image = 5; + * string image = 5; + * @return The bytes for image. */ public com.google.protobuf.ByteString getImageBytes() { - return instance.getImageBytes(); + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string image = 5; + * string image = 5; + * @param value The image to set. + * @return This builder for chaining. */ public Builder setImage( java.lang.String value) { - copyOnWrite(); - instance.setImage(value); + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); return this; } /** - * optional string image = 5; + * string image = 5; + * @return This builder for chaining. */ public Builder clearImage() { - copyOnWrite(); - instance.clearImage(); + + image_ = getDefaultInstance().getImage(); + onChanged(); return this; } /** - * optional string image = 5; + * string image = 5; + * @param value The bytes for image to set. + * @return This builder for chaining. */ public Builder setImageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setImageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Favorite) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Favorite(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Favorite other = (net.iGap.proto.ProtoGlobal.Favorite) arg1; - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - textcolor_ = visitor.visitString(!textcolor_.isEmpty(), textcolor_, - !other.textcolor_.isEmpty(), other.textcolor_); - bgcolor_ = visitor.visitString(!bgcolor_.isEmpty(), bgcolor_, - !other.bgcolor_.isEmpty(), other.bgcolor_); - value_ = visitor.visitString(!value_.isEmpty(), value_, - !other.value_.isEmpty(), other.value_); - image_ = visitor.visitString(!image_.isEmpty(), image_, - !other.image_.isEmpty(), other.image_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - textcolor_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - bgcolor_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - value_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - image_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Favorite.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.Favorite) } - // @@protoc_insertion_point(class_scope:proto.Favorite) private static final net.iGap.proto.ProtoGlobal.Favorite DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Favorite(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Favorite(); } public static net.iGap.proto.ProtoGlobal.Favorite getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Favorite parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Favorite(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Favorite getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface DiscoveryFieldOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.DiscoveryField) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The imageurl. */ java.lang.String getImageurl(); /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The bytes for imageurl. */ com.google.protobuf.ByteString getImageurlBytes(); /** - * optional string value = 2; + * string value = 2; + * @return The value. */ java.lang.String getValue(); /** - * optional string value = 2; + * string value = 2; + * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @return The enum numeric value on the wire for actiontype. */ int getActiontypeValue(); /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @return The actiontype. */ net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType getActiontype(); /** - * optional uint32 orderid = 4; + * uint32 orderid = 4; + * @return The orderid. */ int getOrderid(); /** - * optional uint32 id = 5; + * uint32 id = 5; + * @return The id. */ int getId(); /** - * optional string param = 6; + * string param = 6; + * @return The param. */ java.lang.String getParam(); /** - * optional string param = 6; + * string param = 6; + * @return The bytes for param. */ com.google.protobuf.ByteString getParamBytes(); /** - * optional bool agreement = 7; + * bool agreement = 7; + * @return The agreement. */ boolean getAgreement(); /** - * optional bool refresh = 8; + * bool refresh = 8; + * @return The refresh. */ boolean getRefresh(); /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @return The agreementSlug. */ java.lang.String getAgreementSlug(); /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @return The bytes for agreementSlug. */ com.google.protobuf.ByteString getAgreementSlugBytes(); @@ -34727,22 +51604,140 @@ public interface DiscoveryFieldOrBuilder extends /** * Protobuf type {@code proto.DiscoveryField} */ - public static final class DiscoveryField extends - com.google.protobuf.GeneratedMessageLite< - DiscoveryField, DiscoveryField.Builder> implements + public static final class DiscoveryField extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.DiscoveryField) DiscoveryFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoveryField.newBuilder() to construct. + private DiscoveryField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private DiscoveryField() { imageurl_ = ""; value_ = ""; + actiontype_ = 0; param_ = ""; agreementSlug_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DiscoveryField(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DiscoveryField( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + imageurl_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + actiontype_ = rawValue; + break; + } + case 32: { + + orderid_ = input.readUInt32(); + break; + } + case 40: { + + id_ = input.readUInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + param_ = s; + break; + } + case 56: { + + agreement_ = input.readBool(); + break; + } + case 64: { + + refresh_ = input.readBool(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + agreementSlug_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_DiscoveryField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_DiscoveryField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.DiscoveryField.class, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder.class); + } + /** * Protobuf enum {@code proto.DiscoveryField.ButtonActionType} */ public enum ButtonActionType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 0; */ @@ -35117,10 +52112,16 @@ public enum ButtonActionType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -35128,6 +52129,10 @@ public static ButtonActionType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ButtonActionType forNumber(int value) { switch (value) { case 0: return NONE; @@ -35192,6 +52197,37 @@ public ButtonActionType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.DiscoveryField.getDescriptor().getEnumTypes().get(0); + } + + private static final ButtonActionType[] VALUES = values(); + + public static ButtonActionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private ButtonActionType(int value) { @@ -35202,327 +52238,239 @@ private ButtonActionType(int value) { } public static final int IMAGEURL_FIELD_NUMBER = 1; - private java.lang.String imageurl_; + private volatile java.lang.Object imageurl_; /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The imageurl. */ + @java.lang.Override public java.lang.String getImageurl() { - return imageurl_; + java.lang.Object ref = imageurl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageurl_ = s; + return s; + } } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The bytes for imageurl. */ + @java.lang.Override public com.google.protobuf.ByteString getImageurlBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(imageurl_); - } - /** - * optional string imageurl = 1; - */ - private void setImageurl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageurl_ = value; - } - /** - * optional string imageurl = 1; - */ - private void clearImageurl() { - - imageurl_ = getDefaultInstance().getImageurl(); - } - /** - * optional string imageurl = 1; - */ - private void setImageurlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageurl_ = value.toStringUtf8(); + java.lang.Object ref = imageurl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageurl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VALUE_FIELD_NUMBER = 2; - private java.lang.String value_; + private volatile java.lang.Object value_; /** - * optional string value = 2; + * string value = 2; + * @return The value. */ + @java.lang.Override public java.lang.String getValue() { - return value_; + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } } /** - * optional string value = 2; + * string value = 2; + * @return The bytes for value. */ + @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(value_); - } - /** - * optional string value = 2; - */ - private void setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - } - /** - * optional string value = 2; - */ - private void clearValue() { - - value_ = getDefaultInstance().getValue(); - } - /** - * optional string value = 2; - */ - private void setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value.toStringUtf8(); + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ACTIONTYPE_FIELD_NUMBER = 3; private int actiontype_; /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @return The enum numeric value on the wire for actiontype. */ - public int getActiontypeValue() { + @java.lang.Override public int getActiontypeValue() { return actiontype_; } /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @return The actiontype. */ - public net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType getActiontype() { - net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType result = net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType.forNumber(actiontype_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType getActiontype() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType result = net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType.valueOf(actiontype_); return result == null ? net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType.UNRECOGNIZED : result; } - /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; - */ - private void setActiontypeValue(int value) { - actiontype_ = value; - } - /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; - */ - private void setActiontype(net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType value) { - if (value == null) { - throw new NullPointerException(); - } - - actiontype_ = value.getNumber(); - } - /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; - */ - private void clearActiontype() { - - actiontype_ = 0; - } public static final int ORDERID_FIELD_NUMBER = 4; private int orderid_; /** - * optional uint32 orderid = 4; + * uint32 orderid = 4; + * @return The orderid. */ + @java.lang.Override public int getOrderid() { return orderid_; } - /** - * optional uint32 orderid = 4; - */ - private void setOrderid(int value) { - - orderid_ = value; - } - /** - * optional uint32 orderid = 4; - */ - private void clearOrderid() { - - orderid_ = 0; - } public static final int ID_FIELD_NUMBER = 5; private int id_; /** - * optional uint32 id = 5; + * uint32 id = 5; + * @return The id. */ + @java.lang.Override public int getId() { return id_; } - /** - * optional uint32 id = 5; - */ - private void setId(int value) { - - id_ = value; - } - /** - * optional uint32 id = 5; - */ - private void clearId() { - - id_ = 0; - } public static final int PARAM_FIELD_NUMBER = 6; - private java.lang.String param_; + private volatile java.lang.Object param_; /** - * optional string param = 6; + * string param = 6; + * @return The param. */ + @java.lang.Override public java.lang.String getParam() { - return param_; + java.lang.Object ref = param_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + param_ = s; + return s; + } } /** - * optional string param = 6; + * string param = 6; + * @return The bytes for param. */ + @java.lang.Override public com.google.protobuf.ByteString getParamBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(param_); - } - /** - * optional string param = 6; - */ - private void setParam( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - param_ = value; - } - /** - * optional string param = 6; - */ - private void clearParam() { - - param_ = getDefaultInstance().getParam(); - } - /** - * optional string param = 6; - */ - private void setParamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - param_ = value.toStringUtf8(); + java.lang.Object ref = param_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + param_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int AGREEMENT_FIELD_NUMBER = 7; private boolean agreement_; /** - * optional bool agreement = 7; + * bool agreement = 7; + * @return The agreement. */ + @java.lang.Override public boolean getAgreement() { return agreement_; } - /** - * optional bool agreement = 7; - */ - private void setAgreement(boolean value) { - - agreement_ = value; - } - /** - * optional bool agreement = 7; - */ - private void clearAgreement() { - - agreement_ = false; - } public static final int REFRESH_FIELD_NUMBER = 8; private boolean refresh_; /** - * optional bool refresh = 8; + * bool refresh = 8; + * @return The refresh. */ + @java.lang.Override public boolean getRefresh() { return refresh_; } - /** - * optional bool refresh = 8; - */ - private void setRefresh(boolean value) { - - refresh_ = value; - } - /** - * optional bool refresh = 8; - */ - private void clearRefresh() { - - refresh_ = false; - } public static final int AGREEMENTSLUG_FIELD_NUMBER = 9; - private java.lang.String agreementSlug_; + private volatile java.lang.Object agreementSlug_; /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @return The agreementSlug. */ + @java.lang.Override public java.lang.String getAgreementSlug() { - return agreementSlug_; + java.lang.Object ref = agreementSlug_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agreementSlug_ = s; + return s; + } } /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @return The bytes for agreementSlug. */ + @java.lang.Override public com.google.protobuf.ByteString getAgreementSlugBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(agreementSlug_); - } - /** - * optional string agreementSlug = 9; - */ - private void setAgreementSlug( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - agreementSlug_ = value; - } - /** - * optional string agreementSlug = 9; - */ - private void clearAgreementSlug() { - - agreementSlug_ = getDefaultInstance().getAgreementSlug(); + java.lang.Object ref = agreementSlug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agreementSlug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string agreementSlug = 9; - */ - private void setAgreementSlugBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - agreementSlug_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!imageurl_.isEmpty()) { - output.writeString(1, getImageurl()); + if (!getImageurlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageurl_); } - if (!value_.isEmpty()) { - output.writeString(2, getValue()); + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (actiontype_ != net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType.NONE.getNumber()) { output.writeEnum(3, actiontype_); @@ -35533,8 +52481,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (id_ != 0) { output.writeUInt32(5, id_); } - if (!param_.isEmpty()) { - output.writeString(6, getParam()); + if (!getParamBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, param_); } if (agreement_ != false) { output.writeBool(7, agreement_); @@ -35542,23 +52490,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (refresh_ != false) { output.writeBool(8, refresh_); } - if (!agreementSlug_.isEmpty()) { - output.writeString(9, getAgreementSlug()); + if (!getAgreementSlugBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, agreementSlug_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!imageurl_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getImageurl()); + if (!getImageurlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageurl_); } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getValue()); + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (actiontype_ != net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -35572,9 +52520,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, id_); } - if (!param_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getParam()); + if (!getParamBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, param_); } if (agreement_ != false) { size += com.google.protobuf.CodedOutputStream @@ -35584,562 +52531,923 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, refresh_); } - if (!agreementSlug_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getAgreementSlug()); + if (!getAgreementSlugBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, agreementSlug_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } - + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.DiscoveryField)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.DiscoveryField other = (net.iGap.proto.ProtoGlobal.DiscoveryField) obj; + + if (!getImageurl() + .equals(other.getImageurl())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (actiontype_ != other.actiontype_) return false; + if (getOrderid() + != other.getOrderid()) return false; + if (getId() + != other.getId()) return false; + if (!getParam() + .equals(other.getParam())) return false; + if (getAgreement() + != other.getAgreement()) return false; + if (getRefresh() + != other.getRefresh()) return false; + if (!getAgreementSlug() + .equals(other.getAgreementSlug())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMAGEURL_FIELD_NUMBER; + hash = (53 * hash) + getImageurl().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + ACTIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + actiontype_; + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + getOrderid(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + hash = (37 * hash) + PARAM_FIELD_NUMBER; + hash = (53 * hash) + getParam().hashCode(); + hash = (37 * hash) + AGREEMENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAgreement()); + hash = (37 * hash) + REFRESH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRefresh()); + hash = (37 * hash) + AGREEMENTSLUG_FIELD_NUMBER; + hash = (53 * hash) + getAgreementSlug().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.DiscoveryField parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.DiscoveryField prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.DiscoveryField} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.DiscoveryField, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.DiscoveryField) net.iGap.proto.ProtoGlobal.DiscoveryFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_DiscoveryField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_DiscoveryField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.DiscoveryField.class, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.DiscoveryField.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + imageurl_ = ""; + + value_ = ""; + + actiontype_ = 0; + + orderid_ = 0; + + id_ = 0; + + param_ = ""; + + agreement_ = false; + + refresh_ = false; + + agreementSlug_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_DiscoveryField_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.DiscoveryField getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.DiscoveryField.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.DiscoveryField build() { + net.iGap.proto.ProtoGlobal.DiscoveryField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.DiscoveryField buildPartial() { + net.iGap.proto.ProtoGlobal.DiscoveryField result = new net.iGap.proto.ProtoGlobal.DiscoveryField(this); + result.imageurl_ = imageurl_; + result.value_ = value_; + result.actiontype_ = actiontype_; + result.orderid_ = orderid_; + result.id_ = id_; + result.param_ = param_; + result.agreement_ = agreement_; + result.refresh_ = refresh_; + result.agreementSlug_ = agreementSlug_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.DiscoveryField) { + return mergeFrom((net.iGap.proto.ProtoGlobal.DiscoveryField)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.DiscoveryField other) { + if (other == net.iGap.proto.ProtoGlobal.DiscoveryField.getDefaultInstance()) return this; + if (!other.getImageurl().isEmpty()) { + imageurl_ = other.imageurl_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.actiontype_ != 0) { + setActiontypeValue(other.getActiontypeValue()); + } + if (other.getOrderid() != 0) { + setOrderid(other.getOrderid()); + } + if (other.getId() != 0) { + setId(other.getId()); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + if (other.getAgreement() != false) { + setAgreement(other.getAgreement()); + } + if (other.getRefresh() != false) { + setRefresh(other.getRefresh()); + } + if (!other.getAgreementSlug().isEmpty()) { + agreementSlug_ = other.agreementSlug_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.DiscoveryField parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.DiscoveryField) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object imageurl_ = ""; /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The imageurl. */ public java.lang.String getImageurl() { - return instance.getImageurl(); + java.lang.Object ref = imageurl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageurl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The bytes for imageurl. */ public com.google.protobuf.ByteString getImageurlBytes() { - return instance.getImageurlBytes(); + java.lang.Object ref = imageurl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageurl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @param value The imageurl to set. + * @return This builder for chaining. */ public Builder setImageurl( java.lang.String value) { - copyOnWrite(); - instance.setImageurl(value); + if (value == null) { + throw new NullPointerException(); + } + + imageurl_ = value; + onChanged(); return this; } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return This builder for chaining. */ public Builder clearImageurl() { - copyOnWrite(); - instance.clearImageurl(); + + imageurl_ = getDefaultInstance().getImageurl(); + onChanged(); return this; } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @param value The bytes for imageurl to set. + * @return This builder for chaining. */ public Builder setImageurlBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setImageurlBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageurl_ = value; + onChanged(); return this; } + private java.lang.Object value_ = ""; /** - * optional string value = 2; + * string value = 2; + * @return The value. */ public java.lang.String getValue() { - return instance.getValue(); + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string value = 2; + * string value = 2; + * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { - return instance.getValueBytes(); + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string value = 2; + * string value = 2; + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { - copyOnWrite(); - instance.setValue(value); + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); return this; } /** - * optional string value = 2; + * string value = 2; + * @return This builder for chaining. */ public Builder clearValue() { - copyOnWrite(); - instance.clearValue(); + + value_ = getDefaultInstance().getValue(); + onChanged(); return this; } /** - * optional string value = 2; + * string value = 2; + * @param value The bytes for value to set. + * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setValueBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); return this; } + private int actiontype_ = 0; /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @return The enum numeric value on the wire for actiontype. */ - public int getActiontypeValue() { - return instance.getActiontypeValue(); + @java.lang.Override public int getActiontypeValue() { + return actiontype_; } /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @param value The enum numeric value on the wire for actiontype to set. + * @return This builder for chaining. */ public Builder setActiontypeValue(int value) { - copyOnWrite(); - instance.setActiontypeValue(value); + + actiontype_ = value; + onChanged(); return this; } /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @return The actiontype. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType getActiontype() { - return instance.getActiontype(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType result = net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType.valueOf(actiontype_); + return result == null ? net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType.UNRECOGNIZED : result; } /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @param value The actiontype to set. + * @return This builder for chaining. */ public Builder setActiontype(net.iGap.proto.ProtoGlobal.DiscoveryField.ButtonActionType value) { - copyOnWrite(); - instance.setActiontype(value); + if (value == null) { + throw new NullPointerException(); + } + + actiontype_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.DiscoveryField.ButtonActionType actiontype = 3; + * .proto.DiscoveryField.ButtonActionType actiontype = 3; + * @return This builder for chaining. */ public Builder clearActiontype() { - copyOnWrite(); - instance.clearActiontype(); + + actiontype_ = 0; + onChanged(); return this; } + private int orderid_ ; /** - * optional uint32 orderid = 4; + * uint32 orderid = 4; + * @return The orderid. */ + @java.lang.Override public int getOrderid() { - return instance.getOrderid(); + return orderid_; } /** - * optional uint32 orderid = 4; + * uint32 orderid = 4; + * @param value The orderid to set. + * @return This builder for chaining. */ public Builder setOrderid(int value) { - copyOnWrite(); - instance.setOrderid(value); + + orderid_ = value; + onChanged(); return this; } /** - * optional uint32 orderid = 4; + * uint32 orderid = 4; + * @return This builder for chaining. */ public Builder clearOrderid() { - copyOnWrite(); - instance.clearOrderid(); + + orderid_ = 0; + onChanged(); return this; } + private int id_ ; /** - * optional uint32 id = 5; + * uint32 id = 5; + * @return The id. */ + @java.lang.Override public int getId() { - return instance.getId(); + return id_; } /** - * optional uint32 id = 5; + * uint32 id = 5; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(int value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint32 id = 5; + * uint32 id = 5; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0; + onChanged(); return this; } + private java.lang.Object param_ = ""; /** - * optional string param = 6; + * string param = 6; + * @return The param. */ public java.lang.String getParam() { - return instance.getParam(); + java.lang.Object ref = param_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + param_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string param = 6; + * string param = 6; + * @return The bytes for param. */ public com.google.protobuf.ByteString getParamBytes() { - return instance.getParamBytes(); + java.lang.Object ref = param_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + param_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string param = 6; + * string param = 6; + * @param value The param to set. + * @return This builder for chaining. */ public Builder setParam( java.lang.String value) { - copyOnWrite(); - instance.setParam(value); + if (value == null) { + throw new NullPointerException(); + } + + param_ = value; + onChanged(); return this; } /** - * optional string param = 6; + * string param = 6; + * @return This builder for chaining. */ public Builder clearParam() { - copyOnWrite(); - instance.clearParam(); + + param_ = getDefaultInstance().getParam(); + onChanged(); return this; } /** - * optional string param = 6; + * string param = 6; + * @param value The bytes for param to set. + * @return This builder for chaining. */ public Builder setParamBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setParamBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + param_ = value; + onChanged(); return this; } + private boolean agreement_ ; /** - * optional bool agreement = 7; + * bool agreement = 7; + * @return The agreement. */ + @java.lang.Override public boolean getAgreement() { - return instance.getAgreement(); + return agreement_; } /** - * optional bool agreement = 7; + * bool agreement = 7; + * @param value The agreement to set. + * @return This builder for chaining. */ public Builder setAgreement(boolean value) { - copyOnWrite(); - instance.setAgreement(value); + + agreement_ = value; + onChanged(); return this; } /** - * optional bool agreement = 7; + * bool agreement = 7; + * @return This builder for chaining. */ public Builder clearAgreement() { - copyOnWrite(); - instance.clearAgreement(); + + agreement_ = false; + onChanged(); return this; } + private boolean refresh_ ; /** - * optional bool refresh = 8; + * bool refresh = 8; + * @return The refresh. */ + @java.lang.Override public boolean getRefresh() { - return instance.getRefresh(); + return refresh_; } /** - * optional bool refresh = 8; + * bool refresh = 8; + * @param value The refresh to set. + * @return This builder for chaining. */ public Builder setRefresh(boolean value) { - copyOnWrite(); - instance.setRefresh(value); + + refresh_ = value; + onChanged(); return this; } /** - * optional bool refresh = 8; + * bool refresh = 8; + * @return This builder for chaining. */ public Builder clearRefresh() { - copyOnWrite(); - instance.clearRefresh(); + + refresh_ = false; + onChanged(); return this; } + private java.lang.Object agreementSlug_ = ""; /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @return The agreementSlug. */ public java.lang.String getAgreementSlug() { - return instance.getAgreementSlug(); + java.lang.Object ref = agreementSlug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agreementSlug_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @return The bytes for agreementSlug. */ public com.google.protobuf.ByteString getAgreementSlugBytes() { - return instance.getAgreementSlugBytes(); + java.lang.Object ref = agreementSlug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agreementSlug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @param value The agreementSlug to set. + * @return This builder for chaining. */ public Builder setAgreementSlug( java.lang.String value) { - copyOnWrite(); - instance.setAgreementSlug(value); + if (value == null) { + throw new NullPointerException(); + } + + agreementSlug_ = value; + onChanged(); return this; } /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @return This builder for chaining. */ public Builder clearAgreementSlug() { - copyOnWrite(); - instance.clearAgreementSlug(); + + agreementSlug_ = getDefaultInstance().getAgreementSlug(); + onChanged(); return this; } /** - * optional string agreementSlug = 9; + * string agreementSlug = 9; + * @param value The bytes for agreementSlug to set. + * @return This builder for chaining. */ public Builder setAgreementSlugBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAgreementSlugBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + agreementSlug_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.DiscoveryField) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.DiscoveryField(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.DiscoveryField other = (net.iGap.proto.ProtoGlobal.DiscoveryField) arg1; - imageurl_ = visitor.visitString(!imageurl_.isEmpty(), imageurl_, - !other.imageurl_.isEmpty(), other.imageurl_); - value_ = visitor.visitString(!value_.isEmpty(), value_, - !other.value_.isEmpty(), other.value_); - actiontype_ = visitor.visitInt(actiontype_ != 0, actiontype_, other.actiontype_ != 0, other.actiontype_); - orderid_ = visitor.visitInt(orderid_ != 0, orderid_, - other.orderid_ != 0, other.orderid_); - id_ = visitor.visitInt(id_ != 0, id_, - other.id_ != 0, other.id_); - param_ = visitor.visitString(!param_.isEmpty(), param_, - !other.param_.isEmpty(), other.param_); - agreement_ = visitor.visitBoolean(agreement_ != false, agreement_, - other.agreement_ != false, other.agreement_); - refresh_ = visitor.visitBoolean(refresh_ != false, refresh_, - other.refresh_ != false, other.refresh_); - agreementSlug_ = visitor.visitString(!agreementSlug_.isEmpty(), agreementSlug_, - !other.agreementSlug_.isEmpty(), other.agreementSlug_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - imageurl_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - actiontype_ = rawValue; - break; - } - case 32: { - - orderid_ = input.readUInt32(); - break; - } - case 40: { - - id_ = input.readUInt32(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - param_ = s; - break; - } - case 56: { - - agreement_ = input.readBool(); - break; - } - case 64: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - refresh_ = input.readBool(); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - agreementSlug_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.DiscoveryField.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.DiscoveryField) } - // @@protoc_insertion_point(class_scope:proto.DiscoveryField) private static final net.iGap.proto.ProtoGlobal.DiscoveryField DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new DiscoveryField(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.DiscoveryField(); } public static net.iGap.proto.ProtoGlobal.DiscoveryField getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoveryField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DiscoveryField(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.DiscoveryField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface DiscoveryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Discovery) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The enum numeric value on the wire for model. */ int getModelValue(); /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The model. */ net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel(); /** - * optional string scale = 2; + * string scale = 2; + * @return The scale. */ java.lang.String getScale(); /** - * optional string scale = 2; + * string scale = 2; + * @return The bytes for scale. */ com.google.protobuf.ByteString getScaleBytes(); @@ -36157,24 +53465,127 @@ public interface DiscoveryOrBuilder extends * repeated .proto.DiscoveryField discoveryfields = 3; */ int getDiscoveryfieldsCount(); + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + java.util.List + getDiscoveryfieldsOrBuilderList(); + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + net.iGap.proto.ProtoGlobal.DiscoveryFieldOrBuilder getDiscoveryfieldsOrBuilder( + int index); } /** * Protobuf type {@code proto.Discovery} */ - public static final class Discovery extends - com.google.protobuf.GeneratedMessageLite< - Discovery, Discovery.Builder> implements + public static final class Discovery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Discovery) DiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Discovery.newBuilder() to construct. + private Discovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Discovery() { + model_ = 0; scale_ = ""; - discoveryfields_ = emptyProtobufList(); + discoveryfields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Discovery(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Discovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + model_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + scale_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + discoveryfields_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + discoveryfields_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.DiscoveryField.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + discoveryfields_ = java.util.Collections.unmodifiableList(discoveryfields_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Discovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Discovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Discovery.class, net.iGap.proto.ProtoGlobal.Discovery.Builder.class); + } + /** * Protobuf enum {@code proto.Discovery.DiscoveryModel} */ public enum DiscoveryModel - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MODEL1 = 0; */ @@ -36269,10 +53680,16 @@ public enum DiscoveryModel public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -36280,6 +53697,10 @@ public static DiscoveryModel valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static DiscoveryModel forNumber(int value) { switch (value) { case 0: return MODEL1; @@ -36309,6 +53730,37 @@ public DiscoveryModel findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.Discovery.getDescriptor().getEnumTypes().get(0); + } + + private static final DiscoveryModel[] VALUES = values(); + + public static DiscoveryModel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private DiscoveryModel(int value) { @@ -36318,103 +53770,76 @@ private DiscoveryModel(int value) { // @@protoc_insertion_point(enum_scope:proto.Discovery.DiscoveryModel) } - private int bitField0_; public static final int MODEL_FIELD_NUMBER = 1; private int model_; /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The enum numeric value on the wire for model. */ - public int getModelValue() { + @java.lang.Override public int getModelValue() { return model_; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The model. */ - public net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel() { - net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel result = net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.forNumber(model_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel result = net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.valueOf(model_); return result == null ? net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.UNRECOGNIZED : result; } - /** - * optional .proto.Discovery.DiscoveryModel model = 1; - */ - private void setModelValue(int value) { - model_ = value; - } - /** - * optional .proto.Discovery.DiscoveryModel model = 1; - */ - private void setModel(net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel value) { - if (value == null) { - throw new NullPointerException(); - } - - model_ = value.getNumber(); - } - /** - * optional .proto.Discovery.DiscoveryModel model = 1; - */ - private void clearModel() { - - model_ = 0; - } public static final int SCALE_FIELD_NUMBER = 2; - private java.lang.String scale_; + private volatile java.lang.Object scale_; /** - * optional string scale = 2; + * string scale = 2; + * @return The scale. */ + @java.lang.Override public java.lang.String getScale() { - return scale_; + java.lang.Object ref = scale_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scale_ = s; + return s; + } } /** - * optional string scale = 2; + * string scale = 2; + * @return The bytes for scale. */ + @java.lang.Override public com.google.protobuf.ByteString getScaleBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(scale_); - } - /** - * optional string scale = 2; - */ - private void setScale( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - scale_ = value; - } - /** - * optional string scale = 2; - */ - private void clearScale() { - - scale_ = getDefaultInstance().getScale(); - } - /** - * optional string scale = 2; - */ - private void setScaleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - scale_ = value.toStringUtf8(); + java.lang.Object ref = scale_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DISCOVERYFIELDS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList discoveryfields_; + private java.util.List discoveryfields_; /** * repeated .proto.DiscoveryField discoveryfields = 3; */ + @java.lang.Override public java.util.List getDiscoveryfieldsList() { return discoveryfields_; } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ + @java.lang.Override public java.util.List getDiscoveryfieldsOrBuilderList() { return discoveryfields_; @@ -36422,123 +53847,55 @@ public java.util.List getDiscoveryfie /** * repeated .proto.DiscoveryField discoveryfields = 3; */ + @java.lang.Override public int getDiscoveryfieldsCount() { return discoveryfields_.size(); } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.DiscoveryField getDiscoveryfields(int index) { return discoveryfields_.get(index); } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.DiscoveryFieldOrBuilder getDiscoveryfieldsOrBuilder( int index) { return discoveryfields_.get(index); } - private void ensureDiscoveryfieldsIsMutable() { - if (!discoveryfields_.isModifiable()) { - discoveryfields_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(discoveryfields_); - } - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void setDiscoveryfields( - int index, net.iGap.proto.ProtoGlobal.DiscoveryField value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryfieldsIsMutable(); - discoveryfields_.set(index, value); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void setDiscoveryfields( - int index, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder builderForValue) { - ensureDiscoveryfieldsIsMutable(); - discoveryfields_.set(index, builderForValue.build()); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void addDiscoveryfields(net.iGap.proto.ProtoGlobal.DiscoveryField value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryfieldsIsMutable(); - discoveryfields_.add(value); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void addDiscoveryfields( - int index, net.iGap.proto.ProtoGlobal.DiscoveryField value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryfieldsIsMutable(); - discoveryfields_.add(index, value); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void addDiscoveryfields( - net.iGap.proto.ProtoGlobal.DiscoveryField.Builder builderForValue) { - ensureDiscoveryfieldsIsMutable(); - discoveryfields_.add(builderForValue.build()); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void addDiscoveryfields( - int index, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder builderForValue) { - ensureDiscoveryfieldsIsMutable(); - discoveryfields_.add(index, builderForValue.build()); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void addAllDiscoveryfields( - java.lang.Iterable values) { - ensureDiscoveryfieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, discoveryfields_); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void clearDiscoveryfields() { - discoveryfields_ = emptyProtobufList(); - } - /** - * repeated .proto.DiscoveryField discoveryfields = 3; - */ - private void removeDiscoveryfields(int index) { - ensureDiscoveryfieldsIsMutable(); - discoveryfields_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (model_ != net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.MODEL1.getNumber()) { output.writeEnum(1, model_); } - if (!scale_.isEmpty()) { - output.writeString(2, getScale()); + if (!getScaleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scale_); } for (int i = 0; i < discoveryfields_.size(); i++) { output.writeMessage(3, discoveryfields_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -36546,202 +53903,532 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, model_); } - if (!scale_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getScale()); + if (!getScaleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scale_); } for (int i = 0; i < discoveryfields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, discoveryfields_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Discovery)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Discovery other = (net.iGap.proto.ProtoGlobal.Discovery) obj; + + if (model_ != other.model_) return false; + if (!getScale() + .equals(other.getScale())) return false; + if (!getDiscoveryfieldsList() + .equals(other.getDiscoveryfieldsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + model_; + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale().hashCode(); + if (getDiscoveryfieldsCount() > 0) { + hash = (37 * hash) + DISCOVERYFIELDS_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryfieldsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Discovery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Discovery parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Discovery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Discovery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Discovery} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Discovery, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Discovery) net.iGap.proto.ProtoGlobal.DiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Discovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Discovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Discovery.class, net.iGap.proto.ProtoGlobal.Discovery.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Discovery.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDiscoveryfieldsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + model_ = 0; + + scale_ = ""; + + if (discoveryfieldsBuilder_ == null) { + discoveryfields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + discoveryfieldsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Discovery_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Discovery getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Discovery.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Discovery build() { + net.iGap.proto.ProtoGlobal.Discovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Discovery buildPartial() { + net.iGap.proto.ProtoGlobal.Discovery result = new net.iGap.proto.ProtoGlobal.Discovery(this); + int from_bitField0_ = bitField0_; + result.model_ = model_; + result.scale_ = scale_; + if (discoveryfieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + discoveryfields_ = java.util.Collections.unmodifiableList(discoveryfields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.discoveryfields_ = discoveryfields_; + } else { + result.discoveryfields_ = discoveryfieldsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Discovery) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Discovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Discovery other) { + if (other == net.iGap.proto.ProtoGlobal.Discovery.getDefaultInstance()) return this; + if (other.model_ != 0) { + setModelValue(other.getModelValue()); + } + if (!other.getScale().isEmpty()) { + scale_ = other.scale_; + onChanged(); + } + if (discoveryfieldsBuilder_ == null) { + if (!other.discoveryfields_.isEmpty()) { + if (discoveryfields_.isEmpty()) { + discoveryfields_ = other.discoveryfields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.addAll(other.discoveryfields_); + } + onChanged(); + } + } else { + if (!other.discoveryfields_.isEmpty()) { + if (discoveryfieldsBuilder_.isEmpty()) { + discoveryfieldsBuilder_.dispose(); + discoveryfieldsBuilder_ = null; + discoveryfields_ = other.discoveryfields_; + bitField0_ = (bitField0_ & ~0x00000001); + discoveryfieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDiscoveryfieldsFieldBuilder() : null; + } else { + discoveryfieldsBuilder_.addAllMessages(other.discoveryfields_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Discovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Discovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private int model_ = 0; /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The enum numeric value on the wire for model. */ - public int getModelValue() { - return instance.getModelValue(); + @java.lang.Override public int getModelValue() { + return model_; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @param value The enum numeric value on the wire for model to set. + * @return This builder for chaining. */ public Builder setModelValue(int value) { - copyOnWrite(); - instance.setModelValue(value); + + model_ = value; + onChanged(); return this; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The model. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel() { - return instance.getModel(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel result = net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.valueOf(model_); + return result == null ? net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.UNRECOGNIZED : result; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel value) { - copyOnWrite(); - instance.setModel(value); + if (value == null) { + throw new NullPointerException(); + } + + model_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return This builder for chaining. */ public Builder clearModel() { - copyOnWrite(); - instance.clearModel(); + + model_ = 0; + onChanged(); return this; } + private java.lang.Object scale_ = ""; /** - * optional string scale = 2; + * string scale = 2; + * @return The scale. */ public java.lang.String getScale() { - return instance.getScale(); + java.lang.Object ref = scale_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scale_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string scale = 2; + * string scale = 2; + * @return The bytes for scale. */ public com.google.protobuf.ByteString getScaleBytes() { - return instance.getScaleBytes(); + java.lang.Object ref = scale_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string scale = 2; + * string scale = 2; + * @param value The scale to set. + * @return This builder for chaining. */ public Builder setScale( java.lang.String value) { - copyOnWrite(); - instance.setScale(value); + if (value == null) { + throw new NullPointerException(); + } + + scale_ = value; + onChanged(); return this; } /** - * optional string scale = 2; + * string scale = 2; + * @return This builder for chaining. */ public Builder clearScale() { - copyOnWrite(); - instance.clearScale(); + + scale_ = getDefaultInstance().getScale(); + onChanged(); return this; } /** - * optional string scale = 2; + * string scale = 2; + * @param value The bytes for scale to set. + * @return This builder for chaining. */ public Builder setScaleBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setScaleBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + scale_ = value; + onChanged(); return this; } + private java.util.List discoveryfields_ = + java.util.Collections.emptyList(); + private void ensureDiscoveryfieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + discoveryfields_ = new java.util.ArrayList(discoveryfields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.DiscoveryField, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder, net.iGap.proto.ProtoGlobal.DiscoveryFieldOrBuilder> discoveryfieldsBuilder_; + /** * repeated .proto.DiscoveryField discoveryfields = 3; */ public java.util.List getDiscoveryfieldsList() { - return java.util.Collections.unmodifiableList( - instance.getDiscoveryfieldsList()); + if (discoveryfieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(discoveryfields_); + } else { + return discoveryfieldsBuilder_.getMessageList(); + } } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ public int getDiscoveryfieldsCount() { - return instance.getDiscoveryfieldsCount(); - }/** + if (discoveryfieldsBuilder_ == null) { + return discoveryfields_.size(); + } else { + return discoveryfieldsBuilder_.getCount(); + } + } + /** * repeated .proto.DiscoveryField discoveryfields = 3; */ public net.iGap.proto.ProtoGlobal.DiscoveryField getDiscoveryfields(int index) { - return instance.getDiscoveryfields(index); + if (discoveryfieldsBuilder_ == null) { + return discoveryfields_.get(index); + } else { + return discoveryfieldsBuilder_.getMessage(index); + } } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ public Builder setDiscoveryfields( int index, net.iGap.proto.ProtoGlobal.DiscoveryField value) { - copyOnWrite(); - instance.setDiscoveryfields(index, value); + if (discoveryfieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.set(index, value); + onChanged(); + } else { + discoveryfieldsBuilder_.setMessage(index, value); + } return this; } /** @@ -36749,16 +54436,29 @@ public Builder setDiscoveryfields( */ public Builder setDiscoveryfields( int index, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder builderForValue) { - copyOnWrite(); - instance.setDiscoveryfields(index, builderForValue); + if (discoveryfieldsBuilder_ == null) { + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.set(index, builderForValue.build()); + onChanged(); + } else { + discoveryfieldsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ public Builder addDiscoveryfields(net.iGap.proto.ProtoGlobal.DiscoveryField value) { - copyOnWrite(); - instance.addDiscoveryfields(value); + if (discoveryfieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.add(value); + onChanged(); + } else { + discoveryfieldsBuilder_.addMessage(value); + } return this; } /** @@ -36766,8 +54466,16 @@ public Builder addDiscoveryfields(net.iGap.proto.ProtoGlobal.DiscoveryField valu */ public Builder addDiscoveryfields( int index, net.iGap.proto.ProtoGlobal.DiscoveryField value) { - copyOnWrite(); - instance.addDiscoveryfields(index, value); + if (discoveryfieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.add(index, value); + onChanged(); + } else { + discoveryfieldsBuilder_.addMessage(index, value); + } return this; } /** @@ -36775,8 +54483,13 @@ public Builder addDiscoveryfields( */ public Builder addDiscoveryfields( net.iGap.proto.ProtoGlobal.DiscoveryField.Builder builderForValue) { - copyOnWrite(); - instance.addDiscoveryfields(builderForValue); + if (discoveryfieldsBuilder_ == null) { + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.add(builderForValue.build()); + onChanged(); + } else { + discoveryfieldsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -36784,8 +54497,13 @@ public Builder addDiscoveryfields( */ public Builder addDiscoveryfields( int index, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder builderForValue) { - copyOnWrite(); - instance.addDiscoveryfields(index, builderForValue); + if (discoveryfieldsBuilder_ == null) { + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.add(index, builderForValue.build()); + onChanged(); + } else { + discoveryfieldsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -36793,190 +54511,213 @@ public Builder addDiscoveryfields( */ public Builder addAllDiscoveryfields( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllDiscoveryfields(values); + if (discoveryfieldsBuilder_ == null) { + ensureDiscoveryfieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, discoveryfields_); + onChanged(); + } else { + discoveryfieldsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ public Builder clearDiscoveryfields() { - copyOnWrite(); - instance.clearDiscoveryfields(); + if (discoveryfieldsBuilder_ == null) { + discoveryfields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + discoveryfieldsBuilder_.clear(); + } return this; } /** * repeated .proto.DiscoveryField discoveryfields = 3; */ public Builder removeDiscoveryfields(int index) { - copyOnWrite(); - instance.removeDiscoveryfields(index); + if (discoveryfieldsBuilder_ == null) { + ensureDiscoveryfieldsIsMutable(); + discoveryfields_.remove(index); + onChanged(); + } else { + discoveryfieldsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.Discovery) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Discovery(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - discoveryfields_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Discovery other = (net.iGap.proto.ProtoGlobal.Discovery) arg1; - model_ = visitor.visitInt(model_ != 0, model_, other.model_ != 0, other.model_); - scale_ = visitor.visitString(!scale_.isEmpty(), scale_, - !other.scale_.isEmpty(), other.scale_); - discoveryfields_= visitor.visitList(discoveryfields_, other.discoveryfields_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - model_ = rawValue; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - scale_ = s; - break; - } - case 26: { - if (!discoveryfields_.isModifiable()) { - discoveryfields_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(discoveryfields_); - } - discoveryfields_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.DiscoveryField.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + public net.iGap.proto.ProtoGlobal.DiscoveryField.Builder getDiscoveryfieldsBuilder( + int index) { + return getDiscoveryfieldsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + public net.iGap.proto.ProtoGlobal.DiscoveryFieldOrBuilder getDiscoveryfieldsOrBuilder( + int index) { + if (discoveryfieldsBuilder_ == null) { + return discoveryfields_.get(index); } else { + return discoveryfieldsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + public java.util.List + getDiscoveryfieldsOrBuilderList() { + if (discoveryfieldsBuilder_ != null) { + return discoveryfieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(discoveryfields_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Discovery.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + public net.iGap.proto.ProtoGlobal.DiscoveryField.Builder addDiscoveryfieldsBuilder() { + return getDiscoveryfieldsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.DiscoveryField.getDefaultInstance()); + } + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + public net.iGap.proto.ProtoGlobal.DiscoveryField.Builder addDiscoveryfieldsBuilder( + int index) { + return getDiscoveryfieldsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.DiscoveryField.getDefaultInstance()); + } + /** + * repeated .proto.DiscoveryField discoveryfields = 3; + */ + public java.util.List + getDiscoveryfieldsBuilderList() { + return getDiscoveryfieldsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.DiscoveryField, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder, net.iGap.proto.ProtoGlobal.DiscoveryFieldOrBuilder> + getDiscoveryfieldsFieldBuilder() { + if (discoveryfieldsBuilder_ == null) { + discoveryfieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.DiscoveryField, net.iGap.proto.ProtoGlobal.DiscoveryField.Builder, net.iGap.proto.ProtoGlobal.DiscoveryFieldOrBuilder>( + discoveryfields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + discoveryfields_ = null; } + return discoveryfieldsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.Discovery) + } // @@protoc_insertion_point(class_scope:proto.Discovery) private static final net.iGap.proto.ProtoGlobal.Discovery DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Discovery(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Discovery(); } public static net.iGap.proto.ProtoGlobal.Discovery getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Discovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Discovery(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Discovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface PollFieldOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PollField) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The imageurl. */ java.lang.String getImageurl(); /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The bytes for imageurl. */ com.google.protobuf.ByteString getImageurlBytes(); /** - * optional uint32 orderid = 2; + * uint32 orderid = 2; + * @return The orderid. */ int getOrderid(); /** - * optional uint32 id = 3; + * uint32 id = 3; + * @return The id. */ int getId(); /** - * optional bool clicked = 4; + * bool clicked = 4; + * @return The clicked. */ boolean getClicked(); /** - * optional uint64 sum = 5 [jstype = JS_STRING]; + * uint64 sum = 5 [jstype = JS_STRING]; + * @return The sum. */ long getSum(); /** - * optional bool clickable = 6; + * bool clickable = 6; + * @return The clickable. */ boolean getClickable(); /** - * optional string label = 7; + * string label = 7; + * @return The label. */ java.lang.String getLabel(); /** - * optional string label = 7; + * string label = 7; + * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); @@ -36984,226 +54725,266 @@ public interface PollFieldOrBuilder extends /** * Protobuf type {@code proto.PollField} */ - public static final class PollField extends - com.google.protobuf.GeneratedMessageLite< - PollField, PollField.Builder> implements + public static final class PollField extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PollField) PollFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use PollField.newBuilder() to construct. + private PollField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PollField() { imageurl_ = ""; label_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PollField(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PollField( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + imageurl_ = s; + break; + } + case 16: { + + orderid_ = input.readUInt32(); + break; + } + case 24: { + + id_ = input.readUInt32(); + break; + } + case 32: { + + clicked_ = input.readBool(); + break; + } + case 40: { + + sum_ = input.readUInt64(); + break; + } + case 48: { + + clickable_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PollField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PollField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.PollField.class, net.iGap.proto.ProtoGlobal.PollField.Builder.class); + } + public static final int IMAGEURL_FIELD_NUMBER = 1; - private java.lang.String imageurl_; + private volatile java.lang.Object imageurl_; /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The imageurl. */ + @java.lang.Override public java.lang.String getImageurl() { - return imageurl_; + java.lang.Object ref = imageurl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageurl_ = s; + return s; + } } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The bytes for imageurl. */ + @java.lang.Override public com.google.protobuf.ByteString getImageurlBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(imageurl_); - } - /** - * optional string imageurl = 1; - */ - private void setImageurl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageurl_ = value; - } - /** - * optional string imageurl = 1; - */ - private void clearImageurl() { - - imageurl_ = getDefaultInstance().getImageurl(); - } - /** - * optional string imageurl = 1; - */ - private void setImageurlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageurl_ = value.toStringUtf8(); + java.lang.Object ref = imageurl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageurl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ORDERID_FIELD_NUMBER = 2; private int orderid_; /** - * optional uint32 orderid = 2; + * uint32 orderid = 2; + * @return The orderid. */ + @java.lang.Override public int getOrderid() { return orderid_; } - /** - * optional uint32 orderid = 2; - */ - private void setOrderid(int value) { - - orderid_ = value; - } - /** - * optional uint32 orderid = 2; - */ - private void clearOrderid() { - - orderid_ = 0; - } public static final int ID_FIELD_NUMBER = 3; private int id_; /** - * optional uint32 id = 3; + * uint32 id = 3; + * @return The id. */ + @java.lang.Override public int getId() { return id_; } - /** - * optional uint32 id = 3; - */ - private void setId(int value) { - - id_ = value; - } - /** - * optional uint32 id = 3; - */ - private void clearId() { - - id_ = 0; - } public static final int CLICKED_FIELD_NUMBER = 4; private boolean clicked_; /** - * optional bool clicked = 4; + * bool clicked = 4; + * @return The clicked. */ + @java.lang.Override public boolean getClicked() { return clicked_; } - /** - * optional bool clicked = 4; - */ - private void setClicked(boolean value) { - - clicked_ = value; - } - /** - * optional bool clicked = 4; - */ - private void clearClicked() { - - clicked_ = false; - } public static final int SUM_FIELD_NUMBER = 5; private long sum_; /** - * optional uint64 sum = 5 [jstype = JS_STRING]; + * uint64 sum = 5 [jstype = JS_STRING]; + * @return The sum. */ + @java.lang.Override public long getSum() { return sum_; } - /** - * optional uint64 sum = 5 [jstype = JS_STRING]; - */ - private void setSum(long value) { - - sum_ = value; - } - /** - * optional uint64 sum = 5 [jstype = JS_STRING]; - */ - private void clearSum() { - - sum_ = 0L; - } public static final int CLICKABLE_FIELD_NUMBER = 6; private boolean clickable_; /** - * optional bool clickable = 6; + * bool clickable = 6; + * @return The clickable. */ + @java.lang.Override public boolean getClickable() { return clickable_; } - /** - * optional bool clickable = 6; - */ - private void setClickable(boolean value) { - - clickable_ = value; - } - /** - * optional bool clickable = 6; - */ - private void clearClickable() { - - clickable_ = false; - } public static final int LABEL_FIELD_NUMBER = 7; - private java.lang.String label_; + private volatile java.lang.Object label_; /** - * optional string label = 7; + * string label = 7; + * @return The label. */ + @java.lang.Override public java.lang.String getLabel() { - return label_; + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } } /** - * optional string label = 7; + * string label = 7; + * @return The bytes for label. */ + @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(label_); - } - /** - * optional string label = 7; - */ - private void setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - } - /** - * optional string label = 7; - */ - private void clearLabel() { - - label_ = getDefaultInstance().getLabel(); + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string label = 7; - */ - private void setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!imageurl_.isEmpty()) { - output.writeString(1, getImageurl()); + if (!getImageurlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageurl_); } if (orderid_ != 0) { output.writeUInt32(2, orderid_); @@ -37220,19 +55001,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (clickable_ != false) { output.writeBool(6, clickable_); } - if (!label_.isEmpty()) { - output.writeString(7, getLabel()); + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, label_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!imageurl_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getImageurl()); + if (!getImageurlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageurl_); } if (orderid_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -37254,458 +55036,735 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, clickable_); } - if (!label_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getLabel()); + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, label_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.PollField)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.PollField other = (net.iGap.proto.ProtoGlobal.PollField) obj; + + if (!getImageurl() + .equals(other.getImageurl())) return false; + if (getOrderid() + != other.getOrderid()) return false; + if (getId() + != other.getId()) return false; + if (getClicked() + != other.getClicked()) return false; + if (getSum() + != other.getSum()) return false; + if (getClickable() + != other.getClickable()) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMAGEURL_FIELD_NUMBER; + hash = (53 * hash) + getImageurl().hashCode(); + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + getOrderid(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + hash = (37 * hash) + CLICKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClicked()); + hash = (37 * hash) + SUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSum()); + hash = (37 * hash) + CLICKABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClickable()); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.PollField parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.PollField parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.PollField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.PollField parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PollField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.PollField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PollField parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.PollField parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PollField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.PollField parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.PollField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.PollField parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.PollField prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PollField} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.PollField, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PollField) net.iGap.proto.ProtoGlobal.PollFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PollField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PollField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.PollField.class, net.iGap.proto.ProtoGlobal.PollField.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.PollField.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + imageurl_ = ""; + + orderid_ = 0; + + id_ = 0; + + clicked_ = false; + + sum_ = 0L; + + clickable_ = false; + + label_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_PollField_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PollField getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.PollField.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PollField build() { + net.iGap.proto.ProtoGlobal.PollField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PollField buildPartial() { + net.iGap.proto.ProtoGlobal.PollField result = new net.iGap.proto.ProtoGlobal.PollField(this); + result.imageurl_ = imageurl_; + result.orderid_ = orderid_; + result.id_ = id_; + result.clicked_ = clicked_; + result.sum_ = sum_; + result.clickable_ = clickable_; + result.label_ = label_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.PollField) { + return mergeFrom((net.iGap.proto.ProtoGlobal.PollField)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.PollField other) { + if (other == net.iGap.proto.ProtoGlobal.PollField.getDefaultInstance()) return this; + if (!other.getImageurl().isEmpty()) { + imageurl_ = other.imageurl_; + onChanged(); + } + if (other.getOrderid() != 0) { + setOrderid(other.getOrderid()); + } + if (other.getId() != 0) { + setId(other.getId()); + } + if (other.getClicked() != false) { + setClicked(other.getClicked()); + } + if (other.getSum() != 0L) { + setSum(other.getSum()); + } + if (other.getClickable() != false) { + setClickable(other.getClickable()); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.PollField parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.PollField) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object imageurl_ = ""; /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The imageurl. */ public java.lang.String getImageurl() { - return instance.getImageurl(); + java.lang.Object ref = imageurl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageurl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return The bytes for imageurl. */ public com.google.protobuf.ByteString getImageurlBytes() { - return instance.getImageurlBytes(); + java.lang.Object ref = imageurl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageurl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @param value The imageurl to set. + * @return This builder for chaining. */ public Builder setImageurl( java.lang.String value) { - copyOnWrite(); - instance.setImageurl(value); + if (value == null) { + throw new NullPointerException(); + } + + imageurl_ = value; + onChanged(); return this; } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @return This builder for chaining. */ public Builder clearImageurl() { - copyOnWrite(); - instance.clearImageurl(); + + imageurl_ = getDefaultInstance().getImageurl(); + onChanged(); return this; } /** - * optional string imageurl = 1; + * string imageurl = 1; + * @param value The bytes for imageurl to set. + * @return This builder for chaining. */ public Builder setImageurlBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setImageurlBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageurl_ = value; + onChanged(); return this; } + private int orderid_ ; /** - * optional uint32 orderid = 2; + * uint32 orderid = 2; + * @return The orderid. */ + @java.lang.Override public int getOrderid() { - return instance.getOrderid(); + return orderid_; } /** - * optional uint32 orderid = 2; + * uint32 orderid = 2; + * @param value The orderid to set. + * @return This builder for chaining. */ public Builder setOrderid(int value) { - copyOnWrite(); - instance.setOrderid(value); + + orderid_ = value; + onChanged(); return this; } /** - * optional uint32 orderid = 2; + * uint32 orderid = 2; + * @return This builder for chaining. */ public Builder clearOrderid() { - copyOnWrite(); - instance.clearOrderid(); + + orderid_ = 0; + onChanged(); return this; } + private int id_ ; /** - * optional uint32 id = 3; + * uint32 id = 3; + * @return The id. */ + @java.lang.Override public int getId() { - return instance.getId(); + return id_; } /** - * optional uint32 id = 3; + * uint32 id = 3; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(int value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint32 id = 3; + * uint32 id = 3; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0; + onChanged(); return this; } + private boolean clicked_ ; /** - * optional bool clicked = 4; + * bool clicked = 4; + * @return The clicked. */ + @java.lang.Override public boolean getClicked() { - return instance.getClicked(); + return clicked_; } /** - * optional bool clicked = 4; + * bool clicked = 4; + * @param value The clicked to set. + * @return This builder for chaining. */ public Builder setClicked(boolean value) { - copyOnWrite(); - instance.setClicked(value); + + clicked_ = value; + onChanged(); return this; } /** - * optional bool clicked = 4; + * bool clicked = 4; + * @return This builder for chaining. */ public Builder clearClicked() { - copyOnWrite(); - instance.clearClicked(); + + clicked_ = false; + onChanged(); return this; } + private long sum_ ; /** - * optional uint64 sum = 5 [jstype = JS_STRING]; + * uint64 sum = 5 [jstype = JS_STRING]; + * @return The sum. */ + @java.lang.Override public long getSum() { - return instance.getSum(); + return sum_; } /** - * optional uint64 sum = 5 [jstype = JS_STRING]; + * uint64 sum = 5 [jstype = JS_STRING]; + * @param value The sum to set. + * @return This builder for chaining. */ public Builder setSum(long value) { - copyOnWrite(); - instance.setSum(value); + + sum_ = value; + onChanged(); return this; } /** - * optional uint64 sum = 5 [jstype = JS_STRING]; + * uint64 sum = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearSum() { - copyOnWrite(); - instance.clearSum(); + + sum_ = 0L; + onChanged(); return this; } + private boolean clickable_ ; /** - * optional bool clickable = 6; + * bool clickable = 6; + * @return The clickable. */ + @java.lang.Override public boolean getClickable() { - return instance.getClickable(); + return clickable_; } /** - * optional bool clickable = 6; + * bool clickable = 6; + * @param value The clickable to set. + * @return This builder for chaining. */ public Builder setClickable(boolean value) { - copyOnWrite(); - instance.setClickable(value); + + clickable_ = value; + onChanged(); return this; } /** - * optional bool clickable = 6; + * bool clickable = 6; + * @return This builder for chaining. */ public Builder clearClickable() { - copyOnWrite(); - instance.clearClickable(); + + clickable_ = false; + onChanged(); return this; } + private java.lang.Object label_ = ""; /** - * optional string label = 7; + * string label = 7; + * @return The label. */ public java.lang.String getLabel() { - return instance.getLabel(); + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string label = 7; + * string label = 7; + * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { - return instance.getLabelBytes(); + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string label = 7; + * string label = 7; + * @param value The label to set. + * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { - copyOnWrite(); - instance.setLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); return this; } /** - * optional string label = 7; + * string label = 7; + * @return This builder for chaining. */ public Builder clearLabel() { - copyOnWrite(); - instance.clearLabel(); + + label_ = getDefaultInstance().getLabel(); + onChanged(); return this; } /** - * optional string label = 7; + * string label = 7; + * @param value The bytes for label to set. + * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PollField) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.PollField(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.PollField other = (net.iGap.proto.ProtoGlobal.PollField) arg1; - imageurl_ = visitor.visitString(!imageurl_.isEmpty(), imageurl_, - !other.imageurl_.isEmpty(), other.imageurl_); - orderid_ = visitor.visitInt(orderid_ != 0, orderid_, - other.orderid_ != 0, other.orderid_); - id_ = visitor.visitInt(id_ != 0, id_, - other.id_ != 0, other.id_); - clicked_ = visitor.visitBoolean(clicked_ != false, clicked_, - other.clicked_ != false, other.clicked_); - sum_ = visitor.visitLong(sum_ != 0L, sum_, - other.sum_ != 0L, other.sum_); - clickable_ = visitor.visitBoolean(clickable_ != false, clickable_, - other.clickable_ != false, other.clickable_); - label_ = visitor.visitString(!label_.isEmpty(), label_, - !other.label_.isEmpty(), other.label_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - imageurl_ = s; - break; - } - case 16: { - - orderid_ = input.readUInt32(); - break; - } - case 24: { - - id_ = input.readUInt32(); - break; - } - case 32: { - - clicked_ = input.readBool(); - break; - } - case 40: { - - sum_ = input.readUInt64(); - break; - } - case 48: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - clickable_ = input.readBool(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.PollField.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.PollField) } - // @@protoc_insertion_point(class_scope:proto.PollField) private static final net.iGap.proto.ProtoGlobal.PollField DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PollField(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.PollField(); } public static net.iGap.proto.ProtoGlobal.PollField getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PollField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PollField(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PollField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface PollOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Poll) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The enum numeric value on the wire for model. */ int getModelValue(); /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The model. */ net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel(); /** - * optional string scale = 2; + * string scale = 2; + * @return The scale. */ java.lang.String getScale(); /** - * optional string scale = 2; + * string scale = 2; + * @return The bytes for scale. */ com.google.protobuf.ByteString getScaleBytes(); /** - * optional uint32 max = 3; + * uint32 max = 3; + * @return The max. */ int getMax(); @@ -37722,139 +55781,208 @@ public interface PollOrBuilder extends * repeated .proto.PollField pollfields = 4; */ int getPollfieldsCount(); + /** + * repeated .proto.PollField pollfields = 4; + */ + java.util.List + getPollfieldsOrBuilderList(); + /** + * repeated .proto.PollField pollfields = 4; + */ + net.iGap.proto.ProtoGlobal.PollFieldOrBuilder getPollfieldsOrBuilder( + int index); } /** * Protobuf type {@code proto.Poll} */ - public static final class Poll extends - com.google.protobuf.GeneratedMessageLite< - Poll, Poll.Builder> implements + public static final class Poll extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Poll) PollOrBuilder { + private static final long serialVersionUID = 0L; + // Use Poll.newBuilder() to construct. + private Poll(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Poll() { + model_ = 0; scale_ = ""; - pollfields_ = emptyProtobufList(); + pollfields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Poll(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Poll( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + model_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + scale_ = s; + break; + } + case 24: { + + max_ = input.readUInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pollfields_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pollfields_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.PollField.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + pollfields_ = java.util.Collections.unmodifiableList(pollfields_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - private int bitField0_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Poll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Poll_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Poll.class, net.iGap.proto.ProtoGlobal.Poll.Builder.class); + } + public static final int MODEL_FIELD_NUMBER = 1; private int model_; /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The enum numeric value on the wire for model. */ - public int getModelValue() { + @java.lang.Override public int getModelValue() { return model_; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The model. */ - public net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel() { - net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel result = net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.forNumber(model_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel result = net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.valueOf(model_); return result == null ? net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.UNRECOGNIZED : result; } - /** - * optional .proto.Discovery.DiscoveryModel model = 1; - */ - private void setModelValue(int value) { - model_ = value; - } - /** - * optional .proto.Discovery.DiscoveryModel model = 1; - */ - private void setModel(net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel value) { - if (value == null) { - throw new NullPointerException(); - } - - model_ = value.getNumber(); - } - /** - * optional .proto.Discovery.DiscoveryModel model = 1; - */ - private void clearModel() { - - model_ = 0; - } public static final int SCALE_FIELD_NUMBER = 2; - private java.lang.String scale_; + private volatile java.lang.Object scale_; /** - * optional string scale = 2; + * string scale = 2; + * @return The scale. */ + @java.lang.Override public java.lang.String getScale() { - return scale_; + java.lang.Object ref = scale_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scale_ = s; + return s; + } } /** - * optional string scale = 2; + * string scale = 2; + * @return The bytes for scale. */ + @java.lang.Override public com.google.protobuf.ByteString getScaleBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(scale_); - } - /** - * optional string scale = 2; - */ - private void setScale( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - scale_ = value; - } - /** - * optional string scale = 2; - */ - private void clearScale() { - - scale_ = getDefaultInstance().getScale(); - } - /** - * optional string scale = 2; - */ - private void setScaleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - scale_ = value.toStringUtf8(); + java.lang.Object ref = scale_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MAX_FIELD_NUMBER = 3; private int max_; /** - * optional uint32 max = 3; + * uint32 max = 3; + * @return The max. */ + @java.lang.Override public int getMax() { return max_; } - /** - * optional uint32 max = 3; - */ - private void setMax(int value) { - - max_ = value; - } - /** - * optional uint32 max = 3; - */ - private void clearMax() { - - max_ = 0; - } public static final int POLLFIELDS_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.ProtobufList pollfields_; + private java.util.List pollfields_; /** * repeated .proto.PollField pollfields = 4; */ + @java.lang.Override public java.util.List getPollfieldsList() { return pollfields_; } /** * repeated .proto.PollField pollfields = 4; */ + @java.lang.Override public java.util.List getPollfieldsOrBuilderList() { return pollfields_; @@ -37862,115 +55990,45 @@ public java.util.List getPollfieldsList() /** * repeated .proto.PollField pollfields = 4; */ + @java.lang.Override public int getPollfieldsCount() { return pollfields_.size(); } /** * repeated .proto.PollField pollfields = 4; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PollField getPollfields(int index) { return pollfields_.get(index); } /** * repeated .proto.PollField pollfields = 4; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PollFieldOrBuilder getPollfieldsOrBuilder( int index) { return pollfields_.get(index); } - private void ensurePollfieldsIsMutable() { - if (!pollfields_.isModifiable()) { - pollfields_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(pollfields_); - } - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void setPollfields( - int index, net.iGap.proto.ProtoGlobal.PollField value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePollfieldsIsMutable(); - pollfields_.set(index, value); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void setPollfields( - int index, net.iGap.proto.ProtoGlobal.PollField.Builder builderForValue) { - ensurePollfieldsIsMutable(); - pollfields_.set(index, builderForValue.build()); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void addPollfields(net.iGap.proto.ProtoGlobal.PollField value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePollfieldsIsMutable(); - pollfields_.add(value); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void addPollfields( - int index, net.iGap.proto.ProtoGlobal.PollField value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePollfieldsIsMutable(); - pollfields_.add(index, value); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void addPollfields( - net.iGap.proto.ProtoGlobal.PollField.Builder builderForValue) { - ensurePollfieldsIsMutable(); - pollfields_.add(builderForValue.build()); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void addPollfields( - int index, net.iGap.proto.ProtoGlobal.PollField.Builder builderForValue) { - ensurePollfieldsIsMutable(); - pollfields_.add(index, builderForValue.build()); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void addAllPollfields( - java.lang.Iterable values) { - ensurePollfieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, pollfields_); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void clearPollfields() { - pollfields_ = emptyProtobufList(); - } - /** - * repeated .proto.PollField pollfields = 4; - */ - private void removePollfields(int index) { - ensurePollfieldsIsMutable(); - pollfields_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (model_ != net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.MODEL1.getNumber()) { output.writeEnum(1, model_); } - if (!scale_.isEmpty()) { - output.writeString(2, getScale()); + if (!getScaleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scale_); } if (max_ != 0) { output.writeUInt32(3, max_); @@ -37978,10 +56036,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < pollfields_.size(); i++) { output.writeMessage(4, pollfields_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -37989,9 +56049,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, model_); } - if (!scale_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getScale()); + if (!getScaleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scale_); } if (max_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -38001,217 +56060,566 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, pollfields_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Poll)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Poll other = (net.iGap.proto.ProtoGlobal.Poll) obj; + + if (model_ != other.model_) return false; + if (!getScale() + .equals(other.getScale())) return false; + if (getMax() + != other.getMax()) return false; + if (!getPollfieldsList() + .equals(other.getPollfieldsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + model_; + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale().hashCode(); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + getMax(); + if (getPollfieldsCount() > 0) { + hash = (37 * hash) + POLLFIELDS_FIELD_NUMBER; + hash = (53 * hash) + getPollfieldsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Poll parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Poll parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Poll parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Poll parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Poll parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Poll parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Poll parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Poll parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Poll parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Poll parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Poll parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Poll parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Poll prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Poll} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Poll, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Poll) net.iGap.proto.ProtoGlobal.PollOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Poll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Poll_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Poll.class, net.iGap.proto.ProtoGlobal.Poll.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Poll.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPollfieldsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + model_ = 0; + + scale_ = ""; + + max_ = 0; + + if (pollfieldsBuilder_ == null) { + pollfields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pollfieldsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Poll_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Poll getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Poll.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Poll build() { + net.iGap.proto.ProtoGlobal.Poll result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Poll buildPartial() { + net.iGap.proto.ProtoGlobal.Poll result = new net.iGap.proto.ProtoGlobal.Poll(this); + int from_bitField0_ = bitField0_; + result.model_ = model_; + result.scale_ = scale_; + result.max_ = max_; + if (pollfieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pollfields_ = java.util.Collections.unmodifiableList(pollfields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pollfields_ = pollfields_; + } else { + result.pollfields_ = pollfieldsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Poll) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Poll)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Poll other) { + if (other == net.iGap.proto.ProtoGlobal.Poll.getDefaultInstance()) return this; + if (other.model_ != 0) { + setModelValue(other.getModelValue()); + } + if (!other.getScale().isEmpty()) { + scale_ = other.scale_; + onChanged(); + } + if (other.getMax() != 0) { + setMax(other.getMax()); + } + if (pollfieldsBuilder_ == null) { + if (!other.pollfields_.isEmpty()) { + if (pollfields_.isEmpty()) { + pollfields_ = other.pollfields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePollfieldsIsMutable(); + pollfields_.addAll(other.pollfields_); + } + onChanged(); + } + } else { + if (!other.pollfields_.isEmpty()) { + if (pollfieldsBuilder_.isEmpty()) { + pollfieldsBuilder_.dispose(); + pollfieldsBuilder_ = null; + pollfields_ = other.pollfields_; + bitField0_ = (bitField0_ & ~0x00000001); + pollfieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPollfieldsFieldBuilder() : null; + } else { + pollfieldsBuilder_.addAllMessages(other.pollfields_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Poll parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Poll) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private int model_ = 0; /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The enum numeric value on the wire for model. */ - public int getModelValue() { - return instance.getModelValue(); + @java.lang.Override public int getModelValue() { + return model_; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @param value The enum numeric value on the wire for model to set. + * @return This builder for chaining. */ public Builder setModelValue(int value) { - copyOnWrite(); - instance.setModelValue(value); + + model_ = value; + onChanged(); return this; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return The model. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel getModel() { - return instance.getModel(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel result = net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.valueOf(model_); + return result == null ? net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel.UNRECOGNIZED : result; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(net.iGap.proto.ProtoGlobal.Discovery.DiscoveryModel value) { - copyOnWrite(); - instance.setModel(value); + if (value == null) { + throw new NullPointerException(); + } + + model_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Discovery.DiscoveryModel model = 1; + * .proto.Discovery.DiscoveryModel model = 1; + * @return This builder for chaining. */ public Builder clearModel() { - copyOnWrite(); - instance.clearModel(); + + model_ = 0; + onChanged(); return this; } + private java.lang.Object scale_ = ""; /** - * optional string scale = 2; + * string scale = 2; + * @return The scale. */ public java.lang.String getScale() { - return instance.getScale(); + java.lang.Object ref = scale_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scale_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string scale = 2; + * string scale = 2; + * @return The bytes for scale. */ public com.google.protobuf.ByteString getScaleBytes() { - return instance.getScaleBytes(); + java.lang.Object ref = scale_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string scale = 2; + * string scale = 2; + * @param value The scale to set. + * @return This builder for chaining. */ public Builder setScale( java.lang.String value) { - copyOnWrite(); - instance.setScale(value); + if (value == null) { + throw new NullPointerException(); + } + + scale_ = value; + onChanged(); return this; } /** - * optional string scale = 2; + * string scale = 2; + * @return This builder for chaining. */ public Builder clearScale() { - copyOnWrite(); - instance.clearScale(); + + scale_ = getDefaultInstance().getScale(); + onChanged(); return this; } /** - * optional string scale = 2; + * string scale = 2; + * @param value The bytes for scale to set. + * @return This builder for chaining. */ public Builder setScaleBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setScaleBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + scale_ = value; + onChanged(); return this; } + private int max_ ; /** - * optional uint32 max = 3; + * uint32 max = 3; + * @return The max. */ + @java.lang.Override public int getMax() { - return instance.getMax(); + return max_; } /** - * optional uint32 max = 3; + * uint32 max = 3; + * @param value The max to set. + * @return This builder for chaining. */ public Builder setMax(int value) { - copyOnWrite(); - instance.setMax(value); + + max_ = value; + onChanged(); return this; } /** - * optional uint32 max = 3; + * uint32 max = 3; + * @return This builder for chaining. */ public Builder clearMax() { - copyOnWrite(); - instance.clearMax(); + + max_ = 0; + onChanged(); return this; } + private java.util.List pollfields_ = + java.util.Collections.emptyList(); + private void ensurePollfieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pollfields_ = new java.util.ArrayList(pollfields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.PollField, net.iGap.proto.ProtoGlobal.PollField.Builder, net.iGap.proto.ProtoGlobal.PollFieldOrBuilder> pollfieldsBuilder_; + /** * repeated .proto.PollField pollfields = 4; */ public java.util.List getPollfieldsList() { - return java.util.Collections.unmodifiableList( - instance.getPollfieldsList()); + if (pollfieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pollfields_); + } else { + return pollfieldsBuilder_.getMessageList(); + } } /** * repeated .proto.PollField pollfields = 4; */ public int getPollfieldsCount() { - return instance.getPollfieldsCount(); - }/** + if (pollfieldsBuilder_ == null) { + return pollfields_.size(); + } else { + return pollfieldsBuilder_.getCount(); + } + } + /** * repeated .proto.PollField pollfields = 4; */ public net.iGap.proto.ProtoGlobal.PollField getPollfields(int index) { - return instance.getPollfields(index); + if (pollfieldsBuilder_ == null) { + return pollfields_.get(index); + } else { + return pollfieldsBuilder_.getMessage(index); + } } /** * repeated .proto.PollField pollfields = 4; */ public Builder setPollfields( int index, net.iGap.proto.ProtoGlobal.PollField value) { - copyOnWrite(); - instance.setPollfields(index, value); + if (pollfieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePollfieldsIsMutable(); + pollfields_.set(index, value); + onChanged(); + } else { + pollfieldsBuilder_.setMessage(index, value); + } return this; } /** @@ -38219,16 +56627,29 @@ public Builder setPollfields( */ public Builder setPollfields( int index, net.iGap.proto.ProtoGlobal.PollField.Builder builderForValue) { - copyOnWrite(); - instance.setPollfields(index, builderForValue); + if (pollfieldsBuilder_ == null) { + ensurePollfieldsIsMutable(); + pollfields_.set(index, builderForValue.build()); + onChanged(); + } else { + pollfieldsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.PollField pollfields = 4; */ public Builder addPollfields(net.iGap.proto.ProtoGlobal.PollField value) { - copyOnWrite(); - instance.addPollfields(value); + if (pollfieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePollfieldsIsMutable(); + pollfields_.add(value); + onChanged(); + } else { + pollfieldsBuilder_.addMessage(value); + } return this; } /** @@ -38236,8 +56657,16 @@ public Builder addPollfields(net.iGap.proto.ProtoGlobal.PollField value) { */ public Builder addPollfields( int index, net.iGap.proto.ProtoGlobal.PollField value) { - copyOnWrite(); - instance.addPollfields(index, value); + if (pollfieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePollfieldsIsMutable(); + pollfields_.add(index, value); + onChanged(); + } else { + pollfieldsBuilder_.addMessage(index, value); + } return this; } /** @@ -38245,8 +56674,13 @@ public Builder addPollfields( */ public Builder addPollfields( net.iGap.proto.ProtoGlobal.PollField.Builder builderForValue) { - copyOnWrite(); - instance.addPollfields(builderForValue); + if (pollfieldsBuilder_ == null) { + ensurePollfieldsIsMutable(); + pollfields_.add(builderForValue.build()); + onChanged(); + } else { + pollfieldsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -38254,8 +56688,13 @@ public Builder addPollfields( */ public Builder addPollfields( int index, net.iGap.proto.ProtoGlobal.PollField.Builder builderForValue) { - copyOnWrite(); - instance.addPollfields(index, builderForValue); + if (pollfieldsBuilder_ == null) { + ensurePollfieldsIsMutable(); + pollfields_.add(index, builderForValue.build()); + onChanged(); + } else { + pollfieldsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -38263,283 +56702,357 @@ public Builder addPollfields( */ public Builder addAllPollfields( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPollfields(values); + if (pollfieldsBuilder_ == null) { + ensurePollfieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pollfields_); + onChanged(); + } else { + pollfieldsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.PollField pollfields = 4; */ public Builder clearPollfields() { - copyOnWrite(); - instance.clearPollfields(); + if (pollfieldsBuilder_ == null) { + pollfields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pollfieldsBuilder_.clear(); + } return this; } /** * repeated .proto.PollField pollfields = 4; */ public Builder removePollfields(int index) { - copyOnWrite(); - instance.removePollfields(index); + if (pollfieldsBuilder_ == null) { + ensurePollfieldsIsMutable(); + pollfields_.remove(index); + onChanged(); + } else { + pollfieldsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.Poll) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Poll(); + /** + * repeated .proto.PollField pollfields = 4; + */ + public net.iGap.proto.ProtoGlobal.PollField.Builder getPollfieldsBuilder( + int index) { + return getPollfieldsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.PollField pollfields = 4; + */ + public net.iGap.proto.ProtoGlobal.PollFieldOrBuilder getPollfieldsOrBuilder( + int index) { + if (pollfieldsBuilder_ == null) { + return pollfields_.get(index); } else { + return pollfieldsBuilder_.getMessageOrBuilder(index); } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.PollField pollfields = 4; + */ + public java.util.List + getPollfieldsOrBuilderList() { + if (pollfieldsBuilder_ != null) { + return pollfieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pollfields_); } - case MAKE_IMMUTABLE: { - pollfields_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Poll other = (net.iGap.proto.ProtoGlobal.Poll) arg1; - model_ = visitor.visitInt(model_ != 0, model_, other.model_ != 0, other.model_); - scale_ = visitor.visitString(!scale_.isEmpty(), scale_, - !other.scale_.isEmpty(), other.scale_); - max_ = visitor.visitInt(max_ != 0, max_, - other.max_ != 0, other.max_); - pollfields_= visitor.visitList(pollfields_, other.pollfields_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); + } + /** + * repeated .proto.PollField pollfields = 4; + */ + public net.iGap.proto.ProtoGlobal.PollField.Builder addPollfieldsBuilder() { + return getPollfieldsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.PollField.getDefaultInstance()); + } + /** + * repeated .proto.PollField pollfields = 4; + */ + public net.iGap.proto.ProtoGlobal.PollField.Builder addPollfieldsBuilder( + int index) { + return getPollfieldsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.PollField.getDefaultInstance()); + } + /** + * repeated .proto.PollField pollfields = 4; + */ + public java.util.List + getPollfieldsBuilderList() { + return getPollfieldsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.PollField, net.iGap.proto.ProtoGlobal.PollField.Builder, net.iGap.proto.ProtoGlobal.PollFieldOrBuilder> + getPollfieldsFieldBuilder() { + if (pollfieldsBuilder_ == null) { + pollfieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.PollField, net.iGap.proto.ProtoGlobal.PollField.Builder, net.iGap.proto.ProtoGlobal.PollFieldOrBuilder>( + pollfields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + pollfields_ = null; + } + return pollfieldsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - model_ = rawValue; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - scale_ = s; - break; - } - case 24: { - max_ = input.readUInt32(); - break; - } - case 34: { - if (!pollfields_.isModifiable()) { - pollfields_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(pollfields_); - } - pollfields_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.PollField.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Poll.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.Poll) } - // @@protoc_insertion_point(class_scope:proto.Poll) private static final net.iGap.proto.ProtoGlobal.Poll DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Poll(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Poll(); } public static net.iGap.proto.ProtoGlobal.Poll getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Poll parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Poll(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Poll getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface IVandActivityOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.IVandActivity) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string title = 1; + * string title = 1; + * @return The title. */ java.lang.String getTitle(); /** - * optional string title = 1; + * string title = 1; + * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** - * optional int32 score = 2; + * int32 score = 2; + * @return The score. */ int getScore(); /** - * optional uint32 time = 3; + * uint32 time = 3; + * @return The time. */ int getTime(); } /** * Protobuf type {@code proto.IVandActivity} */ - public static final class IVandActivity extends - com.google.protobuf.GeneratedMessageLite< - IVandActivity, IVandActivity.Builder> implements + public static final class IVandActivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.IVandActivity) IVandActivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use IVandActivity.newBuilder() to construct. + private IVandActivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private IVandActivity() { title_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IVandActivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IVandActivity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 16: { + + score_ = input.readInt32(); + break; + } + case 24: { + + time_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_IVandActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_IVandActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.IVandActivity.class, net.iGap.proto.ProtoGlobal.IVandActivity.Builder.class); + } + public static final int TITLE_FIELD_NUMBER = 1; - private java.lang.String title_; + private volatile java.lang.Object title_; /** - * optional string title = 1; + * string title = 1; + * @return The title. */ + @java.lang.Override public java.lang.String getTitle() { - return title_; + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } } /** - * optional string title = 1; + * string title = 1; + * @return The bytes for title. */ + @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(title_); - } - /** - * optional string title = 1; - */ - private void setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - } - /** - * optional string title = 1; - */ - private void clearTitle() { - - title_ = getDefaultInstance().getTitle(); - } - /** - * optional string title = 1; - */ - private void setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value.toStringUtf8(); + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SCORE_FIELD_NUMBER = 2; private int score_; /** - * optional int32 score = 2; + * int32 score = 2; + * @return The score. */ + @java.lang.Override public int getScore() { return score_; } - /** - * optional int32 score = 2; - */ - private void setScore(int value) { - - score_ = value; - } - /** - * optional int32 score = 2; - */ - private void clearScore() { - - score_ = 0; - } public static final int TIME_FIELD_NUMBER = 3; private int time_; /** - * optional uint32 time = 3; + * uint32 time = 3; + * @return The time. */ + @java.lang.Override public int getTime() { return time_; } - /** - * optional uint32 time = 3; - */ - private void setTime(int value) { - - time_ = value; - } - /** - * optional uint32 time = 3; - */ - private void clearTime() { - - time_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!title_.isEmpty()) { - output.writeString(1, getTitle()); + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } if (score_ != 0) { output.writeInt32(2, score_); @@ -38547,16 +57060,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (time_ != 0) { output.writeUInt32(3, time_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!title_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getTitle()); + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); } if (score_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -38566,371 +57080,697 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, time_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.IVandActivity)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.IVandActivity other = (net.iGap.proto.ProtoGlobal.IVandActivity) obj; + + if (!getTitle() + .equals(other.getTitle())) return false; + if (getScore() + != other.getScore()) return false; + if (getTime() + != other.getTime()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + getScore(); + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + getTime(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.IVandActivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.IVandActivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.IVandActivity} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.IVandActivity, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.IVandActivity) net.iGap.proto.ProtoGlobal.IVandActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_IVandActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_IVandActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.IVandActivity.class, net.iGap.proto.ProtoGlobal.IVandActivity.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.IVandActivity.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + title_ = ""; + + score_ = 0; + + time_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_IVandActivity_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.IVandActivity getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.IVandActivity.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.IVandActivity build() { + net.iGap.proto.ProtoGlobal.IVandActivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.IVandActivity buildPartial() { + net.iGap.proto.ProtoGlobal.IVandActivity result = new net.iGap.proto.ProtoGlobal.IVandActivity(this); + result.title_ = title_; + result.score_ = score_; + result.time_ = time_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.IVandActivity) { + return mergeFrom((net.iGap.proto.ProtoGlobal.IVandActivity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.IVandActivity other) { + if (other == net.iGap.proto.ProtoGlobal.IVandActivity.getDefaultInstance()) return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (other.getScore() != 0) { + setScore(other.getScore()); + } + if (other.getTime() != 0) { + setTime(other.getTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.IVandActivity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.IVandActivity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object title_ = ""; /** - * optional string title = 1; + * string title = 1; + * @return The title. */ public java.lang.String getTitle() { - return instance.getTitle(); + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string title = 1; + * string title = 1; + * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { - return instance.getTitleBytes(); + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string title = 1; + * string title = 1; + * @param value The title to set. + * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { - copyOnWrite(); - instance.setTitle(value); + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); return this; } /** - * optional string title = 1; + * string title = 1; + * @return This builder for chaining. */ public Builder clearTitle() { - copyOnWrite(); - instance.clearTitle(); + + title_ = getDefaultInstance().getTitle(); + onChanged(); return this; } /** - * optional string title = 1; + * string title = 1; + * @param value The bytes for title to set. + * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTitleBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); return this; } + private int score_ ; /** - * optional int32 score = 2; + * int32 score = 2; + * @return The score. */ + @java.lang.Override public int getScore() { - return instance.getScore(); + return score_; } /** - * optional int32 score = 2; + * int32 score = 2; + * @param value The score to set. + * @return This builder for chaining. */ public Builder setScore(int value) { - copyOnWrite(); - instance.setScore(value); + + score_ = value; + onChanged(); return this; } /** - * optional int32 score = 2; + * int32 score = 2; + * @return This builder for chaining. */ public Builder clearScore() { - copyOnWrite(); - instance.clearScore(); + + score_ = 0; + onChanged(); return this; } + private int time_ ; /** - * optional uint32 time = 3; + * uint32 time = 3; + * @return The time. */ + @java.lang.Override public int getTime() { - return instance.getTime(); + return time_; } /** - * optional uint32 time = 3; + * uint32 time = 3; + * @param value The time to set. + * @return This builder for chaining. */ public Builder setTime(int value) { - copyOnWrite(); - instance.setTime(value); + + time_ = value; + onChanged(); return this; } /** - * optional uint32 time = 3; + * uint32 time = 3; + * @return This builder for chaining. */ public Builder clearTime() { - copyOnWrite(); - instance.clearTime(); + + time_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.IVandActivity) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.IVandActivity(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.IVandActivity other = (net.iGap.proto.ProtoGlobal.IVandActivity) arg1; - title_ = visitor.visitString(!title_.isEmpty(), title_, - !other.title_.isEmpty(), other.title_); - score_ = visitor.visitInt(score_ != 0, score_, - other.score_ != 0, other.score_); - time_ = visitor.visitInt(time_ != 0, time_, - other.time_ != 0, other.time_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 16: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - score_ = input.readInt32(); - break; - } - case 24: { - time_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.IVandActivity.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.IVandActivity) } - // @@protoc_insertion_point(class_scope:proto.IVandActivity) private static final net.iGap.proto.ProtoGlobal.IVandActivity DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new IVandActivity(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.IVandActivity(); } public static net.iGap.proto.ProtoGlobal.IVandActivity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IVandActivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IVandActivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.IVandActivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplSaleOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSale) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 invoice_number = 1 [jstype = JS_STRING]; + * uint64 invoice_number = 1 [jstype = JS_STRING]; + * @return The invoiceNumber. */ long getInvoiceNumber(); /** - * optional uint64 from_user_id = 2 [jstype = JS_STRING]; + * uint64 from_user_id = 2 [jstype = JS_STRING]; + * @return The fromUserId. */ long getFromUserId(); /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return The traceNumber. */ long getTraceNumber(); /** - * optional uint32 pay_time = 5; + * uint32 pay_time = 5; + * @return The payTime. */ int getPayTime(); /** - * optional string description = 6; + * string description = 6; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * optional string card_number = 7; + * string card_number = 7; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string card_number = 7; + * string card_number = 7; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional int64 rrn = 8; + * int64 rrn = 8; + * @return The rrn. */ long getRrn(); /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @return The status. */ net.iGap.proto.ProtoGlobal.MplSale.Status getStatus(); } /** * Protobuf type {@code proto.MplSale} */ - public static final class MplSale extends - com.google.protobuf.GeneratedMessageLite< - MplSale, MplSale.Builder> implements + public static final class MplSale extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSale) MplSaleOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSale.newBuilder() to construct. + private MplSale(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSale() { description_ = ""; cardNumber_ = ""; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSale(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSale( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + invoiceNumber_ = input.readUInt64(); + break; + } + case 16: { + + fromUserId_ = input.readUInt64(); + break; + } + case 24: { + + amount_ = input.readUInt64(); + break; + } + case 32: { + + traceNumber_ = input.readInt64(); + break; + } + case 40: { + + payTime_ = input.readUInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 64: { + + rrn_ = input.readInt64(); + break; + } + case 72: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplSale_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplSale_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplSale.class, net.iGap.proto.ProtoGlobal.MplSale.Builder.class); } + /** * Protobuf enum {@code proto.MplSale.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * PENDING_VERIFY = 0; */ @@ -38969,10 +57809,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -38980,6 +57826,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return PENDING_VERIFY; @@ -39002,6 +57852,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.MplSale.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -39014,272 +57895,176 @@ private Status(int value) { public static final int INVOICE_NUMBER_FIELD_NUMBER = 1; private long invoiceNumber_; /** - * optional uint64 invoice_number = 1 [jstype = JS_STRING]; + * uint64 invoice_number = 1 [jstype = JS_STRING]; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { return invoiceNumber_; } - /** - * optional uint64 invoice_number = 1 [jstype = JS_STRING]; - */ - private void setInvoiceNumber(long value) { - - invoiceNumber_ = value; - } - /** - * optional uint64 invoice_number = 1 [jstype = JS_STRING]; - */ - private void clearInvoiceNumber() { - - invoiceNumber_ = 0L; - } public static final int FROM_USER_ID_FIELD_NUMBER = 2; private long fromUserId_; /** - * optional uint64 from_user_id = 2 [jstype = JS_STRING]; + * uint64 from_user_id = 2 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { return fromUserId_; } - /** - * optional uint64 from_user_id = 2 [jstype = JS_STRING]; - */ - private void setFromUserId(long value) { - - fromUserId_ = value; - } - /** - * optional uint64 from_user_id = 2 [jstype = JS_STRING]; - */ - private void clearFromUserId() { - - fromUserId_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_; /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 3 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 3 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int TRACE_NUMBER_FIELD_NUMBER = 4; private long traceNumber_; /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { return traceNumber_; } - /** - * optional int64 trace_number = 4; - */ - private void setTraceNumber(long value) { - - traceNumber_ = value; - } - /** - * optional int64 trace_number = 4; - */ - private void clearTraceNumber() { - - traceNumber_ = 0L; - } public static final int PAY_TIME_FIELD_NUMBER = 5; private int payTime_; /** - * optional uint32 pay_time = 5; + * uint32 pay_time = 5; + * @return The payTime. */ + @java.lang.Override public int getPayTime() { return payTime_; } - /** - * optional uint32 pay_time = 5; - */ - private void setPayTime(int value) { - - payTime_ = value; - } - /** - * optional uint32 pay_time = 5; - */ - private void clearPayTime() { - - payTime_ = 0; - } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 6; + * string description = 6; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 6; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 6; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); - } - /** - * optional string description = 6; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CARD_NUMBER_FIELD_NUMBER = 7; - private java.lang.String cardNumber_; + private volatile java.lang.Object cardNumber_; /** - * optional string card_number = 7; + * string card_number = 7; + * @return The cardNumber. */ + @java.lang.Override public java.lang.String getCardNumber() { - return cardNumber_; + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string card_number = 7; + * string card_number = 7; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string card_number = 7; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string card_number = 7; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string card_number = 7; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int RRN_FIELD_NUMBER = 8; private long rrn_; /** - * optional int64 rrn = 8; + * int64 rrn = 8; + * @return The rrn. */ + @java.lang.Override public long getRrn() { return rrn_; } - /** - * optional int64 rrn = 8; - */ - private void setRrn(long value) { - - rrn_ = value; - } - /** - * optional int64 rrn = 8; - */ - private void clearRrn() { - - rrn_ = 0L; - } public static final int STATUS_FIELD_NUMBER = 9; private int status_; /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.MplSale.Status getStatus() { - net.iGap.proto.ProtoGlobal.MplSale.Status result = net.iGap.proto.ProtoGlobal.MplSale.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplSale.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplSale.Status result = net.iGap.proto.ProtoGlobal.MplSale.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.MplSale.Status.UNRECOGNIZED : result; } - /** - * optional .proto.MplSale.Status status = 9; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.MplSale.Status status = 9; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.MplSale.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.MplSale.Status status = 9; - */ - private void clearStatus() { - - status_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (invoiceNumber_ != 0L) { @@ -39297,11 +58082,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (payTime_ != 0) { output.writeUInt32(5, payTime_); } - if (!description_.isEmpty()) { - output.writeString(6, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - if (!cardNumber_.isEmpty()) { - output.writeString(7, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cardNumber_); } if (rrn_ != 0L) { output.writeInt64(8, rrn_); @@ -39309,10 +58094,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != net.iGap.proto.ProtoGlobal.MplSale.Status.PENDING_VERIFY.getNumber()) { output.writeEnum(9, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -39336,13 +58123,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, payTime_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cardNumber_); } if (rrn_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -39352,588 +58137,1065 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplSale)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplSale other = (net.iGap.proto.ProtoGlobal.MplSale) obj; + + if (getInvoiceNumber() + != other.getInvoiceNumber()) return false; + if (getFromUserId() + != other.getFromUserId()) return false; + if (getAmount() + != other.getAmount()) return false; + if (getTraceNumber() + != other.getTraceNumber()) return false; + if (getPayTime() + != other.getPayTime()) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (getRrn() + != other.getRrn()) return false; + if (status_ != other.status_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INVOICE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInvoiceNumber()); + hash = (37 * hash) + FROM_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFromUserId()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + TRACE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTraceNumber()); + hash = (37 * hash) + PAY_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPayTime(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRrn()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplSale parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplSale parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplSale parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplSale prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.MplSale} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MplSale) + net.iGap.proto.ProtoGlobal.MplSaleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplSale_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplSale_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplSale.class, net.iGap.proto.ProtoGlobal.MplSale.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.MplSale.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + invoiceNumber_ = 0L; + + fromUserId_ = 0L; + + amount_ = 0L; + + traceNumber_ = 0L; + + payTime_ = 0; + + description_ = ""; + + cardNumber_ = ""; + + rrn_ = 0L; + + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplSale_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplSale getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplSale build() { + net.iGap.proto.ProtoGlobal.MplSale result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplSale buildPartial() { + net.iGap.proto.ProtoGlobal.MplSale result = new net.iGap.proto.ProtoGlobal.MplSale(this); + result.invoiceNumber_ = invoiceNumber_; + result.fromUserId_ = fromUserId_; + result.amount_ = amount_; + result.traceNumber_ = traceNumber_; + result.payTime_ = payTime_; + result.description_ = description_; + result.cardNumber_ = cardNumber_; + result.rrn_ = rrn_; + result.status_ = status_; + onBuilt(); + return result; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplSale prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.MplSale) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplSale)other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * Protobuf type {@code proto.MplSale} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.MplSale, Builder> implements - // @@protoc_insertion_point(builder_implements:proto.MplSale) - net.iGap.proto.ProtoGlobal.MplSaleOrBuilder { - // Construct using net.iGap.proto.ProtoGlobal.MplSale.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplSale other) { + if (other == net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance()) return this; + if (other.getInvoiceNumber() != 0L) { + setInvoiceNumber(other.getInvoiceNumber()); + } + if (other.getFromUserId() != 0L) { + setFromUserId(other.getFromUserId()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getTraceNumber() != 0L) { + setTraceNumber(other.getTraceNumber()); + } + if (other.getPayTime() != 0) { + setPayTime(other.getPayTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (other.getRrn() != 0L) { + setRrn(other.getRrn()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.MplSale parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplSale) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long invoiceNumber_ ; /** - * optional uint64 invoice_number = 1 [jstype = JS_STRING]; + * uint64 invoice_number = 1 [jstype = JS_STRING]; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { - return instance.getInvoiceNumber(); + return invoiceNumber_; } /** - * optional uint64 invoice_number = 1 [jstype = JS_STRING]; + * uint64 invoice_number = 1 [jstype = JS_STRING]; + * @param value The invoiceNumber to set. + * @return This builder for chaining. */ public Builder setInvoiceNumber(long value) { - copyOnWrite(); - instance.setInvoiceNumber(value); + + invoiceNumber_ = value; + onChanged(); return this; } /** - * optional uint64 invoice_number = 1 [jstype = JS_STRING]; + * uint64 invoice_number = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearInvoiceNumber() { - copyOnWrite(); - instance.clearInvoiceNumber(); + + invoiceNumber_ = 0L; + onChanged(); return this; } + private long fromUserId_ ; /** - * optional uint64 from_user_id = 2 [jstype = JS_STRING]; + * uint64 from_user_id = 2 [jstype = JS_STRING]; + * @return The fromUserId. */ + @java.lang.Override public long getFromUserId() { - return instance.getFromUserId(); + return fromUserId_; } /** - * optional uint64 from_user_id = 2 [jstype = JS_STRING]; + * uint64 from_user_id = 2 [jstype = JS_STRING]; + * @param value The fromUserId to set. + * @return This builder for chaining. */ public Builder setFromUserId(long value) { - copyOnWrite(); - instance.setFromUserId(value); + + fromUserId_ = value; + onChanged(); return this; } /** - * optional uint64 from_user_id = 2 [jstype = JS_STRING]; + * uint64 from_user_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearFromUserId() { - copyOnWrite(); - instance.clearFromUserId(); + + fromUserId_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 3 [jstype = JS_STRING]; + * uint64 amount = 3 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private long traceNumber_ ; /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return The traceNumber. */ + @java.lang.Override public long getTraceNumber() { - return instance.getTraceNumber(); + return traceNumber_; } /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @param value The traceNumber to set. + * @return This builder for chaining. */ public Builder setTraceNumber(long value) { - copyOnWrite(); - instance.setTraceNumber(value); + + traceNumber_ = value; + onChanged(); return this; } /** - * optional int64 trace_number = 4; + * int64 trace_number = 4; + * @return This builder for chaining. */ public Builder clearTraceNumber() { - copyOnWrite(); - instance.clearTraceNumber(); + + traceNumber_ = 0L; + onChanged(); return this; } + private int payTime_ ; /** - * optional uint32 pay_time = 5; + * uint32 pay_time = 5; + * @return The payTime. */ + @java.lang.Override public int getPayTime() { - return instance.getPayTime(); + return payTime_; } /** - * optional uint32 pay_time = 5; + * uint32 pay_time = 5; + * @param value The payTime to set. + * @return This builder for chaining. */ public Builder setPayTime(int value) { - copyOnWrite(); - instance.setPayTime(value); + + payTime_ = value; + onChanged(); return this; } /** - * optional uint32 pay_time = 5; + * uint32 pay_time = 5; + * @return This builder for chaining. */ public Builder clearPayTime() { - copyOnWrite(); - instance.clearPayTime(); + + payTime_ = 0; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 6; + * string description = 6; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 6; + * string description = 6; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 6; + * string description = 6; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 6; + * string description = 6; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string card_number = 7; + * string card_number = 7; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string card_number = 7; + * string card_number = 7; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string card_number = 7; + * string card_number = 7; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string card_number = 7; + * string card_number = 7; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string card_number = 7; + * string card_number = 7; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private long rrn_ ; /** - * optional int64 rrn = 8; + * int64 rrn = 8; + * @return The rrn. */ + @java.lang.Override public long getRrn() { - return instance.getRrn(); + return rrn_; } /** - * optional int64 rrn = 8; + * int64 rrn = 8; + * @param value The rrn to set. + * @return This builder for chaining. */ public Builder setRrn(long value) { - copyOnWrite(); - instance.setRrn(value); + + rrn_ = value; + onChanged(); return this; } /** - * optional int64 rrn = 8; + * int64 rrn = 8; + * @return This builder for chaining. */ public Builder clearRrn() { - copyOnWrite(); - instance.clearRrn(); + + rrn_ = 0L; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplSale.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplSale.Status result = net.iGap.proto.ProtoGlobal.MplSale.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.MplSale.Status.UNRECOGNIZED : result; } /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.MplSale.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MplSale.Status status = 9; + * .proto.MplSale.Status status = 9; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplSale) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.MplSale(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.MplSale other = (net.iGap.proto.ProtoGlobal.MplSale) arg1; - invoiceNumber_ = visitor.visitLong(invoiceNumber_ != 0L, invoiceNumber_, - other.invoiceNumber_ != 0L, other.invoiceNumber_); - fromUserId_ = visitor.visitLong(fromUserId_ != 0L, fromUserId_, - other.fromUserId_ != 0L, other.fromUserId_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - traceNumber_ = visitor.visitLong(traceNumber_ != 0L, traceNumber_, - other.traceNumber_ != 0L, other.traceNumber_); - payTime_ = visitor.visitInt(payTime_ != 0, payTime_, - other.payTime_ != 0, other.payTime_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - rrn_ = visitor.visitLong(rrn_ != 0L, rrn_, - other.rrn_ != 0L, other.rrn_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - invoiceNumber_ = input.readUInt64(); - break; - } - case 16: { - - fromUserId_ = input.readUInt64(); - break; - } - case 24: { - - amount_ = input.readUInt64(); - break; - } - case 32: { - - traceNumber_ = input.readInt64(); - break; - } - case 40: { - - payTime_ = input.readUInt32(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - cardNumber_ = s; - break; - } - case 64: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - rrn_ = input.readInt64(); - break; - } - case 72: { - int rawValue = input.readEnum(); - status_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.MplSale.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.MplSale) } - // @@protoc_insertion_point(class_scope:proto.MplSale) private static final net.iGap.proto.ProtoGlobal.MplSale DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSale(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplSale(); } public static net.iGap.proto.ProtoGlobal.MplSale getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSale parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSale(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplSale getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplTransactionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransaction) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; + * uint64 order_id = 1 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional uint32 pay_time = 3; + * uint32 pay_time = 3; + * @return The payTime. */ int getPayTime(); /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @return The type. */ net.iGap.proto.ProtoGlobal.MplTransaction.Type getType(); /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; + * @return Whether the bill field is set. */ boolean hasBill(); /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; + * @return The bill. */ net.iGap.proto.ProtoGlobal.MplTransaction.Bill getBill(); + /** + * .proto.MplTransaction.Bill bill = 5; + */ + net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder getBillOrBuilder(); /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; + * @return Whether the topup field is set. */ boolean hasTopup(); /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; + * @return The topup. */ net.iGap.proto.ProtoGlobal.MplTransaction.Topup getTopup(); + /** + * .proto.MplTransaction.Topup topup = 6; + */ + net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder getTopupOrBuilder(); /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; + * @return Whether the sales field is set. */ boolean hasSales(); /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; + * @return The sales. */ net.iGap.proto.ProtoGlobal.MplTransaction.Sales getSales(); + /** + * .proto.MplTransaction.Sales sales = 7; + */ + net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder getSalesOrBuilder(); /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; + * @return Whether the cardtocard field is set. */ boolean hasCardtocard(); /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; + * @return The cardtocard. */ net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard(); + /** + * .proto.MplTransaction.CardToCard cardtocard = 8; + */ + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder getCardtocardOrBuilder(); } /** * Protobuf type {@code proto.MplTransaction} */ - public static final class MplTransaction extends - com.google.protobuf.GeneratedMessageLite< - MplTransaction, MplTransaction.Builder> implements + public static final class MplTransaction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransaction) MplTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplTransaction.newBuilder() to construct. + private MplTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplTransaction() { token_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplTransaction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + orderId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + + payTime_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 42: { + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder subBuilder = null; + if (bill_ != null) { + subBuilder = bill_.toBuilder(); + } + bill_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.Bill.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bill_); + bill_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder subBuilder = null; + if (topup_ != null) { + subBuilder = topup_.toBuilder(); + } + topup_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.Topup.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topup_); + topup_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder subBuilder = null; + if (sales_ != null) { + subBuilder = sales_.toBuilder(); + } + sales_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.Sales.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sales_); + sales_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder subBuilder = null; + if (cardtocard_ != null) { + subBuilder = cardtocard_.toBuilder(); + } + cardtocard_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardtocard_); + cardtocard_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.class, net.iGap.proto.ProtoGlobal.MplTransaction.Builder.class); + } + /** * Protobuf enum {@code proto.MplTransaction.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 0; */ @@ -39980,10 +59242,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -39991,6 +59259,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return NONE; @@ -40014,6 +59286,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.MplTransaction.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -40025,111 +59328,134 @@ private Type(int value) { public interface BillOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransaction.Bill) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string BillId = 1; + * string BillId = 1; + * @return The billId. */ java.lang.String getBillId(); /** - * optional string BillId = 1; + * string BillId = 1; + * @return The bytes for billId. */ com.google.protobuf.ByteString getBillIdBytes(); /** - * optional string PayId = 2; + * string PayId = 2; + * @return The payId. */ java.lang.String getPayId(); /** - * optional string PayId = 2; + * string PayId = 2; + * @return The bytes for payId. */ com.google.protobuf.ByteString getPayIdBytes(); /** - * optional string BillType = 3; + * string BillType = 3; + * @return The billType. */ java.lang.String getBillType(); /** - * optional string BillType = 3; + * string BillType = 3; + * @return The bytes for billType. */ com.google.protobuf.ByteString getBillTypeBytes(); /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return The status. */ int getStatus(); /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The merchantName. */ java.lang.String getMerchantName(); /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The bytes for merchantName. */ com.google.protobuf.ByteString getMerchantNameBytes(); /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ long getRequestDateTime(); /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ long getRRN(); /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ java.lang.String getStatusDescription(); /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ com.google.protobuf.ByteString getStatusDescriptionBytes(); /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return The terminalNo. */ int getTerminalNo(); /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ int getTraceNo(); } /** * Protobuf type {@code proto.MplTransaction.Bill} */ - public static final class Bill extends - com.google.protobuf.GeneratedMessageLite< - Bill, Bill.Builder> implements + public static final class Bill extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransaction.Bill) BillOrBuilder { + private static final long serialVersionUID = 0L; + // Use Bill.newBuilder() to construct. + private Bill(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Bill() { billId_ = ""; payId_ = ""; @@ -40138,453 +59464,467 @@ private Bill() { merchantName_ = ""; statusDescription_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Bill(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Bill( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + billId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + payId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + billType_ = s; + break; + } + case 32: { + + status_ = input.readUInt32(); + break; + } + case 40: { + + amount_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + merchantName_ = s; + break; + } + case 64: { + + orderId_ = input.readUInt64(); + break; + } + case 72: { + + requestDateTime_ = input.readUInt64(); + break; + } + case 80: { + + rRN_ = input.readUInt64(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDescription_ = s; + break; + } + case 96: { + + terminalNo_ = input.readUInt32(); + break; + } + case 104: { + + traceNo_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Bill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Bill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.class, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder.class); + } + public static final int BILLID_FIELD_NUMBER = 1; - private java.lang.String billId_; + private volatile java.lang.Object billId_; /** - * optional string BillId = 1; + * string BillId = 1; + * @return The billId. */ + @java.lang.Override public java.lang.String getBillId() { - return billId_; + java.lang.Object ref = billId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billId_ = s; + return s; + } } /** - * optional string BillId = 1; + * string BillId = 1; + * @return The bytes for billId. */ + @java.lang.Override public com.google.protobuf.ByteString getBillIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(billId_); - } - /** - * optional string BillId = 1; - */ - private void setBillId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - billId_ = value; - } - /** - * optional string BillId = 1; - */ - private void clearBillId() { - - billId_ = getDefaultInstance().getBillId(); - } - /** - * optional string BillId = 1; - */ - private void setBillIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - billId_ = value.toStringUtf8(); + java.lang.Object ref = billId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PAYID_FIELD_NUMBER = 2; - private java.lang.String payId_; + private volatile java.lang.Object payId_; /** - * optional string PayId = 2; + * string PayId = 2; + * @return The payId. */ + @java.lang.Override public java.lang.String getPayId() { - return payId_; + java.lang.Object ref = payId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payId_ = s; + return s; + } } /** - * optional string PayId = 2; + * string PayId = 2; + * @return The bytes for payId. */ + @java.lang.Override public com.google.protobuf.ByteString getPayIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(payId_); - } - /** - * optional string PayId = 2; - */ - private void setPayId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - payId_ = value; - } - /** - * optional string PayId = 2; - */ - private void clearPayId() { - - payId_ = getDefaultInstance().getPayId(); - } - /** - * optional string PayId = 2; - */ - private void setPayIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - payId_ = value.toStringUtf8(); + java.lang.Object ref = payId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + payId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BILLTYPE_FIELD_NUMBER = 3; - private java.lang.String billType_; + private volatile java.lang.Object billType_; /** - * optional string BillType = 3; + * string BillType = 3; + * @return The billType. */ + @java.lang.Override public java.lang.String getBillType() { - return billType_; + java.lang.Object ref = billType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billType_ = s; + return s; + } } /** - * optional string BillType = 3; + * string BillType = 3; + * @return The bytes for billType. */ + @java.lang.Override public com.google.protobuf.ByteString getBillTypeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(billType_); - } - /** - * optional string BillType = 3; - */ - private void setBillType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - billType_ = value; - } - /** - * optional string BillType = 3; - */ - private void clearBillType() { - - billType_ = getDefaultInstance().getBillType(); - } - /** - * optional string BillType = 3; - */ - private void setBillTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - billType_ = value.toStringUtf8(); + java.lang.Object ref = billType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 Status = 4; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 Status = 4; - */ - private void clearStatus() { - - status_ = 0; - } public static final int AMOUNT_FIELD_NUMBER = 5; private long amount_; /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int CARDNUMBER_FIELD_NUMBER = 6; - private java.lang.String cardNumber_; + private volatile java.lang.Object cardNumber_; /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The cardNumber. */ + @java.lang.Override public java.lang.String getCardNumber() { - return cardNumber_; + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string CardNumber = 6; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string CardNumber = 6; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string CardNumber = 6; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MERCHANTNAME_FIELD_NUMBER = 7; - private java.lang.String merchantName_; + private volatile java.lang.Object merchantName_; /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The merchantName. */ + @java.lang.Override public java.lang.String getMerchantName() { - return merchantName_; + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The bytes for merchantName. */ + @java.lang.Override public com.google.protobuf.ByteString getMerchantNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(merchantName_); - } - /** - * optional string MerchantName = 7; - */ - private void setMerchantName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - merchantName_ = value; - } - /** - * optional string MerchantName = 7; - */ - private void clearMerchantName() { - - merchantName_ = getDefaultInstance().getMerchantName(); - } - /** - * optional string MerchantName = 7; - */ - private void setMerchantNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - merchantName_ = value.toStringUtf8(); + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ORDERID_FIELD_NUMBER = 8; private long orderId_; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int REQUESTDATETIME_FIELD_NUMBER = 9; private long requestDateTime_; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { return requestDateTime_; } - /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; - */ - private void setRequestDateTime(long value) { - - requestDateTime_ = value; - } - /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; - */ - private void clearRequestDateTime() { - - requestDateTime_ = 0L; - } public static final int RRN_FIELD_NUMBER = 10; private long rRN_; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { return rRN_; } - /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; - */ - private void setRRN(long value) { - - rRN_ = value; - } - /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; - */ - private void clearRRN() { - - rRN_ = 0L; - } public static final int STATUSDESCRIPTION_FIELD_NUMBER = 11; - private java.lang.String statusDescription_; + private volatile java.lang.Object statusDescription_; /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ + @java.lang.Override public java.lang.String getStatusDescription() { - return statusDescription_; + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(statusDescription_); - } - /** - * optional string StatusDescription = 11; - */ - private void setStatusDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDescription_ = value; - } - /** - * optional string StatusDescription = 11; - */ - private void clearStatusDescription() { - - statusDescription_ = getDefaultInstance().getStatusDescription(); - } - /** - * optional string StatusDescription = 11; - */ - private void setStatusDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDescription_ = value.toStringUtf8(); + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TERMINALNO_FIELD_NUMBER = 12; private int terminalNo_; /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return The terminalNo. */ + @java.lang.Override public int getTerminalNo() { return terminalNo_; } - /** - * optional uint32 TerminalNo = 12; - */ - private void setTerminalNo(int value) { - - terminalNo_ = value; - } - /** - * optional uint32 TerminalNo = 12; - */ - private void clearTerminalNo() { - - terminalNo_ = 0; - } public static final int TRACENO_FIELD_NUMBER = 13; private int traceNo_; /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { return traceNo_; } - /** - * optional uint32 TraceNo = 13; - */ - private void setTraceNo(int value) { - - traceNo_ = value; - } - /** - * optional uint32 TraceNo = 13; - */ - private void clearTraceNo() { - - traceNo_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!billId_.isEmpty()) { - output.writeString(1, getBillId()); + if (!getBillIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, billId_); } - if (!payId_.isEmpty()) { - output.writeString(2, getPayId()); + if (!getPayIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payId_); } - if (!billType_.isEmpty()) { - output.writeString(3, getBillType()); + if (!getBillTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, billType_); } if (status_ != 0) { output.writeUInt32(4, status_); @@ -40592,11 +59932,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(5, amount_); } - if (!cardNumber_.isEmpty()) { - output.writeString(6, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cardNumber_); } - if (!merchantName_.isEmpty()) { - output.writeString(7, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, merchantName_); } if (orderId_ != 0L) { output.writeUInt64(8, orderId_); @@ -40607,8 +59947,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (rRN_ != 0L) { output.writeUInt64(10, rRN_); } - if (!statusDescription_.isEmpty()) { - output.writeString(11, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, statusDescription_); } if (terminalNo_ != 0) { output.writeUInt32(12, terminalNo_); @@ -40616,24 +59956,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (traceNo_ != 0) { output.writeUInt32(13, traceNo_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!billId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getBillId()); + if (!getBillIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, billId_); } - if (!payId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPayId()); + if (!getPayIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payId_); } - if (!billType_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getBillType()); + if (!getBillTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, billType_); } if (status_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -40643,13 +59982,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, amount_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cardNumber_); } - if (!merchantName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, merchantName_); } if (orderId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -40663,9 +60000,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, rRN_); } - if (!statusDescription_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(11, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, statusDescription_); } if (terminalNo_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -40675,1146 +60011,1617 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, traceNo_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplTransaction.Bill)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplTransaction.Bill other = (net.iGap.proto.ProtoGlobal.MplTransaction.Bill) obj; + + if (!getBillId() + .equals(other.getBillId())) return false; + if (!getPayId() + .equals(other.getPayId())) return false; + if (!getBillType() + .equals(other.getBillType())) return false; + if (getStatus() + != other.getStatus()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (!getMerchantName() + .equals(other.getMerchantName())) return false; + if (getOrderId() + != other.getOrderId()) return false; + if (getRequestDateTime() + != other.getRequestDateTime()) return false; + if (getRRN() + != other.getRRN()) return false; + if (!getStatusDescription() + .equals(other.getStatusDescription())) return false; + if (getTerminalNo() + != other.getTerminalNo()) return false; + if (getTraceNo() + != other.getTraceNo()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BILLID_FIELD_NUMBER; + hash = (53 * hash) + getBillId().hashCode(); + hash = (37 * hash) + PAYID_FIELD_NUMBER; + hash = (53 * hash) + getPayId().hashCode(); + hash = (37 * hash) + BILLTYPE_FIELD_NUMBER; + hash = (53 * hash) + getBillType().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + CARDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + MERCHANTNAME_FIELD_NUMBER; + hash = (53 * hash) + getMerchantName().hashCode(); + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + REQUESTDATETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestDateTime()); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRRN()); + hash = (37 * hash) + STATUSDESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStatusDescription().hashCode(); + hash = (37 * hash) + TERMINALNO_FIELD_NUMBER; + hash = (53 * hash) + getTerminalNo(); + hash = (37 * hash) + TRACENO_FIELD_NUMBER; + hash = (53 * hash) + getTraceNo(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplTransaction.Bill prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransaction.Bill} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.MplTransaction.Bill, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransaction.Bill) net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Bill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Bill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.class, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.Bill.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + billId_ = ""; + + payId_ = ""; + + billType_ = ""; + + status_ = 0; + + amount_ = 0L; + + cardNumber_ = ""; + + merchantName_ = ""; + + orderId_ = 0L; + + requestDateTime_ = 0L; + + rRN_ = 0L; + + statusDescription_ = ""; + + terminalNo_ = 0; + + traceNo_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Bill_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill build() { + net.iGap.proto.ProtoGlobal.MplTransaction.Bill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill buildPartial() { + net.iGap.proto.ProtoGlobal.MplTransaction.Bill result = new net.iGap.proto.ProtoGlobal.MplTransaction.Bill(this); + result.billId_ = billId_; + result.payId_ = payId_; + result.billType_ = billType_; + result.status_ = status_; + result.amount_ = amount_; + result.cardNumber_ = cardNumber_; + result.merchantName_ = merchantName_; + result.orderId_ = orderId_; + result.requestDateTime_ = requestDateTime_; + result.rRN_ = rRN_; + result.statusDescription_ = statusDescription_; + result.terminalNo_ = terminalNo_; + result.traceNo_ = traceNo_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.MplTransaction.Bill) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction.Bill)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction.Bill other) { + if (other == net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance()) return this; + if (!other.getBillId().isEmpty()) { + billId_ = other.billId_; + onChanged(); + } + if (!other.getPayId().isEmpty()) { + payId_ = other.payId_; + onChanged(); + } + if (!other.getBillType().isEmpty()) { + billType_ = other.billType_; + onChanged(); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (!other.getMerchantName().isEmpty()) { + merchantName_ = other.merchantName_; + onChanged(); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (other.getRequestDateTime() != 0L) { + setRequestDateTime(other.getRequestDateTime()); + } + if (other.getRRN() != 0L) { + setRRN(other.getRRN()); + } + if (!other.getStatusDescription().isEmpty()) { + statusDescription_ = other.statusDescription_; + onChanged(); + } + if (other.getTerminalNo() != 0) { + setTerminalNo(other.getTerminalNo()); + } + if (other.getTraceNo() != 0) { + setTraceNo(other.getTraceNo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.MplTransaction.Bill parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction.Bill) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object billId_ = ""; /** - * optional string BillId = 1; + * string BillId = 1; + * @return The billId. */ public java.lang.String getBillId() { - return instance.getBillId(); + java.lang.Object ref = billId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string BillId = 1; + * string BillId = 1; + * @return The bytes for billId. */ public com.google.protobuf.ByteString getBillIdBytes() { - return instance.getBillIdBytes(); + java.lang.Object ref = billId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string BillId = 1; + * string BillId = 1; + * @param value The billId to set. + * @return This builder for chaining. */ public Builder setBillId( java.lang.String value) { - copyOnWrite(); - instance.setBillId(value); + if (value == null) { + throw new NullPointerException(); + } + + billId_ = value; + onChanged(); return this; } /** - * optional string BillId = 1; + * string BillId = 1; + * @return This builder for chaining. */ public Builder clearBillId() { - copyOnWrite(); - instance.clearBillId(); + + billId_ = getDefaultInstance().getBillId(); + onChanged(); return this; } /** - * optional string BillId = 1; + * string BillId = 1; + * @param value The bytes for billId to set. + * @return This builder for chaining. */ public Builder setBillIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBillIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + billId_ = value; + onChanged(); return this; } + private java.lang.Object payId_ = ""; /** - * optional string PayId = 2; + * string PayId = 2; + * @return The payId. */ public java.lang.String getPayId() { - return instance.getPayId(); + java.lang.Object ref = payId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string PayId = 2; + * string PayId = 2; + * @return The bytes for payId. */ public com.google.protobuf.ByteString getPayIdBytes() { - return instance.getPayIdBytes(); + java.lang.Object ref = payId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + payId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string PayId = 2; + * string PayId = 2; + * @param value The payId to set. + * @return This builder for chaining. */ public Builder setPayId( java.lang.String value) { - copyOnWrite(); - instance.setPayId(value); + if (value == null) { + throw new NullPointerException(); + } + + payId_ = value; + onChanged(); return this; } /** - * optional string PayId = 2; + * string PayId = 2; + * @return This builder for chaining. */ public Builder clearPayId() { - copyOnWrite(); - instance.clearPayId(); + + payId_ = getDefaultInstance().getPayId(); + onChanged(); return this; } /** - * optional string PayId = 2; + * string PayId = 2; + * @param value The bytes for payId to set. + * @return This builder for chaining. */ public Builder setPayIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPayIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + payId_ = value; + onChanged(); return this; } + private java.lang.Object billType_ = ""; /** - * optional string BillType = 3; + * string BillType = 3; + * @return The billType. */ public java.lang.String getBillType() { - return instance.getBillType(); + java.lang.Object ref = billType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billType_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string BillType = 3; + * string BillType = 3; + * @return The bytes for billType. */ public com.google.protobuf.ByteString getBillTypeBytes() { - return instance.getBillTypeBytes(); + java.lang.Object ref = billType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + billType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string BillType = 3; + * string BillType = 3; + * @param value The billType to set. + * @return This builder for chaining. */ public Builder setBillType( java.lang.String value) { - copyOnWrite(); - instance.setBillType(value); + if (value == null) { + throw new NullPointerException(); + } + + billType_ = value; + onChanged(); return this; } /** - * optional string BillType = 3; + * string BillType = 3; + * @return This builder for chaining. */ public Builder clearBillType() { - copyOnWrite(); - instance.clearBillType(); + + billType_ = getDefaultInstance().getBillType(); + onChanged(); return this; } /** - * optional string BillType = 3; + * string BillType = 3; + * @param value The bytes for billType to set. + * @return This builder for chaining. */ public Builder setBillTypeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBillTypeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + billType_ = value; + onChanged(); return this; } + private int status_ ; /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private java.lang.Object merchantName_ = ""; /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The merchantName. */ public java.lang.String getMerchantName() { - return instance.getMerchantName(); + java.lang.Object ref = merchantName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The bytes for merchantName. */ public com.google.protobuf.ByteString getMerchantNameBytes() { - return instance.getMerchantNameBytes(); + java.lang.Object ref = merchantName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @param value The merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantName( java.lang.String value) { - copyOnWrite(); - instance.setMerchantName(value); + if (value == null) { + throw new NullPointerException(); + } + + merchantName_ = value; + onChanged(); return this; } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return This builder for chaining. */ public Builder clearMerchantName() { - copyOnWrite(); - instance.clearMerchantName(); + + merchantName_ = getDefaultInstance().getMerchantName(); + onChanged(); return this; } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @param value The bytes for merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMerchantNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + merchantName_ = value; + onChanged(); return this; } + private long orderId_ ; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private long requestDateTime_ ; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { - return instance.getRequestDateTime(); + return requestDateTime_; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @param value The requestDateTime to set. + * @return This builder for chaining. */ public Builder setRequestDateTime(long value) { - copyOnWrite(); - instance.setRequestDateTime(value); + + requestDateTime_ = value; + onChanged(); return this; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRequestDateTime() { - copyOnWrite(); - instance.clearRequestDateTime(); + + requestDateTime_ = 0L; + onChanged(); return this; } + private long rRN_ ; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { - return instance.getRRN(); + return rRN_; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @param value The rRN to set. + * @return This builder for chaining. */ public Builder setRRN(long value) { - copyOnWrite(); - instance.setRRN(value); + + rRN_ = value; + onChanged(); return this; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRRN() { - copyOnWrite(); - instance.clearRRN(); + + rRN_ = 0L; + onChanged(); return this; } + private java.lang.Object statusDescription_ = ""; /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ public java.lang.String getStatusDescription() { - return instance.getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return instance.getStatusDescriptionBytes(); + java.lang.Object ref = statusDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @param value The statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescription( java.lang.String value) { - copyOnWrite(); - instance.setStatusDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + statusDescription_ = value; + onChanged(); return this; } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return This builder for chaining. */ public Builder clearStatusDescription() { - copyOnWrite(); - instance.clearStatusDescription(); + + statusDescription_ = getDefaultInstance().getStatusDescription(); + onChanged(); return this; } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @param value The bytes for statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setStatusDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDescription_ = value; + onChanged(); return this; } + private int terminalNo_ ; /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return The terminalNo. */ + @java.lang.Override public int getTerminalNo() { - return instance.getTerminalNo(); + return terminalNo_; } /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @param value The terminalNo to set. + * @return This builder for chaining. */ public Builder setTerminalNo(int value) { - copyOnWrite(); - instance.setTerminalNo(value); + + terminalNo_ = value; + onChanged(); return this; } /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return This builder for chaining. */ public Builder clearTerminalNo() { - copyOnWrite(); - instance.clearTerminalNo(); + + terminalNo_ = 0; + onChanged(); return this; } + private int traceNo_ ; /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { - return instance.getTraceNo(); + return traceNo_; } /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @param value The traceNo to set. + * @return This builder for chaining. */ public Builder setTraceNo(int value) { - copyOnWrite(); - instance.setTraceNo(value); + + traceNo_ = value; + onChanged(); return this; } /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return This builder for chaining. */ public Builder clearTraceNo() { - copyOnWrite(); - instance.clearTraceNo(); + + traceNo_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplTransaction.Bill) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.MplTransaction.Bill(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.MplTransaction.Bill other = (net.iGap.proto.ProtoGlobal.MplTransaction.Bill) arg1; - billId_ = visitor.visitString(!billId_.isEmpty(), billId_, - !other.billId_.isEmpty(), other.billId_); - payId_ = visitor.visitString(!payId_.isEmpty(), payId_, - !other.payId_.isEmpty(), other.payId_); - billType_ = visitor.visitString(!billType_.isEmpty(), billType_, - !other.billType_.isEmpty(), other.billType_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - merchantName_ = visitor.visitString(!merchantName_.isEmpty(), merchantName_, - !other.merchantName_.isEmpty(), other.merchantName_); - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - requestDateTime_ = visitor.visitLong(requestDateTime_ != 0L, requestDateTime_, - other.requestDateTime_ != 0L, other.requestDateTime_); - rRN_ = visitor.visitLong(rRN_ != 0L, rRN_, - other.rRN_ != 0L, other.rRN_); - statusDescription_ = visitor.visitString(!statusDescription_.isEmpty(), statusDescription_, - !other.statusDescription_.isEmpty(), other.statusDescription_); - terminalNo_ = visitor.visitInt(terminalNo_ != 0, terminalNo_, - other.terminalNo_ != 0, other.terminalNo_); - traceNo_ = visitor.visitInt(traceNo_ != 0, traceNo_, - other.traceNo_ != 0, other.traceNo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - billId_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - payId_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - billType_ = s; - break; - } - case 32: { - - status_ = input.readUInt32(); - break; - } - case 40: { - - amount_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - cardNumber_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - merchantName_ = s; - break; - } - case 64: { - - orderId_ = input.readUInt64(); - break; - } - case 72: { - - requestDateTime_ = input.readUInt64(); - break; - } - case 80: { - - rRN_ = input.readUInt64(); - break; - } - case 90: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - statusDescription_ = s; - break; - } - case 96: { - terminalNo_ = input.readUInt32(); - break; - } - case 104: { - - traceNo_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.MplTransaction.Bill.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.MplTransaction.Bill) } - // @@protoc_insertion_point(class_scope:proto.MplTransaction.Bill) private static final net.iGap.proto.ProtoGlobal.MplTransaction.Bill DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Bill(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction.Bill(); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Bill getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Bill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Bill(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface TopupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransaction.Topup) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * @return The requesterMobileNumber. */ long getRequesterMobileNumber(); /** - * optional uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * @return The chargeMobileNumber. */ long getChargeMobileNumber(); /** - * optional uint32 TopupType = 3; + * uint32 TopupType = 3; + * @return The topupType. */ int getTopupType(); /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return The status. */ int getStatus(); /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The merchantName. */ java.lang.String getMerchantName(); /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The bytes for merchantName. */ com.google.protobuf.ByteString getMerchantNameBytes(); /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ long getRequestDateTime(); /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ long getRRN(); /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ java.lang.String getStatusDescription(); /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ com.google.protobuf.ByteString getStatusDescriptionBytes(); /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return The terminalNo. */ int getTerminalNo(); /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ int getTraceNo(); } /** * Protobuf type {@code proto.MplTransaction.Topup} */ - public static final class Topup extends - com.google.protobuf.GeneratedMessageLite< - Topup, Topup.Builder> implements + public static final class Topup extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransaction.Topup) TopupOrBuilder { + private static final long serialVersionUID = 0L; + // Use Topup.newBuilder() to construct. + private Topup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Topup() { cardNumber_ = ""; merchantName_ = ""; statusDescription_ = ""; } - public static final int REQUESTERMOBILENUMBER_FIELD_NUMBER = 1; - private long requesterMobileNumber_; - /** - * optional uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; - */ - public long getRequesterMobileNumber() { - return requesterMobileNumber_; + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Topup(); } - /** - * optional uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; - */ - private void setRequesterMobileNumber(long value) { - - requesterMobileNumber_ = value; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Topup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + requesterMobileNumber_ = input.readUInt64(); + break; + } + case 16: { + + chargeMobileNumber_ = input.readUInt64(); + break; + } + case 24: { + + topupType_ = input.readUInt32(); + break; + } + case 32: { + + status_ = input.readUInt32(); + break; + } + case 40: { + + amount_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + merchantName_ = s; + break; + } + case 64: { + + orderId_ = input.readUInt64(); + break; + } + case 72: { + + requestDateTime_ = input.readUInt64(); + break; + } + case 80: { + + rRN_ = input.readUInt64(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDescription_ = s; + break; + } + case 96: { + + terminalNo_ = input.readUInt32(); + break; + } + case 104: { + + traceNo_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Topup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Topup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.class, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder.class); } + + public static final int REQUESTERMOBILENUMBER_FIELD_NUMBER = 1; + private long requesterMobileNumber_; /** - * optional uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * @return The requesterMobileNumber. */ - private void clearRequesterMobileNumber() { - - requesterMobileNumber_ = 0L; + @java.lang.Override + public long getRequesterMobileNumber() { + return requesterMobileNumber_; } public static final int CHARGEMOBILENUMBER_FIELD_NUMBER = 2; private long chargeMobileNumber_; /** - * optional uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * @return The chargeMobileNumber. */ + @java.lang.Override public long getChargeMobileNumber() { return chargeMobileNumber_; } - /** - * optional uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; - */ - private void setChargeMobileNumber(long value) { - - chargeMobileNumber_ = value; - } - /** - * optional uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; - */ - private void clearChargeMobileNumber() { - - chargeMobileNumber_ = 0L; - } public static final int TOPUPTYPE_FIELD_NUMBER = 3; private int topupType_; /** - * optional uint32 TopupType = 3; + * uint32 TopupType = 3; + * @return The topupType. */ + @java.lang.Override public int getTopupType() { return topupType_; } - /** - * optional uint32 TopupType = 3; - */ - private void setTopupType(int value) { - - topupType_ = value; - } - /** - * optional uint32 TopupType = 3; - */ - private void clearTopupType() { - - topupType_ = 0; - } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 Status = 4; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 Status = 4; - */ - private void clearStatus() { - - status_ = 0; - } public static final int AMOUNT_FIELD_NUMBER = 5; private long amount_; /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int CARDNUMBER_FIELD_NUMBER = 6; - private java.lang.String cardNumber_; + private volatile java.lang.Object cardNumber_; /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The cardNumber. */ + @java.lang.Override public java.lang.String getCardNumber() { - return cardNumber_; + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string CardNumber = 6; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string CardNumber = 6; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string CardNumber = 6; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MERCHANTNAME_FIELD_NUMBER = 7; - private java.lang.String merchantName_; + private volatile java.lang.Object merchantName_; /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The merchantName. */ + @java.lang.Override public java.lang.String getMerchantName() { - return merchantName_; + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The bytes for merchantName. */ + @java.lang.Override public com.google.protobuf.ByteString getMerchantNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(merchantName_); - } - /** - * optional string MerchantName = 7; - */ - private void setMerchantName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - merchantName_ = value; - } - /** - * optional string MerchantName = 7; - */ - private void clearMerchantName() { - - merchantName_ = getDefaultInstance().getMerchantName(); - } - /** - * optional string MerchantName = 7; - */ - private void setMerchantNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - merchantName_ = value.toStringUtf8(); + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ORDERID_FIELD_NUMBER = 8; private long orderId_; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int REQUESTDATETIME_FIELD_NUMBER = 9; private long requestDateTime_; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { return requestDateTime_; } - /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; - */ - private void setRequestDateTime(long value) { - - requestDateTime_ = value; - } - /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; - */ - private void clearRequestDateTime() { - - requestDateTime_ = 0L; - } public static final int RRN_FIELD_NUMBER = 10; private long rRN_; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { return rRN_; } - /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; - */ - private void setRRN(long value) { - - rRN_ = value; - } - /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; - */ - private void clearRRN() { - - rRN_ = 0L; - } public static final int STATUSDESCRIPTION_FIELD_NUMBER = 11; - private java.lang.String statusDescription_; + private volatile java.lang.Object statusDescription_; /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ + @java.lang.Override public java.lang.String getStatusDescription() { - return statusDescription_; + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(statusDescription_); - } - /** - * optional string StatusDescription = 11; - */ - private void setStatusDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDescription_ = value; - } - /** - * optional string StatusDescription = 11; - */ - private void clearStatusDescription() { - - statusDescription_ = getDefaultInstance().getStatusDescription(); - } - /** - * optional string StatusDescription = 11; - */ - private void setStatusDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDescription_ = value.toStringUtf8(); + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TERMINALNO_FIELD_NUMBER = 12; private int terminalNo_; /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return The terminalNo. */ + @java.lang.Override public int getTerminalNo() { return terminalNo_; } - /** - * optional uint32 TerminalNo = 12; - */ - private void setTerminalNo(int value) { - - terminalNo_ = value; - } - /** - * optional uint32 TerminalNo = 12; - */ - private void clearTerminalNo() { - - terminalNo_ = 0; - } public static final int TRACENO_FIELD_NUMBER = 13; private int traceNo_; /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { return traceNo_; } - /** - * optional uint32 TraceNo = 13; - */ - private void setTraceNo(int value) { - - traceNo_ = value; - } - /** - * optional uint32 TraceNo = 13; - */ - private void clearTraceNo() { - - traceNo_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requesterMobileNumber_ != 0L) { @@ -41832,11 +61639,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(5, amount_); } - if (!cardNumber_.isEmpty()) { - output.writeString(6, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cardNumber_); } - if (!merchantName_.isEmpty()) { - output.writeString(7, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, merchantName_); } if (orderId_ != 0L) { output.writeUInt64(8, orderId_); @@ -41847,8 +61654,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (rRN_ != 0L) { output.writeUInt64(10, rRN_); } - if (!statusDescription_.isEmpty()) { - output.writeString(11, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, statusDescription_); } if (terminalNo_ != 0) { output.writeUInt32(12, terminalNo_); @@ -41856,10 +61663,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (traceNo_ != 0) { output.writeUInt32(13, traceNo_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -41883,13 +61692,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, amount_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cardNumber_); } - if (!merchantName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, merchantName_); } if (orderId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -41903,9 +61710,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, rRN_); } - if (!statusDescription_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(11, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, statusDescription_); } if (terminalNo_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -41915,1008 +61721,1415 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, traceNo_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplTransaction.Topup)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplTransaction.Topup other = (net.iGap.proto.ProtoGlobal.MplTransaction.Topup) obj; + + if (getRequesterMobileNumber() + != other.getRequesterMobileNumber()) return false; + if (getChargeMobileNumber() + != other.getChargeMobileNumber()) return false; + if (getTopupType() + != other.getTopupType()) return false; + if (getStatus() + != other.getStatus()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (!getMerchantName() + .equals(other.getMerchantName())) return false; + if (getOrderId() + != other.getOrderId()) return false; + if (getRequestDateTime() + != other.getRequestDateTime()) return false; + if (getRRN() + != other.getRRN()) return false; + if (!getStatusDescription() + .equals(other.getStatusDescription())) return false; + if (getTerminalNo() + != other.getTerminalNo()) return false; + if (getTraceNo() + != other.getTraceNo()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUESTERMOBILENUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequesterMobileNumber()); + hash = (37 * hash) + CHARGEMOBILENUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getChargeMobileNumber()); + hash = (37 * hash) + TOPUPTYPE_FIELD_NUMBER; + hash = (53 * hash) + getTopupType(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + CARDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + MERCHANTNAME_FIELD_NUMBER; + hash = (53 * hash) + getMerchantName().hashCode(); + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + REQUESTDATETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestDateTime()); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRRN()); + hash = (37 * hash) + STATUSDESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStatusDescription().hashCode(); + hash = (37 * hash) + TERMINALNO_FIELD_NUMBER; + hash = (53 * hash) + getTerminalNo(); + hash = (37 * hash) + TRACENO_FIELD_NUMBER; + hash = (53 * hash) + getTraceNo(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplTransaction.Topup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransaction.Topup} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.MplTransaction.Topup, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransaction.Topup) net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Topup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Topup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.class, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.Topup.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + requesterMobileNumber_ = 0L; + + chargeMobileNumber_ = 0L; + + topupType_ = 0; + + status_ = 0; + + amount_ = 0L; + + cardNumber_ = ""; + + merchantName_ = ""; + + orderId_ = 0L; + + requestDateTime_ = 0L; + + rRN_ = 0L; + + statusDescription_ = ""; + + terminalNo_ = 0; + + traceNo_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Topup_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup build() { + net.iGap.proto.ProtoGlobal.MplTransaction.Topup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup buildPartial() { + net.iGap.proto.ProtoGlobal.MplTransaction.Topup result = new net.iGap.proto.ProtoGlobal.MplTransaction.Topup(this); + result.requesterMobileNumber_ = requesterMobileNumber_; + result.chargeMobileNumber_ = chargeMobileNumber_; + result.topupType_ = topupType_; + result.status_ = status_; + result.amount_ = amount_; + result.cardNumber_ = cardNumber_; + result.merchantName_ = merchantName_; + result.orderId_ = orderId_; + result.requestDateTime_ = requestDateTime_; + result.rRN_ = rRN_; + result.statusDescription_ = statusDescription_; + result.terminalNo_ = terminalNo_; + result.traceNo_ = traceNo_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.MplTransaction.Topup) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction.Topup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction.Topup other) { + if (other == net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance()) return this; + if (other.getRequesterMobileNumber() != 0L) { + setRequesterMobileNumber(other.getRequesterMobileNumber()); + } + if (other.getChargeMobileNumber() != 0L) { + setChargeMobileNumber(other.getChargeMobileNumber()); + } + if (other.getTopupType() != 0) { + setTopupType(other.getTopupType()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (!other.getMerchantName().isEmpty()) { + merchantName_ = other.merchantName_; + onChanged(); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (other.getRequestDateTime() != 0L) { + setRequestDateTime(other.getRequestDateTime()); + } + if (other.getRRN() != 0L) { + setRRN(other.getRRN()); + } + if (!other.getStatusDescription().isEmpty()) { + statusDescription_ = other.statusDescription_; + onChanged(); + } + if (other.getTerminalNo() != 0) { + setTerminalNo(other.getTerminalNo()); + } + if (other.getTraceNo() != 0) { + setTraceNo(other.getTraceNo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.MplTransaction.Topup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction.Topup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long requesterMobileNumber_ ; /** - * optional uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * @return The requesterMobileNumber. */ + @java.lang.Override public long getRequesterMobileNumber() { - return instance.getRequesterMobileNumber(); + return requesterMobileNumber_; } /** - * optional uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * @param value The requesterMobileNumber to set. + * @return This builder for chaining. */ public Builder setRequesterMobileNumber(long value) { - copyOnWrite(); - instance.setRequesterMobileNumber(value); + + requesterMobileNumber_ = value; + onChanged(); return this; } /** - * optional uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * uint64 RequesterMobileNumber = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRequesterMobileNumber() { - copyOnWrite(); - instance.clearRequesterMobileNumber(); + + requesterMobileNumber_ = 0L; + onChanged(); return this; } + private long chargeMobileNumber_ ; /** - * optional uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * @return The chargeMobileNumber. */ + @java.lang.Override public long getChargeMobileNumber() { - return instance.getChargeMobileNumber(); + return chargeMobileNumber_; } /** - * optional uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * @param value The chargeMobileNumber to set. + * @return This builder for chaining. */ public Builder setChargeMobileNumber(long value) { - copyOnWrite(); - instance.setChargeMobileNumber(value); + + chargeMobileNumber_ = value; + onChanged(); return this; } /** - * optional uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * uint64 ChargeMobileNumber = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearChargeMobileNumber() { - copyOnWrite(); - instance.clearChargeMobileNumber(); + + chargeMobileNumber_ = 0L; + onChanged(); return this; } + private int topupType_ ; /** - * optional uint32 TopupType = 3; + * uint32 TopupType = 3; + * @return The topupType. */ + @java.lang.Override public int getTopupType() { - return instance.getTopupType(); + return topupType_; } /** - * optional uint32 TopupType = 3; + * uint32 TopupType = 3; + * @param value The topupType to set. + * @return This builder for chaining. */ public Builder setTopupType(int value) { - copyOnWrite(); - instance.setTopupType(value); + + topupType_ = value; + onChanged(); return this; } /** - * optional uint32 TopupType = 3; + * uint32 TopupType = 3; + * @return This builder for chaining. */ public Builder clearTopupType() { - copyOnWrite(); - instance.clearTopupType(); + + topupType_ = 0; + onChanged(); return this; } + private int status_ ; /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 Status = 4; + * uint32 Status = 4; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 Amount = 5 [jstype = JS_STRING]; + * uint64 Amount = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string CardNumber = 6; + * string CardNumber = 6; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private java.lang.Object merchantName_ = ""; /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The merchantName. */ public java.lang.String getMerchantName() { - return instance.getMerchantName(); + java.lang.Object ref = merchantName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return The bytes for merchantName. */ public com.google.protobuf.ByteString getMerchantNameBytes() { - return instance.getMerchantNameBytes(); + java.lang.Object ref = merchantName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @param value The merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantName( java.lang.String value) { - copyOnWrite(); - instance.setMerchantName(value); + if (value == null) { + throw new NullPointerException(); + } + + merchantName_ = value; + onChanged(); return this; } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @return This builder for chaining. */ public Builder clearMerchantName() { - copyOnWrite(); - instance.clearMerchantName(); + + merchantName_ = getDefaultInstance().getMerchantName(); + onChanged(); return this; } /** - * optional string MerchantName = 7; + * string MerchantName = 7; + * @param value The bytes for merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMerchantNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + merchantName_ = value; + onChanged(); return this; } + private long orderId_ ; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private long requestDateTime_ ; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { - return instance.getRequestDateTime(); + return requestDateTime_; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @param value The requestDateTime to set. + * @return This builder for chaining. */ public Builder setRequestDateTime(long value) { - copyOnWrite(); - instance.setRequestDateTime(value); + + requestDateTime_ = value; + onChanged(); return this; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRequestDateTime() { - copyOnWrite(); - instance.clearRequestDateTime(); + + requestDateTime_ = 0L; + onChanged(); return this; } + private long rRN_ ; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { - return instance.getRRN(); + return rRN_; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @param value The rRN to set. + * @return This builder for chaining. */ public Builder setRRN(long value) { - copyOnWrite(); - instance.setRRN(value); + + rRN_ = value; + onChanged(); return this; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRRN() { - copyOnWrite(); - instance.clearRRN(); + + rRN_ = 0L; + onChanged(); return this; } + private java.lang.Object statusDescription_ = ""; /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ public java.lang.String getStatusDescription() { - return instance.getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return instance.getStatusDescriptionBytes(); + java.lang.Object ref = statusDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @param value The statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescription( java.lang.String value) { - copyOnWrite(); - instance.setStatusDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + statusDescription_ = value; + onChanged(); return this; } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return This builder for chaining. */ public Builder clearStatusDescription() { - copyOnWrite(); - instance.clearStatusDescription(); + + statusDescription_ = getDefaultInstance().getStatusDescription(); + onChanged(); return this; } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @param value The bytes for statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setStatusDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDescription_ = value; + onChanged(); return this; } + private int terminalNo_ ; /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return The terminalNo. */ + @java.lang.Override public int getTerminalNo() { - return instance.getTerminalNo(); + return terminalNo_; } /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @param value The terminalNo to set. + * @return This builder for chaining. */ public Builder setTerminalNo(int value) { - copyOnWrite(); - instance.setTerminalNo(value); + + terminalNo_ = value; + onChanged(); return this; } /** - * optional uint32 TerminalNo = 12; + * uint32 TerminalNo = 12; + * @return This builder for chaining. */ public Builder clearTerminalNo() { - copyOnWrite(); - instance.clearTerminalNo(); + + terminalNo_ = 0; + onChanged(); return this; } + private int traceNo_ ; /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { - return instance.getTraceNo(); + return traceNo_; } /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @param value The traceNo to set. + * @return This builder for chaining. */ public Builder setTraceNo(int value) { - copyOnWrite(); - instance.setTraceNo(value); + + traceNo_ = value; + onChanged(); return this; } /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return This builder for chaining. */ public Builder clearTraceNo() { - copyOnWrite(); - instance.clearTraceNo(); + + traceNo_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplTransaction.Topup) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.MplTransaction.Topup(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.MplTransaction.Topup other = (net.iGap.proto.ProtoGlobal.MplTransaction.Topup) arg1; - requesterMobileNumber_ = visitor.visitLong(requesterMobileNumber_ != 0L, requesterMobileNumber_, - other.requesterMobileNumber_ != 0L, other.requesterMobileNumber_); - chargeMobileNumber_ = visitor.visitLong(chargeMobileNumber_ != 0L, chargeMobileNumber_, - other.chargeMobileNumber_ != 0L, other.chargeMobileNumber_); - topupType_ = visitor.visitInt(topupType_ != 0, topupType_, - other.topupType_ != 0, other.topupType_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - merchantName_ = visitor.visitString(!merchantName_.isEmpty(), merchantName_, - !other.merchantName_.isEmpty(), other.merchantName_); - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - requestDateTime_ = visitor.visitLong(requestDateTime_ != 0L, requestDateTime_, - other.requestDateTime_ != 0L, other.requestDateTime_); - rRN_ = visitor.visitLong(rRN_ != 0L, rRN_, - other.rRN_ != 0L, other.rRN_); - statusDescription_ = visitor.visitString(!statusDescription_.isEmpty(), statusDescription_, - !other.statusDescription_.isEmpty(), other.statusDescription_); - terminalNo_ = visitor.visitInt(terminalNo_ != 0, terminalNo_, - other.terminalNo_ != 0, other.terminalNo_); - traceNo_ = visitor.visitInt(traceNo_ != 0, traceNo_, - other.traceNo_ != 0, other.traceNo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - requesterMobileNumber_ = input.readUInt64(); - break; - } - case 16: { - - chargeMobileNumber_ = input.readUInt64(); - break; - } - case 24: { - - topupType_ = input.readUInt32(); - break; - } - case 32: { - - status_ = input.readUInt32(); - break; - } - case 40: { - - amount_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - cardNumber_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - merchantName_ = s; - break; - } - case 64: { - - orderId_ = input.readUInt64(); - break; - } - case 72: { - - requestDateTime_ = input.readUInt64(); - break; - } - case 80: { - - rRN_ = input.readUInt64(); - break; - } - case 90: { - String s = input.readStringRequireUtf8(); - - statusDescription_ = s; - break; - } - case 96: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - terminalNo_ = input.readUInt32(); - break; - } - case 104: { - traceNo_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.MplTransaction.Topup.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.MplTransaction.Topup) } - // @@protoc_insertion_point(class_scope:proto.MplTransaction.Topup) private static final net.iGap.proto.ProtoGlobal.MplTransaction.Topup DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Topup(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction.Topup(); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Topup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Topup(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface SalesOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransaction.Sales) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return The status. */ int getStatus(); /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @return The merchantName. */ java.lang.String getMerchantName(); /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @return The bytes for merchantName. */ com.google.protobuf.ByteString getMerchantNameBytes(); /** - * optional uint64 OrderId = 5 [jstype = JS_STRING]; + * uint64 OrderId = 5 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * @return The requestDateTime. */ long getRequestDateTime(); /** - * optional uint64 RRN = 7 [jstype = JS_STRING]; + * uint64 RRN = 7 [jstype = JS_STRING]; + * @return The rRN. */ long getRRN(); /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @return The statusDescription. */ java.lang.String getStatusDescription(); /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @return The bytes for statusDescription. */ com.google.protobuf.ByteString getStatusDescriptionBytes(); /** - * optional uint32 TerminalNo = 9; + * uint32 TerminalNo = 9; + * @return The terminalNo. */ int getTerminalNo(); /** - * optional uint32 TraceNo = 10; + * uint32 TraceNo = 10; + * @return The traceNo. */ int getTraceNo(); } /** * Protobuf type {@code proto.MplTransaction.Sales} */ - public static final class Sales extends - com.google.protobuf.GeneratedMessageLite< - Sales, Sales.Builder> implements + public static final class Sales extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransaction.Sales) SalesOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sales.newBuilder() to construct. + private Sales(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Sales() { cardNumber_ = ""; merchantName_ = ""; statusDescription_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Sales(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sales( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + status_ = input.readUInt32(); + break; + } + case 16: { + + amount_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + merchantName_ = s; + break; + } + case 40: { + + orderId_ = input.readUInt64(); + break; + } + case 48: { + + requestDateTime_ = input.readUInt64(); + break; + } + case 56: { + + rRN_ = input.readUInt64(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDescription_ = s; + break; + } + case 72: { + + terminalNo_ = input.readUInt32(); + break; + } + case 80: { + + traceNo_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Sales_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Sales_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.class, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder.class); + } + public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 Status = 1; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 Status = 1; - */ - private void clearStatus() { - - status_ = 0; - } public static final int AMOUNT_FIELD_NUMBER = 2; private long amount_; /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int CARDNUMBER_FIELD_NUMBER = 3; - private java.lang.String cardNumber_; + private volatile java.lang.Object cardNumber_; /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @return The cardNumber. */ + @java.lang.Override public java.lang.String getCardNumber() { - return cardNumber_; + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string CardNumber = 3; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string CardNumber = 3; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string CardNumber = 3; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MERCHANTNAME_FIELD_NUMBER = 4; - private java.lang.String merchantName_; + private volatile java.lang.Object merchantName_; /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @return The merchantName. */ + @java.lang.Override public java.lang.String getMerchantName() { - return merchantName_; + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } } /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @return The bytes for merchantName. */ + @java.lang.Override public com.google.protobuf.ByteString getMerchantNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(merchantName_); - } - /** - * optional string MerchantName = 4; - */ - private void setMerchantName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - merchantName_ = value; - } - /** - * optional string MerchantName = 4; - */ - private void clearMerchantName() { - - merchantName_ = getDefaultInstance().getMerchantName(); - } - /** - * optional string MerchantName = 4; - */ - private void setMerchantNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - merchantName_ = value.toStringUtf8(); + java.lang.Object ref = merchantName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ORDERID_FIELD_NUMBER = 5; private long orderId_; /** - * optional uint64 OrderId = 5 [jstype = JS_STRING]; + * uint64 OrderId = 5 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 OrderId = 5 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 OrderId = 5 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int REQUESTDATETIME_FIELD_NUMBER = 6; private long requestDateTime_; /** - * optional uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { return requestDateTime_; } - /** - * optional uint64 RequestDateTime = 6 [jstype = JS_STRING]; - */ - private void setRequestDateTime(long value) { - - requestDateTime_ = value; - } - /** - * optional uint64 RequestDateTime = 6 [jstype = JS_STRING]; - */ - private void clearRequestDateTime() { - - requestDateTime_ = 0L; - } public static final int RRN_FIELD_NUMBER = 7; private long rRN_; /** - * optional uint64 RRN = 7 [jstype = JS_STRING]; + * uint64 RRN = 7 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { return rRN_; } - /** - * optional uint64 RRN = 7 [jstype = JS_STRING]; - */ - private void setRRN(long value) { - - rRN_ = value; - } - /** - * optional uint64 RRN = 7 [jstype = JS_STRING]; - */ - private void clearRRN() { - - rRN_ = 0L; - } public static final int STATUSDESCRIPTION_FIELD_NUMBER = 8; - private java.lang.String statusDescription_; + private volatile java.lang.Object statusDescription_; /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @return The statusDescription. */ + @java.lang.Override public java.lang.String getStatusDescription() { - return statusDescription_; + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } } /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @return The bytes for statusDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(statusDescription_); - } - /** - * optional string StatusDescription = 8; - */ - private void setStatusDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDescription_ = value; - } - /** - * optional string StatusDescription = 8; - */ - private void clearStatusDescription() { - - statusDescription_ = getDefaultInstance().getStatusDescription(); - } - /** - * optional string StatusDescription = 8; - */ - private void setStatusDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDescription_ = value.toStringUtf8(); + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TERMINALNO_FIELD_NUMBER = 9; private int terminalNo_; /** - * optional uint32 TerminalNo = 9; + * uint32 TerminalNo = 9; + * @return The terminalNo. */ + @java.lang.Override public int getTerminalNo() { return terminalNo_; } - /** - * optional uint32 TerminalNo = 9; - */ - private void setTerminalNo(int value) { - - terminalNo_ = value; - } - /** - * optional uint32 TerminalNo = 9; - */ - private void clearTerminalNo() { - - terminalNo_ = 0; - } public static final int TRACENO_FIELD_NUMBER = 10; private int traceNo_; /** - * optional uint32 TraceNo = 10; + * uint32 TraceNo = 10; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { return traceNo_; } - /** - * optional uint32 TraceNo = 10; - */ - private void setTraceNo(int value) { - - traceNo_ = value; - } - /** - * optional uint32 TraceNo = 10; - */ - private void clearTraceNo() { - - traceNo_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != 0) { @@ -42925,11 +63138,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(2, amount_); } - if (!cardNumber_.isEmpty()) { - output.writeString(3, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cardNumber_); } - if (!merchantName_.isEmpty()) { - output.writeString(4, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, merchantName_); } if (orderId_ != 0L) { output.writeUInt64(5, orderId_); @@ -42940,8 +63153,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (rRN_ != 0L) { output.writeUInt64(7, rRN_); } - if (!statusDescription_.isEmpty()) { - output.writeString(8, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, statusDescription_); } if (terminalNo_ != 0) { output.writeUInt32(9, terminalNo_); @@ -42949,10 +63162,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (traceNo_ != 0) { output.writeUInt32(10, traceNo_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -42964,13 +63179,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, amount_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cardNumber_); } - if (!merchantName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMerchantName()); + if (!getMerchantNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, merchantName_); } if (orderId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -42984,9 +63197,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, rRN_); } - if (!statusDescription_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, statusDescription_); } if (terminalNo_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -42996,639 +63208,996 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, traceNo_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplTransaction.Sales)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplTransaction.Sales other = (net.iGap.proto.ProtoGlobal.MplTransaction.Sales) obj; + + if (getStatus() + != other.getStatus()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (!getMerchantName() + .equals(other.getMerchantName())) return false; + if (getOrderId() + != other.getOrderId()) return false; + if (getRequestDateTime() + != other.getRequestDateTime()) return false; + if (getRRN() + != other.getRRN()) return false; + if (!getStatusDescription() + .equals(other.getStatusDescription())) return false; + if (getTerminalNo() + != other.getTerminalNo()) return false; + if (getTraceNo() + != other.getTraceNo()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + CARDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + MERCHANTNAME_FIELD_NUMBER; + hash = (53 * hash) + getMerchantName().hashCode(); + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + REQUESTDATETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestDateTime()); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRRN()); + hash = (37 * hash) + STATUSDESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStatusDescription().hashCode(); + hash = (37 * hash) + TERMINALNO_FIELD_NUMBER; + hash = (53 * hash) + getTerminalNo(); + hash = (37 * hash) + TRACENO_FIELD_NUMBER; + hash = (53 * hash) + getTraceNo(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplTransaction.Sales prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransaction.Sales} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.MplTransaction.Sales, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransaction.Sales) net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Sales_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Sales_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.class, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.Sales.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + status_ = 0; + + amount_ = 0L; + + cardNumber_ = ""; + + merchantName_ = ""; + + orderId_ = 0L; + + requestDateTime_ = 0L; + + rRN_ = 0L; + + statusDescription_ = ""; + + terminalNo_ = 0; + + traceNo_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_Sales_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales build() { + net.iGap.proto.ProtoGlobal.MplTransaction.Sales result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales buildPartial() { + net.iGap.proto.ProtoGlobal.MplTransaction.Sales result = new net.iGap.proto.ProtoGlobal.MplTransaction.Sales(this); + result.status_ = status_; + result.amount_ = amount_; + result.cardNumber_ = cardNumber_; + result.merchantName_ = merchantName_; + result.orderId_ = orderId_; + result.requestDateTime_ = requestDateTime_; + result.rRN_ = rRN_; + result.statusDescription_ = statusDescription_; + result.terminalNo_ = terminalNo_; + result.traceNo_ = traceNo_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.MplTransaction.Sales) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction.Sales)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction.Sales other) { + if (other == net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance()) return this; + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (!other.getMerchantName().isEmpty()) { + merchantName_ = other.merchantName_; + onChanged(); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (other.getRequestDateTime() != 0L) { + setRequestDateTime(other.getRequestDateTime()); + } + if (other.getRRN() != 0L) { + setRRN(other.getRRN()); + } + if (!other.getStatusDescription().isEmpty()) { + statusDescription_ = other.statusDescription_; + onChanged(); + } + if (other.getTerminalNo() != 0) { + setTerminalNo(other.getTerminalNo()); + } + if (other.getTraceNo() != 0) { + setTraceNo(other.getTraceNo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.MplTransaction.Sales parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction.Sales) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int status_ ; /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string CardNumber = 3; + * string CardNumber = 3; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private java.lang.Object merchantName_ = ""; /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @return The merchantName. */ public java.lang.String getMerchantName() { - return instance.getMerchantName(); + java.lang.Object ref = merchantName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + merchantName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @return The bytes for merchantName. */ public com.google.protobuf.ByteString getMerchantNameBytes() { - return instance.getMerchantNameBytes(); + java.lang.Object ref = merchantName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + merchantName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @param value The merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantName( java.lang.String value) { - copyOnWrite(); - instance.setMerchantName(value); + if (value == null) { + throw new NullPointerException(); + } + + merchantName_ = value; + onChanged(); return this; } /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @return This builder for chaining. */ public Builder clearMerchantName() { - copyOnWrite(); - instance.clearMerchantName(); + + merchantName_ = getDefaultInstance().getMerchantName(); + onChanged(); return this; } /** - * optional string MerchantName = 4; + * string MerchantName = 4; + * @param value The bytes for merchantName to set. + * @return This builder for chaining. */ public Builder setMerchantNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMerchantNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + merchantName_ = value; + onChanged(); return this; } + private long orderId_ ; /** - * optional uint64 OrderId = 5 [jstype = JS_STRING]; + * uint64 OrderId = 5 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 OrderId = 5 [jstype = JS_STRING]; + * uint64 OrderId = 5 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 OrderId = 5 [jstype = JS_STRING]; + * uint64 OrderId = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private long requestDateTime_ ; /** - * optional uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { - return instance.getRequestDateTime(); + return requestDateTime_; } /** - * optional uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * @param value The requestDateTime to set. + * @return This builder for chaining. */ public Builder setRequestDateTime(long value) { - copyOnWrite(); - instance.setRequestDateTime(value); + + requestDateTime_ = value; + onChanged(); return this; } /** - * optional uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * uint64 RequestDateTime = 6 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRequestDateTime() { - copyOnWrite(); - instance.clearRequestDateTime(); + + requestDateTime_ = 0L; + onChanged(); return this; } + private long rRN_ ; /** - * optional uint64 RRN = 7 [jstype = JS_STRING]; + * uint64 RRN = 7 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { - return instance.getRRN(); + return rRN_; } /** - * optional uint64 RRN = 7 [jstype = JS_STRING]; + * uint64 RRN = 7 [jstype = JS_STRING]; + * @param value The rRN to set. + * @return This builder for chaining. */ public Builder setRRN(long value) { - copyOnWrite(); - instance.setRRN(value); + + rRN_ = value; + onChanged(); return this; } /** - * optional uint64 RRN = 7 [jstype = JS_STRING]; + * uint64 RRN = 7 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRRN() { - copyOnWrite(); - instance.clearRRN(); + + rRN_ = 0L; + onChanged(); return this; } + private java.lang.Object statusDescription_ = ""; /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @return The statusDescription. */ public java.lang.String getStatusDescription() { - return instance.getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @return The bytes for statusDescription. */ public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return instance.getStatusDescriptionBytes(); + java.lang.Object ref = statusDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @param value The statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescription( java.lang.String value) { - copyOnWrite(); - instance.setStatusDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + statusDescription_ = value; + onChanged(); return this; } /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @return This builder for chaining. */ public Builder clearStatusDescription() { - copyOnWrite(); - instance.clearStatusDescription(); + + statusDescription_ = getDefaultInstance().getStatusDescription(); + onChanged(); return this; } /** - * optional string StatusDescription = 8; + * string StatusDescription = 8; + * @param value The bytes for statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setStatusDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDescription_ = value; + onChanged(); return this; } + private int terminalNo_ ; /** - * optional uint32 TerminalNo = 9; + * uint32 TerminalNo = 9; + * @return The terminalNo. */ + @java.lang.Override public int getTerminalNo() { - return instance.getTerminalNo(); + return terminalNo_; } /** - * optional uint32 TerminalNo = 9; + * uint32 TerminalNo = 9; + * @param value The terminalNo to set. + * @return This builder for chaining. */ public Builder setTerminalNo(int value) { - copyOnWrite(); - instance.setTerminalNo(value); + + terminalNo_ = value; + onChanged(); return this; } /** - * optional uint32 TerminalNo = 9; + * uint32 TerminalNo = 9; + * @return This builder for chaining. */ public Builder clearTerminalNo() { - copyOnWrite(); - instance.clearTerminalNo(); + + terminalNo_ = 0; + onChanged(); return this; } + private int traceNo_ ; /** - * optional uint32 TraceNo = 10; + * uint32 TraceNo = 10; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { - return instance.getTraceNo(); + return traceNo_; } /** - * optional uint32 TraceNo = 10; + * uint32 TraceNo = 10; + * @param value The traceNo to set. + * @return This builder for chaining. */ public Builder setTraceNo(int value) { - copyOnWrite(); - instance.setTraceNo(value); + + traceNo_ = value; + onChanged(); return this; } /** - * optional uint32 TraceNo = 10; + * uint32 TraceNo = 10; + * @return This builder for chaining. */ public Builder clearTraceNo() { - copyOnWrite(); - instance.clearTraceNo(); + + traceNo_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplTransaction.Sales) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.MplTransaction.Sales(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.MplTransaction.Sales other = (net.iGap.proto.ProtoGlobal.MplTransaction.Sales) arg1; - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - merchantName_ = visitor.visitString(!merchantName_.isEmpty(), merchantName_, - !other.merchantName_.isEmpty(), other.merchantName_); - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - requestDateTime_ = visitor.visitLong(requestDateTime_ != 0L, requestDateTime_, - other.requestDateTime_ != 0L, other.requestDateTime_); - rRN_ = visitor.visitLong(rRN_ != 0L, rRN_, - other.rRN_ != 0L, other.rRN_); - statusDescription_ = visitor.visitString(!statusDescription_.isEmpty(), statusDescription_, - !other.statusDescription_.isEmpty(), other.statusDescription_); - terminalNo_ = visitor.visitInt(terminalNo_ != 0, terminalNo_, - other.terminalNo_ != 0, other.terminalNo_); - traceNo_ = visitor.visitInt(traceNo_ != 0, traceNo_, - other.traceNo_ != 0, other.traceNo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - status_ = input.readUInt32(); - break; - } - case 16: { - - amount_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - cardNumber_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - merchantName_ = s; - break; - } - case 40: { - - orderId_ = input.readUInt64(); - break; - } - case 48: { - - requestDateTime_ = input.readUInt64(); - break; - } - case 56: { - - rRN_ = input.readUInt64(); - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - statusDescription_ = s; - break; - } - case 72: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - terminalNo_ = input.readUInt32(); - break; - } - case 80: { - traceNo_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.MplTransaction.Sales.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.MplTransaction.Sales) } - // @@protoc_insertion_point(class_scope:proto.MplTransaction.Sales) private static final net.iGap.proto.ProtoGlobal.MplTransaction.Sales DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Sales(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction.Sales(); } public static net.iGap.proto.ProtoGlobal.MplTransaction.Sales getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sales parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sales(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface CardToCardOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransaction.CardToCard) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return The status. */ int getStatus(); /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return The amount. */ long getAmount(); /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @return The sourceCardNumber. */ java.lang.String getSourceCardNumber(); /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @return The bytes for sourceCardNumber. */ com.google.protobuf.ByteString getSourceCardNumberBytes(); /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @return The destCardNumber. */ java.lang.String getDestCardNumber(); /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @return The bytes for destCardNumber. */ com.google.protobuf.ByteString getDestCardNumberBytes(); /** - * optional string BankName = 5; + * string BankName = 5; + * @return The bankName. */ java.lang.String getBankName(); /** - * optional string BankName = 5; + * string BankName = 5; + * @return The bytes for bankName. */ com.google.protobuf.ByteString getBankNameBytes(); /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @return The destBankName. */ java.lang.String getDestBankName(); /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @return The bytes for destBankName. */ com.google.protobuf.ByteString getDestBankNameBytes(); /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @return The cardOwnerName. */ java.lang.String getCardOwnerName(); /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @return The bytes for cardOwnerName. */ com.google.protobuf.ByteString getCardOwnerNameBytes(); /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ long getOrderId(); /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ long getRequestDateTime(); /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ long getRRN(); /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ java.lang.String getStatusDescription(); /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ com.google.protobuf.ByteString getStatusDescriptionBytes(); /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ int getTraceNo(); } /** * Protobuf type {@code proto.MplTransaction.CardToCard} */ - public static final class CardToCard extends - com.google.protobuf.GeneratedMessageLite< - CardToCard, CardToCard.Builder> implements + public static final class CardToCard extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransaction.CardToCard) CardToCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use CardToCard.newBuilder() to construct. + private CardToCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private CardToCard() { sourceCardNumber_ = ""; destCardNumber_ = ""; @@ -43637,420 +64206,441 @@ private CardToCard() { cardOwnerName_ = ""; statusDescription_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CardToCard(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CardToCard( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + status_ = input.readUInt32(); + break; + } + case 16: { + + amount_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceCardNumber_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + destCardNumber_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + bankName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + destBankName_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + cardOwnerName_ = s; + break; + } + case 64: { + + orderId_ = input.readUInt64(); + break; + } + case 72: { + + requestDateTime_ = input.readUInt64(); + break; + } + case 80: { + + rRN_ = input.readUInt64(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDescription_ = s; + break; + } + case 104: { + + traceNo_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.class, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder.class); + } + public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 Status = 1; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 Status = 1; - */ - private void clearStatus() { - - status_ = 0; - } public static final int AMOUNT_FIELD_NUMBER = 2; private long amount_; /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int SOURCECARDNUMBER_FIELD_NUMBER = 3; - private java.lang.String sourceCardNumber_; + private volatile java.lang.Object sourceCardNumber_; /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @return The sourceCardNumber. */ + @java.lang.Override public java.lang.String getSourceCardNumber() { - return sourceCardNumber_; + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceCardNumber_ = s; + return s; + } } /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @return The bytes for sourceCardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getSourceCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(sourceCardNumber_); - } - /** - * optional string SourceCardNumber = 3; - */ - private void setSourceCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceCardNumber_ = value; - } - /** - * optional string SourceCardNumber = 3; - */ - private void clearSourceCardNumber() { - - sourceCardNumber_ = getDefaultInstance().getSourceCardNumber(); - } - /** - * optional string SourceCardNumber = 3; - */ - private void setSourceCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceCardNumber_ = value.toStringUtf8(); + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESTCARDNUMBER_FIELD_NUMBER = 4; - private java.lang.String destCardNumber_; + private volatile java.lang.Object destCardNumber_; /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @return The destCardNumber. */ + @java.lang.Override public java.lang.String getDestCardNumber() { - return destCardNumber_; + java.lang.Object ref = destCardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destCardNumber_ = s; + return s; + } } /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @return The bytes for destCardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getDestCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(destCardNumber_); - } - /** - * optional string DestCardNumber = 4; - */ - private void setDestCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destCardNumber_ = value; - } - /** - * optional string DestCardNumber = 4; - */ - private void clearDestCardNumber() { - - destCardNumber_ = getDefaultInstance().getDestCardNumber(); - } - /** - * optional string DestCardNumber = 4; - */ - private void setDestCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destCardNumber_ = value.toStringUtf8(); + java.lang.Object ref = destCardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BANKNAME_FIELD_NUMBER = 5; - private java.lang.String bankName_; + private volatile java.lang.Object bankName_; /** - * optional string BankName = 5; + * string BankName = 5; + * @return The bankName. */ + @java.lang.Override public java.lang.String getBankName() { - return bankName_; + java.lang.Object ref = bankName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bankName_ = s; + return s; + } } /** - * optional string BankName = 5; + * string BankName = 5; + * @return The bytes for bankName. */ + @java.lang.Override public com.google.protobuf.ByteString getBankNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(bankName_); - } - /** - * optional string BankName = 5; - */ - private void setBankName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bankName_ = value; - } - /** - * optional string BankName = 5; - */ - private void clearBankName() { - - bankName_ = getDefaultInstance().getBankName(); - } - /** - * optional string BankName = 5; - */ - private void setBankNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bankName_ = value.toStringUtf8(); + java.lang.Object ref = bankName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESTBANKNAME_FIELD_NUMBER = 6; - private java.lang.String destBankName_; + private volatile java.lang.Object destBankName_; /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @return The destBankName. */ + @java.lang.Override public java.lang.String getDestBankName() { - return destBankName_; + java.lang.Object ref = destBankName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destBankName_ = s; + return s; + } } /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @return The bytes for destBankName. */ + @java.lang.Override public com.google.protobuf.ByteString getDestBankNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(destBankName_); - } - /** - * optional string DestBankName = 6; - */ - private void setDestBankName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destBankName_ = value; - } - /** - * optional string DestBankName = 6; - */ - private void clearDestBankName() { - - destBankName_ = getDefaultInstance().getDestBankName(); - } - /** - * optional string DestBankName = 6; - */ - private void setDestBankNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destBankName_ = value.toStringUtf8(); + java.lang.Object ref = destBankName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destBankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CARDOWNERNAME_FIELD_NUMBER = 7; - private java.lang.String cardOwnerName_; + private volatile java.lang.Object cardOwnerName_; /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @return The cardOwnerName. */ + @java.lang.Override public java.lang.String getCardOwnerName() { - return cardOwnerName_; + java.lang.Object ref = cardOwnerName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardOwnerName_ = s; + return s; + } } /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @return The bytes for cardOwnerName. */ + @java.lang.Override public com.google.protobuf.ByteString getCardOwnerNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardOwnerName_); - } - /** - * optional string CardOwnerName = 7; - */ - private void setCardOwnerName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardOwnerName_ = value; - } - /** - * optional string CardOwnerName = 7; - */ - private void clearCardOwnerName() { - - cardOwnerName_ = getDefaultInstance().getCardOwnerName(); - } - /** - * optional string CardOwnerName = 7; - */ - private void setCardOwnerNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardOwnerName_ = value.toStringUtf8(); + java.lang.Object ref = cardOwnerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardOwnerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ORDERID_FIELD_NUMBER = 8; private long orderId_; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int REQUESTDATETIME_FIELD_NUMBER = 9; private long requestDateTime_; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { return requestDateTime_; } - /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; - */ - private void setRequestDateTime(long value) { - - requestDateTime_ = value; - } - /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; - */ - private void clearRequestDateTime() { - - requestDateTime_ = 0L; - } public static final int RRN_FIELD_NUMBER = 10; private long rRN_; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { return rRN_; } - /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; - */ - private void setRRN(long value) { - - rRN_ = value; - } - /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; - */ - private void clearRRN() { - - rRN_ = 0L; - } public static final int STATUSDESCRIPTION_FIELD_NUMBER = 11; - private java.lang.String statusDescription_; + private volatile java.lang.Object statusDescription_; /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ + @java.lang.Override public java.lang.String getStatusDescription() { - return statusDescription_; + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(statusDescription_); - } - /** - * optional string StatusDescription = 11; - */ - private void setStatusDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDescription_ = value; - } - /** - * optional string StatusDescription = 11; - */ - private void clearStatusDescription() { - - statusDescription_ = getDefaultInstance().getStatusDescription(); - } - /** - * optional string StatusDescription = 11; - */ - private void setStatusDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDescription_ = value.toStringUtf8(); + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TRACENO_FIELD_NUMBER = 13; private int traceNo_; /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { return traceNo_; } - /** - * optional uint32 TraceNo = 13; - */ - private void setTraceNo(int value) { - - traceNo_ = value; - } - /** - * optional uint32 TraceNo = 13; - */ - private void clearTraceNo() { - - traceNo_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != 0) { @@ -44059,20 +64649,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(2, amount_); } - if (!sourceCardNumber_.isEmpty()) { - output.writeString(3, getSourceCardNumber()); + if (!getSourceCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceCardNumber_); } - if (!destCardNumber_.isEmpty()) { - output.writeString(4, getDestCardNumber()); + if (!getDestCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destCardNumber_); } - if (!bankName_.isEmpty()) { - output.writeString(5, getBankName()); + if (!getBankNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bankName_); } - if (!destBankName_.isEmpty()) { - output.writeString(6, getDestBankName()); + if (!getDestBankNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, destBankName_); } - if (!cardOwnerName_.isEmpty()) { - output.writeString(7, getCardOwnerName()); + if (!getCardOwnerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cardOwnerName_); } if (orderId_ != 0L) { output.writeUInt64(8, orderId_); @@ -44083,16 +64673,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (rRN_ != 0L) { output.writeUInt64(10, rRN_); } - if (!statusDescription_.isEmpty()) { - output.writeString(11, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, statusDescription_); } if (traceNo_ != 0) { output.writeUInt32(13, traceNo_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -44104,25 +64696,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, amount_); } - if (!sourceCardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getSourceCardNumber()); + if (!getSourceCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceCardNumber_); } - if (!destCardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDestCardNumber()); + if (!getDestCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destCardNumber_); } - if (!bankName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getBankName()); + if (!getBankNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bankName_); } - if (!destBankName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getDestBankName()); + if (!getDestBankNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destBankName_); } - if (!cardOwnerName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getCardOwnerName()); + if (!getCardOwnerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cardOwnerName_); } if (orderId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -44136,1005 +64723,1301 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, rRN_); } - if (!statusDescription_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(11, getStatusDescription()); + if (!getStatusDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, statusDescription_); } if (traceNo_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, traceNo_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard other = (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) obj; + + if (getStatus() + != other.getStatus()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getSourceCardNumber() + .equals(other.getSourceCardNumber())) return false; + if (!getDestCardNumber() + .equals(other.getDestCardNumber())) return false; + if (!getBankName() + .equals(other.getBankName())) return false; + if (!getDestBankName() + .equals(other.getDestBankName())) return false; + if (!getCardOwnerName() + .equals(other.getCardOwnerName())) return false; + if (getOrderId() + != other.getOrderId()) return false; + if (getRequestDateTime() + != other.getRequestDateTime()) return false; + if (getRRN() + != other.getRRN()) return false; + if (!getStatusDescription() + .equals(other.getStatusDescription())) return false; + if (getTraceNo() + != other.getTraceNo()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + SOURCECARDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSourceCardNumber().hashCode(); + hash = (37 * hash) + DESTCARDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDestCardNumber().hashCode(); + hash = (37 * hash) + BANKNAME_FIELD_NUMBER; + hash = (53 * hash) + getBankName().hashCode(); + hash = (37 * hash) + DESTBANKNAME_FIELD_NUMBER; + hash = (53 * hash) + getDestBankName().hashCode(); + hash = (37 * hash) + CARDOWNERNAME_FIELD_NUMBER; + hash = (53 * hash) + getCardOwnerName().hashCode(); + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + REQUESTDATETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestDateTime()); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRRN()); + hash = (37 * hash) + STATUSDESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStatusDescription().hashCode(); + hash = (37 * hash) + TRACENO_FIELD_NUMBER; + hash = (53 * hash) + getTraceNo(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransaction.CardToCard} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransaction.CardToCard) net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.class, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + status_ = 0; + + amount_ = 0L; + + sourceCardNumber_ = ""; + + destCardNumber_ = ""; + + bankName_ = ""; + + destBankName_ = ""; + + cardOwnerName_ = ""; + + orderId_ = 0L; + + requestDateTime_ = 0L; + + rRN_ = 0L; + + statusDescription_ = ""; + + traceNo_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard build() { + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard buildPartial() { + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard result = new net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard(this); + result.status_ = status_; + result.amount_ = amount_; + result.sourceCardNumber_ = sourceCardNumber_; + result.destCardNumber_ = destCardNumber_; + result.bankName_ = bankName_; + result.destBankName_ = destBankName_; + result.cardOwnerName_ = cardOwnerName_; + result.orderId_ = orderId_; + result.requestDateTime_ = requestDateTime_; + result.rRN_ = rRN_; + result.statusDescription_ = statusDescription_; + result.traceNo_ = traceNo_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard other) { + if (other == net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance()) return this; + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getSourceCardNumber().isEmpty()) { + sourceCardNumber_ = other.sourceCardNumber_; + onChanged(); + } + if (!other.getDestCardNumber().isEmpty()) { + destCardNumber_ = other.destCardNumber_; + onChanged(); + } + if (!other.getBankName().isEmpty()) { + bankName_ = other.bankName_; + onChanged(); + } + if (!other.getDestBankName().isEmpty()) { + destBankName_ = other.destBankName_; + onChanged(); + } + if (!other.getCardOwnerName().isEmpty()) { + cardOwnerName_ = other.cardOwnerName_; + onChanged(); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (other.getRequestDateTime() != 0L) { + setRequestDateTime(other.getRequestDateTime()); + } + if (other.getRRN() != 0L) { + setRRN(other.getRRN()); + } + if (!other.getStatusDescription().isEmpty()) { + statusDescription_ = other.statusDescription_; + onChanged(); + } + if (other.getTraceNo() != 0) { + setTraceNo(other.getTraceNo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int status_ ; /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 Status = 1; + * uint32 Status = 1; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; + * uint64 Amount = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object sourceCardNumber_ = ""; /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @return The sourceCardNumber. */ public java.lang.String getSourceCardNumber() { - return instance.getSourceCardNumber(); + java.lang.Object ref = sourceCardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceCardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @return The bytes for sourceCardNumber. */ public com.google.protobuf.ByteString getSourceCardNumberBytes() { - return instance.getSourceCardNumberBytes(); + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @param value The sourceCardNumber to set. + * @return This builder for chaining. */ public Builder setSourceCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setSourceCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + sourceCardNumber_ = value; + onChanged(); return this; } /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @return This builder for chaining. */ public Builder clearSourceCardNumber() { - copyOnWrite(); - instance.clearSourceCardNumber(); + + sourceCardNumber_ = getDefaultInstance().getSourceCardNumber(); + onChanged(); return this; } /** - * optional string SourceCardNumber = 3; + * string SourceCardNumber = 3; + * @param value The bytes for sourceCardNumber to set. + * @return This builder for chaining. */ public Builder setSourceCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSourceCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceCardNumber_ = value; + onChanged(); return this; } + private java.lang.Object destCardNumber_ = ""; /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @return The destCardNumber. */ public java.lang.String getDestCardNumber() { - return instance.getDestCardNumber(); + java.lang.Object ref = destCardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destCardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @return The bytes for destCardNumber. */ public com.google.protobuf.ByteString getDestCardNumberBytes() { - return instance.getDestCardNumberBytes(); + java.lang.Object ref = destCardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @param value The destCardNumber to set. + * @return This builder for chaining. */ public Builder setDestCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setDestCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + destCardNumber_ = value; + onChanged(); return this; } /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @return This builder for chaining. */ public Builder clearDestCardNumber() { - copyOnWrite(); - instance.clearDestCardNumber(); + + destCardNumber_ = getDefaultInstance().getDestCardNumber(); + onChanged(); return this; } /** - * optional string DestCardNumber = 4; + * string DestCardNumber = 4; + * @param value The bytes for destCardNumber to set. + * @return This builder for chaining. */ public Builder setDestCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDestCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destCardNumber_ = value; + onChanged(); return this; } + private java.lang.Object bankName_ = ""; /** - * optional string BankName = 5; + * string BankName = 5; + * @return The bankName. */ public java.lang.String getBankName() { - return instance.getBankName(); + java.lang.Object ref = bankName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bankName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string BankName = 5; + * string BankName = 5; + * @return The bytes for bankName. */ public com.google.protobuf.ByteString getBankNameBytes() { - return instance.getBankNameBytes(); + java.lang.Object ref = bankName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string BankName = 5; + * string BankName = 5; + * @param value The bankName to set. + * @return This builder for chaining. */ public Builder setBankName( java.lang.String value) { - copyOnWrite(); - instance.setBankName(value); + if (value == null) { + throw new NullPointerException(); + } + + bankName_ = value; + onChanged(); return this; } /** - * optional string BankName = 5; + * string BankName = 5; + * @return This builder for chaining. */ public Builder clearBankName() { - copyOnWrite(); - instance.clearBankName(); + + bankName_ = getDefaultInstance().getBankName(); + onChanged(); return this; } /** - * optional string BankName = 5; + * string BankName = 5; + * @param value The bytes for bankName to set. + * @return This builder for chaining. */ public Builder setBankNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBankNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bankName_ = value; + onChanged(); return this; } + private java.lang.Object destBankName_ = ""; /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @return The destBankName. */ public java.lang.String getDestBankName() { - return instance.getDestBankName(); + java.lang.Object ref = destBankName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destBankName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @return The bytes for destBankName. */ public com.google.protobuf.ByteString getDestBankNameBytes() { - return instance.getDestBankNameBytes(); + java.lang.Object ref = destBankName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destBankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @param value The destBankName to set. + * @return This builder for chaining. */ public Builder setDestBankName( java.lang.String value) { - copyOnWrite(); - instance.setDestBankName(value); + if (value == null) { + throw new NullPointerException(); + } + + destBankName_ = value; + onChanged(); return this; } /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @return This builder for chaining. */ public Builder clearDestBankName() { - copyOnWrite(); - instance.clearDestBankName(); + + destBankName_ = getDefaultInstance().getDestBankName(); + onChanged(); return this; } /** - * optional string DestBankName = 6; + * string DestBankName = 6; + * @param value The bytes for destBankName to set. + * @return This builder for chaining. */ public Builder setDestBankNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDestBankNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destBankName_ = value; + onChanged(); return this; } + private java.lang.Object cardOwnerName_ = ""; /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @return The cardOwnerName. */ public java.lang.String getCardOwnerName() { - return instance.getCardOwnerName(); + java.lang.Object ref = cardOwnerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardOwnerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @return The bytes for cardOwnerName. */ public com.google.protobuf.ByteString getCardOwnerNameBytes() { - return instance.getCardOwnerNameBytes(); + java.lang.Object ref = cardOwnerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardOwnerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @param value The cardOwnerName to set. + * @return This builder for chaining. */ public Builder setCardOwnerName( java.lang.String value) { - copyOnWrite(); - instance.setCardOwnerName(value); + if (value == null) { + throw new NullPointerException(); + } + + cardOwnerName_ = value; + onChanged(); return this; } /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @return This builder for chaining. */ public Builder clearCardOwnerName() { - copyOnWrite(); - instance.clearCardOwnerName(); + + cardOwnerName_ = getDefaultInstance().getCardOwnerName(); + onChanged(); return this; } /** - * optional string CardOwnerName = 7; + * string CardOwnerName = 7; + * @param value The bytes for cardOwnerName to set. + * @return This builder for chaining. */ public Builder setCardOwnerNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardOwnerNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardOwnerName_ = value; + onChanged(); return this; } + private long orderId_ ; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * uint64 OrderId = 8 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private long requestDateTime_ ; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return The requestDateTime. */ + @java.lang.Override public long getRequestDateTime() { - return instance.getRequestDateTime(); + return requestDateTime_; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @param value The requestDateTime to set. + * @return This builder for chaining. */ public Builder setRequestDateTime(long value) { - copyOnWrite(); - instance.setRequestDateTime(value); + + requestDateTime_ = value; + onChanged(); return this; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRequestDateTime() { - copyOnWrite(); - instance.clearRequestDateTime(); + + requestDateTime_ = 0L; + onChanged(); return this; } + private long rRN_ ; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return The rRN. */ + @java.lang.Override public long getRRN() { - return instance.getRRN(); + return rRN_; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @param value The rRN to set. + * @return This builder for chaining. */ public Builder setRRN(long value) { - copyOnWrite(); - instance.setRRN(value); + + rRN_ = value; + onChanged(); return this; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * uint64 RRN = 10 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRRN() { - copyOnWrite(); - instance.clearRRN(); + + rRN_ = 0L; + onChanged(); return this; } + private java.lang.Object statusDescription_ = ""; /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The statusDescription. */ public java.lang.String getStatusDescription() { - return instance.getStatusDescription(); + java.lang.Object ref = statusDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return The bytes for statusDescription. */ public com.google.protobuf.ByteString getStatusDescriptionBytes() { - return instance.getStatusDescriptionBytes(); + java.lang.Object ref = statusDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @param value The statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescription( java.lang.String value) { - copyOnWrite(); - instance.setStatusDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + statusDescription_ = value; + onChanged(); return this; } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @return This builder for chaining. */ public Builder clearStatusDescription() { - copyOnWrite(); - instance.clearStatusDescription(); + + statusDescription_ = getDefaultInstance().getStatusDescription(); + onChanged(); return this; } /** - * optional string StatusDescription = 11; + * string StatusDescription = 11; + * @param value The bytes for statusDescription to set. + * @return This builder for chaining. */ public Builder setStatusDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setStatusDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDescription_ = value; + onChanged(); return this; } + private int traceNo_ ; /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return The traceNo. */ + @java.lang.Override public int getTraceNo() { - return instance.getTraceNo(); + return traceNo_; } /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @param value The traceNo to set. + * @return This builder for chaining. */ public Builder setTraceNo(int value) { - copyOnWrite(); - instance.setTraceNo(value); + + traceNo_ = value; + onChanged(); return this; } /** - * optional uint32 TraceNo = 13; + * uint32 TraceNo = 13; + * @return This builder for chaining. */ public Builder clearTraceNo() { - copyOnWrite(); - instance.clearTraceNo(); + + traceNo_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplTransaction.CardToCard) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard other = (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) arg1; - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - sourceCardNumber_ = visitor.visitString(!sourceCardNumber_.isEmpty(), sourceCardNumber_, - !other.sourceCardNumber_.isEmpty(), other.sourceCardNumber_); - destCardNumber_ = visitor.visitString(!destCardNumber_.isEmpty(), destCardNumber_, - !other.destCardNumber_.isEmpty(), other.destCardNumber_); - bankName_ = visitor.visitString(!bankName_.isEmpty(), bankName_, - !other.bankName_.isEmpty(), other.bankName_); - destBankName_ = visitor.visitString(!destBankName_.isEmpty(), destBankName_, - !other.destBankName_.isEmpty(), other.destBankName_); - cardOwnerName_ = visitor.visitString(!cardOwnerName_.isEmpty(), cardOwnerName_, - !other.cardOwnerName_.isEmpty(), other.cardOwnerName_); - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - requestDateTime_ = visitor.visitLong(requestDateTime_ != 0L, requestDateTime_, - other.requestDateTime_ != 0L, other.requestDateTime_); - rRN_ = visitor.visitLong(rRN_ != 0L, rRN_, - other.rRN_ != 0L, other.rRN_); - statusDescription_ = visitor.visitString(!statusDescription_.isEmpty(), statusDescription_, - !other.statusDescription_.isEmpty(), other.statusDescription_); - traceNo_ = visitor.visitInt(traceNo_ != 0, traceNo_, - other.traceNo_ != 0, other.traceNo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - status_ = input.readUInt32(); - break; - } - case 16: { - - amount_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - sourceCardNumber_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - destCardNumber_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - bankName_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - destBankName_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - cardOwnerName_ = s; - break; - } - case 64: { - - orderId_ = input.readUInt64(); - break; - } - case 72: { - - requestDateTime_ = input.readUInt64(); - break; - } - case 80: { - - rRN_ = input.readUInt64(); - break; - } - case 90: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - statusDescription_ = s; - break; - } - case 104: { - traceNo_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.MplTransaction.CardToCard) } - // @@protoc_insertion_point(class_scope:proto.MplTransaction.CardToCard) private static final net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new CardToCard(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard(); } public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardToCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CardToCard(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int ORDER_ID_FIELD_NUMBER = 1; private long orderId_; /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; + * uint64 order_id = 1 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { return orderId_; } - /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; - */ - private void setOrderId(long value) { - - orderId_ = value; - } - /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; - */ - private void clearOrderId() { - - orderId_ = 0L; - } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PAY_TIME_FIELD_NUMBER = 3; private int payTime_; /** - * optional uint32 pay_time = 3; + * uint32 pay_time = 3; + * @return The payTime. */ + @java.lang.Override public int getPayTime() { return payTime_; } - /** - * optional uint32 pay_time = 3; - */ - private void setPayTime(int value) { - - payTime_ = value; - } - /** - * optional uint32 pay_time = 3; - */ - private void clearPayTime() { - - payTime_ = 0; - } public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { - net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - private void setType(net.iGap.proto.ProtoGlobal.MplTransaction.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - private void clearType() { - - type_ = 0; - } public static final int BILL_FIELD_NUMBER = 5; private net.iGap.proto.ProtoGlobal.MplTransaction.Bill bill_; /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; + * @return Whether the bill field is set. */ + @java.lang.Override public boolean hasBill() { return bill_ != null; } /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; + * @return The bill. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getBill() { return bill_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; } /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - private void setBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { - if (value == null) { - throw new NullPointerException(); - } - bill_ = value; - - } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - private void setBill( - net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder builderForValue) { - bill_ = builderForValue.build(); - - } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - private void mergeBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { - if (bill_ != null && - bill_ != net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance()) { - bill_ = - net.iGap.proto.ProtoGlobal.MplTransaction.Bill.newBuilder(bill_).mergeFrom(value).buildPartial(); - } else { - bill_ = value; - } - - } - /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; */ - private void clearBill() { bill_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder getBillOrBuilder() { + return getBill(); } public static final int TOPUP_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.MplTransaction.Topup topup_; /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; + * @return Whether the topup field is set. */ + @java.lang.Override public boolean hasTopup() { return topup_ != null; } /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; + * @return The topup. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getTopup() { return topup_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; } /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - private void setTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { - if (value == null) { - throw new NullPointerException(); - } - topup_ = value; - - } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - private void setTopup( - net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder builderForValue) { - topup_ = builderForValue.build(); - - } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - private void mergeTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { - if (topup_ != null && - topup_ != net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance()) { - topup_ = - net.iGap.proto.ProtoGlobal.MplTransaction.Topup.newBuilder(topup_).mergeFrom(value).buildPartial(); - } else { - topup_ = value; - } - - } - /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; */ - private void clearTopup() { topup_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder getTopupOrBuilder() { + return getTopup(); } public static final int SALES_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.MplTransaction.Sales sales_; /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; + * @return Whether the sales field is set. */ + @java.lang.Override public boolean hasSales() { return sales_ != null; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; + * @return The sales. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getSales() { return sales_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; } /** - * optional .proto.MplTransaction.Sales sales = 7; - */ - private void setSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { - if (value == null) { - throw new NullPointerException(); - } - sales_ = value; - - } - /** - * optional .proto.MplTransaction.Sales sales = 7; - */ - private void setSales( - net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder builderForValue) { - sales_ = builderForValue.build(); - - } - /** - * optional .proto.MplTransaction.Sales sales = 7; - */ - private void mergeSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { - if (sales_ != null && - sales_ != net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance()) { - sales_ = - net.iGap.proto.ProtoGlobal.MplTransaction.Sales.newBuilder(sales_).mergeFrom(value).buildPartial(); - } else { - sales_ = value; - } - - } - /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; */ - private void clearSales() { sales_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder getSalesOrBuilder() { + return getSales(); } public static final int CARDTOCARD_FIELD_NUMBER = 8; private net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard cardtocard_; /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; + * @return Whether the cardtocard field is set. */ + @java.lang.Override public boolean hasCardtocard() { return cardtocard_ != null; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; + * @return The cardtocard. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard() { return cardtocard_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; - */ - private void setCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { - if (value == null) { - throw new NullPointerException(); - } - cardtocard_ = value; - - } - /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; - */ - private void setCardtocard( - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder builderForValue) { - cardtocard_ = builderForValue.build(); - - } - /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; */ - private void mergeCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { - if (cardtocard_ != null && - cardtocard_ != net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance()) { - cardtocard_ = - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.newBuilder(cardtocard_).mergeFrom(value).buildPartial(); - } else { - cardtocard_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder getCardtocardOrBuilder() { + return getCardtocard(); } - /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; - */ - private void clearCardtocard() { cardtocard_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (orderId_ != 0L) { output.writeUInt64(1, orderId_); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } if (payTime_ != 0) { output.writeUInt32(3, payTime_); @@ -45154,10 +66037,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (cardtocard_ != null) { output.writeMessage(8, getCardtocard()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -45165,9 +66050,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, orderId_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } if (payTime_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -45193,586 +66077,1139 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCardtocard()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplTransaction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplTransaction other = (net.iGap.proto.ProtoGlobal.MplTransaction) obj; + + if (getOrderId() + != other.getOrderId()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (getPayTime() + != other.getPayTime()) return false; + if (type_ != other.type_) return false; + if (hasBill() != other.hasBill()) return false; + if (hasBill()) { + if (!getBill() + .equals(other.getBill())) return false; + } + if (hasTopup() != other.hasTopup()) return false; + if (hasTopup()) { + if (!getTopup() + .equals(other.getTopup())) return false; + } + if (hasSales() != other.hasSales()) return false; + if (hasSales()) { + if (!getSales() + .equals(other.getSales())) return false; + } + if (hasCardtocard() != other.hasCardtocard()) return false; + if (hasCardtocard()) { + if (!getCardtocard() + .equals(other.getCardtocard())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + PAY_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPayTime(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasBill()) { + hash = (37 * hash) + BILL_FIELD_NUMBER; + hash = (53 * hash) + getBill().hashCode(); + } + if (hasTopup()) { + hash = (37 * hash) + TOPUP_FIELD_NUMBER; + hash = (53 * hash) + getTopup().hashCode(); + } + if (hasSales()) { + hash = (37 * hash) + SALES_FIELD_NUMBER; + hash = (53 * hash) + getSales().hashCode(); + } + if (hasCardtocard()) { + hash = (37 * hash) + CARDTOCARD_FIELD_NUMBER; + hash = (53 * hash) + getCardtocard().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplTransaction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransaction} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.MplTransaction, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransaction) net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.class, net.iGap.proto.ProtoGlobal.MplTransaction.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + orderId_ = 0L; + + token_ = ""; + + payTime_ = 0; + + type_ = 0; + + if (billBuilder_ == null) { + bill_ = null; + } else { + bill_ = null; + billBuilder_ = null; + } + if (topupBuilder_ == null) { + topup_ = null; + } else { + topup_ = null; + topupBuilder_ = null; + } + if (salesBuilder_ == null) { + sales_ = null; + } else { + sales_ = null; + salesBuilder_ = null; + } + if (cardtocardBuilder_ == null) { + cardtocard_ = null; + } else { + cardtocard_ = null; + cardtocardBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction build() { + net.iGap.proto.ProtoGlobal.MplTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction buildPartial() { + net.iGap.proto.ProtoGlobal.MplTransaction result = new net.iGap.proto.ProtoGlobal.MplTransaction(this); + result.orderId_ = orderId_; + result.token_ = token_; + result.payTime_ = payTime_; + result.type_ = type_; + if (billBuilder_ == null) { + result.bill_ = bill_; + } else { + result.bill_ = billBuilder_.build(); + } + if (topupBuilder_ == null) { + result.topup_ = topup_; + } else { + result.topup_ = topupBuilder_.build(); + } + if (salesBuilder_ == null) { + result.sales_ = sales_; + } else { + result.sales_ = salesBuilder_.build(); + } + if (cardtocardBuilder_ == null) { + result.cardtocard_ = cardtocard_; + } else { + result.cardtocard_ = cardtocardBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.MplTransaction) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction other) { + if (other == net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance()) return this; + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getPayTime() != 0) { + setPayTime(other.getPayTime()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasBill()) { + mergeBill(other.getBill()); + } + if (other.hasTopup()) { + mergeTopup(other.getTopup()); + } + if (other.hasSales()) { + mergeSales(other.getSales()); + } + if (other.hasCardtocard()) { + mergeCardtocard(other.getCardtocard()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.MplTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long orderId_ ; /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; + * uint64 order_id = 1 [jstype = JS_STRING]; + * @return The orderId. */ + @java.lang.Override public long getOrderId() { - return instance.getOrderId(); + return orderId_; } /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; + * uint64 order_id = 1 [jstype = JS_STRING]; + * @param value The orderId to set. + * @return This builder for chaining. */ public Builder setOrderId(long value) { - copyOnWrite(); - instance.setOrderId(value); + + orderId_ = value; + onChanged(); return this; } /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; + * uint64 order_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOrderId() { - copyOnWrite(); - instance.clearOrderId(); + + orderId_ = 0L; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private int payTime_ ; /** - * optional uint32 pay_time = 3; + * uint32 pay_time = 3; + * @return The payTime. */ + @java.lang.Override public int getPayTime() { - return instance.getPayTime(); + return payTime_; } /** - * optional uint32 pay_time = 3; + * uint32 pay_time = 3; + * @param value The payTime to set. + * @return This builder for chaining. */ public Builder setPayTime(int value) { - copyOnWrite(); - instance.setPayTime(value); + + payTime_ = value; + onChanged(); return this; } /** - * optional uint32 pay_time = 3; + * uint32 pay_time = 3; + * @return This builder for chaining. */ public Builder clearPayTime() { - copyOnWrite(); - instance.clearPayTime(); + + payTime_ = 0; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; } /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.MplTransaction.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MplTransaction.Type type = 4; + * .proto.MplTransaction.Type type = 4; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.MplTransaction.Bill bill_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder> billBuilder_; /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; + * @return Whether the bill field is set. */ public boolean hasBill() { - return instance.hasBill(); + return billBuilder_ != null || bill_ != null; } /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; + * @return The bill. */ public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getBill() { - return instance.getBill(); + if (billBuilder_ == null) { + return bill_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; + } else { + return billBuilder_.getMessage(); + } } /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; */ public Builder setBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { - copyOnWrite(); - instance.setBill(value); - return this; + if (billBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bill_ = value; + onChanged(); + } else { + billBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; */ public Builder setBill( net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder builderForValue) { - copyOnWrite(); - instance.setBill(builderForValue); + if (billBuilder_ == null) { + bill_ = builderForValue.build(); + onChanged(); + } else { + billBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; */ public Builder mergeBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { - copyOnWrite(); - instance.mergeBill(value); + if (billBuilder_ == null) { + if (bill_ != null) { + bill_ = + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.newBuilder(bill_).mergeFrom(value).buildPartial(); + } else { + bill_ = value; + } + onChanged(); + } else { + billBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.MplTransaction.Bill bill = 5; + * .proto.MplTransaction.Bill bill = 5; */ - public Builder clearBill() { copyOnWrite(); - instance.clearBill(); + public Builder clearBill() { + if (billBuilder_ == null) { + bill_ = null; + onChanged(); + } else { + bill_ = null; + billBuilder_ = null; + } + return this; } + /** + * .proto.MplTransaction.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder getBillBuilder() { + + onChanged(); + return getBillFieldBuilder().getBuilder(); + } + /** + * .proto.MplTransaction.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder getBillOrBuilder() { + if (billBuilder_ != null) { + return billBuilder_.getMessageOrBuilder(); + } else { + return bill_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; + } + } + /** + * .proto.MplTransaction.Bill bill = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder> + getBillFieldBuilder() { + if (billBuilder_ == null) { + billBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder>( + getBill(), + getParentForChildren(), + isClean()); + bill_ = null; + } + return billBuilder_; + } + private net.iGap.proto.ProtoGlobal.MplTransaction.Topup topup_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder> topupBuilder_; /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; + * @return Whether the topup field is set. */ public boolean hasTopup() { - return instance.hasTopup(); + return topupBuilder_ != null || topup_ != null; } /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; + * @return The topup. */ public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getTopup() { - return instance.getTopup(); + if (topupBuilder_ == null) { + return topup_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; + } else { + return topupBuilder_.getMessage(); + } } /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; */ public Builder setTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { - copyOnWrite(); - instance.setTopup(value); - return this; + if (topupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + topup_ = value; + onChanged(); + } else { + topupBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; */ public Builder setTopup( net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder builderForValue) { - copyOnWrite(); - instance.setTopup(builderForValue); + if (topupBuilder_ == null) { + topup_ = builderForValue.build(); + onChanged(); + } else { + topupBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; */ public Builder mergeTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { - copyOnWrite(); - instance.mergeTopup(value); + if (topupBuilder_ == null) { + if (topup_ != null) { + topup_ = + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.newBuilder(topup_).mergeFrom(value).buildPartial(); + } else { + topup_ = value; + } + onChanged(); + } else { + topupBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.MplTransaction.Topup topup = 6; + * .proto.MplTransaction.Topup topup = 6; */ - public Builder clearTopup() { copyOnWrite(); - instance.clearTopup(); + public Builder clearTopup() { + if (topupBuilder_ == null) { + topup_ = null; + onChanged(); + } else { + topup_ = null; + topupBuilder_ = null; + } + return this; } + /** + * .proto.MplTransaction.Topup topup = 6; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder getTopupBuilder() { + + onChanged(); + return getTopupFieldBuilder().getBuilder(); + } + /** + * .proto.MplTransaction.Topup topup = 6; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder getTopupOrBuilder() { + if (topupBuilder_ != null) { + return topupBuilder_.getMessageOrBuilder(); + } else { + return topup_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; + } + } + /** + * .proto.MplTransaction.Topup topup = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder> + getTopupFieldBuilder() { + if (topupBuilder_ == null) { + topupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder>( + getTopup(), + getParentForChildren(), + isClean()); + topup_ = null; + } + return topupBuilder_; + } + private net.iGap.proto.ProtoGlobal.MplTransaction.Sales sales_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder> salesBuilder_; /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; + * @return Whether the sales field is set. */ public boolean hasSales() { - return instance.hasSales(); + return salesBuilder_ != null || sales_ != null; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; + * @return The sales. */ public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getSales() { - return instance.getSales(); + if (salesBuilder_ == null) { + return sales_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + } else { + return salesBuilder_.getMessage(); + } } /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; */ public Builder setSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { - copyOnWrite(); - instance.setSales(value); - return this; + if (salesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sales_ = value; + onChanged(); + } else { + salesBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; */ public Builder setSales( net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder builderForValue) { - copyOnWrite(); - instance.setSales(builderForValue); + if (salesBuilder_ == null) { + sales_ = builderForValue.build(); + onChanged(); + } else { + salesBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; */ public Builder mergeSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { - copyOnWrite(); - instance.mergeSales(value); + if (salesBuilder_ == null) { + if (sales_ != null) { + sales_ = + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.newBuilder(sales_).mergeFrom(value).buildPartial(); + } else { + sales_ = value; + } + onChanged(); + } else { + salesBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * .proto.MplTransaction.Sales sales = 7; */ - public Builder clearSales() { copyOnWrite(); - instance.clearSales(); + public Builder clearSales() { + if (salesBuilder_ == null) { + sales_ = null; + onChanged(); + } else { + sales_ = null; + salesBuilder_ = null; + } + return this; } - /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.Sales sales = 7; */ - public boolean hasCardtocard() { - return instance.hasCardtocard(); + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder getSalesBuilder() { + + onChanged(); + return getSalesFieldBuilder().getBuilder(); } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.Sales sales = 7; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard() { - return instance.getCardtocard(); + public net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder getSalesOrBuilder() { + if (salesBuilder_ != null) { + return salesBuilder_.getMessageOrBuilder(); + } else { + return sales_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + } } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.Sales sales = 7; */ - public Builder setCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { - copyOnWrite(); - instance.setCardtocard(value); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder> + getSalesFieldBuilder() { + if (salesBuilder_ == null) { + salesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder>( + getSales(), + getParentForChildren(), + isClean()); + sales_ = null; } + return salesBuilder_; + } + + private net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard cardtocard_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder> cardtocardBuilder_; /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; + * @return Whether the cardtocard field is set. */ - public Builder setCardtocard( - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder builderForValue) { - copyOnWrite(); - instance.setCardtocard(builderForValue); - return this; + public boolean hasCardtocard() { + return cardtocardBuilder_ != null || cardtocard_ != null; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; + * @return The cardtocard. */ - public Builder mergeCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { - copyOnWrite(); - instance.mergeCardtocard(value); - return this; + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard() { + if (cardtocardBuilder_ == null) { + return cardtocard_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; + } else { + return cardtocardBuilder_.getMessage(); + } } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * .proto.MplTransaction.CardToCard cardtocard = 8; */ - public Builder clearCardtocard() { copyOnWrite(); - instance.clearCardtocard(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.MplTransaction) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.MplTransaction(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; + public Builder setCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { + if (cardtocardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardtocard_ = value; + onChanged(); + } else { + cardtocardBuilder_.setMessage(value); } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.MplTransaction other = (net.iGap.proto.ProtoGlobal.MplTransaction) arg1; - orderId_ = visitor.visitLong(orderId_ != 0L, orderId_, - other.orderId_ != 0L, other.orderId_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - payTime_ = visitor.visitInt(payTime_ != 0, payTime_, - other.payTime_ != 0, other.payTime_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - bill_ = visitor.visitMessage(bill_, other.bill_); - topup_ = visitor.visitMessage(topup_, other.topup_); - sales_ = visitor.visitMessage(sales_, other.sales_); - cardtocard_ = visitor.visitMessage(cardtocard_, other.cardtocard_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - orderId_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 24: { - - payTime_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 42: { - net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder subBuilder = null; - if (bill_ != null) { - subBuilder = bill_.toBuilder(); - } - bill_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.Bill.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bill_); - bill_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder subBuilder = null; - if (topup_ != null) { - subBuilder = topup_.toBuilder(); - } - topup_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.Topup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topup_); - topup_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder subBuilder = null; - if (sales_ != null) { - subBuilder = sales_.toBuilder(); - } - sales_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.Sales.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sales_); - sales_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder subBuilder = null; - if (cardtocard_ != null) { - subBuilder = cardtocard_.toBuilder(); - } - cardtocard_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cardtocard_); - cardtocard_ = subBuilder.buildPartial(); - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { + return this; + } + /** + * .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public Builder setCardtocard( + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder builderForValue) { + if (cardtocardBuilder_ == null) { + cardtocard_ = builderForValue.build(); + onChanged(); + } else { + cardtocardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public Builder mergeCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { + if (cardtocardBuilder_ == null) { + if (cardtocard_ != null) { + cardtocard_ = + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.newBuilder(cardtocard_).mergeFrom(value).buildPartial(); + } else { + cardtocard_ = value; } + onChanged(); + } else { + cardtocardBuilder_.mergeFrom(value); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + + return this; + } + /** + * .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public Builder clearCardtocard() { + if (cardtocardBuilder_ == null) { + cardtocard_ = null; + onChanged(); + } else { + cardtocard_ = null; + cardtocardBuilder_ = null; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.MplTransaction.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + + return this; + } + /** + * .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder getCardtocardBuilder() { + + onChanged(); + return getCardtocardFieldBuilder().getBuilder(); + } + /** + * .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder getCardtocardOrBuilder() { + if (cardtocardBuilder_ != null) { + return cardtocardBuilder_.getMessageOrBuilder(); + } else { + return cardtocard_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; } } - throw new UnsupportedOperationException(); - } + /** + * .proto.MplTransaction.CardToCard cardtocard = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder> + getCardtocardFieldBuilder() { + if (cardtocardBuilder_ == null) { + cardtocardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder>( + getCardtocard(), + getParentForChildren(), + isClean()); + cardtocard_ = null; + } + return cardtocardBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.MplTransaction) + } // @@protoc_insertion_point(class_scope:proto.MplTransaction) private static final net.iGap.proto.ProtoGlobal.MplTransaction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplTransaction(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction(); } public static net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplTransaction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface BotInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BotInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return The id. */ long getId(); /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @return The welcomeMessage. */ java.lang.String getWelcomeMessage(); /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @return The bytes for welcomeMessage. */ com.google.protobuf.ByteString getWelcomeMessageBytes(); @@ -45790,39 +67227,144 @@ public interface BotInfoOrBuilder extends * repeated .proto.BotInfo.BotAction actions = 3; */ int getActionsCount(); + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + java.util.List + getActionsOrBuilderList(); + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder getActionsOrBuilder( + int index); } /** * Protobuf type {@code proto.BotInfo} */ - public static final class BotInfo extends - com.google.protobuf.GeneratedMessageLite< - BotInfo, BotInfo.Builder> implements + public static final class BotInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BotInfo) BotInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use BotInfo.newBuilder() to construct. + private BotInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BotInfo() { welcomeMessage_ = ""; - actions_ = emptyProtobufList(); + actions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BotInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BotInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + welcomeMessage_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + actions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + actions_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.BotInfo.BotAction.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.class, net.iGap.proto.ProtoGlobal.BotInfo.Builder.class); + } + public interface BotActionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.BotInfo.BotAction) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string key = 1; + * string key = 1; + * @return The key. */ java.lang.String getKey(); /** - * optional string key = 1; + * string key = 1; + * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** - * optional string value = 2; + * string value = 2; + * @return The value. */ java.lang.String getValue(); /** - * optional string value = 2; + * string value = 2; + * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); @@ -45830,484 +67372,755 @@ public interface BotActionOrBuilder extends /** * Protobuf type {@code proto.BotInfo.BotAction} */ - public static final class BotAction extends - com.google.protobuf.GeneratedMessageLite< - BotAction, BotAction.Builder> implements + public static final class BotAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.BotInfo.BotAction) BotActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BotAction.newBuilder() to construct. + private BotAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private BotAction() { key_ = ""; value_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BotAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BotAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.BotAction.class, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder.class); + } + public static final int KEY_FIELD_NUMBER = 1; - private java.lang.String key_; + private volatile java.lang.Object key_; /** - * optional string key = 1; + * string key = 1; + * @return The key. */ + @java.lang.Override public java.lang.String getKey() { - return key_; + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } } /** - * optional string key = 1; + * string key = 1; + * @return The bytes for key. */ + @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(key_); - } - /** - * optional string key = 1; - */ - private void setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - } - /** - * optional string key = 1; - */ - private void clearKey() { - - key_ = getDefaultInstance().getKey(); - } - /** - * optional string key = 1; - */ - private void setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value.toStringUtf8(); + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VALUE_FIELD_NUMBER = 2; - private java.lang.String value_; + private volatile java.lang.Object value_; /** - * optional string value = 2; + * string value = 2; + * @return The value. */ + @java.lang.Override public java.lang.String getValue() { - return value_; + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } } /** - * optional string value = 2; + * string value = 2; + * @return The bytes for value. */ + @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(value_); - } - /** - * optional string value = 2; - */ - private void setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - } - /** - * optional string value = 2; - */ - private void clearValue() { - - value_ = getDefaultInstance().getValue(); + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string value = 2; - */ - private void setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeString(1, getKey()); + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } - if (!value_.isEmpty()) { - output.writeString(2, getValue()); + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getKey()); + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getValue()); + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.BotInfo.BotAction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.BotInfo.BotAction other = (net.iGap.proto.ProtoGlobal.BotInfo.BotAction) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.BotInfo.BotAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BotInfo.BotAction} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.BotInfo.BotAction, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BotInfo.BotAction) net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.BotAction.class, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.BotInfo.BotAction.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction build() { + net.iGap.proto.ProtoGlobal.BotInfo.BotAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction buildPartial() { + net.iGap.proto.ProtoGlobal.BotInfo.BotAction result = new net.iGap.proto.ProtoGlobal.BotInfo.BotAction(this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.BotInfo.BotAction) { + return mergeFrom((net.iGap.proto.ProtoGlobal.BotInfo.BotAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.BotInfo.BotAction other) { + if (other == net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.BotInfo.BotAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.BotInfo.BotAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object key_ = ""; /** - * optional string key = 1; + * string key = 1; + * @return The key. */ public java.lang.String getKey() { - return instance.getKey(); + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string key = 1; + * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { - return instance.getKeyBytes(); + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string key = 1; + * string key = 1; + * @param value The key to set. + * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { - copyOnWrite(); - instance.setKey(value); + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); return this; } /** - * optional string key = 1; + * string key = 1; + * @return This builder for chaining. */ public Builder clearKey() { - copyOnWrite(); - instance.clearKey(); + + key_ = getDefaultInstance().getKey(); + onChanged(); return this; } /** - * optional string key = 1; + * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setKeyBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); return this; } + private java.lang.Object value_ = ""; /** - * optional string value = 2; + * string value = 2; + * @return The value. */ public java.lang.String getValue() { - return instance.getValue(); + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string value = 2; + * string value = 2; + * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { - return instance.getValueBytes(); + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string value = 2; + * string value = 2; + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { - copyOnWrite(); - instance.setValue(value); + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); return this; } /** - * optional string value = 2; + * string value = 2; + * @return This builder for chaining. */ public Builder clearValue() { - copyOnWrite(); - instance.clearValue(); + + value_ = getDefaultInstance().getValue(); + onChanged(); return this; } /** - * optional string value = 2; + * string value = 2; + * @param value The bytes for value to set. + * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setValueBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.BotInfo.BotAction) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.BotInfo.BotAction(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.BotInfo.BotAction other = (net.iGap.proto.ProtoGlobal.BotInfo.BotAction) arg1; - key_ = visitor.visitString(!key_.isEmpty(), key_, - !other.key_.isEmpty(), other.key_); - value_ = visitor.visitString(!value_.isEmpty(), value_, - !other.value_.isEmpty(), other.value_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - key_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.BotInfo.BotAction.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.BotInfo.BotAction) } - // @@protoc_insertion_point(class_scope:proto.BotInfo.BotAction) private static final net.iGap.proto.ProtoGlobal.BotInfo.BotAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BotAction(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.BotInfo.BotAction(); } public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BotAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BotAction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long id_; /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 1; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1; - */ - private void clearId() { - - id_ = 0L; - } public static final int WELCOMEMESSAGE_FIELD_NUMBER = 2; - private java.lang.String welcomeMessage_; + private volatile java.lang.Object welcomeMessage_; /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @return The welcomeMessage. */ + @java.lang.Override public java.lang.String getWelcomeMessage() { - return welcomeMessage_; + java.lang.Object ref = welcomeMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + welcomeMessage_ = s; + return s; + } } /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @return The bytes for welcomeMessage. */ + @java.lang.Override public com.google.protobuf.ByteString getWelcomeMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(welcomeMessage_); - } - /** - * optional string welcomeMessage = 2; - */ - private void setWelcomeMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - welcomeMessage_ = value; - } - /** - * optional string welcomeMessage = 2; - */ - private void clearWelcomeMessage() { - - welcomeMessage_ = getDefaultInstance().getWelcomeMessage(); - } - /** - * optional string welcomeMessage = 2; - */ - private void setWelcomeMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - welcomeMessage_ = value.toStringUtf8(); + java.lang.Object ref = welcomeMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + welcomeMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ACTIONS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList actions_; + private java.util.List actions_; /** * repeated .proto.BotInfo.BotAction actions = 3; */ + @java.lang.Override public java.util.List getActionsList() { return actions_; } /** * repeated .proto.BotInfo.BotAction actions = 3; */ + @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; @@ -46315,123 +68128,55 @@ public java.util.List getActionsLi /** * repeated .proto.BotInfo.BotAction actions = 3; */ + @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * repeated .proto.BotInfo.BotAction actions = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getActions(int index) { return actions_.get(index); } /** * repeated .proto.BotInfo.BotAction actions = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder getActionsOrBuilder( int index) { return actions_.get(index); } - private void ensureActionsIsMutable() { - if (!actions_.isModifiable()) { - actions_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(actions_); - } - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void setActions( - int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.set(index, value); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void setActions( - int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { - ensureActionsIsMutable(); - actions_.set(index, builderForValue.build()); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void addActions(net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void addActions( - int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(index, value); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void addActions( - net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { - ensureActionsIsMutable(); - actions_.add(builderForValue.build()); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void addActions( - int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { - ensureActionsIsMutable(); - actions_.add(index, builderForValue.build()); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void addAllActions( - java.lang.Iterable values) { - ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, actions_); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void clearActions() { - actions_ = emptyProtobufList(); - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - private void removeActions(int index) { - ensureActionsIsMutable(); - actions_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { output.writeUInt64(1, id_); } - if (!welcomeMessage_.isEmpty()) { - output.writeString(2, getWelcomeMessage()); + if (!getWelcomeMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, welcomeMessage_); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(3, actions_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -46439,188 +68184,511 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, id_); } - if (!welcomeMessage_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getWelcomeMessage()); + if (!getWelcomeMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, welcomeMessage_); } for (int i = 0; i < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, actions_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.BotInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.BotInfo other = (net.iGap.proto.ProtoGlobal.BotInfo) obj; + + if (getId() + != other.getId()) return false; + if (!getWelcomeMessage() + .equals(other.getWelcomeMessage())) return false; + if (!getActionsList() + .equals(other.getActionsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + WELCOMEMESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getWelcomeMessage().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.BotInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.BotInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.BotInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.BotInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.BotInfo) net.iGap.proto.ProtoGlobal.BotInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.class, net.iGap.proto.ProtoGlobal.BotInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.BotInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getActionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + welcomeMessage_ = ""; + + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + actionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo build() { + net.iGap.proto.ProtoGlobal.BotInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo buildPartial() { + net.iGap.proto.ProtoGlobal.BotInfo result = new net.iGap.proto.ProtoGlobal.BotInfo(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.welcomeMessage_ = welcomeMessage_; + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.BotInfo) { + return mergeFrom((net.iGap.proto.ProtoGlobal.BotInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.BotInfo other) { + if (other == net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getWelcomeMessage().isEmpty()) { + welcomeMessage_ = other.welcomeMessage_; + onChanged(); + } + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.BotInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.BotInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private long id_ ; /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 1; + * uint64 id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private java.lang.Object welcomeMessage_ = ""; /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @return The welcomeMessage. */ public java.lang.String getWelcomeMessage() { - return instance.getWelcomeMessage(); + java.lang.Object ref = welcomeMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + welcomeMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @return The bytes for welcomeMessage. */ public com.google.protobuf.ByteString getWelcomeMessageBytes() { - return instance.getWelcomeMessageBytes(); + java.lang.Object ref = welcomeMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + welcomeMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @param value The welcomeMessage to set. + * @return This builder for chaining. */ public Builder setWelcomeMessage( java.lang.String value) { - copyOnWrite(); - instance.setWelcomeMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + welcomeMessage_ = value; + onChanged(); return this; } /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @return This builder for chaining. */ public Builder clearWelcomeMessage() { - copyOnWrite(); - instance.clearWelcomeMessage(); + + welcomeMessage_ = getDefaultInstance().getWelcomeMessage(); + onChanged(); return this; } /** - * optional string welcomeMessage = 2; + * string welcomeMessage = 2; + * @param value The bytes for welcomeMessage to set. + * @return This builder for chaining. */ public Builder setWelcomeMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setWelcomeMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + welcomeMessage_ = value; + onChanged(); return this; } + private java.util.List actions_ = + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + actions_ = new java.util.ArrayList(actions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo.BotAction, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder, net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder> actionsBuilder_; + /** * repeated .proto.BotInfo.BotAction actions = 3; */ public java.util.List getActionsList() { - return java.util.Collections.unmodifiableList( - instance.getActionsList()); + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } } /** * repeated .proto.BotInfo.BotAction actions = 3; */ public int getActionsCount() { - return instance.getActionsCount(); - }/** + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + /** * repeated .proto.BotInfo.BotAction actions = 3; */ public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getActions(int index) { - return instance.getActions(index); + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } } /** * repeated .proto.BotInfo.BotAction actions = 3; */ public Builder setActions( int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { - copyOnWrite(); - instance.setActions(index, value); + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } return this; } /** @@ -46628,16 +68696,29 @@ public Builder setActions( */ public Builder setActions( int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { - copyOnWrite(); - instance.setActions(index, builderForValue); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.BotInfo.BotAction actions = 3; */ public Builder addActions(net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { - copyOnWrite(); - instance.addActions(value); + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } return this; } /** @@ -46645,8 +68726,16 @@ public Builder addActions(net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { */ public Builder addActions( int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { - copyOnWrite(); - instance.addActions(index, value); + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } return this; } /** @@ -46654,8 +68743,13 @@ public Builder addActions( */ public Builder addActions( net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { - copyOnWrite(); - instance.addActions(builderForValue); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -46663,8 +68757,13 @@ public Builder addActions( */ public Builder addActions( int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { - copyOnWrite(); - instance.addActions(index, builderForValue); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -46672,241 +68771,339 @@ public Builder addActions( */ public Builder addAllActions( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllActions(values); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.BotInfo.BotAction actions = 3; */ public Builder clearActions() { - copyOnWrite(); - instance.clearActions(); - return this; - } - /** - * repeated .proto.BotInfo.BotAction actions = 3; - */ - public Builder removeActions(int index) { - copyOnWrite(); - instance.removeActions(index); + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + actionsBuilder_.clear(); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.BotInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.BotInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - actions_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.BotInfo other = (net.iGap.proto.ProtoGlobal.BotInfo) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - welcomeMessage_ = visitor.visitString(!welcomeMessage_.isEmpty(), welcomeMessage_, - !other.welcomeMessage_.isEmpty(), other.welcomeMessage_); - actions_= visitor.visitList(actions_, other.actions_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - welcomeMessage_ = s; - break; - } - case 26: { - if (!actions_.isModifiable()) { - actions_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(actions_); - } - actions_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.BotInfo.BotAction.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder getActionsBuilder( + int index) { + return getActionsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder getActionsOrBuilder( + int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); } else { + return actionsBuilder_.getMessageOrBuilder(index); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.BotInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public java.util.List + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); } } - throw new UnsupportedOperationException(); - } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder addActionsBuilder() { + return getActionsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance()); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder addActionsBuilder( + int index) { + return getActionsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance()); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public java.util.List + getActionsBuilderList() { + return getActionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo.BotAction, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder, net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder> + getActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo.BotAction, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder, net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder>( + actions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + actions_ = null; + } + return actionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.BotInfo) + } // @@protoc_insertion_point(class_scope:proto.BotInfo) private static final net.iGap.proto.ProtoGlobal.BotInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new BotInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.BotInfo(); } public static net.iGap.proto.ProtoGlobal.BotInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BotInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BotInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.BotInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface MentionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Mention) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** * repeated uint64 userIds = 1; + * @return A list containing the userIds. */ java.util.List getUserIdsList(); /** * repeated uint64 userIds = 1; + * @return The count of userIds. */ int getUserIdsCount(); /** * repeated uint64 userIds = 1; + * @param index The index of the element to return. + * @return The userIds at the given index. */ long getUserIds(int index); } /** * Protobuf type {@code proto.Mention} */ - public static final class Mention extends - com.google.protobuf.GeneratedMessageLite< - Mention, Mention.Builder> implements + public static final class Mention extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Mention) MentionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Mention.newBuilder() to construct. + private Mention(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Mention() { userIds_ = emptyLongList(); } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Mention(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Mention( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + userIds_.addLong(input.readUInt64()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + userIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + userIds_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + userIds_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Mention.class, net.iGap.proto.ProtoGlobal.Mention.Builder.class); + } + public static final int USERIDS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.LongList userIds_; /** * repeated uint64 userIds = 1; + * @return A list containing the userIds. */ + @java.lang.Override public java.util.List getUserIdsList() { return userIds_; } /** * repeated uint64 userIds = 1; + * @return The count of userIds. */ public int getUserIdsCount() { return userIds_.size(); } /** * repeated uint64 userIds = 1; + * @param index The index of the element to return. + * @return The userIds at the given index. */ public long getUserIds(int index) { return userIds_.getLong(index); } - private void ensureUserIdsIsMutable() { - if (!userIds_.isModifiable()) { - userIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(userIds_); - } - } - /** - * repeated uint64 userIds = 1; - */ - private void setUserIds( - int index, long value) { - ensureUserIdsIsMutable(); - userIds_.setLong(index, value); - } - /** - * repeated uint64 userIds = 1; - */ - private void addUserIds(long value) { - ensureUserIdsIsMutable(); - userIds_.addLong(value); - } - /** - * repeated uint64 userIds = 1; - */ - private void addAllUserIds( - java.lang.Iterable values) { - ensureUserIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, userIds_); - } - /** - * repeated uint64 userIds = 1; - */ - private void clearUserIds() { - userIds_ = emptyLongList(); + private int userIdsMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); + if (getUserIdsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(userIdsMemoizedSerializedSize); + } for (int i = 0; i < userIds_.size(); i++) { - output.writeUInt64(1, userIds_.getLong(i)); + output.writeUInt64NoTag(userIds_.getLong(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -46917,396 +69114,593 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(userIds_.getLong(i)); } size += dataSize; - size += 1 * getUserIdsList().size(); + if (!getUserIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + userIdsMemoizedSerializedSize = dataSize; } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.Mention)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Mention other = (net.iGap.proto.ProtoGlobal.Mention) obj; + + if (!getUserIdsList() + .equals(other.getUserIdsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUserIdsCount() > 0) { + hash = (37 * hash) + USERIDS_FIELD_NUMBER; + hash = (53 * hash) + getUserIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Mention parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Mention parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.Mention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Mention parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Mention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.Mention parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Mention parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Mention parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Mention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Mention parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.Mention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.Mention parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.Mention prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Mention} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.Mention, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Mention) net.iGap.proto.ProtoGlobal.MentionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Mention.class, net.iGap.proto.ProtoGlobal.Mention.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.Mention.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Mention getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Mention build() { + net.iGap.proto.ProtoGlobal.Mention result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Mention buildPartial() { + net.iGap.proto.ProtoGlobal.Mention result = new net.iGap.proto.ProtoGlobal.Mention(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + userIds_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userIds_ = userIds_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.Mention) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Mention)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Mention other) { + if (other == net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance()) return this; + if (!other.userIds_.isEmpty()) { + if (userIds_.isEmpty()) { + userIds_ = other.userIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserIdsIsMutable(); + userIds_.addAll(other.userIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.Mention parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Mention) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private com.google.protobuf.Internal.LongList userIds_ = emptyLongList(); + private void ensureUserIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + userIds_ = mutableCopy(userIds_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 userIds = 1; + * @return A list containing the userIds. */ public java.util.List getUserIdsList() { - return java.util.Collections.unmodifiableList( - instance.getUserIdsList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(userIds_) : userIds_; } /** * repeated uint64 userIds = 1; + * @return The count of userIds. */ public int getUserIdsCount() { - return instance.getUserIdsCount(); + return userIds_.size(); } /** * repeated uint64 userIds = 1; + * @param index The index of the element to return. + * @return The userIds at the given index. */ public long getUserIds(int index) { - return instance.getUserIds(index); + return userIds_.getLong(index); } /** * repeated uint64 userIds = 1; + * @param index The index to set the value at. + * @param value The userIds to set. + * @return This builder for chaining. */ public Builder setUserIds( int index, long value) { - copyOnWrite(); - instance.setUserIds(index, value); + ensureUserIdsIsMutable(); + userIds_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 userIds = 1; + * @param value The userIds to add. + * @return This builder for chaining. */ public Builder addUserIds(long value) { - copyOnWrite(); - instance.addUserIds(value); + ensureUserIdsIsMutable(); + userIds_.addLong(value); + onChanged(); return this; } /** * repeated uint64 userIds = 1; + * @param values The userIds to add. + * @return This builder for chaining. */ public Builder addAllUserIds( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllUserIds(values); + ensureUserIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, userIds_); + onChanged(); return this; } /** * repeated uint64 userIds = 1; + * @return This builder for chaining. */ public Builder clearUserIds() { - copyOnWrite(); - instance.clearUserIds(); + userIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Mention) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.Mention(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - userIds_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.Mention other = (net.iGap.proto.ProtoGlobal.Mention) arg1; - userIds_= visitor.visitLongList(userIds_, other.userIds_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - if (!userIds_.isModifiable()) { - userIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(userIds_); - } - userIds_.addLong(input.readUInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!userIds_.isModifiable() && input.getBytesUntilLimit() > 0) { - userIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(userIds_); - } - while (input.getBytesUntilLimit() > 0) { - userIds_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.Mention.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.Mention) + } + // @@protoc_insertion_point(class_scope:proto.Mention) private static final net.iGap.proto.ProtoGlobal.Mention DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Mention(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Mention(); } public static net.iGap.proto.ProtoGlobal.Mention getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Mention parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Mention(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.Mention getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface RoomMessageStickerOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageSticker) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @return The type. */ net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum getType(); /** - * optional string message = 2; + * string message = 2; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional string id = 3; + * string id = 3; + * @return The id. */ java.lang.String getId(); /** - * optional string id = 3; + * string id = 3; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** - * optional string name = 4; + * string name = 4; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 4; + * string name = 4; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string path = 5; + * string path = 5; + * @return The path. */ java.lang.String getPath(); /** - * optional string path = 5; + * string path = 5; + * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** - * optional string token = 6; + * string token = 6; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 6; + * string token = 6; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional string group_id = 7; + * string group_id = 7; + * @return The groupId. */ java.lang.String getGroupId(); /** - * optional string group_id = 7; + * string group_id = 7; + * @return The bytes for groupId. */ com.google.protobuf.ByteString getGroupIdBytes(); /** - * optional string file_name = 8; + * string file_name = 8; + * @return The fileName. */ java.lang.String getFileName(); /** - * optional string file_name = 8; + * string file_name = 8; + * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); /** - * optional int64 file_size = 9; + * int64 file_size = 9; + * @return The fileSize. */ long getFileSize(); /** - * optional string gift_id = 10; + * string gift_id = 10; + * @return The giftId. */ java.lang.String getGiftId(); /** - * optional string gift_id = 10; + * string gift_id = 10; + * @return The bytes for giftId. */ com.google.protobuf.ByteString getGiftIdBytes(); /** - * optional int64 gift_amount = 11; + * int64 gift_amount = 11; + * @return The giftAmount. */ long getGiftAmount(); /** - * optional bool is_favorite = 12; + * bool is_favorite = 12; + * @return The isFavorite. */ boolean getIsFavorite(); /** - * optional int32 sort = 13; + * int32 sort = 13; + * @return The sort. */ int getSort(); /** - * optional int64 ref_id = 14; + * int64 ref_id = 14; + * @return The refId. */ long getRefId(); /** * repeated string tags = 15; + * @return A list containing the tags. */ - java.util.List + java.util.List getTagsList(); /** * repeated string tags = 15; + * @return The count of tags. */ int getTagsCount(); /** * repeated string tags = 15; + * @param index The index of the element to return. + * @return The tags at the given index. */ java.lang.String getTags(int index); /** * repeated string tags = 15; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); @@ -47314,12 +69708,17 @@ public interface RoomMessageStickerOrBuilder extends /** * Protobuf type {@code proto.RoomMessageSticker} */ - public static final class RoomMessageSticker extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageSticker, RoomMessageSticker.Builder> implements + public static final class RoomMessageSticker extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageSticker) RoomMessageStickerOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageSticker.newBuilder() to construct. + private RoomMessageSticker(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageSticker() { + type_ = 0; message_ = ""; id_ = ""; name_ = ""; @@ -47328,13 +69727,168 @@ private RoomMessageSticker() { groupId_ = ""; fileName_ = ""; giftId_ = ""; - tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageSticker(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageSticker( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + groupId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + fileName_ = s; + break; + } + case 72: { + + fileSize_ = input.readInt64(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + giftId_ = s; + break; + } + case 88: { + + giftAmount_ = input.readInt64(); + break; + } + case 96: { + + isFavorite_ = input.readBool(); + break; + } + case 104: { + + sort_ = input.readInt32(); + break; + } + case 112: { + + refId_ = input.readInt64(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tags_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.class, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder.class); + } + /** * Protobuf enum {@code proto.RoomMessageSticker.StickerTypeEnum} */ public enum StickerTypeEnum - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * STICKER = 0; */ @@ -47365,10 +69919,16 @@ public enum StickerTypeEnum public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -47376,6 +69936,10 @@ public static StickerTypeEnum valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static StickerTypeEnum forNumber(int value) { switch (value) { case 0: return STICKER; @@ -47397,6 +69961,37 @@ public StickerTypeEnum findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDescriptor().getEnumTypes().get(0); + } + + private static final StickerTypeEnum[] VALUES = values(); + + public static StickerTypeEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private StickerTypeEnum(int value) { @@ -47406,644 +70001,462 @@ private StickerTypeEnum(int value) { // @@protoc_insertion_point(enum_scope:proto.RoomMessageSticker.StickerTypeEnum) } - private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum getType() { - net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum result = net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum result = net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; - */ - private void setType(net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 2; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 2; + * string message = 2; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 2; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 2; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 2; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ID_FIELD_NUMBER = 3; - private java.lang.String id_; + private volatile java.lang.Object id_; /** - * optional string id = 3; + * string id = 3; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { - return id_; + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } /** - * optional string id = 3; + * string id = 3; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(id_); - } - /** - * optional string id = 3; - */ - private void setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - } - /** - * optional string id = 3; - */ - private void clearId() { - - id_ = getDefaultInstance().getId(); - } - /** - * optional string id = 3; - */ - private void setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value.toStringUtf8(); + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int NAME_FIELD_NUMBER = 4; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 4; + * string name = 4; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 4; + * string name = 4; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 4; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 4; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 4; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PATH_FIELD_NUMBER = 5; - private java.lang.String path_; + private volatile java.lang.Object path_; /** - * optional string path = 5; + * string path = 5; + * @return The path. */ + @java.lang.Override public java.lang.String getPath() { - return path_; + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } } /** - * optional string path = 5; + * string path = 5; + * @return The bytes for path. */ + @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(path_); - } - /** - * optional string path = 5; - */ - private void setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - path_ = value; - } - /** - * optional string path = 5; - */ - private void clearPath() { - - path_ = getDefaultInstance().getPath(); - } - /** - * optional string path = 5; - */ - private void setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - path_ = value.toStringUtf8(); + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOKEN_FIELD_NUMBER = 6; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 6; + * string token = 6; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 6; + * string token = 6; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 6; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 6; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 6; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int GROUP_ID_FIELD_NUMBER = 7; - private java.lang.String groupId_; + private volatile java.lang.Object groupId_; /** - * optional string group_id = 7; + * string group_id = 7; + * @return The groupId. */ + @java.lang.Override public java.lang.String getGroupId() { - return groupId_; + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } } /** - * optional string group_id = 7; + * string group_id = 7; + * @return The bytes for groupId. */ + @java.lang.Override public com.google.protobuf.ByteString getGroupIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(groupId_); - } - /** - * optional string group_id = 7; - */ - private void setGroupId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - groupId_ = value; - } - /** - * optional string group_id = 7; - */ - private void clearGroupId() { - - groupId_ = getDefaultInstance().getGroupId(); - } - /** - * optional string group_id = 7; - */ - private void setGroupIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - groupId_ = value.toStringUtf8(); + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FILE_NAME_FIELD_NUMBER = 8; - private java.lang.String fileName_; + private volatile java.lang.Object fileName_; /** - * optional string file_name = 8; + * string file_name = 8; + * @return The fileName. */ + @java.lang.Override public java.lang.String getFileName() { - return fileName_; + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } } /** - * optional string file_name = 8; + * string file_name = 8; + * @return The bytes for fileName. */ + @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(fileName_); - } - /** - * optional string file_name = 8; - */ - private void setFileName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fileName_ = value; - } - /** - * optional string file_name = 8; - */ - private void clearFileName() { - - fileName_ = getDefaultInstance().getFileName(); - } - /** - * optional string file_name = 8; - */ - private void setFileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fileName_ = value.toStringUtf8(); + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FILE_SIZE_FIELD_NUMBER = 9; private long fileSize_; /** - * optional int64 file_size = 9; + * int64 file_size = 9; + * @return The fileSize. */ + @java.lang.Override public long getFileSize() { return fileSize_; } - /** - * optional int64 file_size = 9; - */ - private void setFileSize(long value) { - - fileSize_ = value; - } - /** - * optional int64 file_size = 9; - */ - private void clearFileSize() { - - fileSize_ = 0L; - } public static final int GIFT_ID_FIELD_NUMBER = 10; - private java.lang.String giftId_; + private volatile java.lang.Object giftId_; /** - * optional string gift_id = 10; + * string gift_id = 10; + * @return The giftId. */ + @java.lang.Override public java.lang.String getGiftId() { - return giftId_; + java.lang.Object ref = giftId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + giftId_ = s; + return s; + } } /** - * optional string gift_id = 10; + * string gift_id = 10; + * @return The bytes for giftId. */ + @java.lang.Override public com.google.protobuf.ByteString getGiftIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(giftId_); - } - /** - * optional string gift_id = 10; - */ - private void setGiftId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - giftId_ = value; - } - /** - * optional string gift_id = 10; - */ - private void clearGiftId() { - - giftId_ = getDefaultInstance().getGiftId(); - } - /** - * optional string gift_id = 10; - */ - private void setGiftIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - giftId_ = value.toStringUtf8(); + java.lang.Object ref = giftId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + giftId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int GIFT_AMOUNT_FIELD_NUMBER = 11; private long giftAmount_; /** - * optional int64 gift_amount = 11; + * int64 gift_amount = 11; + * @return The giftAmount. */ + @java.lang.Override public long getGiftAmount() { return giftAmount_; } - /** - * optional int64 gift_amount = 11; - */ - private void setGiftAmount(long value) { - - giftAmount_ = value; - } - /** - * optional int64 gift_amount = 11; - */ - private void clearGiftAmount() { - - giftAmount_ = 0L; - } public static final int IS_FAVORITE_FIELD_NUMBER = 12; private boolean isFavorite_; /** - * optional bool is_favorite = 12; + * bool is_favorite = 12; + * @return The isFavorite. */ + @java.lang.Override public boolean getIsFavorite() { return isFavorite_; } - /** - * optional bool is_favorite = 12; - */ - private void setIsFavorite(boolean value) { - - isFavorite_ = value; - } - /** - * optional bool is_favorite = 12; - */ - private void clearIsFavorite() { - - isFavorite_ = false; - } public static final int SORT_FIELD_NUMBER = 13; private int sort_; /** - * optional int32 sort = 13; + * int32 sort = 13; + * @return The sort. */ + @java.lang.Override public int getSort() { return sort_; } - /** - * optional int32 sort = 13; - */ - private void setSort(int value) { - - sort_ = value; - } - /** - * optional int32 sort = 13; - */ - private void clearSort() { - - sort_ = 0; - } public static final int REF_ID_FIELD_NUMBER = 14; private long refId_; - /** - * optional int64 ref_id = 14; - */ - public long getRefId() { - return refId_; - } - /** - * optional int64 ref_id = 14; - */ - private void setRefId(long value) { - - refId_ = value; - } - /** - * optional int64 ref_id = 14; - */ - private void clearRefId() { - - refId_ = 0L; - } - - public static final int TAGS_FIELD_NUMBER = 15; - private com.google.protobuf.Internal.ProtobufList tags_; - /** - * repeated string tags = 15; - */ - public java.util.List getTagsList() { - return tags_; - } - /** - * repeated string tags = 15; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 15; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 15; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return com.google.protobuf.ByteString.copyFromUtf8( - tags_.get(index)); - } - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tags_); - } - } - /** - * repeated string tags = 15; - */ - private void setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); + /** + * int64 ref_id = 14; + * @return The refId. + */ + @java.lang.Override + public long getRefId() { + return refId_; } + + public static final int TAGS_FIELD_NUMBER = 15; + private com.google.protobuf.LazyStringList tags_; /** * repeated string tags = 15; + * @return A list containing the tags. */ - private void addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; } /** * repeated string tags = 15; + * @return The count of tags. */ - private void addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, tags_); + public int getTagsCount() { + return tags_.size(); } /** * repeated string tags = 15; + * @param index The index of the element to return. + * @return The tags at the given index. */ - private void clearTags() { - tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + public java.lang.String getTags(int index) { + return tags_.get(index); } /** * repeated string tags = 15; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ - private void addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value.toStringUtf8()); + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.STICKER.getNumber()) { output.writeEnum(1, type_); } - if (!message_.isEmpty()) { - output.writeString(2, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } - if (!id_.isEmpty()) { - output.writeString(3, getId()); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_); } - if (!name_.isEmpty()) { - output.writeString(4, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } - if (!path_.isEmpty()) { - output.writeString(5, getPath()); + if (!getPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, path_); } - if (!token_.isEmpty()) { - output.writeString(6, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, token_); } - if (!groupId_.isEmpty()) { - output.writeString(7, getGroupId()); + if (!getGroupIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, groupId_); } - if (!fileName_.isEmpty()) { - output.writeString(8, getFileName()); + if (!getFileNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fileName_); } if (fileSize_ != 0L) { output.writeInt64(9, fileSize_); } - if (!giftId_.isEmpty()) { - output.writeString(10, getGiftId()); + if (!getGiftIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, giftId_); } if (giftAmount_ != 0L) { output.writeInt64(11, giftAmount_); @@ -48058,12 +70471,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt64(14, refId_); } for (int i = 0; i < tags_.size(); i++) { - output.writeString(15, tags_.get(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, tags_.getRaw(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -48071,41 +70486,33 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } - if (!id_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getId()); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } - if (!path_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getPath()); + if (!getPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, path_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, token_); } - if (!groupId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getGroupId()); + if (!getGroupIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, groupId_); } - if (!fileName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getFileName()); + if (!getFileNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fileName_); } if (fileSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, fileSize_); } - if (!giftId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getGiftId()); + if (!getGiftIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, giftId_); } if (giftAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -48126,923 +70533,1516 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(tags_.get(i)); + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageSticker)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageSticker other = (net.iGap.proto.ProtoGlobal.RoomMessageSticker) obj; + + if (type_ != other.type_) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getGroupId() + .equals(other.getGroupId())) return false; + if (!getFileName() + .equals(other.getFileName())) return false; + if (getFileSize() + != other.getFileSize()) return false; + if (!getGiftId() + .equals(other.getGiftId())) return false; + if (getGiftAmount() + != other.getGiftAmount()) return false; + if (getIsFavorite() + != other.getIsFavorite()) return false; + if (getSort() + != other.getSort()) return false; + if (getRefId() + != other.getRefId()) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (37 * hash) + FILE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFileSize()); + hash = (37 * hash) + GIFT_ID_FIELD_NUMBER; + hash = (53 * hash) + getGiftId().hashCode(); + hash = (37 * hash) + GIFT_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGiftAmount()); + hash = (37 * hash) + IS_FAVORITE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFavorite()); + hash = (37 * hash) + SORT_FIELD_NUMBER; + hash = (53 * hash) + getSort(); + hash = (37 * hash) + REF_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRefId()); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageSticker prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageSticker} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageSticker, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageSticker) net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.class, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + message_ = ""; + + id_ = ""; + + name_ = ""; + + path_ = ""; + + token_ = ""; + + groupId_ = ""; + + fileName_ = ""; + + fileSize_ = 0L; + + giftId_ = ""; + + giftAmount_ = 0L; + + isFavorite_ = false; + + sort_ = 0; + + refId_ = 0L; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageSticker build() { + net.iGap.proto.ProtoGlobal.RoomMessageSticker result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageSticker buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageSticker result = new net.iGap.proto.ProtoGlobal.RoomMessageSticker(this); + int from_bitField0_ = bitField0_; + result.type_ = type_; + result.message_ = message_; + result.id_ = id_; + result.name_ = name_; + result.path_ = path_; + result.token_ = token_; + result.groupId_ = groupId_; + result.fileName_ = fileName_; + result.fileSize_ = fileSize_; + result.giftId_ = giftId_; + result.giftAmount_ = giftAmount_; + result.isFavorite_ = isFavorite_; + result.sort_ = sort_; + result.refId_ = refId_; + if (((bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tags_ = tags_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageSticker) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageSticker)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageSticker other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + onChanged(); + } + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + onChanged(); + } + if (other.getFileSize() != 0L) { + setFileSize(other.getFileSize()); + } + if (!other.getGiftId().isEmpty()) { + giftId_ = other.giftId_; + onChanged(); + } + if (other.getGiftAmount() != 0L) { + setGiftAmount(other.getGiftAmount()); + } + if (other.getIsFavorite() != false) { + setIsFavorite(other.getIsFavorite()); + } + if (other.getSort() != 0) { + setSort(other.getSort()); + } + if (other.getRefId() != 0L) { + setRefId(other.getRefId()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageSticker parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageSticker) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private int type_ = 0; /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum result = net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * .proto.RoomMessageSticker.StickerTypeEnum type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 2; + * string message = 2; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 2; + * string message = 2; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 2; + * string message = 2; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 2; + * string message = 2; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private java.lang.Object id_ = ""; /** - * optional string id = 3; + * string id = 3; + * @return The id. */ public java.lang.String getId() { - return instance.getId(); + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string id = 3; + * string id = 3; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { - return instance.getIdBytes(); + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string id = 3; + * string id = 3; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - copyOnWrite(); - instance.setId(value); + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); return this; } /** - * optional string id = 3; + * string id = 3; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = getDefaultInstance().getId(); + onChanged(); return this; } /** - * optional string id = 3; + * string id = 3; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 4; + * string name = 4; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 4; + * string name = 4; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 4; + * string name = 4; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 4; + * string name = 4; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 4; + * string name = 4; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object path_ = ""; /** - * optional string path = 5; + * string path = 5; + * @return The path. */ public java.lang.String getPath() { - return instance.getPath(); + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string path = 5; + * string path = 5; + * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { - return instance.getPathBytes(); + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string path = 5; + * string path = 5; + * @param value The path to set. + * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { - copyOnWrite(); - instance.setPath(value); + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); return this; } /** - * optional string path = 5; + * string path = 5; + * @return This builder for chaining. */ public Builder clearPath() { - copyOnWrite(); - instance.clearPath(); + + path_ = getDefaultInstance().getPath(); + onChanged(); return this; } /** - * optional string path = 5; + * string path = 5; + * @param value The bytes for path to set. + * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPathBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 6; + * string token = 6; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 6; + * string token = 6; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 6; + * string token = 6; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 6; + * string token = 6; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 6; + * string token = 6; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private java.lang.Object groupId_ = ""; /** - * optional string group_id = 7; + * string group_id = 7; + * @return The groupId. */ public java.lang.String getGroupId() { - return instance.getGroupId(); + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string group_id = 7; + * string group_id = 7; + * @return The bytes for groupId. */ public com.google.protobuf.ByteString getGroupIdBytes() { - return instance.getGroupIdBytes(); + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string group_id = 7; + * string group_id = 7; + * @param value The groupId to set. + * @return This builder for chaining. */ public Builder setGroupId( java.lang.String value) { - copyOnWrite(); - instance.setGroupId(value); + if (value == null) { + throw new NullPointerException(); + } + + groupId_ = value; + onChanged(); return this; } /** - * optional string group_id = 7; + * string group_id = 7; + * @return This builder for chaining. */ public Builder clearGroupId() { - copyOnWrite(); - instance.clearGroupId(); + + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); return this; } /** - * optional string group_id = 7; + * string group_id = 7; + * @param value The bytes for groupId to set. + * @return This builder for chaining. */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setGroupIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupId_ = value; + onChanged(); return this; } + private java.lang.Object fileName_ = ""; /** - * optional string file_name = 8; + * string file_name = 8; + * @return The fileName. */ public java.lang.String getFileName() { - return instance.getFileName(); + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string file_name = 8; + * string file_name = 8; + * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { - return instance.getFileNameBytes(); + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string file_name = 8; + * string file_name = 8; + * @param value The fileName to set. + * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { - copyOnWrite(); - instance.setFileName(value); + if (value == null) { + throw new NullPointerException(); + } + + fileName_ = value; + onChanged(); return this; } /** - * optional string file_name = 8; + * string file_name = 8; + * @return This builder for chaining. */ public Builder clearFileName() { - copyOnWrite(); - instance.clearFileName(); + + fileName_ = getDefaultInstance().getFileName(); + onChanged(); return this; } /** - * optional string file_name = 8; + * string file_name = 8; + * @param value The bytes for fileName to set. + * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFileNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fileName_ = value; + onChanged(); return this; } + private long fileSize_ ; /** - * optional int64 file_size = 9; + * int64 file_size = 9; + * @return The fileSize. */ + @java.lang.Override public long getFileSize() { - return instance.getFileSize(); + return fileSize_; } /** - * optional int64 file_size = 9; + * int64 file_size = 9; + * @param value The fileSize to set. + * @return This builder for chaining. */ public Builder setFileSize(long value) { - copyOnWrite(); - instance.setFileSize(value); + + fileSize_ = value; + onChanged(); return this; } /** - * optional int64 file_size = 9; + * int64 file_size = 9; + * @return This builder for chaining. */ public Builder clearFileSize() { - copyOnWrite(); - instance.clearFileSize(); + + fileSize_ = 0L; + onChanged(); return this; } + private java.lang.Object giftId_ = ""; /** - * optional string gift_id = 10; + * string gift_id = 10; + * @return The giftId. */ public java.lang.String getGiftId() { - return instance.getGiftId(); + java.lang.Object ref = giftId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + giftId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string gift_id = 10; + * string gift_id = 10; + * @return The bytes for giftId. */ public com.google.protobuf.ByteString getGiftIdBytes() { - return instance.getGiftIdBytes(); + java.lang.Object ref = giftId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + giftId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string gift_id = 10; + * string gift_id = 10; + * @param value The giftId to set. + * @return This builder for chaining. */ public Builder setGiftId( java.lang.String value) { - copyOnWrite(); - instance.setGiftId(value); + if (value == null) { + throw new NullPointerException(); + } + + giftId_ = value; + onChanged(); return this; } /** - * optional string gift_id = 10; + * string gift_id = 10; + * @return This builder for chaining. */ public Builder clearGiftId() { - copyOnWrite(); - instance.clearGiftId(); + + giftId_ = getDefaultInstance().getGiftId(); + onChanged(); return this; } /** - * optional string gift_id = 10; + * string gift_id = 10; + * @param value The bytes for giftId to set. + * @return This builder for chaining. */ public Builder setGiftIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setGiftIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + giftId_ = value; + onChanged(); return this; } + private long giftAmount_ ; /** - * optional int64 gift_amount = 11; + * int64 gift_amount = 11; + * @return The giftAmount. */ + @java.lang.Override public long getGiftAmount() { - return instance.getGiftAmount(); + return giftAmount_; } /** - * optional int64 gift_amount = 11; + * int64 gift_amount = 11; + * @param value The giftAmount to set. + * @return This builder for chaining. */ public Builder setGiftAmount(long value) { - copyOnWrite(); - instance.setGiftAmount(value); + + giftAmount_ = value; + onChanged(); return this; } /** - * optional int64 gift_amount = 11; + * int64 gift_amount = 11; + * @return This builder for chaining. */ public Builder clearGiftAmount() { - copyOnWrite(); - instance.clearGiftAmount(); + + giftAmount_ = 0L; + onChanged(); return this; } + private boolean isFavorite_ ; /** - * optional bool is_favorite = 12; + * bool is_favorite = 12; + * @return The isFavorite. */ + @java.lang.Override public boolean getIsFavorite() { - return instance.getIsFavorite(); + return isFavorite_; } /** - * optional bool is_favorite = 12; + * bool is_favorite = 12; + * @param value The isFavorite to set. + * @return This builder for chaining. */ public Builder setIsFavorite(boolean value) { - copyOnWrite(); - instance.setIsFavorite(value); + + isFavorite_ = value; + onChanged(); return this; } /** - * optional bool is_favorite = 12; + * bool is_favorite = 12; + * @return This builder for chaining. */ public Builder clearIsFavorite() { - copyOnWrite(); - instance.clearIsFavorite(); + + isFavorite_ = false; + onChanged(); return this; } + private int sort_ ; /** - * optional int32 sort = 13; + * int32 sort = 13; + * @return The sort. */ + @java.lang.Override public int getSort() { - return instance.getSort(); + return sort_; } /** - * optional int32 sort = 13; + * int32 sort = 13; + * @param value The sort to set. + * @return This builder for chaining. */ public Builder setSort(int value) { - copyOnWrite(); - instance.setSort(value); + + sort_ = value; + onChanged(); return this; } /** - * optional int32 sort = 13; + * int32 sort = 13; + * @return This builder for chaining. */ public Builder clearSort() { - copyOnWrite(); - instance.clearSort(); + + sort_ = 0; + onChanged(); return this; } + private long refId_ ; /** - * optional int64 ref_id = 14; + * int64 ref_id = 14; + * @return The refId. */ + @java.lang.Override public long getRefId() { - return instance.getRefId(); + return refId_; } /** - * optional int64 ref_id = 14; + * int64 ref_id = 14; + * @param value The refId to set. + * @return This builder for chaining. */ public Builder setRefId(long value) { - copyOnWrite(); - instance.setRefId(value); + + refId_ = value; + onChanged(); return this; } /** - * optional int64 ref_id = 14; + * int64 ref_id = 14; + * @return This builder for chaining. */ public Builder clearRefId() { - copyOnWrite(); - instance.clearRefId(); + + refId_ = 0L; + onChanged(); return this; } + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000001; + } + } /** * repeated string tags = 15; + * @return A list containing the tags. */ - public java.util.List + public com.google.protobuf.ProtocolStringList getTagsList() { - return java.util.Collections.unmodifiableList( - instance.getTagsList()); + return tags_.getUnmodifiableView(); } /** * repeated string tags = 15; + * @return The count of tags. */ public int getTagsCount() { - return instance.getTagsCount(); + return tags_.size(); } /** * repeated string tags = 15; + * @param index The index of the element to return. + * @return The tags at the given index. */ public java.lang.String getTags(int index) { - return instance.getTags(index); + return tags_.get(index); } /** * repeated string tags = 15; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { - return instance.getTagsBytes(index); + return tags_.getByteString(index); } /** * repeated string tags = 15; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { - copyOnWrite(); - instance.setTags(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); return this; } /** * repeated string tags = 15; + * @param value The tags to add. + * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { - copyOnWrite(); - instance.addTags(value); + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); return this; } /** * repeated string tags = 15; + * @param values The tags to add. + * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllTags(values); + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); return this; } /** * repeated string tags = 15; + * @return This builder for chaining. */ public Builder clearTags() { - copyOnWrite(); - instance.clearTags(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } /** * repeated string tags = 15; + * @param value The bytes of the tags to add. + * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.addTagsBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageSticker) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageSticker(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - tags_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageSticker other = (net.iGap.proto.ProtoGlobal.RoomMessageSticker) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - id_ = visitor.visitString(!id_.isEmpty(), id_, - !other.id_.isEmpty(), other.id_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - path_ = visitor.visitString(!path_.isEmpty(), path_, - !other.path_.isEmpty(), other.path_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - groupId_ = visitor.visitString(!groupId_.isEmpty(), groupId_, - !other.groupId_.isEmpty(), other.groupId_); - fileName_ = visitor.visitString(!fileName_.isEmpty(), fileName_, - !other.fileName_.isEmpty(), other.fileName_); - fileSize_ = visitor.visitLong(fileSize_ != 0L, fileSize_, - other.fileSize_ != 0L, other.fileSize_); - giftId_ = visitor.visitString(!giftId_.isEmpty(), giftId_, - !other.giftId_.isEmpty(), other.giftId_); - giftAmount_ = visitor.visitLong(giftAmount_ != 0L, giftAmount_, - other.giftAmount_ != 0L, other.giftAmount_); - isFavorite_ = visitor.visitBoolean(isFavorite_ != false, isFavorite_, - other.isFavorite_ != false, other.isFavorite_); - sort_ = visitor.visitInt(sort_ != 0, sort_, - other.sort_ != 0, other.sort_); - refId_ = visitor.visitLong(refId_ != 0L, refId_, - other.refId_ != 0L, other.refId_); - tags_= visitor.visitList(tags_, other.tags_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - groupId_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - fileName_ = s; - break; - } - case 72: { - - fileSize_ = input.readInt64(); - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - giftId_ = s; - break; - } - case 88: { - - giftAmount_ = input.readInt64(); - break; - } - case 96: { - - isFavorite_ = input.readBool(); - break; - } - case 104: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - sort_ = input.readInt32(); - break; - } - case 112: { - refId_ = input.readInt64(); - break; - } - case 122: { - String s = input.readStringRequireUtf8(); - if (!tags_.isModifiable()) { - tags_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tags_); - } - tags_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageSticker.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageSticker) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageSticker) private static final net.iGap.proto.ProtoGlobal.RoomMessageSticker DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageSticker(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageSticker(); } public static net.iGap.proto.ProtoGlobal.RoomMessageSticker getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageSticker parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageSticker(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface RoomMessageCardToCardOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageCardToCard) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string message = 1; + * string message = 1; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 1; + * string message = 1; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional string label = 2; + * string label = 2; + * @return The label. */ java.lang.String getLabel(); /** - * optional string label = 2; + * string label = 2; + * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** - * optional string image_url = 3; + * string image_url = 3; + * @return The imageUrl. */ java.lang.String getImageUrl(); /** - * optional string image_url = 3; + * string image_url = 3; + * @return The bytes for imageUrl. */ com.google.protobuf.ByteString getImageUrlBytes(); /** - * optional string action_type = 4; + * string action_type = 4; + * @return The actionType. */ java.lang.String getActionType(); /** - * optional string action_type = 4; + * string action_type = 4; + * @return The bytes for actionType. */ com.google.protobuf.ByteString getActionTypeBytes(); /** - * optional string card_number = 5; + * string card_number = 5; + * @return The cardNumber. */ java.lang.String getCardNumber(); /** - * optional string card_number = 5; + * string card_number = 5; + * @return The bytes for cardNumber. */ com.google.protobuf.ByteString getCardNumberBytes(); /** - * optional int64 amount = 6; + * int64 amount = 6; + * @return The amount. */ long getAmount(); /** - * optional int64 user_id = 7; + * int64 user_id = 7; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.RoomMessageCardToCard} */ - public static final class RoomMessageCardToCard extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageCardToCard, RoomMessageCardToCard.Builder> implements + public static final class RoomMessageCardToCard extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageCardToCard) RoomMessageCardToCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageCardToCard.newBuilder() to construct. + private RoomMessageCardToCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageCardToCard() { message_ = ""; label_ = ""; @@ -49050,298 +72050,349 @@ private RoomMessageCardToCard() { actionType_ = ""; cardNumber_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageCardToCard(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageCardToCard( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + imageUrl_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + actionType_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 48: { + + amount_ = input.readInt64(); + break; + } + case 56: { + + userId_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.class, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder.class); + } + public static final int MESSAGE_FIELD_NUMBER = 1; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 1; + * string message = 1; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 1; + * string message = 1; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 1; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 1; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 1; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LABEL_FIELD_NUMBER = 2; - private java.lang.String label_; + private volatile java.lang.Object label_; /** - * optional string label = 2; + * string label = 2; + * @return The label. */ + @java.lang.Override public java.lang.String getLabel() { - return label_; + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } } /** - * optional string label = 2; + * string label = 2; + * @return The bytes for label. */ + @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(label_); - } - /** - * optional string label = 2; - */ - private void setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - } - /** - * optional string label = 2; - */ - private void clearLabel() { - - label_ = getDefaultInstance().getLabel(); - } - /** - * optional string label = 2; - */ - private void setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value.toStringUtf8(); + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int IMAGE_URL_FIELD_NUMBER = 3; - private java.lang.String imageUrl_; + private volatile java.lang.Object imageUrl_; /** - * optional string image_url = 3; + * string image_url = 3; + * @return The imageUrl. */ + @java.lang.Override public java.lang.String getImageUrl() { - return imageUrl_; + java.lang.Object ref = imageUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUrl_ = s; + return s; + } } /** - * optional string image_url = 3; + * string image_url = 3; + * @return The bytes for imageUrl. */ + @java.lang.Override public com.google.protobuf.ByteString getImageUrlBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(imageUrl_); - } - /** - * optional string image_url = 3; - */ - private void setImageUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageUrl_ = value; - } - /** - * optional string image_url = 3; - */ - private void clearImageUrl() { - - imageUrl_ = getDefaultInstance().getImageUrl(); - } - /** - * optional string image_url = 3; - */ - private void setImageUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageUrl_ = value.toStringUtf8(); + java.lang.Object ref = imageUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ACTION_TYPE_FIELD_NUMBER = 4; - private java.lang.String actionType_; + private volatile java.lang.Object actionType_; /** - * optional string action_type = 4; + * string action_type = 4; + * @return The actionType. */ + @java.lang.Override public java.lang.String getActionType() { - return actionType_; + java.lang.Object ref = actionType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionType_ = s; + return s; + } } /** - * optional string action_type = 4; + * string action_type = 4; + * @return The bytes for actionType. */ + @java.lang.Override public com.google.protobuf.ByteString getActionTypeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(actionType_); - } - /** - * optional string action_type = 4; - */ - private void setActionType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - actionType_ = value; - } - /** - * optional string action_type = 4; - */ - private void clearActionType() { - - actionType_ = getDefaultInstance().getActionType(); - } - /** - * optional string action_type = 4; - */ - private void setActionTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - actionType_ = value.toStringUtf8(); + java.lang.Object ref = actionType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + actionType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CARD_NUMBER_FIELD_NUMBER = 5; - private java.lang.String cardNumber_; + private volatile java.lang.Object cardNumber_; /** - * optional string card_number = 5; + * string card_number = 5; + * @return The cardNumber. */ + @java.lang.Override public java.lang.String getCardNumber() { - return cardNumber_; + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } } /** - * optional string card_number = 5; + * string card_number = 5; + * @return The bytes for cardNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getCardNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cardNumber_); - } - /** - * optional string card_number = 5; - */ - private void setCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardNumber_ = value; - } - /** - * optional string card_number = 5; - */ - private void clearCardNumber() { - - cardNumber_ = getDefaultInstance().getCardNumber(); - } - /** - * optional string card_number = 5; - */ - private void setCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardNumber_ = value.toStringUtf8(); + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int AMOUNT_FIELD_NUMBER = 6; private long amount_; /** - * optional int64 amount = 6; + * int64 amount = 6; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional int64 amount = 6; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional int64 amount = 6; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 7; private long userId_; /** - * optional int64 user_id = 7; + * int64 user_id = 7; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional int64 user_id = 7; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional int64 user_id = 7; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!message_.isEmpty()) { - output.writeString(1, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } - if (!label_.isEmpty()) { - output.writeString(2, getLabel()); + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); } - if (!imageUrl_.isEmpty()) { - output.writeString(3, getImageUrl()); + if (!getImageUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUrl_); } - if (!actionType_.isEmpty()) { - output.writeString(4, getActionType()); + if (!getActionTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, actionType_); } - if (!cardNumber_.isEmpty()) { - output.writeString(5, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cardNumber_); } if (amount_ != 0L) { output.writeInt64(6, amount_); @@ -49349,32 +72400,29 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeInt64(7, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } - if (!label_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getLabel()); + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); } - if (!imageUrl_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getImageUrl()); + if (!getImageUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUrl_); } - if (!actionType_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getActionType()); + if (!getActionTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, actionType_); } - if (!cardNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getCardNumber()); + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cardNumber_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -49384,512 +72432,874 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageCardToCard)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard other = (net.iGap.proto.ProtoGlobal.RoomMessageCardToCard) obj; + + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getImageUrl() + .equals(other.getImageUrl())) return false; + if (!getActionType() + .equals(other.getActionType())) return false; + if (!getCardNumber() + .equals(other.getCardNumber())) return false; + if (getAmount() + != other.getAmount()) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER; + hash = (53 * hash) + getImageUrl().hashCode(); + hash = (37 * hash) + ACTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getActionType().hashCode(); + hash = (37 * hash) + CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageCardToCard} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageCardToCard) net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.class, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + label_ = ""; + + imageUrl_ = ""; + + actionType_ = ""; + + cardNumber_ = ""; + + amount_ = 0L; + + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard build() { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard result = new net.iGap.proto.ProtoGlobal.RoomMessageCardToCard(this); + result.message_ = message_; + result.label_ = label_; + result.imageUrl_ = imageUrl_; + result.actionType_ = actionType_; + result.cardNumber_ = cardNumber_; + result.amount_ = amount_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageCardToCard) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageCardToCard)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + if (!other.getImageUrl().isEmpty()) { + imageUrl_ = other.imageUrl_; + onChanged(); + } + if (!other.getActionType().isEmpty()) { + actionType_ = other.actionType_; + onChanged(); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageCardToCard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object message_ = ""; /** - * optional string message = 1; + * string message = 1; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 1; + * string message = 1; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 1; + * string message = 1; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 1; + * string message = 1; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 1; + * string message = 1; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private java.lang.Object label_ = ""; /** - * optional string label = 2; + * string label = 2; + * @return The label. */ public java.lang.String getLabel() { - return instance.getLabel(); + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string label = 2; + * string label = 2; + * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { - return instance.getLabelBytes(); + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string label = 2; + * string label = 2; + * @param value The label to set. + * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { - copyOnWrite(); - instance.setLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); return this; } /** - * optional string label = 2; + * string label = 2; + * @return This builder for chaining. */ public Builder clearLabel() { - copyOnWrite(); - instance.clearLabel(); + + label_ = getDefaultInstance().getLabel(); + onChanged(); return this; } /** - * optional string label = 2; + * string label = 2; + * @param value The bytes for label to set. + * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); return this; } + private java.lang.Object imageUrl_ = ""; /** - * optional string image_url = 3; + * string image_url = 3; + * @return The imageUrl. */ public java.lang.String getImageUrl() { - return instance.getImageUrl(); + java.lang.Object ref = imageUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string image_url = 3; + * string image_url = 3; + * @return The bytes for imageUrl. */ public com.google.protobuf.ByteString getImageUrlBytes() { - return instance.getImageUrlBytes(); + java.lang.Object ref = imageUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string image_url = 3; + * string image_url = 3; + * @param value The imageUrl to set. + * @return This builder for chaining. */ public Builder setImageUrl( java.lang.String value) { - copyOnWrite(); - instance.setImageUrl(value); + if (value == null) { + throw new NullPointerException(); + } + + imageUrl_ = value; + onChanged(); return this; } /** - * optional string image_url = 3; + * string image_url = 3; + * @return This builder for chaining. */ public Builder clearImageUrl() { - copyOnWrite(); - instance.clearImageUrl(); + + imageUrl_ = getDefaultInstance().getImageUrl(); + onChanged(); return this; } /** - * optional string image_url = 3; + * string image_url = 3; + * @param value The bytes for imageUrl to set. + * @return This builder for chaining. */ public Builder setImageUrlBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setImageUrlBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUrl_ = value; + onChanged(); return this; } + private java.lang.Object actionType_ = ""; /** - * optional string action_type = 4; + * string action_type = 4; + * @return The actionType. */ public java.lang.String getActionType() { - return instance.getActionType(); + java.lang.Object ref = actionType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionType_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string action_type = 4; + * string action_type = 4; + * @return The bytes for actionType. */ public com.google.protobuf.ByteString getActionTypeBytes() { - return instance.getActionTypeBytes(); + java.lang.Object ref = actionType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + actionType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string action_type = 4; + * string action_type = 4; + * @param value The actionType to set. + * @return This builder for chaining. */ public Builder setActionType( java.lang.String value) { - copyOnWrite(); - instance.setActionType(value); + if (value == null) { + throw new NullPointerException(); + } + + actionType_ = value; + onChanged(); return this; } /** - * optional string action_type = 4; + * string action_type = 4; + * @return This builder for chaining. */ public Builder clearActionType() { - copyOnWrite(); - instance.clearActionType(); + + actionType_ = getDefaultInstance().getActionType(); + onChanged(); return this; } /** - * optional string action_type = 4; + * string action_type = 4; + * @param value The bytes for actionType to set. + * @return This builder for chaining. */ public Builder setActionTypeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setActionTypeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + actionType_ = value; + onChanged(); return this; } + private java.lang.Object cardNumber_ = ""; /** - * optional string card_number = 5; + * string card_number = 5; + * @return The cardNumber. */ public java.lang.String getCardNumber() { - return instance.getCardNumber(); + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string card_number = 5; + * string card_number = 5; + * @return The bytes for cardNumber. */ public com.google.protobuf.ByteString getCardNumberBytes() { - return instance.getCardNumberBytes(); + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string card_number = 5; + * string card_number = 5; + * @param value The cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumber( java.lang.String value) { - copyOnWrite(); - instance.setCardNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); return this; } /** - * optional string card_number = 5; + * string card_number = 5; + * @return This builder for chaining. */ public Builder clearCardNumber() { - copyOnWrite(); - instance.clearCardNumber(); + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); return this; } /** - * optional string card_number = 5; + * string card_number = 5; + * @param value The bytes for cardNumber to set. + * @return This builder for chaining. */ public Builder setCardNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCardNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); return this; } + private long amount_ ; /** - * optional int64 amount = 6; + * int64 amount = 6; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional int64 amount = 6; + * int64 amount = 6; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional int64 amount = 6; + * int64 amount = 6; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional int64 user_id = 7; + * int64 user_id = 7; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional int64 user_id = 7; + * int64 user_id = 7; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional int64 user_id = 7; + * int64 user_id = 7; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageCardToCard) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageCardToCard(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard other = (net.iGap.proto.ProtoGlobal.RoomMessageCardToCard) arg1; - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - label_ = visitor.visitString(!label_.isEmpty(), label_, - !other.label_.isEmpty(), other.label_); - imageUrl_ = visitor.visitString(!imageUrl_.isEmpty(), imageUrl_, - !other.imageUrl_.isEmpty(), other.imageUrl_); - actionType_ = visitor.visitString(!actionType_.isEmpty(), actionType_, - !other.actionType_.isEmpty(), other.actionType_); - cardNumber_ = visitor.visitString(!cardNumber_.isEmpty(), cardNumber_, - !other.cardNumber_.isEmpty(), other.cardNumber_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - label_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - imageUrl_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - actionType_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - cardNumber_ = s; - break; - } - case 48: { - amount_ = input.readInt64(); - break; - } - case 56: { - - userId_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageCardToCard) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageCardToCard) private static final net.iGap.proto.ProtoGlobal.RoomMessageCardToCard DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageCardToCard(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageCardToCard(); } public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageCardToCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageCardToCard(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomMessageBotActionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageBotAction) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @return The action. */ net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum getAction(); /** - * optional string label = 2; + * string label = 2; + * @return The label. */ java.lang.String getLabel(); /** - * optional string label = 2; + * string label = 2; + * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** - * optional string value = 3; + * string value = 3; + * @return The value. */ java.lang.String getValue(); /** - * optional string value = 3; + * string value = 3; + * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); @@ -49897,20 +73307,106 @@ public interface RoomMessageBotActionOrBuilder extends /** * Protobuf type {@code proto.RoomMessageBotAction} */ - public static final class RoomMessageBotAction extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageBotAction, RoomMessageBotAction.Builder> implements + public static final class RoomMessageBotAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageBotAction) RoomMessageBotActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageBotAction.newBuilder() to construct. + private RoomMessageBotAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageBotAction() { + action_ = 0; label_ = ""; value_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageBotAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageBotAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.class, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder.class); + } + /** * Protobuf enum {@code proto.RoomMessageBotAction.BotActionEnum} */ public enum BotActionEnum - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 0; */ @@ -50141,10 +73637,16 @@ public enum BotActionEnum public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -50152,6 +73654,10 @@ public static BotActionEnum valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static BotActionEnum forNumber(int value) { switch (value) { case 0: return NONE; @@ -50198,6 +73704,37 @@ public BotActionEnum findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDescriptor().getEnumTypes().get(0); + } + + private static final BotActionEnum[] VALUES = values(); + + public static BotActionEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private BotActionEnum(int value) { @@ -50207,152 +73744,130 @@ private BotActionEnum(int value) { // @@protoc_insertion_point(enum_scope:proto.RoomMessageBotAction.BotActionEnum) } - public static final int ACTION_FIELD_NUMBER = 1; - private int action_; - /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; - */ - public int getActionValue() { - return action_; - } - /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum getAction() { - net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum result = net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.forNumber(action_); - return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.UNRECOGNIZED : result; - } - /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; - */ - private void setActionValue(int value) { - action_ = value; - } + public static final int ACTION_FIELD_NUMBER = 1; + private int action_; /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ - private void setAction(net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @return The action. */ - private void clearAction() { - - action_ = 0; + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum getAction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum result = net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.UNRECOGNIZED : result; } public static final int LABEL_FIELD_NUMBER = 2; - private java.lang.String label_; + private volatile java.lang.Object label_; /** - * optional string label = 2; + * string label = 2; + * @return The label. */ + @java.lang.Override public java.lang.String getLabel() { - return label_; + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } } /** - * optional string label = 2; + * string label = 2; + * @return The bytes for label. */ + @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(label_); - } - /** - * optional string label = 2; - */ - private void setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - } - /** - * optional string label = 2; - */ - private void clearLabel() { - - label_ = getDefaultInstance().getLabel(); - } - /** - * optional string label = 2; - */ - private void setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value.toStringUtf8(); + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VALUE_FIELD_NUMBER = 3; - private java.lang.String value_; + private volatile java.lang.Object value_; /** - * optional string value = 3; + * string value = 3; + * @return The value. */ + @java.lang.Override public java.lang.String getValue() { - return value_; + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } } /** - * optional string value = 3; + * string value = 3; + * @return The bytes for value. */ + @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(value_); - } - /** - * optional string value = 3; - */ - private void setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - } - /** - * optional string value = 3; - */ - private void clearValue() { - - value_ = getDefaultInstance().getValue(); + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string value = 3; - */ - private void setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (action_ != net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.NONE.getNumber()) { output.writeEnum(1, action_); } - if (!label_.isEmpty()) { - output.writeString(2, getLabel()); + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); } - if (!value_.isEmpty()) { - output.writeString(3, getValue()); + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -50360,334 +73875,566 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, action_); } - if (!label_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getLabel()); + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getValue()); + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageBotAction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageBotAction other = (net.iGap.proto.ProtoGlobal.RoomMessageBotAction) obj; + + if (action_ != other.action_) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageBotAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageBotAction} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageBotAction, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageBotAction) net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.class, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageBotAction.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + action_ = 0; + + label_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction build() { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction result = new net.iGap.proto.ProtoGlobal.RoomMessageBotAction(this); + result.action_ = action_; + result.label_ = label_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageBotAction) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageBotAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageBotAction other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance()) return this; + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageBotAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int action_ = 0; /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { - return instance.getActionValue(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. */ public Builder setActionValue(int value) { - copyOnWrite(); - instance.setActionValue(value); + + action_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @return The action. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum getAction() { - return instance.getAction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum result = net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum value) { - copyOnWrite(); - instance.setAction(value); + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + * .proto.RoomMessageBotAction.BotActionEnum action = 1; + * @return This builder for chaining. */ public Builder clearAction() { - copyOnWrite(); - instance.clearAction(); + + action_ = 0; + onChanged(); return this; } + private java.lang.Object label_ = ""; /** - * optional string label = 2; + * string label = 2; + * @return The label. */ public java.lang.String getLabel() { - return instance.getLabel(); + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string label = 2; + * string label = 2; + * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { - return instance.getLabelBytes(); + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string label = 2; + * string label = 2; + * @param value The label to set. + * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { - copyOnWrite(); - instance.setLabel(value); + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); return this; } /** - * optional string label = 2; + * string label = 2; + * @return This builder for chaining. */ public Builder clearLabel() { - copyOnWrite(); - instance.clearLabel(); + + label_ = getDefaultInstance().getLabel(); + onChanged(); return this; } /** - * optional string label = 2; + * string label = 2; + * @param value The bytes for label to set. + * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLabelBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); return this; } + private java.lang.Object value_ = ""; /** - * optional string value = 3; + * string value = 3; + * @return The value. */ public java.lang.String getValue() { - return instance.getValue(); + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string value = 3; + * string value = 3; + * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { - return instance.getValueBytes(); + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string value = 3; + * string value = 3; + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { - copyOnWrite(); - instance.setValue(value); + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); return this; } /** - * optional string value = 3; + * string value = 3; + * @return This builder for chaining. */ public Builder clearValue() { - copyOnWrite(); - instance.clearValue(); + + value_ = getDefaultInstance().getValue(); + onChanged(); return this; } /** - * optional string value = 3; + * string value = 3; + * @param value The bytes for value to set. + * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setValueBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.RoomMessageBotAction) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageBotAction(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageBotAction other = (net.iGap.proto.ProtoGlobal.RoomMessageBotAction) arg1; - action_ = visitor.visitInt(action_ != 0, action_, other.action_ != 0, other.action_); - label_ = visitor.visitString(!label_.isEmpty(), label_, - !other.label_.isEmpty(), other.label_); - value_ = visitor.visitString(!value_.isEmpty(), value_, - !other.value_.isEmpty(), other.value_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - label_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageBotAction.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.RoomMessageBotAction) } - // @@protoc_insertion_point(class_scope:proto.RoomMessageBotAction) private static final net.iGap.proto.ProtoGlobal.RoomMessageBotAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageBotAction(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageBotAction(); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageBotAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageBotAction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface RoomMessageBotActionListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RoomMessageBotActionList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** * repeated .proto.RoomMessageBotAction actions = 1; @@ -50702,29 +74449,121 @@ public interface RoomMessageBotActionListOrBuilder extends * repeated .proto.RoomMessageBotAction actions = 1; */ int getActionsCount(); + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + java.util.List + getActionsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder getActionsOrBuilder( + int index); } /** * Protobuf type {@code proto.RoomMessageBotActionList} */ - public static final class RoomMessageBotActionList extends - com.google.protobuf.GeneratedMessageLite< - RoomMessageBotActionList, RoomMessageBotActionList.Builder> implements + public static final class RoomMessageBotActionList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RoomMessageBotActionList) RoomMessageBotActionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoomMessageBotActionList.newBuilder() to construct. + private RoomMessageBotActionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private RoomMessageBotActionList() { - actions_ = emptyProtobufList(); + actions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RoomMessageBotActionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RoomMessageBotActionList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + actions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + actions_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotAction.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.class, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder.class); + } + public static final int ACTIONS_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.ProtobufList actions_; + private java.util.List actions_; /** * repeated .proto.RoomMessageBotAction actions = 1; */ + @java.lang.Override public java.util.List getActionsList() { return actions_; } /** * repeated .proto.RoomMessageBotAction actions = 1; */ + @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; @@ -50732,117 +74571,49 @@ public java.util.List getAction /** * repeated .proto.RoomMessageBotAction actions = 1; */ + @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * repeated .proto.RoomMessageBotAction actions = 1; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getActions(int index) { return actions_.get(index); } /** * repeated .proto.RoomMessageBotAction actions = 1; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder getActionsOrBuilder( int index) { return actions_.get(index); } - private void ensureActionsIsMutable() { - if (!actions_.isModifiable()) { - actions_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(actions_); - } - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void setActions( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.set(index, value); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void setActions( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { - ensureActionsIsMutable(); - actions_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void addActions(net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void addActions( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(index, value); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void addActions( - net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { - ensureActionsIsMutable(); - actions_.add(builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void addActions( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { - ensureActionsIsMutable(); - actions_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void addAllActions( - java.lang.Iterable values) { - ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, actions_); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void clearActions() { - actions_ = emptyProtobufList(); - } - /** - * repeated .proto.RoomMessageBotAction actions = 1; - */ - private void removeActions(int index) { - ensureActionsIsMutable(); - actions_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < actions_.size(); i++) { output.writeMessage(1, actions_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -50850,117 +74621,375 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, actions_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.RoomMessageBotActionList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList other = (net.iGap.proto.ProtoGlobal.RoomMessageBotActionList) obj; + + if (!getActionsList() + .equals(other.getActionsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.RoomMessageBotActionList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RoomMessageBotActionList) net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.class, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getActionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + actionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList build() { + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList result = new net.iGap.proto.ProtoGlobal.RoomMessageBotActionList(this); + int from_bitField0_ = bitField0_; + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.RoomMessageBotActionList) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageBotActionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()) return this; + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageBotActionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List actions_ = + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + actions_ = new java.util.ArrayList(actions_); + bitField0_ |= 0x00000001; + } } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotAction, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder> actionsBuilder_; /** * repeated .proto.RoomMessageBotAction actions = 1; */ public java.util.List getActionsList() { - return java.util.Collections.unmodifiableList( - instance.getActionsList()); + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } } /** * repeated .proto.RoomMessageBotAction actions = 1; */ public int getActionsCount() { - return instance.getActionsCount(); - }/** + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + /** * repeated .proto.RoomMessageBotAction actions = 1; */ public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getActions(int index) { - return instance.getActions(index); + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } } /** * repeated .proto.RoomMessageBotAction actions = 1; */ public Builder setActions( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { - copyOnWrite(); - instance.setActions(index, value); + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } return this; } /** @@ -50968,16 +74997,29 @@ public Builder setActions( */ public Builder setActions( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { - copyOnWrite(); - instance.setActions(index, builderForValue); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RoomMessageBotAction actions = 1; */ public Builder addActions(net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { - copyOnWrite(); - instance.addActions(value); + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } return this; } /** @@ -50985,8 +75027,16 @@ public Builder addActions(net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) */ public Builder addActions( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { - copyOnWrite(); - instance.addActions(index, value); + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } return this; } /** @@ -50994,8 +75044,13 @@ public Builder addActions( */ public Builder addActions( net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { - copyOnWrite(); - instance.addActions(builderForValue); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -51003,8 +75058,13 @@ public Builder addActions( */ public Builder addActions( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { - copyOnWrite(); - instance.addActions(index, builderForValue); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -51012,132 +75072,162 @@ public Builder addActions( */ public Builder addAllActions( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllActions(values); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.RoomMessageBotAction actions = 1; */ public Builder clearActions() { - copyOnWrite(); - instance.clearActions(); + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + actionsBuilder_.clear(); + } return this; } /** * repeated .proto.RoomMessageBotAction actions = 1; */ public Builder removeActions(int index) { - copyOnWrite(); - instance.removeActions(index); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.RoomMessageBotActionList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.RoomMessageBotActionList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - actions_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList other = (net.iGap.proto.ProtoGlobal.RoomMessageBotActionList) arg1; - actions_= visitor.visitList(actions_, other.actions_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!actions_.isModifiable()) { - actions_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(actions_); - } - actions_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotAction.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder getActionsBuilder( + int index) { + return getActionsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder getActionsOrBuilder( + int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); } else { + return actionsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public java.util.List + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder addActionsBuilder() { + return getActionsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder addActionsBuilder( + int index) { + return getActionsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public java.util.List + getActionsBuilderList() { + return getActionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotAction, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder> + getActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotAction, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder>( + actions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + actions_ = null; } + return actionsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.RoomMessageBotActionList) + } // @@protoc_insertion_point(class_scope:proto.RoomMessageBotActionList) private static final net.iGap.proto.ProtoGlobal.RoomMessageBotActionList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new RoomMessageBotActionList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageBotActionList(); } public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoomMessageBotActionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageBotActionList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface TextSignsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.TextSigns) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** * repeated .proto.TextSigns.TextSign text_sign = 1; @@ -51152,72 +75242,264 @@ public interface TextSignsOrBuilder extends * repeated .proto.TextSigns.TextSign text_sign = 1; */ int getTextSignCount(); + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + java.util.List + getTextSignOrBuilderList(); + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder getTextSignOrBuilder( + int index); } /** * Protobuf type {@code proto.TextSigns} */ - public static final class TextSigns extends - com.google.protobuf.GeneratedMessageLite< - TextSigns, TextSigns.Builder> implements + public static final class TextSigns extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TextSigns) TextSignsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSigns.newBuilder() to construct. + private TextSigns(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private TextSigns() { - textSign_ = emptyProtobufList(); + textSign_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TextSigns(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TextSigns( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + textSign_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + textSign_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.TextSign.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + textSign_ = java.util.Collections.unmodifiableList(textSign_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.TextSigns.class, net.iGap.proto.ProtoGlobal.TextSigns.Builder.class); + } + public interface TextSignOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.TextSigns.TextSign) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @return The type. */ net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type getType(); /** - * optional int32 start_index = 2; + * int32 start_index = 2; + * @return The startIndex. */ int getStartIndex(); /** - * optional int32 end_index = 3; + * int32 end_index = 3; + * @return The endIndex. */ int getEndIndex(); /** - * optional string link = 4; + * string link = 4; + * @return The link. */ java.lang.String getLink(); /** - * optional string link = 4; + * string link = 4; + * @return The bytes for link. */ com.google.protobuf.ByteString getLinkBytes(); /** - * optional int64 user_id = 5; + * int64 user_id = 5; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.TextSigns.TextSign} */ - public static final class TextSign extends - com.google.protobuf.GeneratedMessageLite< - TextSign, TextSign.Builder> implements + public static final class TextSign extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TextSigns.TextSign) TextSignOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSign.newBuilder() to construct. + private TextSign(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private TextSign() { + type_ = 0; link_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TextSign(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TextSign( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + + startIndex_ = input.readInt32(); + break; + } + case 24: { + + endIndex_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + link_ = s; + break; + } + case 40: { + + userId_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.class, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder.class); + } + /** * Protobuf enum {@code proto.TextSigns.TextSign.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ @@ -51384,10 +75666,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -51395,6 +75683,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; @@ -51433,6 +75725,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -51445,157 +75768,105 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type getType() { - net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type result = net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type result = net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.UNRECOGNIZED : result; } - /** - * optional .proto.TextSigns.TextSign.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.TextSigns.TextSign.Type type = 1; - */ - private void setType(net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.TextSigns.TextSign.Type type = 1; - */ - private void clearType() { - - type_ = 0; - } public static final int START_INDEX_FIELD_NUMBER = 2; private int startIndex_; /** - * optional int32 start_index = 2; + * int32 start_index = 2; + * @return The startIndex. */ + @java.lang.Override public int getStartIndex() { return startIndex_; } - /** - * optional int32 start_index = 2; - */ - private void setStartIndex(int value) { - - startIndex_ = value; - } - /** - * optional int32 start_index = 2; - */ - private void clearStartIndex() { - - startIndex_ = 0; - } public static final int END_INDEX_FIELD_NUMBER = 3; private int endIndex_; /** - * optional int32 end_index = 3; + * int32 end_index = 3; + * @return The endIndex. */ + @java.lang.Override public int getEndIndex() { return endIndex_; } - /** - * optional int32 end_index = 3; - */ - private void setEndIndex(int value) { - - endIndex_ = value; - } - /** - * optional int32 end_index = 3; - */ - private void clearEndIndex() { - - endIndex_ = 0; - } public static final int LINK_FIELD_NUMBER = 4; - private java.lang.String link_; + private volatile java.lang.Object link_; /** - * optional string link = 4; + * string link = 4; + * @return The link. */ + @java.lang.Override public java.lang.String getLink() { - return link_; + java.lang.Object ref = link_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + link_ = s; + return s; + } } /** - * optional string link = 4; + * string link = 4; + * @return The bytes for link. */ + @java.lang.Override public com.google.protobuf.ByteString getLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(link_); - } - /** - * optional string link = 4; - */ - private void setLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - link_ = value; - } - /** - * optional string link = 4; - */ - private void clearLink() { - - link_ = getDefaultInstance().getLink(); - } - /** - * optional string link = 4; - */ - private void setLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - link_ = value.toStringUtf8(); + java.lang.Object ref = link_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + link_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int USER_ID_FIELD_NUMBER = 5; private long userId_; /** - * optional int64 user_id = 5; + * int64 user_id = 5; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional int64 user_id = 5; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional int64 user_id = 5; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.UNKNOWN.getNumber()) { @@ -51607,16 +75878,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (endIndex_ != 0) { output.writeInt32(3, endIndex_); } - if (!link_.isEmpty()) { - output.writeString(4, getLink()); + if (!getLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, link_); } if (userId_ != 0L) { output.writeInt64(5, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -51632,384 +75905,614 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, endIndex_); } - if (!link_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getLink()); + if (!getLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, link_); } if (userId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.TextSigns.TextSign)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.TextSigns.TextSign other = (net.iGap.proto.ProtoGlobal.TextSigns.TextSign) obj; + + if (type_ != other.type_) return false; + if (getStartIndex() + != other.getStartIndex()) return false; + if (getEndIndex() + != other.getEndIndex()) return false; + if (!getLink() + .equals(other.getLink())) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + LINK_FIELD_NUMBER; + hash = (53 * hash) + getLink().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.TextSigns.TextSign prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.TextSigns.TextSign} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.TextSigns.TextSign, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TextSigns.TextSign) net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.class, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.TextSigns.TextSign.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + startIndex_ = 0; + + endIndex_ = 0; + + link_ = ""; + + userId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign build() { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign buildPartial() { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign result = new net.iGap.proto.ProtoGlobal.TextSigns.TextSign(this); + result.type_ = type_; + result.startIndex_ = startIndex_; + result.endIndex_ = endIndex_; + result.link_ = link_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.TextSigns.TextSign) { + return mergeFrom((net.iGap.proto.ProtoGlobal.TextSigns.TextSign)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.TextSigns.TextSign other) { + if (other == net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + if (!other.getLink().isEmpty()) { + link_ = other.link_; + onChanged(); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.TextSigns.TextSign) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type result = net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.UNRECOGNIZED : result; } /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.TextSigns.TextSign.Type type = 1; + * .proto.TextSigns.TextSign.Type type = 1; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private int startIndex_ ; /** - * optional int32 start_index = 2; + * int32 start_index = 2; + * @return The startIndex. */ + @java.lang.Override public int getStartIndex() { - return instance.getStartIndex(); + return startIndex_; } /** - * optional int32 start_index = 2; + * int32 start_index = 2; + * @param value The startIndex to set. + * @return This builder for chaining. */ public Builder setStartIndex(int value) { - copyOnWrite(); - instance.setStartIndex(value); + + startIndex_ = value; + onChanged(); return this; } /** - * optional int32 start_index = 2; + * int32 start_index = 2; + * @return This builder for chaining. */ public Builder clearStartIndex() { - copyOnWrite(); - instance.clearStartIndex(); + + startIndex_ = 0; + onChanged(); return this; } + private int endIndex_ ; /** - * optional int32 end_index = 3; + * int32 end_index = 3; + * @return The endIndex. */ + @java.lang.Override public int getEndIndex() { - return instance.getEndIndex(); + return endIndex_; } /** - * optional int32 end_index = 3; + * int32 end_index = 3; + * @param value The endIndex to set. + * @return This builder for chaining. */ public Builder setEndIndex(int value) { - copyOnWrite(); - instance.setEndIndex(value); + + endIndex_ = value; + onChanged(); return this; } /** - * optional int32 end_index = 3; + * int32 end_index = 3; + * @return This builder for chaining. */ public Builder clearEndIndex() { - copyOnWrite(); - instance.clearEndIndex(); + + endIndex_ = 0; + onChanged(); return this; } + private java.lang.Object link_ = ""; /** - * optional string link = 4; + * string link = 4; + * @return The link. */ public java.lang.String getLink() { - return instance.getLink(); + java.lang.Object ref = link_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + link_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string link = 4; + * string link = 4; + * @return The bytes for link. */ public com.google.protobuf.ByteString getLinkBytes() { - return instance.getLinkBytes(); + java.lang.Object ref = link_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + link_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string link = 4; + * string link = 4; + * @param value The link to set. + * @return This builder for chaining. */ public Builder setLink( java.lang.String value) { - copyOnWrite(); - instance.setLink(value); + if (value == null) { + throw new NullPointerException(); + } + + link_ = value; + onChanged(); return this; } /** - * optional string link = 4; + * string link = 4; + * @return This builder for chaining. */ public Builder clearLink() { - copyOnWrite(); - instance.clearLink(); + + link_ = getDefaultInstance().getLink(); + onChanged(); return this; } /** - * optional string link = 4; + * string link = 4; + * @param value The bytes for link to set. + * @return This builder for chaining. */ public Builder setLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + link_ = value; + onChanged(); return this; } + private long userId_ ; /** - * optional int64 user_id = 5; + * int64 user_id = 5; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional int64 user_id = 5; + * int64 user_id = 5; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional int64 user_id = 5; + * int64 user_id = 5; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.TextSigns.TextSign) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.TextSigns.TextSign(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.TextSigns.TextSign other = (net.iGap.proto.ProtoGlobal.TextSigns.TextSign) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - startIndex_ = visitor.visitInt(startIndex_ != 0, startIndex_, - other.startIndex_ != 0, other.startIndex_); - endIndex_ = visitor.visitInt(endIndex_ != 0, endIndex_, - other.endIndex_ != 0, other.endIndex_); - link_ = visitor.visitString(!link_.isEmpty(), link_, - !other.link_.isEmpty(), other.link_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - - startIndex_ = input.readInt32(); - break; - } - case 24: { - - endIndex_ = input.readInt32(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - link_ = s; - break; - } - case 40: { - userId_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.TextSigns.TextSign.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.TextSigns.TextSign) } - // @@protoc_insertion_point(class_scope:proto.TextSigns.TextSign) private static final net.iGap.proto.ProtoGlobal.TextSigns.TextSign DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new TextSign(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.TextSigns.TextSign(); } public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSign parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSign(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int TEXT_SIGN_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.ProtobufList textSign_; + private java.util.List textSign_; /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ + @java.lang.Override public java.util.List getTextSignList() { return textSign_; } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ + @java.lang.Override public java.util.List getTextSignOrBuilderList() { return textSign_; @@ -52017,117 +76520,49 @@ public java.util.List getTextSign /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ + @java.lang.Override public int getTextSignCount() { return textSign_.size(); } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getTextSign(int index) { return textSign_.get(index); } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder getTextSignOrBuilder( int index) { return textSign_.get(index); } - private void ensureTextSignIsMutable() { - if (!textSign_.isModifiable()) { - textSign_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(textSign_); - } - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void setTextSign( - int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTextSignIsMutable(); - textSign_.set(index, value); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void setTextSign( - int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { - ensureTextSignIsMutable(); - textSign_.set(index, builderForValue.build()); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void addTextSign(net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTextSignIsMutable(); - textSign_.add(value); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void addTextSign( - int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTextSignIsMutable(); - textSign_.add(index, value); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void addTextSign( - net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { - ensureTextSignIsMutable(); - textSign_.add(builderForValue.build()); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void addTextSign( - int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { - ensureTextSignIsMutable(); - textSign_.add(index, builderForValue.build()); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void addAllTextSign( - java.lang.Iterable values) { - ensureTextSignIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, textSign_); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void clearTextSign() { - textSign_ = emptyProtobufList(); - } - /** - * repeated .proto.TextSigns.TextSign text_sign = 1; - */ - private void removeTextSign(int index) { - ensureTextSignIsMutable(); - textSign_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < textSign_.size(); i++) { output.writeMessage(1, textSign_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -52135,117 +76570,375 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, textSign_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGlobal.TextSigns)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.TextSigns other = (net.iGap.proto.ProtoGlobal.TextSigns) obj; + + if (!getTextSignList() + .equals(other.getTextSignList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTextSignCount() > 0) { + hash = (37 * hash) + TEXT_SIGN_FIELD_NUMBER; + hash = (53 * hash) + getTextSignList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.TextSigns parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGlobal.TextSigns prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.TextSigns} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGlobal.TextSigns, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TextSigns) net.iGap.proto.ProtoGlobal.TextSignsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.TextSigns.class, net.iGap.proto.ProtoGlobal.TextSigns.Builder.class); + } + // Construct using net.iGap.proto.ProtoGlobal.TextSigns.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTextSignFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (textSignBuilder_ == null) { + textSign_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + textSignBuilder_.clear(); + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns build() { + net.iGap.proto.ProtoGlobal.TextSigns result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns buildPartial() { + net.iGap.proto.ProtoGlobal.TextSigns result = new net.iGap.proto.ProtoGlobal.TextSigns(this); + int from_bitField0_ = bitField0_; + if (textSignBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + textSign_ = java.util.Collections.unmodifiableList(textSign_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.textSign_ = textSign_; + } else { + result.textSign_ = textSignBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.TextSigns) { + return mergeFrom((net.iGap.proto.ProtoGlobal.TextSigns)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.TextSigns other) { + if (other == net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) return this; + if (textSignBuilder_ == null) { + if (!other.textSign_.isEmpty()) { + if (textSign_.isEmpty()) { + textSign_ = other.textSign_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTextSignIsMutable(); + textSign_.addAll(other.textSign_); + } + onChanged(); + } + } else { + if (!other.textSign_.isEmpty()) { + if (textSignBuilder_.isEmpty()) { + textSignBuilder_.dispose(); + textSignBuilder_ = null; + textSign_ = other.textSign_; + bitField0_ = (bitField0_ & ~0x00000001); + textSignBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextSignFieldBuilder() : null; + } else { + textSignBuilder_.addAllMessages(other.textSign_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.TextSigns parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.TextSigns) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List textSign_ = + java.util.Collections.emptyList(); + private void ensureTextSignIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + textSign_ = new java.util.ArrayList(textSign_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns.TextSign, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder, net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder> textSignBuilder_; /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ public java.util.List getTextSignList() { - return java.util.Collections.unmodifiableList( - instance.getTextSignList()); + if (textSignBuilder_ == null) { + return java.util.Collections.unmodifiableList(textSign_); + } else { + return textSignBuilder_.getMessageList(); + } } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ public int getTextSignCount() { - return instance.getTextSignCount(); - }/** + if (textSignBuilder_ == null) { + return textSign_.size(); + } else { + return textSignBuilder_.getCount(); + } + } + /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getTextSign(int index) { - return instance.getTextSign(index); + if (textSignBuilder_ == null) { + return textSign_.get(index); + } else { + return textSignBuilder_.getMessage(index); + } } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ public Builder setTextSign( int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { - copyOnWrite(); - instance.setTextSign(index, value); + if (textSignBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextSignIsMutable(); + textSign_.set(index, value); + onChanged(); + } else { + textSignBuilder_.setMessage(index, value); + } return this; } /** @@ -52253,16 +76946,29 @@ public Builder setTextSign( */ public Builder setTextSign( int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { - copyOnWrite(); - instance.setTextSign(index, builderForValue); + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.set(index, builderForValue.build()); + onChanged(); + } else { + textSignBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ public Builder addTextSign(net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { - copyOnWrite(); - instance.addTextSign(value); + if (textSignBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextSignIsMutable(); + textSign_.add(value); + onChanged(); + } else { + textSignBuilder_.addMessage(value); + } return this; } /** @@ -52270,8 +76976,16 @@ public Builder addTextSign(net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) */ public Builder addTextSign( int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { - copyOnWrite(); - instance.addTextSign(index, value); + if (textSignBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextSignIsMutable(); + textSign_.add(index, value); + onChanged(); + } else { + textSignBuilder_.addMessage(index, value); + } return this; } /** @@ -52279,8 +76993,13 @@ public Builder addTextSign( */ public Builder addTextSign( net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { - copyOnWrite(); - instance.addTextSign(builderForValue); + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.add(builderForValue.build()); + onChanged(); + } else { + textSignBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -52288,8 +77007,13 @@ public Builder addTextSign( */ public Builder addTextSign( int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { - copyOnWrite(); - instance.addTextSign(index, builderForValue); + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.add(index, builderForValue.build()); + onChanged(); + } else { + textSignBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -52297,131 +77021,1195 @@ public Builder addTextSign( */ public Builder addAllTextSign( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllTextSign(values); + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textSign_); + onChanged(); + } else { + textSignBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ public Builder clearTextSign() { - copyOnWrite(); - instance.clearTextSign(); + if (textSignBuilder_ == null) { + textSign_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + textSignBuilder_.clear(); + } return this; } /** * repeated .proto.TextSigns.TextSign text_sign = 1; */ public Builder removeTextSign(int index) { - copyOnWrite(); - instance.removeTextSign(index); + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.remove(index); + onChanged(); + } else { + textSignBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.TextSigns) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGlobal.TextSigns(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - textSign_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGlobal.TextSigns other = (net.iGap.proto.ProtoGlobal.TextSigns) arg1; - textSign_= visitor.visitList(textSign_, other.textSign_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!textSign_.isModifiable()) { - textSign_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(textSign_); - } - textSign_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.TextSign.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder getTextSignBuilder( + int index) { + return getTextSignFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder getTextSignOrBuilder( + int index) { + if (textSignBuilder_ == null) { + return textSign_.get(index); } else { + return textSignBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + public java.util.List + getTextSignOrBuilderList() { + if (textSignBuilder_ != null) { + return textSignBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(textSign_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGlobal.TextSigns.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder addTextSignBuilder() { + return getTextSignFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance()); + } + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder addTextSignBuilder( + int index) { + return getTextSignFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance()); + } + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + public java.util.List + getTextSignBuilderList() { + return getTextSignFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns.TextSign, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder, net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder> + getTextSignFieldBuilder() { + if (textSignBuilder_ == null) { + textSignBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns.TextSign, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder, net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder>( + textSign_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + textSign_ = null; } + return textSignBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.TextSigns) + } // @@protoc_insertion_point(class_scope:proto.TextSigns) private static final net.iGap.proto.ProtoGlobal.TextSigns DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new TextSigns(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.TextSigns(); } public static net.iGap.proto.ProtoGlobal.TextSigns getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSigns parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSigns(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSigns getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageLocation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageLocation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageLog_TargetUser_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageLog_TargetUser_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageContact_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageContact_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageWallet_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageWallet_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageWallet_MoneyTransfer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageWallet_MoneyTransfer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageWallet_CardToCard_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageWallet_CardToCard_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageWallet_Topup_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageWallet_Topup_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageWallet_Bill_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageWallet_Bill_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageForwardFrom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageForwardFrom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageStory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageStory_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageStoryReply_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageStoryReply_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageStoryForward_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageStoryForward_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Story_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Story_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RegisteredUser_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RegisteredUser_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Avatar_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Avatar_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessage_Author_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessage_Author_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessage_Author_User_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessage_Author_User_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessage_Author_Room_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessage_Author_Room_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessage_ChannelExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessage_ChannelExtra_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessage_GroupExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomDraft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomDraft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Room_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Room_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChatRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChatRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRoom_PrivateExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRoom_PrivateExtra_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRoom_PublicExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRoom_PublicExtra_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelRoom_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelRoom_PrivateExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelRoom_PrivateExtra_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ChannelRoom_PublicExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ChannelRoom_PublicExtra_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Thumbnail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Thumbnail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_File_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_File_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PostMessageRights_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PostMessageRights_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomAccess_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomAccess_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Wallpaper_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Wallpaper_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Pagination_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Pagination_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Favorite_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Favorite_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_DiscoveryField_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_DiscoveryField_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Discovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Discovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PollField_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PollField_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Poll_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Poll_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_IVandActivity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_IVandActivity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSale_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSale_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransaction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransaction_Bill_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransaction_Bill_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransaction_Topup_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransaction_Topup_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransaction_Sales_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransaction_Sales_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransaction_CardToCard_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BotInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BotInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BotInfo_BotAction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BotInfo_BotAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Mention_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Mention_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageSticker_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageSticker_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageCardToCard_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageCardToCard_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageBotAction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageBotAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageBotActionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageBotActionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_TextSigns_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_TextSigns_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_TextSigns_TextSign_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_TextSigns_TextSign_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\014Global.proto\022\005proto\032\035GroupChangeMember" + + "Rights.proto\"/\n\023RoomMessageLocation\022\013\n\003l" + + "at\030\001 \001(\001\022\013\n\003lon\030\002 \001(\001\"\341\004\n\016RoomMessageLog" + + "\022(\n\004type\030\001 \001(\0162\032.proto.RoomMessageLog.Ty" + + "pe\0223\n\nextra_type\030\002 \001(\0162\037.proto.RoomMessa" + + "geLog.ExtraType\0225\n\013target_user\030\003 \001(\0132 .p" + + "roto.RoomMessageLog.TargetUser\032\034\n\nTarget" + + "User\022\016\n\002id\030\001 \001(\004B\0020\001\"\356\002\n\004Type\022\017\n\013USER_JO" + + "INED\020\000\022\020\n\014USER_DELETED\020\001\022\020\n\014ROOM_CREATED" + + "\020\002\022\020\n\014MEMBER_ADDED\020\003\022\021\n\rMEMBER_KICKED\020\004\022" + + "\017\n\013MEMBER_LEFT\020\005\022\034\n\030ROOM_CONVERTED_TO_PU" + + "BLIC\020\006\022\035\n\031ROOM_CONVERTED_TO_PRIVATE\020\007\022 \n" + + "\034MEMBER_JOINED_BY_INVITE_LINK\020\010\022\020\n\014ROOM_" + + "DELETED\020\t\022\025\n\021MISSED_VOICE_CALL\020\n\022\025\n\021MISS" + + "ED_VIDEO_CALL\020\013\022\027\n\023MISSED_SCREEN_SHARE\020\014" + + "\022\026\n\022MISSED_SECRET_CHAT\020\r\022\022\n\016PINNED_MESSA" + + "GE\020\016\022\027\n\023CHANGE_PHONE_NUMBER\020\017\"*\n\tExtraTy" + + "pe\022\014\n\010NO_EXTRA\020\000\022\017\n\013TARGET_USER\020\001\"k\n\022Roo" + + "mMessageContact\022\022\n\nfirst_name\030\001 \001(\t\022\021\n\tl" + + "ast_name\030\002 \001(\t\022\020\n\010nickname\030\003 \001(\t\022\r\n\005phon" + + "e\030\004 \003(\t\022\r\n\005email\030\005 \003(\t\"\324\r\n\021RoomMessageWa" + + "llet\022+\n\004type\030\001 \001(\0162\035.proto.RoomMessageWa" + + "llet.Type\022>\n\016money_transfer\030\002 \001(\0132&.prot" + + "o.RoomMessageWallet.MoneyTransfer\0229\n\014car" + + "d_to_card\030\003 \001(\0132#.proto.RoomMessageWalle" + + "t.CardToCard\022-\n\005topup\030\004 \001(\0132\036.proto.Room" + + "MessageWallet.Topup\022+\n\004bill\030\005 \001(\0132\035.prot" + + "o.RoomMessageWallet.Bill\032\314\001\n\rMoneyTransf" + + "er\022\030\n\014from_user_id\030\001 \001(\004B\0020\001\022\026\n\nto_user_" + + "id\030\002 \001(\004B\0020\001\022\022\n\006amount\030\003 \001(\004B\0020\001\022\024\n\014trac" + + "e_number\030\004 \001(\003\022\026\n\016invoice_number\030\005 \001(\003\022\020" + + "\n\010pay_time\030\006 \001(\r\022\023\n\013description\030\007 \001(\t\022\023\n" + + "\013card_number\030\010 \001(\t\022\013\n\003rrn\030\t \001(\003\032\265\002\n\nCard" + + "ToCard\022\030\n\014from_user_id\030\001 \001(\004B\0020\001\022\026\n\nto_u" + + "ser_id\030\002 \001(\004B\0020\001\022\024\n\010order_id\030\003 \001(\004B\0020\001\022\r" + + "\n\005token\030\004 \001(\t\022\022\n\006amount\030\005 \001(\004B\0020\001\022\032\n\022sou" + + "rce_card_number\030\006 \001(\t\022\030\n\020dest_card_numbe" + + "r\030\007 \001(\t\022\024\n\014request_time\030\010 \001(\r\022\013\n\003rrn\030\t \001" + + "(\t\022\024\n\014trace_number\030\n \001(\t\022\020\n\010bankName\030\013 \001" + + "(\t\022\024\n\014destBankName\030\014 \001(\t\022\025\n\rcardOwnerNam" + + "e\030\r \001(\t\022\016\n\006status\030\016 \001(\010\032\213\004\n\005Topup\022\030\n\014fro" + + "m_user_id\030\001 \001(\004B\0020\001\022\024\n\010order_id\030\002 \001(\004B\0020" + + "\001\022\020\n\010my_token\030\003 \001(\t\022\021\n\005token\030\004 \001(\004B\0020\001\022\022" + + "\n\006amount\030\005 \001(\004B\0020\001\022\037\n\027requester_mobile_n" + + "umber\030\006 \001(\t\022\034\n\024charge_mobile_number\030\007 \001(" + + "\t\0227\n\ntopup_type\030\010 \001(\0162#.proto.RoomMessag" + + "eWallet.Topup.Type\022\023\n\013card_number\030\t \001(\t\022" + + "\025\n\rmerchant_name\030\n \001(\t\022\027\n\013terminal_no\030\013 " + + "\001(\004B\0020\001\022\017\n\003rrn\030\014 \001(\004B\0020\001\022\030\n\014trace_number" + + "\030\r \001(\004B\0020\001\022\024\n\014request_time\030\016 \001(\r\022\016\n\006stat" + + "us\030\017 \001(\010\022\032\n\022status_description\030\020 \001(\t\"o\n\004" + + "Type\022\024\n\020IRANCELL_PREPAID\020\000\022\020\n\014IRANCELL_W" + + "OW\020\001\022\022\n\016IRANCELL_WIMAX\020\002\022\025\n\021IRANCELL_POS" + + "TPAID\020\003\022\007\n\003MCI\020\004\022\013\n\007RIGHTEL\020\005\032\325\002\n\004Bill\022\030" + + "\n\014from_user_id\030\001 \001(\004B\0020\001\022\024\n\010order_id\030\002 \001" + + "(\004B\0020\001\022\020\n\010my_token\030\003 \001(\t\022\021\n\005token\030\004 \001(\004B" + + "\0020\001\022\022\n\006amount\030\005 \001(\004B\0020\001\022\016\n\006pay_id\030\006 \001(\t\022" + + "\017\n\007bill_id\030\007 \001(\t\022\021\n\tbill_type\030\010 \001(\t\022\023\n\013c" + + "ard_number\030\t \001(\t\022\025\n\rmerchant_name\030\n \001(\t\022" + + "\027\n\013terminal_no\030\013 \001(\004B\0020\001\022\017\n\003rrn\030\014 \001(\004B\0020" + + "\001\022\030\n\014trace_number\030\r \001(\004B\0020\001\022\024\n\014request_t" + + "ime\030\016 \001(\r\022\016\n\006status\030\017 \001(\010\022\032\n\022status_desc" + + "ription\030\020 \001(\t\"N\n\004Type\022\022\n\016MONEY_TRANSFER\020" + + "\000\022\013\n\007PAYMENT\020\001\022\020\n\014CARD_TO_CARD\020\002\022\t\n\005TOPU" + + "P\020\003\022\010\n\004BILL\020\004\"^\n\026RoomMessageForwardFrom\022" + + "\023\n\007room_id\030\001 \001(\004B\0020\001\022\026\n\nmessage_id\030\002 \001(\004" + + "B\0020\001\022\027\n\013document_id\030\003 \001(\004B\0020\001\"\234\001\n\020RoomMe" + + "ssageStory\022.\n\006status\030\001 \001(\0162\036.proto.RoomM" + + "essageStory.Status\022\033\n\005story\030\002 \001(\0132\014.prot" + + "o.Story\";\n\006Status\022\n\n\006ACTIVE\020\000\022\013\n\007EXPIRED" + + "\020\001\022\013\n\007PRIVATE\020\002\022\013\n\007DELETED\020\003\">\n\025RoomMess" + + "ageStoryReply\022\024\n\010story_id\030\001 \001(\004B\0020\001\022\017\n\007c" + + "aption\030\002 \001(\t\"/\n\027RoomMessageStoryForward\022" + + "\024\n\010story_id\030\001 \001(\004B\0020\001\"\321\002\n\005Story\022\016\n\002id\030\001 " + + "\001(\004B\0020\001\022\022\n\nfile_token\030\002 \001(\t\022!\n\014file_deta" + + "ils\030\003 \001(\0132\013.proto.File\022\037\n\004type\030\004 \001(\0162\021.p" + + "roto.Story.Type\022\023\n\007user_id\030\005 \001(\004B\0020\001\022\023\n\007" + + "room_id\030\006 \001(\004B\0020\001\022\017\n\007caption\030\007 \001(\t\022\014\n\004li" + + "nk\030\010 \001(\t\022\022\n\ncreated_at\030\t \001(\r\022\016\n\006end_at\030\n" + + " \001(\r\022\014\n\004seen\030\013 \001(\010\022\022\n\nduplicated\030\014 \001(\010\022%" + + "\n\noriginator\030\r \001(\0162\021.proto.Originator\022\r\n" + + "\005views\030\016 \001(\r\"\033\n\004Type\022\t\n\005STORY\020\000\022\010\n\004LIVE\020" + + "\001\"\230\004\n\016RegisteredUser\022\016\n\002id\030\001 \001(\004B\0020\001\022\020\n\010" + + "username\030\002 \001(\t\022\021\n\005phone\030\003 \001(\004B\0020\001\022\022\n\nfir" + + "st_name\030\004 \001(\t\022\021\n\tlast_name\030\005 \001(\t\022\024\n\014disp" + + "lay_name\030\006 \001(\t\022\020\n\010initials\030\007 \001(\t\022\r\n\005colo" + + "r\030\010 \001(\t\022,\n\006status\030\t \001(\0162\034.proto.Register" + + "edUser.Status\022\021\n\tlast_seen\030\n \001(\r\022\024\n\014avat" + + "ar_count\030\013 \001(\r\022\035\n\006avatar\030\014 \001(\0132\r.proto.A" + + "vatar\022\016\n\006mutual\030\r \001(\010\022\017\n\007deleted\030\016 \001(\010\022\020" + + "\n\010cache_id\030\017 \001(\t\022\013\n\003bio\030\020 \001(\t\022\020\n\010verifie" + + "d\030\021 \001(\010\022\013\n\003bot\030\022 \001(\010\022\022\n\nmxb_enable\030\023 \001(\010" + + "\"\211\001\n\006Status\022\021\n\rLONG_TIME_AGO\020\000\022\016\n\nLAST_M" + + "ONTH\020\001\022\r\n\tLAST_WEEK\020\002\022\n\n\006ONLINE\020\003\022\013\n\007EXA" + + "CTLY\020\004\022\014\n\010RECENTLY\020\005\022\013\n\007SUPPORT\020\006\022\031\n\025SER" + + "VICE_NOTIFICATIONS\020\007\"3\n\006Avatar\022\016\n\002id\030\001 \001" + + "(\004B\0020\001\022\031\n\004file\030\002 \001(\0132\013.proto.File\"\225\014\n\013Ro" + + "omMessage\022\017\n\007room_id\030\032 \001(\004\022\026\n\nmessage_id" + + "\030\001 \001(\004B\0020\001\022\033\n\017message_version\030\002 \001(\004B\0020\001\022" + + "(\n\006status\030\003 \001(\0162\030.proto.RoomMessageStatu" + + "s\022\032\n\016status_version\030\004 \001(\004B\0020\001\022,\n\014message" + + "_type\030\005 \001(\0162\026.proto.RoomMessageType\022\017\n\007m" + + "essage\030\006 \001(\t\022\037\n\nattachment\030\007 \001(\0132\013.proto" + + ".File\022)\n\006author\030\010 \001(\0132\031.proto.RoomMessag" + + "e.Author\022,\n\010location\030\t \001(\0132\032.proto.RoomM" + + "essageLocation\022\"\n\003log\030\n \001(\0132\025.proto.Room" + + "MessageLog\022*\n\007contact\030\013 \001(\0132\031.proto.Room" + + "MessageContact\022(\n\006wallet\030\026 \001(\0132\030.proto.R" + + "oomMessageWallet\022\016\n\006edited\030\014 \001(\010\022\023\n\013crea" + + "te_time\030\r \001(\r\022\023\n\013update_time\030\016 \001(\r\022\017\n\007de" + + "leted\030\017 \001(\010\022(\n\014forward_from\030\020 \001(\0132\022.prot" + + "o.RoomMessage\022$\n\010reply_to\030\021 \001(\0132\022.proto." + + "RoomMessage\022&\n\005story\030\031 \001(\0132\027.proto.RoomM" + + "essageStory\022\037\n\023previous_message_id\030\022 \001(\004" + + "B\0020\001\022\025\n\trandom_id\030\025 \001(\004B\0020\001\022\027\n\017additiona" + + "l_type\030\027 \001(\r\022\027\n\017additional_data\030\030 \001(\t\0220\n" + + "\nextra_type\030\023 \001(\0162\034.proto.RoomMessage.Ex" + + "traType\0226\n\rchannel_extra\030\024 \001(\0132\037.proto.R" + + "oomMessage.ChannelExtra\022\023\n\013document_id\030\033" + + " \001(\004\022\033\n\023version_document_id\030\034 \001(\004\0222\n\013gro" + + "up_extra\030\035 \001(\0132\035.proto.RoomMessage.Group" + + "Extra\022*\n\007sticker\030\036 \001(\0132\031.proto.RoomMessa" + + "geSticker\0222\n\014card_to_card\030\037 \001(\0132\034.proto." + + "RoomMessageCardToCard\0229\n\020bot_action_list" + + "s\030 \003(\0132\037.proto.RoomMessageBotActionList" + + "\022$\n\ntext_signs\030! \001(\0132\020.proto.TextSigns\032\276" + + "\001\n\006Author\022\014\n\004hash\030\001 \001(\t\022,\n\004user\030\002 \001(\0132\036." + + "proto.RoomMessage.Author.User\022,\n\004room\030\003 " + + "\001(\0132\036.proto.RoomMessage.Author.Room\032-\n\004U" + + "ser\022\023\n\007user_id\030\001 \001(\004B\0020\001\022\020\n\010cache_id\030\002 \001" + + "(\t\032\033\n\004Room\022\023\n\007room_id\030\001 \001(\004B\0020\001\032j\n\014Chann" + + "elExtra\022\021\n\tsignature\030\001 \001(\t\022\023\n\013views_labe" + + "l\030\002 \001(\t\022\027\n\017thumbs_up_label\030\003 \001(\t\022\031\n\021thum" + + "bs_down_label\030\004 \001(\t\032.\n\nGroupExtra\022 \n\010men" + + "tions\030\001 \001(\0132\016.proto.Mention\",\n\tExtraType" + + "\022\014\n\010NO_EXTRA\020\000\022\021\n\rCHANNEL_EXTRA\020\001\"F\n\tRoo" + + "mDraft\022\017\n\007message\030\001 \001(\t\022\024\n\010reply_to\030\002 \001(" + + "\004B\0020\001\022\022\n\ndraft_time\030\003 \001(\r\"\201\005\n\004Room\022\016\n\002id" + + "\030\001 \001(\004B\0020\001\022\036\n\004type\030\002 \001(\0162\020.proto.Room.Ty" + + "pe\022\r\n\005title\030\003 \001(\t\022\020\n\010initials\030\004 \001(\t\022\r\n\005c" + + "olor\030\005 \001(\t\022\024\n\014unread_count\030\006 \001(\r\022(\n\014last" + + "_message\030\007 \001(\0132\022.proto.RoomMessage\022\021\n\tre" + + "ad_only\030\010 \001(\010\022\026\n\016is_participant\030\t \001(\010\022\037\n" + + "\005draft\030\n \001(\0132\020.proto.RoomDraft\0220\n\024first_" + + "unread_message\030\016 \001(\0132\022.proto.RoomMessage" + + "\022\"\n\troom_mute\030\017 \001(\0162\017.proto.RoomMute\022\022\n\006" + + "pin_id\030\020 \001(\004B\0020\001\022*\n\016pinned_message\030\021 \001(\013" + + "2\022.proto.RoomMessage\022\020\n\010priority\030\022 \001(\r\022(" + + "\n\017chat_room_extra\030\013 \001(\0132\017.proto.ChatRoom" + + "\022*\n\020group_room_extra\030\014 \001(\0132\020.proto.Group" + + "Room\022.\n\022channel_room_extra\030\r \001(\0132\022.proto" + + ".ChannelRoom\022\016\n\006app_id\030\023 \001(\r\022%\n\npermissi" + + "on\030\024 \001(\0132\021.proto.RoomAccess\"(\n\004Type\022\010\n\004C" + + "HAT\020\000\022\t\n\005GROUP\020\001\022\013\n\007CHANNEL\020\002\"P\n\010ChatRoo" + + "m\022#\n\004peer\030\001 \001(\0132\025.proto.RegisteredUser\022\037" + + "\n\007botInfo\030\002 \001(\0132\016.proto.BotInfo\"\247\005\n\tGrou" + + "pRoom\022#\n\004type\030\001 \001(\0162\025.proto.GroupRoom.Ty" + + "pe\022#\n\004role\030\002 \001(\0162\025.proto.GroupRoom.Role\022" + + "\032\n\022participants_count\030\003 \001(\r\022 \n\030participa" + + "nts_count_label\030\004 \001(\t\022 \n\030participants_co" + + "unt_limit\030\005 \001(\r\022&\n\036participants_count_li" + + "mit_label\030\006 \001(\t\022\023\n\013description\030\007 \001(\t\022\024\n\014" + + "avatar_count\030\010 \001(\r\022\035\n\006avatar\030\t \001(\0132\r.pro" + + "to.Avatar\0224\n\rprivate_extra\030\n \001(\0132\035.proto" + + ".GroupRoom.PrivateExtra\0222\n\014public_extra\030" + + "\013 \001(\0132\034.proto.GroupRoom.PublicExtra\022@\n\013r" + + "oom_rights\030\014 \001(\0132+.proto.GroupChangeMemb" + + "erRights.MemberRights\022\022\n\nis_mention\030\r \001(" + + "\010\0329\n\014PrivateExtra\022\023\n\013invite_link\030\001 \001(\t\022\024" + + "\n\014invite_token\030\002 \001(\t\032\037\n\013PublicExtra\022\020\n\010u" + + "sername\030\001 \001(\t\")\n\004Type\022\020\n\014PRIVATE_ROOM\020\000\022" + + "\017\n\013PUBLIC_ROOM\020\001\"7\n\004Role\022\n\n\006MEMBER\020\000\022\r\n\t" + + "MODERATOR\020\001\022\t\n\005ADMIN\020\002\022\t\n\005OWNER\020\003\"\344\004\n\013Ch" + + "annelRoom\022%\n\004type\030\001 \001(\0162\027.proto.ChannelR" + + "oom.Type\022%\n\004role\030\002 \001(\0162\027.proto.ChannelRo" + + "om.Role\022\032\n\022participants_count\030\003 \001(\r\022 \n\030p" + + "articipants_count_label\030\004 \001(\t\022\023\n\013descrip" + + "tion\030\005 \001(\t\022\024\n\014avatar_count\030\006 \001(\r\022\035\n\006avat" + + "ar\030\007 \001(\0132\r.proto.Avatar\0226\n\rprivate_extra" + + "\030\010 \001(\0132\037.proto.ChannelRoom.PrivateExtra\022" + + "4\n\014public_extra\030\t \001(\0132\036.proto.ChannelRoo" + + "m.PublicExtra\022\021\n\tsignature\030\n \001(\010\022\023\n\007seen" + + "_id\030\013 \001(\004B\0020\001\022\020\n\010verified\030\014 \001(\010\022\027\n\017react" + + "ion_status\030\r \001(\010\0329\n\014PrivateExtra\022\023\n\013invi" + + "te_link\030\001 \001(\t\022\024\n\014invite_token\030\002 \001(\t\032\037\n\013P" + + "ublicExtra\022\020\n\010username\030\001 \001(\t\")\n\004Type\022\020\n\014" + + "PRIVATE_ROOM\020\000\022\017\n\013PUBLIC_ROOM\020\001\"7\n\004Role\022" + + "\n\n\006MEMBER\020\000\022\r\n\tMODERATOR\020\001\022\t\n\005ADMIN\020\002\022\t\n" + + "\005OWNER\020\003\"f\n\tThumbnail\022\014\n\004size\030\001 \001(\003\022\r\n\005w" + + "idth\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\022\020\n\010cache_id\030\004" + + " \001(\t\022\014\n\004name\030\005 \001(\t\022\014\n\004mime\030\006 \001(\t\"\232\002\n\004Fil" + + "e\022\r\n\005token\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004size\030\003" + + " \001(\003\022)\n\017large_thumbnail\030\004 \001(\0132\020.proto.Th" + + "umbnail\022)\n\017small_thumbnail\030\005 \001(\0132\020.proto" + + ".Thumbnail\022,\n\022waveform_thumbnail\030\006 \001(\0132\020" + + ".proto.Thumbnail\022\r\n\005width\030\007 \001(\005\022\016\n\006heigh" + + "t\030\010 \001(\005\022\020\n\010duration\030\t \001(\001\022\020\n\010cache_id\030\n " + + "\001(\t\022\014\n\004mime\030\013 \001(\t\022\022\n\npublic_url\030\014 \001(\t\"u\n" + + "\021PostMessageRights\022\021\n\tsend_text\030\001 \001(\010\022\022\n" + + "\nsend_media\030\003 \001(\010\022\020\n\010send_gif\030\004 \001(\010\022\024\n\014s" + + "end_sticker\030\005 \001(\010\022\021\n\tsend_link\030\006 \001(\010\"\246\002\n" + + "\nRoomAccess\022\023\n\013modify_room\030\001 \001(\010\022.\n\014post" + + "_message\030\002 \001(\0132\030.proto.PostMessageRights" + + "\022\024\n\014edit_message\030\003 \001(\010\022\026\n\016delete_message" + + "\030\004 \001(\010\022\023\n\013pin_message\030\005 \001(\010\022\022\n\nadd_membe" + + "r\030\006 \001(\010\022\022\n\nban_member\030\007 \001(\010\022\022\n\nget_membe" + + "r\030\010 \001(\010\022\021\n\tadd_admin\030\t \001(\010\022\021\n\tadd_story\030" + + "\n \001(\010\022\024\n\014delete_story\030\013 \001(\010\022\030\n\020show_stor" + + "y_views\030\014 \001(\010\"5\n\tWallpaper\022\031\n\004file\030\001 \001(\013" + + "2\013.proto.File\022\r\n\005color\030\002 \001(\t\"+\n\nPaginati" + + "on\022\016\n\006offset\030\001 \001(\r\022\r\n\005limit\030\002 \001(\r\"Z\n\010Fav" + + "orite\022\014\n\004name\030\001 \001(\t\022\021\n\ttextcolor\030\002 \001(\t\022\017" + + "\n\007bgcolor\030\003 \001(\t\022\r\n\005value\030\004 \001(\t\022\r\n\005image\030" + + "\005 \001(\t\"\360\007\n\016DiscoveryField\022\020\n\010imageurl\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t\022:\n\nactiontype\030\003 \001(\0162&." + + "proto.DiscoveryField.ButtonActionType\022\017\n" + + "\007orderid\030\004 \001(\r\022\n\n\002id\030\005 \001(\r\022\r\n\005param\030\006 \001(" + + "\t\022\021\n\tagreement\030\007 \001(\010\022\017\n\007refresh\030\010 \001(\010\022\025\n" + + "\ragreementSlug\030\t \001(\t\"\231\006\n\020ButtonActionTyp" + + "e\022\010\n\004NONE\020\000\022\r\n\tJOIN_LINK\020\001\022\016\n\nBOT_ACTION" + + "\020\002\022\021\n\rUSERNAME_LINK\020\003\022\014\n\010WEB_LINK\020\004\022\021\n\rW" + + "EB_VIEW_LINK\020\005\022\017\n\013STREAM_PLAY\020\006\022\021\n\rPAY_B" + + "Y_WALLET\020\007\022\016\n\nPAY_DIRECT\020\010\022\021\n\rREQUEST_PH" + + "ONE\020\t\022\024\n\020REQUEST_LOCATION\020\n\022\016\n\nSHOW_ALER" + + "T\020\013\022\010\n\004PAGE\020\014\022\022\n\016FINANCIAL_MENU\020\r\022\r\n\tBIL" + + "L_MENU\020\016\022\025\n\021TRAFFIC_BILL_MENU\020\017\022\024\n\020MOBIL" + + "E_BILL_MENU\020\020\022\023\n\017PHONE_BILL_MENU\020\021\022\016\n\nTO" + + "PUP_MENU\020\022\022\017\n\013WALLET_MENU\020\023\022\017\n\013NEARBY_ME" + + "NU\020\024\022\010\n\004CALL\020\025\022\020\n\014STICKER_SHOP\020\026\022\t\n\005IVAN" + + "D\020\027\022\013\n\007IVANDQR\020\030\022\r\n\tIVANDLIST\020\031\022\016\n\nIVAND" + + "SCORE\020\032\022\020\n\014CARD_TO_CARD\020\033\022\024\n\020FAVORITE_CH" + + "ANNEL\020\034\022\t\n\005MUSIC\020\035\022\013\n\007CHARITY\020\036\022\017\n\013FUN_S" + + "ERVICE\020\037\022\021\n\rVIRTUAL_MONEY\020 \022\020\n\014CITY_SERV" + + "ICE\020!\022\010\n\004POLL\020\"\022\031\n\025INTERNET_PACKAGE_MENU" + + "\020#\022\025\n\021FINANCIAL_HISTORY\020$\022\021\n\rINVITE_FRIE" + + "ND\020%\022\010\n\004NEWS\020&\022\026\n\022ELECTRIC_BILL_MENU\020\'\022\016" + + "\n\nBLOCKCHAIN\020(\022\014\n\010PARSLAND\020)\022\017\n\013POLL_RES" + + "ULT\020*\022\025\n\021VIRTUAL_GIFT_CARD\020+\022\017\n\013NEWS_DET" + + "AIL\020,\022\t\n\005QRPAY\020-\"\223\002\n\tDiscovery\022.\n\005model\030" + + "\001 \001(\0162\037.proto.Discovery.DiscoveryModel\022\r" + + "\n\005scale\030\002 \001(\t\022.\n\017discoveryfields\030\003 \003(\0132\025" + + ".proto.DiscoveryField\"\226\001\n\016DiscoveryModel" + + "\022\n\n\006MODEL1\020\000\022\n\n\006MODEL2\020\001\022\n\n\006MODEL3\020\002\022\n\n\006" + + "MODEL4\020\003\022\n\n\006MODEL5\020\004\022\n\n\006MODEL6\020\005\022\n\n\006MODE" + + "L7\020\006\022\n\n\006MODEL8\020\007\022\n\n\006MODEL9\020\010\022\013\n\007MODEL10\020" + + "\t\022\013\n\007MODEL11\020\n\"~\n\tPollField\022\020\n\010imageurl\030" + + "\001 \001(\t\022\017\n\007orderid\030\002 \001(\r\022\n\n\002id\030\003 \001(\r\022\017\n\007cl" + + "icked\030\004 \001(\010\022\017\n\003sum\030\005 \001(\004B\0020\001\022\021\n\tclickabl" + + "e\030\006 \001(\010\022\r\n\005label\030\007 \001(\t\"x\n\004Poll\022.\n\005model\030" + + "\001 \001(\0162\037.proto.Discovery.DiscoveryModel\022\r" + + "\n\005scale\030\002 \001(\t\022\013\n\003max\030\003 \001(\r\022$\n\npollfields" + + "\030\004 \003(\0132\020.proto.PollField\";\n\rIVandActivit" + + "y\022\r\n\005title\030\001 \001(\t\022\r\n\005score\030\002 \001(\005\022\014\n\004time\030" + + "\003 \001(\r\"\236\002\n\007MplSale\022\032\n\016invoice_number\030\001 \001(" + + "\004B\0020\001\022\030\n\014from_user_id\030\002 \001(\004B\0020\001\022\022\n\006amoun" + + "t\030\003 \001(\004B\0020\001\022\024\n\014trace_number\030\004 \001(\003\022\020\n\010pay" + + "_time\030\005 \001(\r\022\023\n\013description\030\006 \001(\t\022\023\n\013card" + + "_number\030\007 \001(\t\022\013\n\003rrn\030\010 \001(\003\022%\n\006status\030\t \001" + + "(\0162\025.proto.MplSale.Status\"C\n\006Status\022\022\n\016P" + + "ENDING_VERIFY\020\000\022\013\n\007SUCCESS\020\001\022\n\n\006FAILED\020\002" + + "\022\014\n\010REVERSED\020\003\"\227\013\n\016MplTransaction\022\024\n\010ord" + + "er_id\030\001 \001(\004B\0020\001\022\r\n\005token\030\002 \001(\t\022\020\n\010pay_ti" + + "me\030\003 \001(\r\022(\n\004type\030\004 \001(\0162\032.proto.MplTransa" + + "ction.Type\022(\n\004bill\030\005 \001(\0132\032.proto.MplTran" + + "saction.Bill\022*\n\005topup\030\006 \001(\0132\033.proto.MplT" + + "ransaction.Topup\022*\n\005sales\030\007 \001(\0132\033.proto." + + "MplTransaction.Sales\0224\n\ncardtocard\030\010 \001(\013" + + "2 .proto.MplTransaction.CardToCard\032\210\002\n\004B" + + "ill\022\016\n\006BillId\030\001 \001(\t\022\r\n\005PayId\030\002 \001(\t\022\020\n\010Bi" + + "llType\030\003 \001(\t\022\016\n\006Status\030\004 \001(\r\022\022\n\006Amount\030\005" + + " \001(\004B\0020\001\022\022\n\nCardNumber\030\006 \001(\t\022\024\n\014Merchant" + + "Name\030\007 \001(\t\022\023\n\007OrderId\030\010 \001(\004B\0020\001\022\033\n\017Reque" + + "stDateTime\030\t \001(\004B\0020\001\022\017\n\003RRN\030\n \001(\004B\0020\001\022\031\n" + + "\021StatusDescription\030\013 \001(\t\022\022\n\nTerminalNo\030\014" + + " \001(\r\022\017\n\007TraceNo\030\r \001(\r\032\256\002\n\005Topup\022!\n\025Reque" + + "sterMobileNumber\030\001 \001(\004B\0020\001\022\036\n\022ChargeMobi" + + "leNumber\030\002 \001(\004B\0020\001\022\021\n\tTopupType\030\003 \001(\r\022\016\n" + + "\006Status\030\004 \001(\r\022\022\n\006Amount\030\005 \001(\004B\0020\001\022\022\n\nCar" + + "dNumber\030\006 \001(\t\022\024\n\014MerchantName\030\007 \001(\t\022\023\n\007O" + + "rderId\030\010 \001(\004B\0020\001\022\033\n\017RequestDateTime\030\t \001(" + + "\004B\0020\001\022\017\n\003RRN\030\n \001(\004B\0020\001\022\031\n\021StatusDescript" + + "ion\030\013 \001(\t\022\022\n\nTerminalNo\030\014 \001(\r\022\017\n\007TraceNo" + + "\030\r \001(\r\032\330\001\n\005Sales\022\016\n\006Status\030\001 \001(\r\022\022\n\006Amou" + + "nt\030\002 \001(\004B\0020\001\022\022\n\nCardNumber\030\003 \001(\t\022\024\n\014Merc" + + "hantName\030\004 \001(\t\022\023\n\007OrderId\030\005 \001(\004B\0020\001\022\033\n\017R" + + "equestDateTime\030\006 \001(\004B\0020\001\022\017\n\003RRN\030\007 \001(\004B\0020" + + "\001\022\031\n\021StatusDescription\030\010 \001(\t\022\022\n\nTerminal" + + "No\030\t \001(\r\022\017\n\007TraceNo\030\n \001(\r\032\220\002\n\nCardToCard" + + "\022\016\n\006Status\030\001 \001(\r\022\022\n\006Amount\030\002 \001(\004B\0020\001\022\030\n\020" + + "SourceCardNumber\030\003 \001(\t\022\026\n\016DestCardNumber" + + "\030\004 \001(\t\022\020\n\010BankName\030\005 \001(\t\022\024\n\014DestBankName" + + "\030\006 \001(\t\022\025\n\rCardOwnerName\030\007 \001(\t\022\023\n\007OrderId" + + "\030\010 \001(\004B\0020\001\022\033\n\017RequestDateTime\030\t \001(\004B\0020\001\022" + + "\017\n\003RRN\030\n \001(\004B\0020\001\022\031\n\021StatusDescription\030\013 " + + "\001(\t\022\017\n\007TraceNo\030\r \001(\r\"B\n\004Type\022\010\n\004NONE\020\000\022\010" + + "\n\004BILL\020\001\022\t\n\005TOPUP\020\002\022\t\n\005SALES\020\003\022\020\n\014CARD_T" + + "O_CARD\020\004\"\201\001\n\007BotInfo\022\n\n\002id\030\001 \001(\004\022\026\n\016welc" + + "omeMessage\030\002 \001(\t\022)\n\007actions\030\003 \003(\0132\030.prot" + + "o.BotInfo.BotAction\032\'\n\tBotAction\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\007Mention\022\017\n\007userI" + + "ds\030\001 \003(\004\"\372\002\n\022RoomMessageSticker\0227\n\004type\030" + + "\001 \001(\0162).proto.RoomMessageSticker.Sticker" + + "TypeEnum\022\017\n\007message\030\002 \001(\t\022\n\n\002id\030\003 \001(\t\022\014\n" + + "\004name\030\004 \001(\t\022\014\n\004path\030\005 \001(\t\022\r\n\005token\030\006 \001(\t" + + "\022\020\n\010group_id\030\007 \001(\t\022\021\n\tfile_name\030\010 \001(\t\022\021\n" + + "\tfile_size\030\t \001(\003\022\017\n\007gift_id\030\n \001(\t\022\023\n\013gif" + + "t_amount\030\013 \001(\003\022\023\n\013is_favorite\030\014 \001(\010\022\014\n\004s" + + "ort\030\r \001(\005\022\016\n\006ref_id\030\016 \001(\003\022\014\n\004tags\030\017 \003(\t\"" + + "D\n\017StickerTypeEnum\022\013\n\007STICKER\020\000\022\020\n\014GIFT_" + + "STICKER\020\001\022\022\n\016MOTION_STICKER\020\002\"\225\001\n\025RoomMe" + + "ssageCardToCard\022\017\n\007message\030\001 \001(\t\022\r\n\005labe" + + "l\030\002 \001(\t\022\021\n\timage_url\030\003 \001(\t\022\023\n\013action_typ" + + "e\030\004 \001(\t\022\023\n\013card_number\030\005 \001(\t\022\016\n\006amount\030\006" + + " \001(\003\022\017\n\007user_id\030\007 \001(\003\"\316\004\n\024RoomMessageBot" + + "Action\0229\n\006action\030\001 \001(\0162).proto.RoomMessa" + + "geBotAction.BotActionEnum\022\r\n\005label\030\002 \001(\t" + + "\022\r\n\005value\030\003 \001(\t\"\334\003\n\rBotActionEnum\022\010\n\004NON" + + "E\020\000\022\r\n\tJOIN_LINK\020\001\022\016\n\nBOT_ACTION\020\002\022\021\n\rUS" + + "ERNAME_LINK\020\003\022\014\n\010WEB_LINK\020\004\022\020\n\014WEBVIEW_L" + + "INK\020\005\022\017\n\013STREAM_PLAY\020\006\022\021\n\rPAY_BY_WALLET\020" + + "\007\022\016\n\nPAY_DIRECT\020\010\022\021\n\rREQUEST_PHONE\020\t\022\024\n\020" + + "REQUEST_LOCATION\020\n\022\016\n\nSHOW_ALERT\020\013\022\010\n\004PA" + + "GE\020\014\022\022\n\016FINANCIAL_MENU\020\r\022\r\n\tBILL_MENU\020\016\022" + + "\025\n\021TRAFFIC_BILL_MENU\020\017\022\024\n\020MOBILE_BILL_ME" + + "NU\020\020\022\023\n\017PHONE_BILL_MENU\020\021\022\016\n\nTOPUP_MENU\020" + + "\022\022\017\n\013WALLET_MENU\020\023\022\017\n\013NEARBY_MENU\020\024\022\010\n\004C" + + "ALL\020\025\022\020\n\014STICKER_SHOP\020\026\022\010\n\004IVAN\020\027\022\n\n\006IVA" + + "NQR\020\030\022\r\n\tIVANDLIST\020\031\022\016\n\nIVANDSCORE\020\032\022\020\n\014" + + "CARD_TO_CARD\020\033\"H\n\030RoomMessageBotActionLi" + + "st\022,\n\007actions\030\001 \003(\0132\033.proto.RoomMessageB" + + "otAction\"\334\003\n\tTextSigns\022,\n\ttext_sign\030\001 \003(" + + "\0132\031.proto.TextSigns.TextSign\032\240\003\n\010TextSig" + + "n\022,\n\004type\030\001 \001(\0162\036.proto.TextSigns.TextSi" + + "gn.Type\022\023\n\013start_index\030\002 \001(\005\022\021\n\tend_inde" + + "x\030\003 \001(\005\022\014\n\004link\030\004 \001(\t\022\017\n\007user_id\030\005 \001(\003\"\236" + + "\002\n\004Type\022\013\n\007UNKNOWN\020\000\022\022\n\016IGAP_DEEP_LINK\020\001" + + "\022\r\n\tIGAP_LINK\020\002\022\014\n\010WEB_LINK\020\003\022\017\n\013BOT_COM" + + "MAND\020\004\022\020\n\014IGAP_RESOLVE\020\005\022\016\n\nDIGIT_LINK\020\006" + + "\022\013\n\007MENTION\020\007\022\013\n\007HASHTAG\020\010\022\010\n\004BOLD\020\t\022\n\n\006" + + "ITALIC\020\n\022\r\n\tUNDERLINE\020\013\022\n\n\006STRIKE\020\014\022\013\n\007S" + + "POILER\020\r\022\t\n\005EMAIL\020\016\022\t\n\005PHONE\020\017\022\r\n\tBANK_C" + + "ARD\020\020\022\014\n\010TEXT_URL\020\021\022\010\n\004CODE\020\022\022\020\n\014MENTION" + + "_NAME\020\023*+\n\006Gender\022\013\n\007UNKNOWN\020\000\022\010\n\004MALE\020\001" + + "\022\n\n\006FEMALE\020\002*<\n\006Device\022\022\n\016UNKNOWN_DEVICE" + + "\020\000\022\006\n\002PC\020\001\022\n\n\006TABLET\020\002\022\n\n\006MOBILE\020\003*k\n\010Pl" + + "atform\022\024\n\020UNKNOWN_PLATFORM\020\000\022\013\n\007ANDROID\020" + + "\001\022\007\n\003IOS\020\002\022\n\n\006MAC_OS\020\003\022\013\n\007WINDOWS\020\004\022\t\n\005L" + + "INUX\020\005\022\017\n\013BLACK_BERRY\020\006* \n\010Language\022\t\n\005E" + + "N_US\020\000\022\t\n\005FA_IR\020\001*\233\002\n\017RoomMessageType\022\010\n" + + "\004TEXT\020\000\022\t\n\005IMAGE\020\001\022\016\n\nIMAGE_TEXT\020\002\022\t\n\005VI" + + "DEO\020\003\022\016\n\nVIDEO_TEXT\020\004\022\t\n\005AUDIO\020\005\022\016\n\nAUDI" + + "O_TEXT\020\006\022\t\n\005VOICE\020\007\022\007\n\003GIF\020\010\022\014\n\010GIF_TEXT" + + "\020\016\022\010\n\004FILE\020\t\022\r\n\tFILE_TEXT\020\n\022\014\n\010LOCATION\020" + + "\013\022\007\n\003LOG\020\014\022\013\n\007CONTACT\020\r\022\n\n\006WALLET\020\017\022\013\n\007S" + + "TICKER\020\020\022\t\n\005STORY\020\021\022\017\n\013STORY_REPLY\020\022\022\020\n\014" + + "CARD_TO_CARD\020\023\022\007\n\003BOT\020\024*]\n\021RoomMessageSt" + + "atus\022\n\n\006FAILED\020\000\022\013\n\007SENDING\020\001\022\010\n\004SENT\020\002\022" + + "\r\n\tDELIVERED\020\003\022\010\n\004SEEN\020\004\022\014\n\010LISTENED\020\005*5" + + "\n\023RoomMessageReaction\022\r\n\tTHUMBS_UP\020\000\022\017\n\013" + + "THUMBS_DOWN\020\001*\261\001\n\nSearchType\022\024\n\020SEARCH_A" + + "LL_TYPES\020\000\022\020\n\014SEARCH_IMAGE\020\001\022\020\n\014SEARCH_V" + + "IDEO\020\002\022\020\n\014SEARCH_AUDIO\020\003\022\017\n\013SEARCH_FILE\020" + + "\004\022\020\n\014SEARCH_VOICE\020\005\022\016\n\nSEARCH_GIF\020\006\022\022\n\016S" + + "EARCH_CONTACT\020\007\022\020\n\014SEARCH_MEDIA\020\010* \n\nOri" + + "ginator\022\010\n\004USER\020\000\022\010\n\004ROOM\020\001*\244\002\n\014ClientAc" + + "tion\022\n\n\006CANCEL\020\000\022\n\n\006TYPING\020\001\022\021\n\rSENDING_" + + "IMAGE\020\002\022\023\n\017CAPTURING_IMAGE\020\003\022\021\n\rSENDING_" + + "VIDEO\020\004\022\023\n\017CAPTURING_VIDEO\020\005\022\021\n\rSENDING_" + + "AUDIO\020\006\022\023\n\017RECORDING_VOICE\020\007\022\021\n\rSENDING_" + + "VOICE\020\010\022\024\n\020SENDING_DOCUMENT\020\t\022\017\n\013SENDING" + + "_GIF\020\n\022\020\n\014SENDING_FILE\020\013\022\024\n\020SENDING_LOCA" + + "TION\020\014\022\024\n\020CHOOSING_CONTACT\020\r\022\014\n\010PAINTING" + + "\020\016*b\n\010RoomType\022\010\n\004CHAT\020\000\022\021\n\rPRIVATE_GROU" + + "P\020\001\022\020\n\014PUBLIC_GROUP\020\002\022\023\n\017PRIVATE_CHANNEL" + + "\020\003\022\022\n\016PUBLIC_CHANNEL\020\004* \n\010RoomMute\022\n\n\006UN" + + "MUTE\020\000\022\010\n\004MUTE\020\001*\233\001\n\013PrivacyType\022\017\n\013USER" + + "_STATUS\020\000\022\n\n\006AVATAR\020\001\022\020\n\014GROUP_INVITE\020\002\022" + + "\022\n\016CHANNEL_INVITE\020\003\022\021\n\rVOICE_CALLING\020\004\022\021" + + "\n\rVIDEO_CALLING\020\005\022\022\n\016SCREEN_SHARING\020\006\022\017\n" + + "\013SECRET_CHAT\020\007*?\n\014PrivacyLevel\022\r\n\tALLOW_" + + "ALL\020\000\022\014\n\010DENY_ALL\020\001\022\022\n\016ALLOW_CONTACTS\020\002B" + + "\035\n\016net.iGap.protoB\013ProtoGlobalb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoGroupChangeMemberRights.getDescriptor(), + }); + internal_static_proto_RoomMessageLocation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_RoomMessageLocation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageLocation_descriptor, + new java.lang.String[] { "Lat", "Lon", }); + internal_static_proto_RoomMessageLog_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_RoomMessageLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageLog_descriptor, + new java.lang.String[] { "Type", "ExtraType", "TargetUser", }); + internal_static_proto_RoomMessageLog_TargetUser_descriptor = + internal_static_proto_RoomMessageLog_descriptor.getNestedTypes().get(0); + internal_static_proto_RoomMessageLog_TargetUser_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageLog_TargetUser_descriptor, + new java.lang.String[] { "Id", }); + internal_static_proto_RoomMessageContact_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_proto_RoomMessageContact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageContact_descriptor, + new java.lang.String[] { "FirstName", "LastName", "Nickname", "Phone", "Email", }); + internal_static_proto_RoomMessageWallet_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_proto_RoomMessageWallet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageWallet_descriptor, + new java.lang.String[] { "Type", "MoneyTransfer", "CardToCard", "Topup", "Bill", }); + internal_static_proto_RoomMessageWallet_MoneyTransfer_descriptor = + internal_static_proto_RoomMessageWallet_descriptor.getNestedTypes().get(0); + internal_static_proto_RoomMessageWallet_MoneyTransfer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageWallet_MoneyTransfer_descriptor, + new java.lang.String[] { "FromUserId", "ToUserId", "Amount", "TraceNumber", "InvoiceNumber", "PayTime", "Description", "CardNumber", "Rrn", }); + internal_static_proto_RoomMessageWallet_CardToCard_descriptor = + internal_static_proto_RoomMessageWallet_descriptor.getNestedTypes().get(1); + internal_static_proto_RoomMessageWallet_CardToCard_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageWallet_CardToCard_descriptor, + new java.lang.String[] { "FromUserId", "ToUserId", "OrderId", "Token", "Amount", "SourceCardNumber", "DestCardNumber", "RequestTime", "Rrn", "TraceNumber", "BankName", "DestBankName", "CardOwnerName", "Status", }); + internal_static_proto_RoomMessageWallet_Topup_descriptor = + internal_static_proto_RoomMessageWallet_descriptor.getNestedTypes().get(2); + internal_static_proto_RoomMessageWallet_Topup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageWallet_Topup_descriptor, + new java.lang.String[] { "FromUserId", "OrderId", "MyToken", "Token", "Amount", "RequesterMobileNumber", "ChargeMobileNumber", "TopupType", "CardNumber", "MerchantName", "TerminalNo", "Rrn", "TraceNumber", "RequestTime", "Status", "StatusDescription", }); + internal_static_proto_RoomMessageWallet_Bill_descriptor = + internal_static_proto_RoomMessageWallet_descriptor.getNestedTypes().get(3); + internal_static_proto_RoomMessageWallet_Bill_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageWallet_Bill_descriptor, + new java.lang.String[] { "FromUserId", "OrderId", "MyToken", "Token", "Amount", "PayId", "BillId", "BillType", "CardNumber", "MerchantName", "TerminalNo", "Rrn", "TraceNumber", "RequestTime", "Status", "StatusDescription", }); + internal_static_proto_RoomMessageForwardFrom_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_proto_RoomMessageForwardFrom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageForwardFrom_descriptor, + new java.lang.String[] { "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_RoomMessageStory_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_proto_RoomMessageStory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageStory_descriptor, + new java.lang.String[] { "Status", "Story", }); + internal_static_proto_RoomMessageStoryReply_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_proto_RoomMessageStoryReply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageStoryReply_descriptor, + new java.lang.String[] { "StoryId", "Caption", }); + internal_static_proto_RoomMessageStoryForward_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_proto_RoomMessageStoryForward_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageStoryForward_descriptor, + new java.lang.String[] { "StoryId", }); + internal_static_proto_Story_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_proto_Story_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Story_descriptor, + new java.lang.String[] { "Id", "FileToken", "FileDetails", "Type", "UserId", "RoomId", "Caption", "Link", "CreatedAt", "EndAt", "Seen", "Duplicated", "Originator", "Views", }); + internal_static_proto_RegisteredUser_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_proto_RegisteredUser_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RegisteredUser_descriptor, + new java.lang.String[] { "Id", "Username", "Phone", "FirstName", "LastName", "DisplayName", "Initials", "Color", "Status", "LastSeen", "AvatarCount", "Avatar", "Mutual", "Deleted", "CacheId", "Bio", "Verified", "Bot", "MxbEnable", }); + internal_static_proto_Avatar_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_proto_Avatar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Avatar_descriptor, + new java.lang.String[] { "Id", "File", }); + internal_static_proto_RoomMessage_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_proto_RoomMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessage_descriptor, + new java.lang.String[] { "RoomId", "MessageId", "MessageVersion", "Status", "StatusVersion", "MessageType", "Message", "Attachment", "Author", "Location", "Log", "Contact", "Wallet", "Edited", "CreateTime", "UpdateTime", "Deleted", "ForwardFrom", "ReplyTo", "Story", "PreviousMessageId", "RandomId", "AdditionalType", "AdditionalData", "ExtraType", "ChannelExtra", "DocumentId", "VersionDocumentId", "GroupExtra", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); + internal_static_proto_RoomMessage_Author_descriptor = + internal_static_proto_RoomMessage_descriptor.getNestedTypes().get(0); + internal_static_proto_RoomMessage_Author_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessage_Author_descriptor, + new java.lang.String[] { "Hash", "User", "Room", }); + internal_static_proto_RoomMessage_Author_User_descriptor = + internal_static_proto_RoomMessage_Author_descriptor.getNestedTypes().get(0); + internal_static_proto_RoomMessage_Author_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessage_Author_User_descriptor, + new java.lang.String[] { "UserId", "CacheId", }); + internal_static_proto_RoomMessage_Author_Room_descriptor = + internal_static_proto_RoomMessage_Author_descriptor.getNestedTypes().get(1); + internal_static_proto_RoomMessage_Author_Room_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessage_Author_Room_descriptor, + new java.lang.String[] { "RoomId", }); + internal_static_proto_RoomMessage_ChannelExtra_descriptor = + internal_static_proto_RoomMessage_descriptor.getNestedTypes().get(1); + internal_static_proto_RoomMessage_ChannelExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessage_ChannelExtra_descriptor, + new java.lang.String[] { "Signature", "ViewsLabel", "ThumbsUpLabel", "ThumbsDownLabel", }); + internal_static_proto_RoomMessage_GroupExtra_descriptor = + internal_static_proto_RoomMessage_descriptor.getNestedTypes().get(2); + internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessage_GroupExtra_descriptor, + new java.lang.String[] { "Mentions", }); + internal_static_proto_RoomDraft_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_proto_RoomDraft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomDraft_descriptor, + new java.lang.String[] { "Message", "ReplyTo", "DraftTime", }); + internal_static_proto_Room_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_proto_Room_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Room_descriptor, + new java.lang.String[] { "Id", "Type", "Title", "Initials", "Color", "UnreadCount", "LastMessage", "ReadOnly", "IsParticipant", "Draft", "FirstUnreadMessage", "RoomMute", "PinId", "PinnedMessage", "Priority", "ChatRoomExtra", "GroupRoomExtra", "ChannelRoomExtra", "AppId", "Permission", }); + internal_static_proto_ChatRoom_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_proto_ChatRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChatRoom_descriptor, + new java.lang.String[] { "Peer", "BotInfo", }); + internal_static_proto_GroupRoom_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_proto_GroupRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRoom_descriptor, + new java.lang.String[] { "Type", "Role", "ParticipantsCount", "ParticipantsCountLabel", "ParticipantsCountLimit", "ParticipantsCountLimitLabel", "Description", "AvatarCount", "Avatar", "PrivateExtra", "PublicExtra", "RoomRights", "IsMention", }); + internal_static_proto_GroupRoom_PrivateExtra_descriptor = + internal_static_proto_GroupRoom_descriptor.getNestedTypes().get(0); + internal_static_proto_GroupRoom_PrivateExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRoom_PrivateExtra_descriptor, + new java.lang.String[] { "InviteLink", "InviteToken", }); + internal_static_proto_GroupRoom_PublicExtra_descriptor = + internal_static_proto_GroupRoom_descriptor.getNestedTypes().get(1); + internal_static_proto_GroupRoom_PublicExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRoom_PublicExtra_descriptor, + new java.lang.String[] { "Username", }); + internal_static_proto_ChannelRoom_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_proto_ChannelRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelRoom_descriptor, + new java.lang.String[] { "Type", "Role", "ParticipantsCount", "ParticipantsCountLabel", "Description", "AvatarCount", "Avatar", "PrivateExtra", "PublicExtra", "Signature", "SeenId", "Verified", "ReactionStatus", }); + internal_static_proto_ChannelRoom_PrivateExtra_descriptor = + internal_static_proto_ChannelRoom_descriptor.getNestedTypes().get(0); + internal_static_proto_ChannelRoom_PrivateExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelRoom_PrivateExtra_descriptor, + new java.lang.String[] { "InviteLink", "InviteToken", }); + internal_static_proto_ChannelRoom_PublicExtra_descriptor = + internal_static_proto_ChannelRoom_descriptor.getNestedTypes().get(1); + internal_static_proto_ChannelRoom_PublicExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ChannelRoom_PublicExtra_descriptor, + new java.lang.String[] { "Username", }); + internal_static_proto_Thumbnail_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_proto_Thumbnail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Thumbnail_descriptor, + new java.lang.String[] { "Size", "Width", "Height", "CacheId", "Name", "Mime", }); + internal_static_proto_File_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_proto_File_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_File_descriptor, + new java.lang.String[] { "Token", "Name", "Size", "LargeThumbnail", "SmallThumbnail", "WaveformThumbnail", "Width", "Height", "Duration", "CacheId", "Mime", "PublicUrl", }); + internal_static_proto_PostMessageRights_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_proto_PostMessageRights_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PostMessageRights_descriptor, + new java.lang.String[] { "SendText", "SendMedia", "SendGif", "SendSticker", "SendLink", }); + internal_static_proto_RoomAccess_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_proto_RoomAccess_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomAccess_descriptor, + new java.lang.String[] { "ModifyRoom", "PostMessage", "EditMessage", "DeleteMessage", "PinMessage", "AddMember", "BanMember", "GetMember", "AddAdmin", "AddStory", "DeleteStory", "ShowStoryViews", }); + internal_static_proto_Wallpaper_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_proto_Wallpaper_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Wallpaper_descriptor, + new java.lang.String[] { "File", "Color", }); + internal_static_proto_Pagination_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_proto_Pagination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Pagination_descriptor, + new java.lang.String[] { "Offset", "Limit", }); + internal_static_proto_Favorite_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_proto_Favorite_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Favorite_descriptor, + new java.lang.String[] { "Name", "Textcolor", "Bgcolor", "Value", "Image", }); + internal_static_proto_DiscoveryField_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_proto_DiscoveryField_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_DiscoveryField_descriptor, + new java.lang.String[] { "Imageurl", "Value", "Actiontype", "Orderid", "Id", "Param", "Agreement", "Refresh", "AgreementSlug", }); + internal_static_proto_Discovery_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_proto_Discovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Discovery_descriptor, + new java.lang.String[] { "Model", "Scale", "Discoveryfields", }); + internal_static_proto_PollField_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_proto_PollField_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PollField_descriptor, + new java.lang.String[] { "Imageurl", "Orderid", "Id", "Clicked", "Sum", "Clickable", "Label", }); + internal_static_proto_Poll_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_proto_Poll_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Poll_descriptor, + new java.lang.String[] { "Model", "Scale", "Max", "Pollfields", }); + internal_static_proto_IVandActivity_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_proto_IVandActivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_IVandActivity_descriptor, + new java.lang.String[] { "Title", "Score", "Time", }); + internal_static_proto_MplSale_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_proto_MplSale_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSale_descriptor, + new java.lang.String[] { "InvoiceNumber", "FromUserId", "Amount", "TraceNumber", "PayTime", "Description", "CardNumber", "Rrn", "Status", }); + internal_static_proto_MplTransaction_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_proto_MplTransaction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransaction_descriptor, + new java.lang.String[] { "OrderId", "Token", "PayTime", "Type", "Bill", "Topup", "Sales", "Cardtocard", }); + internal_static_proto_MplTransaction_Bill_descriptor = + internal_static_proto_MplTransaction_descriptor.getNestedTypes().get(0); + internal_static_proto_MplTransaction_Bill_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransaction_Bill_descriptor, + new java.lang.String[] { "BillId", "PayId", "BillType", "Status", "Amount", "CardNumber", "MerchantName", "OrderId", "RequestDateTime", "RRN", "StatusDescription", "TerminalNo", "TraceNo", }); + internal_static_proto_MplTransaction_Topup_descriptor = + internal_static_proto_MplTransaction_descriptor.getNestedTypes().get(1); + internal_static_proto_MplTransaction_Topup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransaction_Topup_descriptor, + new java.lang.String[] { "RequesterMobileNumber", "ChargeMobileNumber", "TopupType", "Status", "Amount", "CardNumber", "MerchantName", "OrderId", "RequestDateTime", "RRN", "StatusDescription", "TerminalNo", "TraceNo", }); + internal_static_proto_MplTransaction_Sales_descriptor = + internal_static_proto_MplTransaction_descriptor.getNestedTypes().get(2); + internal_static_proto_MplTransaction_Sales_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransaction_Sales_descriptor, + new java.lang.String[] { "Status", "Amount", "CardNumber", "MerchantName", "OrderId", "RequestDateTime", "RRN", "StatusDescription", "TerminalNo", "TraceNo", }); + internal_static_proto_MplTransaction_CardToCard_descriptor = + internal_static_proto_MplTransaction_descriptor.getNestedTypes().get(3); + internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransaction_CardToCard_descriptor, + new java.lang.String[] { "Status", "Amount", "SourceCardNumber", "DestCardNumber", "BankName", "DestBankName", "CardOwnerName", "OrderId", "RequestDateTime", "RRN", "StatusDescription", "TraceNo", }); + internal_static_proto_BotInfo_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_proto_BotInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BotInfo_descriptor, + new java.lang.String[] { "Id", "WelcomeMessage", "Actions", }); + internal_static_proto_BotInfo_BotAction_descriptor = + internal_static_proto_BotInfo_descriptor.getNestedTypes().get(0); + internal_static_proto_BotInfo_BotAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BotInfo_BotAction_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_proto_Mention_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_proto_Mention_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Mention_descriptor, + new java.lang.String[] { "UserIds", }); + internal_static_proto_RoomMessageSticker_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_proto_RoomMessageSticker_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageSticker_descriptor, + new java.lang.String[] { "Type", "Message", "Id", "Name", "Path", "Token", "GroupId", "FileName", "FileSize", "GiftId", "GiftAmount", "IsFavorite", "Sort", "RefId", "Tags", }); + internal_static_proto_RoomMessageCardToCard_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_proto_RoomMessageCardToCard_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageCardToCard_descriptor, + new java.lang.String[] { "Message", "Label", "ImageUrl", "ActionType", "CardNumber", "Amount", "UserId", }); + internal_static_proto_RoomMessageBotAction_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_proto_RoomMessageBotAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageBotAction_descriptor, + new java.lang.String[] { "Action", "Label", "Value", }); + internal_static_proto_RoomMessageBotActionList_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_proto_RoomMessageBotActionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageBotActionList_descriptor, + new java.lang.String[] { "Actions", }); + internal_static_proto_TextSigns_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_proto_TextSigns_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_TextSigns_descriptor, + new java.lang.String[] { "TextSign", }); + internal_static_proto_TextSigns_TextSign_descriptor = + internal_static_proto_TextSigns_descriptor.getNestedTypes().get(0); + internal_static_proto_TextSigns_TextSign_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_TextSigns_TextSign_descriptor, + new java.lang.String[] { "Type", "StartIndex", "EndIndex", "Link", "UserId", }); + net.iGap.proto.ProtoGroupChangeMemberRights.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupAddAdmin.java b/src/main/java/net/iGap/proto/ProtoGroupAddAdmin.java index e709f16..0a63eed 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupAddAdmin.java +++ b/src/main/java/net/iGap/proto/ProtoGroupAddAdmin.java @@ -8,258 +8,418 @@ private ProtoGroupAddAdmin() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupAddAdminOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddAdmin) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return The permission. */ net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getPermission(); + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.GroupAddAdmin} */ - public static final class GroupAddAdmin extends - com.google.protobuf.GeneratedMessageLite< - GroupAddAdmin, GroupAddAdmin.Builder> implements + public static final class GroupAddAdmin extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddAdmin) GroupAddAdminOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAddAdmin.newBuilder() to construct. + private GroupAddAdmin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAddAdmin() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAddAdmin(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAddAdmin( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.class, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.Builder.class); + } + public interface AdminRightsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddAdmin.AdminRights) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ boolean getModifyRoom(); /** - * optional bool delete_message = 2; + * bool delete_message = 2; + * @return The deleteMessage. */ boolean getDeleteMessage(); /** - * optional bool pin_message = 3; + * bool pin_message = 3; + * @return The pinMessage. */ boolean getPinMessage(); /** - * optional bool add_member = 4; + * bool add_member = 4; + * @return The addMember. */ boolean getAddMember(); /** - * optional bool ban_member = 5; + * bool ban_member = 5; + * @return The banMember. */ boolean getBanMember(); /** - * optional bool get_member = 6; + * bool get_member = 6; + * @return The getMember. */ boolean getGetMember(); /** - * optional bool add_admin = 7; + * bool add_admin = 7; + * @return The addAdmin. */ boolean getAddAdmin(); } /** * Protobuf type {@code proto.GroupAddAdmin.AdminRights} */ - public static final class AdminRights extends - com.google.protobuf.GeneratedMessageLite< - AdminRights, AdminRights.Builder> implements + public static final class AdminRights extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddAdmin.AdminRights) AdminRightsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdminRights.newBuilder() to construct. + private AdminRights(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private AdminRights() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdminRights(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AdminRights( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + modifyRoom_ = input.readBool(); + break; + } + case 16: { + + deleteMessage_ = input.readBool(); + break; + } + case 24: { + + pinMessage_ = input.readBool(); + break; + } + case 32: { + + addMember_ = input.readBool(); + break; + } + case 40: { + + banMember_ = input.readBool(); + break; + } + case 48: { + + getMember_ = input.readBool(); + break; + } + case 56: { + + addAdmin_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_AdminRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_AdminRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.class, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder.class); + } + public static final int MODIFY_ROOM_FIELD_NUMBER = 1; private boolean modifyRoom_; /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ + @java.lang.Override public boolean getModifyRoom() { return modifyRoom_; } - /** - * optional bool modify_room = 1; - */ - private void setModifyRoom(boolean value) { - - modifyRoom_ = value; - } - /** - * optional bool modify_room = 1; - */ - private void clearModifyRoom() { - - modifyRoom_ = false; - } public static final int DELETE_MESSAGE_FIELD_NUMBER = 2; private boolean deleteMessage_; /** - * optional bool delete_message = 2; + * bool delete_message = 2; + * @return The deleteMessage. */ + @java.lang.Override public boolean getDeleteMessage() { return deleteMessage_; } - /** - * optional bool delete_message = 2; - */ - private void setDeleteMessage(boolean value) { - - deleteMessage_ = value; - } - /** - * optional bool delete_message = 2; - */ - private void clearDeleteMessage() { - - deleteMessage_ = false; - } public static final int PIN_MESSAGE_FIELD_NUMBER = 3; private boolean pinMessage_; /** - * optional bool pin_message = 3; + * bool pin_message = 3; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { return pinMessage_; } - /** - * optional bool pin_message = 3; - */ - private void setPinMessage(boolean value) { - - pinMessage_ = value; - } - /** - * optional bool pin_message = 3; - */ - private void clearPinMessage() { - - pinMessage_ = false; - } public static final int ADD_MEMBER_FIELD_NUMBER = 4; private boolean addMember_; /** - * optional bool add_member = 4; + * bool add_member = 4; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { return addMember_; } - /** - * optional bool add_member = 4; - */ - private void setAddMember(boolean value) { - - addMember_ = value; - } - /** - * optional bool add_member = 4; - */ - private void clearAddMember() { - - addMember_ = false; - } public static final int BAN_MEMBER_FIELD_NUMBER = 5; private boolean banMember_; /** - * optional bool ban_member = 5; + * bool ban_member = 5; + * @return The banMember. */ + @java.lang.Override public boolean getBanMember() { return banMember_; } - /** - * optional bool ban_member = 5; - */ - private void setBanMember(boolean value) { - - banMember_ = value; - } - /** - * optional bool ban_member = 5; - */ - private void clearBanMember() { - - banMember_ = false; - } public static final int GET_MEMBER_FIELD_NUMBER = 6; private boolean getMember_; /** - * optional bool get_member = 6; + * bool get_member = 6; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { return getMember_; } - /** - * optional bool get_member = 6; - */ - private void setGetMember(boolean value) { - - getMember_ = value; - } - /** - * optional bool get_member = 6; - */ - private void clearGetMember() { - - getMember_ = false; - } public static final int ADD_ADMIN_FIELD_NUMBER = 7; private boolean addAdmin_; /** - * optional bool add_admin = 7; + * bool add_admin = 7; + * @return The addAdmin. */ + @java.lang.Override public boolean getAddAdmin() { return addAdmin_; } - /** - * optional bool add_admin = 7; - */ - private void setAddAdmin(boolean value) { - - addAdmin_ = value; - } - /** - * optional bool add_admin = 7; - */ - private void clearAddAdmin() { - - addAdmin_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (modifyRoom_ != false) { @@ -283,10 +443,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (addAdmin_ != false) { output.writeBool(7, addAdmin_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -318,543 +480,700 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, addAdmin_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights other = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights) obj; + + if (getModifyRoom() + != other.getModifyRoom()) return false; + if (getDeleteMessage() + != other.getDeleteMessage()) return false; + if (getPinMessage() + != other.getPinMessage()) return false; + if (getAddMember() + != other.getAddMember()) return false; + if (getBanMember() + != other.getBanMember()) return false; + if (getGetMember() + != other.getGetMember()) return false; + if (getAddAdmin() + != other.getAddAdmin()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODIFY_ROOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getModifyRoom()); + hash = (37 * hash) + DELETE_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleteMessage()); + hash = (37 * hash) + PIN_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinMessage()); + hash = (37 * hash) + ADD_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddMember()); + hash = (37 * hash) + BAN_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBanMember()); + hash = (37 * hash) + GET_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGetMember()); + hash = (37 * hash) + ADD_ADMIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddAdmin()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddAdmin.AdminRights} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddAdmin.AdminRights) net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_AdminRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_AdminRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.class, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + modifyRoom_ = false; + + deleteMessage_ = false; + + pinMessage_ = false; + + addMember_ = false; + + banMember_ = false; + + getMember_ = false; + + addAdmin_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_AdminRights_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights build() { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights buildPartial() { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights result = new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights(this); + result.modifyRoom_ = modifyRoom_; + result.deleteMessage_ = deleteMessage_; + result.pinMessage_ = pinMessage_; + result.addMember_ = addMember_; + result.banMember_ = banMember_; + result.getMember_ = getMember_; + result.addAdmin_ = addAdmin_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights) { + return mergeFrom((net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights other) { + if (other == net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance()) return this; + if (other.getModifyRoom() != false) { + setModifyRoom(other.getModifyRoom()); + } + if (other.getDeleteMessage() != false) { + setDeleteMessage(other.getDeleteMessage()); + } + if (other.getPinMessage() != false) { + setPinMessage(other.getPinMessage()); + } + if (other.getAddMember() != false) { + setAddMember(other.getAddMember()); + } + if (other.getBanMember() != false) { + setBanMember(other.getBanMember()); + } + if (other.getGetMember() != false) { + setGetMember(other.getGetMember()); + } + if (other.getAddAdmin() != false) { + setAddAdmin(other.getAddAdmin()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private boolean modifyRoom_ ; /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return The modifyRoom. */ + @java.lang.Override public boolean getModifyRoom() { - return instance.getModifyRoom(); + return modifyRoom_; } /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @param value The modifyRoom to set. + * @return This builder for chaining. */ public Builder setModifyRoom(boolean value) { - copyOnWrite(); - instance.setModifyRoom(value); + + modifyRoom_ = value; + onChanged(); return this; } /** - * optional bool modify_room = 1; + * bool modify_room = 1; + * @return This builder for chaining. */ public Builder clearModifyRoom() { - copyOnWrite(); - instance.clearModifyRoom(); + + modifyRoom_ = false; + onChanged(); return this; } + private boolean deleteMessage_ ; /** - * optional bool delete_message = 2; + * bool delete_message = 2; + * @return The deleteMessage. */ + @java.lang.Override public boolean getDeleteMessage() { - return instance.getDeleteMessage(); + return deleteMessage_; } /** - * optional bool delete_message = 2; + * bool delete_message = 2; + * @param value The deleteMessage to set. + * @return This builder for chaining. */ public Builder setDeleteMessage(boolean value) { - copyOnWrite(); - instance.setDeleteMessage(value); + + deleteMessage_ = value; + onChanged(); return this; } /** - * optional bool delete_message = 2; + * bool delete_message = 2; + * @return This builder for chaining. */ public Builder clearDeleteMessage() { - copyOnWrite(); - instance.clearDeleteMessage(); + + deleteMessage_ = false; + onChanged(); return this; } + private boolean pinMessage_ ; /** - * optional bool pin_message = 3; + * bool pin_message = 3; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { - return instance.getPinMessage(); + return pinMessage_; } /** - * optional bool pin_message = 3; + * bool pin_message = 3; + * @param value The pinMessage to set. + * @return This builder for chaining. */ public Builder setPinMessage(boolean value) { - copyOnWrite(); - instance.setPinMessage(value); + + pinMessage_ = value; + onChanged(); return this; } /** - * optional bool pin_message = 3; + * bool pin_message = 3; + * @return This builder for chaining. */ public Builder clearPinMessage() { - copyOnWrite(); - instance.clearPinMessage(); + + pinMessage_ = false; + onChanged(); return this; } + private boolean addMember_ ; /** - * optional bool add_member = 4; + * bool add_member = 4; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { - return instance.getAddMember(); + return addMember_; } /** - * optional bool add_member = 4; + * bool add_member = 4; + * @param value The addMember to set. + * @return This builder for chaining. */ public Builder setAddMember(boolean value) { - copyOnWrite(); - instance.setAddMember(value); + + addMember_ = value; + onChanged(); return this; } /** - * optional bool add_member = 4; + * bool add_member = 4; + * @return This builder for chaining. */ public Builder clearAddMember() { - copyOnWrite(); - instance.clearAddMember(); + + addMember_ = false; + onChanged(); return this; } + private boolean banMember_ ; /** - * optional bool ban_member = 5; + * bool ban_member = 5; + * @return The banMember. */ + @java.lang.Override public boolean getBanMember() { - return instance.getBanMember(); + return banMember_; } /** - * optional bool ban_member = 5; + * bool ban_member = 5; + * @param value The banMember to set. + * @return This builder for chaining. */ public Builder setBanMember(boolean value) { - copyOnWrite(); - instance.setBanMember(value); + + banMember_ = value; + onChanged(); return this; } /** - * optional bool ban_member = 5; + * bool ban_member = 5; + * @return This builder for chaining. */ public Builder clearBanMember() { - copyOnWrite(); - instance.clearBanMember(); + + banMember_ = false; + onChanged(); return this; } + private boolean getMember_ ; /** - * optional bool get_member = 6; + * bool get_member = 6; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { - return instance.getGetMember(); + return getMember_; } /** - * optional bool get_member = 6; + * bool get_member = 6; + * @param value The getMember to set. + * @return This builder for chaining. */ public Builder setGetMember(boolean value) { - copyOnWrite(); - instance.setGetMember(value); + + getMember_ = value; + onChanged(); return this; } /** - * optional bool get_member = 6; + * bool get_member = 6; + * @return This builder for chaining. */ public Builder clearGetMember() { - copyOnWrite(); - instance.clearGetMember(); + + getMember_ = false; + onChanged(); return this; } + private boolean addAdmin_ ; /** - * optional bool add_admin = 7; + * bool add_admin = 7; + * @return The addAdmin. */ + @java.lang.Override public boolean getAddAdmin() { - return instance.getAddAdmin(); + return addAdmin_; } /** - * optional bool add_admin = 7; + * bool add_admin = 7; + * @param value The addAdmin to set. + * @return This builder for chaining. */ public Builder setAddAdmin(boolean value) { - copyOnWrite(); - instance.setAddAdmin(value); + + addAdmin_ = value; + onChanged(); return this; } /** - * optional bool add_admin = 7; + * bool add_admin = 7; + * @return This builder for chaining. */ public Builder clearAddAdmin() { - copyOnWrite(); - instance.clearAddAdmin(); + + addAdmin_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAddAdmin.AdminRights) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights other = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights) arg1; - modifyRoom_ = visitor.visitBoolean(modifyRoom_ != false, modifyRoom_, - other.modifyRoom_ != false, other.modifyRoom_); - deleteMessage_ = visitor.visitBoolean(deleteMessage_ != false, deleteMessage_, - other.deleteMessage_ != false, other.deleteMessage_); - pinMessage_ = visitor.visitBoolean(pinMessage_ != false, pinMessage_, - other.pinMessage_ != false, other.pinMessage_); - addMember_ = visitor.visitBoolean(addMember_ != false, addMember_, - other.addMember_ != false, other.addMember_); - banMember_ = visitor.visitBoolean(banMember_ != false, banMember_, - other.banMember_ != false, other.banMember_); - getMember_ = visitor.visitBoolean(getMember_ != false, getMember_, - other.getMember_ != false, other.getMember_); - addAdmin_ = visitor.visitBoolean(addAdmin_ != false, addAdmin_, - other.addAdmin_ != false, other.addAdmin_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - modifyRoom_ = input.readBool(); - break; - } - case 16: { - - deleteMessage_ = input.readBool(); - break; - } - case 24: { - - pinMessage_ = input.readBool(); - break; - } - case 32: { - - addMember_ = input.readBool(); - break; - } - case 40: { - - banMember_ = input.readBool(); - break; - } - case 48: { - - getMember_ = input.readBool(); - break; - } - case 56: { - - addAdmin_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAddAdmin.AdminRights) + } + // @@protoc_insertion_point(class_scope:proto.GroupAddAdmin.AdminRights) private static final net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new AdminRights(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights(); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdminRights parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdminRights(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights permission_; /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getPermission() { return permission_ == null ? net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : permission_; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; - */ - private void setPermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ - private void setPermission( - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder builderForValue) { - permission_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; - */ - private void mergePermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - - } - /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -869,10 +1188,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -892,553 +1213,933 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin other = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddAdmin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddAdmin) net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.class, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdmin_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin build() { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin buildPartial() { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin result = new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin) { + return mergeFrom((net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin other) { + if (other == net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder> permissionBuilder_; /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.GroupAddAdmin) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin other = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - memberId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : permission_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; } + return permissionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.GroupAddAdmin) + } // @@protoc_insertion_point(class_scope:proto.GroupAddAdmin) private static final net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAddAdmin(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin(); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAddAdmin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAddAdmin(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupAddAdminResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddAdminResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return The permission. */ net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getPermission(); + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.GroupAddAdminResponse} */ - public static final class GroupAddAdminResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupAddAdminResponse, GroupAddAdminResponse.Builder> implements + public static final class GroupAddAdminResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddAdminResponse) GroupAddAdminResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAddAdminResponse.newBuilder() to construct. + private GroupAddAdminResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAddAdminResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAddAdminResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAddAdminResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.class, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights permission_; /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getPermission() { return permission_ == null ? net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : permission_; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ - private void setPermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; - */ - private void setPermission( - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; - */ - private void mergePermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1453,10 +2154,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1476,363 +2179,753 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse other = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddAdminResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddAdminResponse) net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.class, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddAdmin.internal_static_proto_GroupAddAdminResponse_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse build() { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse buildPartial() { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse result = new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse other) { + if (other == net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder> permissionBuilder_; /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupAddAdmin.AdminRights permission = 4; + * .proto.GroupAddAdmin.AdminRights permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.GroupAddAdminResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse other = (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - memberId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : permission_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.GroupAddAdmin.AdminRights permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; } + return permissionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAddAdminResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupAddAdminResponse) private static final net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAddAdminResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse(); } public static net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAddAdminResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAddAdminResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdminResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddAdmin_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddAdmin_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddAdmin_AdminRights_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddAdmin_AdminRights_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddAdminResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddAdminResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023GroupAddAdmin.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\"\253\002\n\rGroupAddAdmin\022\037\n" + + "\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007room_i" + + "d\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\0224\n\npermission" + + "\030\004 \001(\0132 .proto.GroupAddAdmin.AdminRights" + + "\032\236\001\n\013AdminRights\022\023\n\013modify_room\030\001 \001(\010\022\026\n" + + "\016delete_message\030\002 \001(\010\022\023\n\013pin_message\030\003 \001" + + "(\010\022\022\n\nadd_member\030\004 \001(\010\022\022\n\nban_member\030\005 \001" + + "(\010\022\022\n\nget_member\030\006 \001(\010\022\021\n\tadd_admin\030\007 \001(" + + "\010\"\224\001\n\025GroupAddAdminResponse\022!\n\010response\030" + + "\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022" + + "\021\n\tmember_id\030\003 \001(\004\0224\n\npermission\030\004 \001(\0132 " + + ".proto.GroupAddAdmin.AdminRightsB$\n\016net." + + "iGap.protoB\022ProtoGroupAddAdminb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupAddAdmin_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupAddAdmin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddAdmin_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", "Permission", }); + internal_static_proto_GroupAddAdmin_AdminRights_descriptor = + internal_static_proto_GroupAddAdmin_descriptor.getNestedTypes().get(0); + internal_static_proto_GroupAddAdmin_AdminRights_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddAdmin_AdminRights_descriptor, + new java.lang.String[] { "ModifyRoom", "DeleteMessage", "PinMessage", "AddMember", "BanMember", "GetMember", "AddAdmin", }); + internal_static_proto_GroupAddAdminResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupAddAdminResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddAdminResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", "Permission", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupAddMember.java b/src/main/java/net/iGap/proto/ProtoGroupAddMember.java index 46b3fdd..6d14592 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupAddMember.java +++ b/src/main/java/net/iGap/proto/ProtoGroupAddMember.java @@ -3,146 +3,325 @@ package net.iGap.proto; + public final class ProtoGroupAddMember { private ProtoGroupAddMember() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupAddMemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddMember) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; + * @return Whether the member field is set. */ boolean hasMember(); /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; + * @return The member. */ net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member getMember(); + /** + * .proto.GroupAddMember.Member member = 3; + */ + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.MemberOrBuilder getMemberOrBuilder(); } /** * Protobuf type {@code proto.GroupAddMember} */ - public static final class GroupAddMember extends - com.google.protobuf.GeneratedMessageLite< - GroupAddMember, GroupAddMember.Builder> implements + public static final class GroupAddMember extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddMember) GroupAddMemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAddMember.newBuilder() to construct. + private GroupAddMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAddMember() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAddMember(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAddMember( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder subBuilder = null; + if (member_ != null) { + subBuilder = member_.toBuilder(); + } + member_ = input.readMessage(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(member_); + member_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.class, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Builder.class); + } + public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddMember.Member) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ long getUserId(); /** - * optional uint64 start_message_id = 2; + * uint64 start_message_id = 2; + * @return The startMessageId. */ long getStartMessageId(); /** - * optional uint64 start_document_id = 3; + * uint64 start_document_id = 3; + * @return The startDocumentId. */ long getStartDocumentId(); } /** * Protobuf type {@code proto.GroupAddMember.Member} */ - public static final class Member extends - com.google.protobuf.GeneratedMessageLite< - Member, Member.Builder> implements + public static final class Member extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddMember.Member) MemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use Member.newBuilder() to construct. + private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Member() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Member(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Member( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 16: { + + startMessageId_ = input.readUInt64(); + break; + } + case 24: { + + startDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.class, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int START_MESSAGE_ID_FIELD_NUMBER = 2; private long startMessageId_; /** - * optional uint64 start_message_id = 2; + * uint64 start_message_id = 2; + * @return The startMessageId. */ + @java.lang.Override public long getStartMessageId() { return startMessageId_; } - /** - * optional uint64 start_message_id = 2; - */ - private void setStartMessageId(long value) { - - startMessageId_ = value; - } - /** - * optional uint64 start_message_id = 2; - */ - private void clearStartMessageId() { - - startMessageId_ = 0L; - } public static final int START_DOCUMENT_ID_FIELD_NUMBER = 3; private long startDocumentId_; /** - * optional uint64 start_document_id = 3; + * uint64 start_document_id = 3; + * @return The startDocumentId. */ + @java.lang.Override public long getStartDocumentId() { return startDocumentId_; } - /** - * optional uint64 start_document_id = 3; - */ - private void setStartDocumentId(long value) { - - startDocumentId_ = value; - } - /** - * optional uint64 start_document_id = 3; - */ - private void clearStartDocumentId() { - - startDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { @@ -154,10 +333,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (startDocumentId_ != 0L) { output.writeUInt64(3, startDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -173,400 +354,521 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member other = (net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member) obj; + + if (getUserId() + != other.getUserId()) return false; + if (getStartMessageId() + != other.getStartMessageId()) return false; + if (getStartDocumentId() + != other.getStartDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + START_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartMessageId()); + hash = (37 * hash) + START_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddMember.Member} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddMember.Member) net.iGap.proto.ProtoGroupAddMember.GroupAddMember.MemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.class, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + startMessageId_ = 0L; + + startDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_Member_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member build() { + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member buildPartial() { + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member result = new net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member(this); + result.userId_ = userId_; + result.startMessageId_ = startMessageId_; + result.startDocumentId_ = startDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member) { + return mergeFrom((net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member other) { + if (other == net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getStartMessageId() != 0L) { + setStartMessageId(other.getStartMessageId()); + } + if (other.getStartDocumentId() != 0L) { + setStartDocumentId(other.getStartDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long userId_ ; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private long startMessageId_ ; /** - * optional uint64 start_message_id = 2; + * uint64 start_message_id = 2; + * @return The startMessageId. */ + @java.lang.Override public long getStartMessageId() { - return instance.getStartMessageId(); + return startMessageId_; } /** - * optional uint64 start_message_id = 2; + * uint64 start_message_id = 2; + * @param value The startMessageId to set. + * @return This builder for chaining. */ public Builder setStartMessageId(long value) { - copyOnWrite(); - instance.setStartMessageId(value); + + startMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 start_message_id = 2; + * uint64 start_message_id = 2; + * @return This builder for chaining. */ public Builder clearStartMessageId() { - copyOnWrite(); - instance.clearStartMessageId(); + + startMessageId_ = 0L; + onChanged(); return this; } + private long startDocumentId_ ; /** - * optional uint64 start_document_id = 3; + * uint64 start_document_id = 3; + * @return The startDocumentId. */ + @java.lang.Override public long getStartDocumentId() { - return instance.getStartDocumentId(); + return startDocumentId_; } /** - * optional uint64 start_document_id = 3; + * uint64 start_document_id = 3; + * @param value The startDocumentId to set. + * @return This builder for chaining. */ public Builder setStartDocumentId(long value) { - copyOnWrite(); - instance.setStartDocumentId(value); + + startDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 start_document_id = 3; + * uint64 start_document_id = 3; + * @return This builder for chaining. */ public Builder clearStartDocumentId() { - copyOnWrite(); - instance.clearStartDocumentId(); + + startDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAddMember.Member) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member other = (net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - startMessageId_ = visitor.visitLong(startMessageId_ != 0L, startMessageId_, - other.startMessageId_ != 0L, other.startMessageId_); - startDocumentId_ = visitor.visitLong(startDocumentId_ != 0L, startDocumentId_, - other.startDocumentId_ != 0L, other.startDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 16: { - - startMessageId_ = input.readUInt64(); - break; - } - case 24: { - - startDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAddMember.Member) + } + // @@protoc_insertion_point(class_scope:proto.GroupAddMember.Member) private static final net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Member(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member(); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Member parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Member(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member member_; /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; + * @return Whether the member field is set. */ + @java.lang.Override public boolean hasMember() { return member_ != null; } /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; + * @return The member. */ + @java.lang.Override public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member getMember() { return member_ == null ? net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.getDefaultInstance() : member_; } /** - * optional .proto.GroupAddMember.Member member = 3; - */ - private void setMember(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member value) { - if (value == null) { - throw new NullPointerException(); - } - member_ = value; - - } - /** - * optional .proto.GroupAddMember.Member member = 3; - */ - private void setMember( - net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder builderForValue) { - member_ = builderForValue.build(); - - } - /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; */ - private void mergeMember(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member value) { - if (member_ != null && - member_ != net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.getDefaultInstance()) { - member_ = - net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.newBuilder(member_).mergeFrom(value).buildPartial(); - } else { - member_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.MemberOrBuilder getMemberOrBuilder() { + return getMember(); } - /** - * optional .proto.GroupAddMember.Member member = 3; - */ - private void clearMember() { member_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -578,10 +880,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (member_ != null) { output.writeMessage(3, getMember()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -597,510 +901,874 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMember()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddMember.GroupAddMember)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddMember.GroupAddMember other = (net.iGap.proto.ProtoGroupAddMember.GroupAddMember) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasMember() != other.hasMember()) return false; + if (hasMember()) { + if (!getMember() + .equals(other.getMember())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasMember()) { + hash = (37 * hash) + MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getMember().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddMember.GroupAddMember prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddMember} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddMember.GroupAddMember, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddMember) net.iGap.proto.ProtoGroupAddMember.GroupAddMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.class, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddMember.GroupAddMember.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - /** - * optional .proto.Request request = 1; - */ - public boolean hasRequest() { - return instance.hasRequest(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional .proto.Request request = 1; - */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - /** - * optional .proto.Request request = 1; - */ - public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + if (memberBuilder_ == null) { + member_ = null; + } else { + member_ = null; + memberBuilder_ = null; } - /** - * optional .proto.Request request = 1; - */ - public Builder setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); return this; } - /** - * optional .proto.Request request = 1; - */ - public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); - return this; + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMember_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddMember.GroupAddMember.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember build() { + net.iGap.proto.ProtoGroupAddMember.GroupAddMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember buildPartial() { + net.iGap.proto.ProtoGroupAddMember.GroupAddMember result = new net.iGap.proto.ProtoGroupAddMember.GroupAddMember(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + if (memberBuilder_ == null) { + result.member_ = member_; + } else { + result.member_ = memberBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddMember.GroupAddMember) { + return mergeFrom((net.iGap.proto.ProtoGroupAddMember.GroupAddMember)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddMember.GroupAddMember other) { + if (other == net.iGap.proto.ProtoGroupAddMember.GroupAddMember.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasMember()) { + mergeMember(other.getMember()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddMember.GroupAddMember parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddMember.GroupAddMember) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * .proto.Request request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * .proto.Request request = 1; + * @return The request. + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + return this; } + /** + * .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } /** - * optional uint64 room_id = 2; + * .proto.Request request = 1; */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private long roomId_ ; + /** + * uint64 room_id = 2; + * @return The roomId. + */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member member_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.MemberOrBuilder> memberBuilder_; /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; + * @return Whether the member field is set. */ public boolean hasMember() { - return instance.hasMember(); + return memberBuilder_ != null || member_ != null; } /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; + * @return The member. */ public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member getMember() { - return instance.getMember(); + if (memberBuilder_ == null) { + return member_ == null ? net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.getDefaultInstance() : member_; + } else { + return memberBuilder_.getMessage(); + } } /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; */ public Builder setMember(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member value) { - copyOnWrite(); - instance.setMember(value); - return this; + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + member_ = value; + onChanged(); + } else { + memberBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; */ public Builder setMember( net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder builderForValue) { - copyOnWrite(); - instance.setMember(builderForValue); + if (memberBuilder_ == null) { + member_ = builderForValue.build(); + onChanged(); + } else { + memberBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; */ public Builder mergeMember(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member value) { - copyOnWrite(); - instance.mergeMember(value); + if (memberBuilder_ == null) { + if (member_ != null) { + member_ = + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.newBuilder(member_).mergeFrom(value).buildPartial(); + } else { + member_ = value; + } + onChanged(); + } else { + memberBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupAddMember.Member member = 3; + * .proto.GroupAddMember.Member member = 3; */ - public Builder clearMember() { copyOnWrite(); - instance.clearMember(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.GroupAddMember) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddMember.GroupAddMember(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddMember.GroupAddMember other = (net.iGap.proto.ProtoGroupAddMember.GroupAddMember) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - member_ = visitor.visitMessage(member_, other.member_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearMember() { + if (memberBuilder_ == null) { + member_ = null; + onChanged(); + } else { + member_ = null; + memberBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder subBuilder = null; - if (member_ != null) { - subBuilder = member_.toBuilder(); - } - member_ = input.readMessage(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(member_); - member_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.GroupAddMember.Member member = 3; + */ + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder getMemberBuilder() { + + onChanged(); + return getMemberFieldBuilder().getBuilder(); + } + /** + * .proto.GroupAddMember.Member member = 3; + */ + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.MemberOrBuilder getMemberOrBuilder() { + if (memberBuilder_ != null) { + return memberBuilder_.getMessageOrBuilder(); + } else { + return member_ == null ? + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.getDefaultInstance() : member_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddMember.GroupAddMember.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.GroupAddMember.Member member = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.MemberOrBuilder> + getMemberFieldBuilder() { + if (memberBuilder_ == null) { + memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member.Builder, net.iGap.proto.ProtoGroupAddMember.GroupAddMember.MemberOrBuilder>( + getMember(), + getParentForChildren(), + isClean()); + member_ = null; } + return memberBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAddMember) + } + // @@protoc_insertion_point(class_scope:proto.GroupAddMember) private static final net.iGap.proto.ProtoGroupAddMember.GroupAddMember DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAddMember(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddMember.GroupAddMember(); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMember getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAddMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAddMember(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupAddMemberResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddMemberResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @return The role. */ - net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole(); + ProtoGlobal.GroupRoom.Role getRole(); } /** * Protobuf type {@code proto.GroupAddMemberResponse} */ - public static final class GroupAddMemberResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupAddMemberResponse, GroupAddMemberResponse.Builder> implements + public static final class GroupAddMemberResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddMemberResponse) GroupAddMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAddMemberResponse.newBuilder() to construct. + private GroupAddMemberResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAddMemberResponse() { + role_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAddMemberResponse(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAddMemberResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.class, net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int ROLE_FIELD_NUMBER = 4; private int role_; /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @return The role. */ - public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } - /** - * optional .proto.GroupRoom.Role role = 4; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.GroupRoom.Role role = 4; - */ - private void setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.GroupRoom.Role role = 4; - */ - private void clearRole() { - - role_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1112,13 +1780,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(3, userId_); } - if (role_ != net.iGap.proto.ProtoGlobal.GroupRoom.Role.MEMBER.getNumber()) { + if (role_ != ProtoGlobal.GroupRoom.Role.MEMBER.getNumber()) { output.writeEnum(4, role_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1138,348 +1808,674 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, role_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse other = (net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (role_ != other.role_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddMemberResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddMemberResponse) net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.class, net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + userId_ = 0L; + + role_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddMember.internal_static_proto_GroupAddMemberResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse build() { + net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse buildPartial() { + net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse result = new net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.userId_ = userId_; + result.role_ = role_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse other) { + if (other == net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 4; + * .proto.GroupRoom.Role role = 4; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAddMemberResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse other = (net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - userId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - role_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.GroupAddMemberResponse) } - // @@protoc_insertion_point(class_scope:proto.GroupAddMemberResponse) private static final net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAddMemberResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse(); } public static net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAddMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAddMemberResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - } + @java.lang.Override + public net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddMember_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddMember_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddMember_Member_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddMember_Member_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddMemberResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024GroupAddMember.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\032\014Global.proto\"\300\001\n\016G" + + "roupAddMember\022\037\n\007request\030\001 \001(\0132\016.proto.R" + + "equest\022\017\n\007room_id\030\002 \001(\004\022,\n\006member\030\003 \001(\0132" + + "\034.proto.GroupAddMember.Member\032N\n\006Member\022" + + "\017\n\007user_id\030\001 \001(\004\022\030\n\020start_message_id\030\002 \001" + + "(\004\022\031\n\021start_document_id\030\003 \001(\004\"\202\001\n\026GroupA" + + "ddMemberResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.Response\022\017\n\007room_id\030\002 \001(\004\022\017\n\007user_id\030" + + "\003 \001(\004\022#\n\004role\030\004 \001(\0162\025.proto.GroupRoom.Ro" + + "leB%\n\016net.iGap.protoB\023ProtoGroupAddMembe" + + "rb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupAddMember_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupAddMember_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddMember_descriptor, + new java.lang.String[] { "Request", "RoomId", "Member", }); + internal_static_proto_GroupAddMember_Member_descriptor = + internal_static_proto_GroupAddMember_descriptor.getNestedTypes().get(0); + internal_static_proto_GroupAddMember_Member_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddMember_Member_descriptor, + new java.lang.String[] { "UserId", "StartMessageId", "StartDocumentId", }); + internal_static_proto_GroupAddMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupAddMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddMemberResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "UserId", "Role", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupAddModerator.java b/src/main/java/net/iGap/proto/ProtoGroupAddModerator.java index 47ae71e..dc5fc88 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupAddModerator.java +++ b/src/main/java/net/iGap/proto/ProtoGroupAddModerator.java @@ -8,137 +8,203 @@ private ProtoGroupAddModerator() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupAddModeratorOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddModerator) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupAddModerator} */ - public static final class GroupAddModerator extends - com.google.protobuf.GeneratedMessageLite< - GroupAddModerator, GroupAddModerator.Builder> implements + public static final class GroupAddModerator extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddModerator) GroupAddModeratorOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAddModerator.newBuilder() to construct. + private GroupAddModerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAddModerator() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAddModerator(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAddModerator( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.class, net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator other = (net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddModerator} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddModerator) net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.class, net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + memberId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModerator_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator build() { + net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator buildPartial() { + net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator result = new net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator) { + return mergeFrom((net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator other) { + if (other == net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAddModerator) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator other = (net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAddModerator) + } + // @@protoc_insertion_point(class_scope:proto.GroupAddModerator) private static final net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAddModerator(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator(); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAddModerator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAddModerator(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModerator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupAddModeratorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAddModeratorResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupAddModeratorResponse} */ - public static final class GroupAddModeratorResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupAddModeratorResponse, GroupAddModeratorResponse.Builder> implements + public static final class GroupAddModeratorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAddModeratorResponse) GroupAddModeratorResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAddModeratorResponse.newBuilder() to construct. + private GroupAddModeratorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAddModeratorResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAddModeratorResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAddModeratorResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.class, net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse other = (net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAddModeratorResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAddModeratorResponse) net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.class, net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAddModerator.internal_static_proto_GroupAddModeratorResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse build() { + net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse buildPartial() { + net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse result = new net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse other) { + if (other == net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAddModeratorResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse other = (net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAddModeratorResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupAddModeratorResponse) private static final net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAddModeratorResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse(); } public static net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAddModeratorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAddModeratorResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAddModerator.GroupAddModeratorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddModerator_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddModerator_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAddModeratorResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAddModeratorResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027GroupAddModerator.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"X\n\021GroupAddModer" + + "ator\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007room_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\"b\n\031Gro" + + "upAddModeratorResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\021\n\tme" + + "mber_id\030\003 \001(\004B(\n\016net.iGap.protoB\026ProtoGr" + + "oupAddModeratorb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupAddModerator_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupAddModerator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddModerator_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_GroupAddModeratorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupAddModeratorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAddModeratorResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupAvatarAdd.java b/src/main/java/net/iGap/proto/ProtoGroupAvatarAdd.java index 3c6c8f4..866f1e1 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupAvatarAdd.java +++ b/src/main/java/net/iGap/proto/ProtoGroupAvatarAdd.java @@ -8,181 +8,255 @@ private ProtoGroupAvatarAdd() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupAvatarAddOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAvatarAdd) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ java.lang.String getAttachment(); /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ com.google.protobuf.ByteString getAttachmentBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupAvatarAdd} */ - public static final class GroupAvatarAdd extends - com.google.protobuf.GeneratedMessageLite< - GroupAvatarAdd, GroupAvatarAdd.Builder> implements + public static final class GroupAvatarAdd extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAvatarAdd) GroupAvatarAddOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAvatarAdd.newBuilder() to construct. + private GroupAvatarAdd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAvatarAdd() { attachment_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAvatarAdd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAvatarAdd( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + attachment_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAdd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.class, net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ATTACHMENT_FIELD_NUMBER = 2; - private java.lang.String attachment_; + private volatile java.lang.Object attachment_; /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ + @java.lang.Override public java.lang.String getAttachment() { - return attachment_; + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(attachment_); - } - /** - * optional string attachment = 2; - */ - private void setAttachment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attachment_ = value; - } - /** - * optional string attachment = 2; - */ - private void clearAttachment() { - - attachment_ = getDefaultInstance().getAttachment(); - } - /** - * optional string attachment = 2; - */ - private void setAttachmentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attachment_ = value.toStringUtf8(); + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!attachment_.isEmpty()) { - output.writeString(2, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attachment_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,492 +264,821 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!attachment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attachment_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd other = (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getAttachment() + .equals(other.getAttachment())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAvatarAdd} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAvatarAdd) net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAdd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.class, net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + attachment_ = ""; + + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAdd_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd build() { + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd buildPartial() { + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd result = new net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.attachment_ = attachment_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd) { + return mergeFrom((net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd other) { + if (other == net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getAttachment().isEmpty()) { + attachment_ = other.attachment_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object attachment_ = ""; /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ public java.lang.String getAttachment() { - return instance.getAttachment(); + java.lang.Object ref = attachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ public com.google.protobuf.ByteString getAttachmentBytes() { - return instance.getAttachmentBytes(); + java.lang.Object ref = attachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @param value The attachment to set. + * @return This builder for chaining. */ public Builder setAttachment( java.lang.String value) { - copyOnWrite(); - instance.setAttachment(value); + if (value == null) { + throw new NullPointerException(); + } + + attachment_ = value; + onChanged(); return this; } /** - * optional string attachment = 2; + * string attachment = 2; + * @return This builder for chaining. */ public Builder clearAttachment() { - copyOnWrite(); - instance.clearAttachment(); + + attachment_ = getDefaultInstance().getAttachment(); + onChanged(); return this; } /** - * optional string attachment = 2; + * string attachment = 2; + * @param value The bytes for attachment to set. + * @return This builder for chaining. */ public Builder setAttachmentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAttachmentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachment_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAvatarAdd) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd other = (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd) arg1; - request_ = visitor.visitMessage(request_, other.request_); - attachment_ = visitor.visitString(!attachment_.isEmpty(), attachment_, - !other.attachment_.isEmpty(), other.attachment_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - attachment_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAvatarAdd) + } + // @@protoc_insertion_point(class_scope:proto.GroupAvatarAdd) private static final net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAvatarAdd(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd(); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAvatarAdd parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAvatarAdd(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAdd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupAvatarAddResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAvatarAddResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ boolean hasAvatar(); /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ net.iGap.proto.ProtoGlobal.Avatar getAvatar(); + /** + * .proto.Avatar avatar = 2; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupAvatarAddResponse} */ - public static final class GroupAvatarAddResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupAvatarAddResponse, GroupAvatarAddResponse.Builder> implements + public static final class GroupAvatarAddResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAvatarAddResponse) GroupAvatarAddResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAvatarAddResponse.newBuilder() to construct. + private GroupAvatarAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAvatarAddResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAvatarAddResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAvatarAddResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; + if (avatar_ != null) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.class, net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int AVATAR_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Avatar avatar_; /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ + @java.lang.Override public boolean hasAvatar() { return avatar_ != null; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ - private void setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - - } - /** - * optional .proto.Avatar avatar = 2; - */ - private void setAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - avatar_ = builderForValue.build(); - - } - /** - * optional .proto.Avatar avatar = 2; - */ - private void mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (avatar_ != null && - avatar_ != net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()) { - avatar_ = - net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - - } - /** - * optional .proto.Avatar avatar = 2; - */ - private void clearAvatar() { avatar_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + return getAvatar(); } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -687,10 +1090,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -706,333 +1111,696 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse other = (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasAvatar() != other.hasAvatar()) return false; + if (hasAvatar()) { + if (!getAvatar() + .equals(other.getAvatar())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasAvatar()) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAvatarAddResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAvatarAddResponse) net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.class, net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (avatarBuilder_ == null) { + avatar_ = null; + } else { + avatar_ = null; + avatarBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAvatarAdd.internal_static_proto_GroupAvatarAddResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse build() { + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse buildPartial() { + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse result = new net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse other) { + if (other == net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.Avatar avatar_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ public boolean hasAvatar() { - return instance.hasAvatar(); + return avatarBuilder_ != null || avatar_ != null; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { - return instance.getAvatar(); + if (avatarBuilder_ == null) { + return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } else { + return avatarBuilder_.getMessage(); + } } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(value); - return this; + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder setAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(builderForValue); + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.mergeAvatar(value); + if (avatarBuilder_ == null) { + if (avatar_ != null) { + avatar_ = + net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ - public Builder clearAvatar() { copyOnWrite(); - instance.clearAvatar(); + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + return this; } + /** + * .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_ == null ? + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } + } + /** + * .proto.Avatar avatar = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + getAvatar(), + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAvatarAddResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse other = (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - avatar_ = visitor.visitMessage(avatar_, other.avatar_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAvatarAddResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupAvatarAddResponse) private static final net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAvatarAddResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse(); } public static net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAvatarAddResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAvatarAddResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarAdd.GroupAvatarAddResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAvatarAdd_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAvatarAdd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAvatarAddResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAvatarAddResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024GroupAvatarAdd.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\032\014Global.proto\"V\n\016Gr" + + "oupAvatarAdd\022\037\n\007request\030\001 \001(\0132\016.proto.Re" + + "quest\022\022\n\nattachment\030\002 \001(\t\022\017\n\007room_id\030\003 \001" + + "(\004\"k\n\026GroupAvatarAddResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\035\n\006avatar\030\002 \001(\0132" + + "\r.proto.Avatar\022\017\n\007room_id\030\003 \001(\004B%\n\016net.i" + + "Gap.protoB\023ProtoGroupAvatarAddb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupAvatarAdd_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupAvatarAdd_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAvatarAdd_descriptor, + new java.lang.String[] { "Request", "Attachment", "RoomId", }); + internal_static_proto_GroupAvatarAddResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupAvatarAddResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAvatarAddResponse_descriptor, + new java.lang.String[] { "Response", "Avatar", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupAvatarDelete.java b/src/main/java/net/iGap/proto/ProtoGroupAvatarDelete.java index a862a6b..e726ec9 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupAvatarDelete.java +++ b/src/main/java/net/iGap/proto/ProtoGroupAvatarDelete.java @@ -8,137 +8,203 @@ private ProtoGroupAvatarDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupAvatarDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAvatarDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupAvatarDelete} */ - public static final class GroupAvatarDelete extends - com.google.protobuf.GeneratedMessageLite< - GroupAvatarDelete, GroupAvatarDelete.Builder> implements + public static final class GroupAvatarDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAvatarDelete) GroupAvatarDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAvatarDelete.newBuilder() to construct. + private GroupAvatarDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAvatarDelete() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAvatarDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAvatarDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.class, net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete other = (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getId() + != other.getId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAvatarDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAvatarDelete) net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.class, net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + id_ = 0L; + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDelete_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete build() { + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete buildPartial() { + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete result = new net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.id_ = id_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete) { + return mergeFrom((net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete other) { + if (other == net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAvatarDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete other = (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAvatarDelete) + } + // @@protoc_insertion_point(class_scope:proto.GroupAvatarDelete) private static final net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAvatarDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete(); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAvatarDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAvatarDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupAvatarDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAvatarDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupAvatarDeleteResponse} */ - public static final class GroupAvatarDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupAvatarDeleteResponse, GroupAvatarDeleteResponse.Builder> implements + public static final class GroupAvatarDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAvatarDeleteResponse) GroupAvatarDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAvatarDeleteResponse.newBuilder() to construct. + private GroupAvatarDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAvatarDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAvatarDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAvatarDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.class, net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse other = (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getId() + != other.getId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAvatarDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAvatarDeleteResponse) net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.class, net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + id_ = 0L; + + roomId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAvatarDelete.internal_static_proto_GroupAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse build() { + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse buildPartial() { + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse result = new net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.id_ = id_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse other) { + if (other == net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAvatarDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse other = (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAvatarDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupAvatarDeleteResponse) private static final net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAvatarDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse(); } public static net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAvatarDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAvatarDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarDelete.GroupAvatarDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAvatarDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAvatarDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAvatarDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAvatarDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027GroupAvatarDelete.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"Q\n\021GroupAvatarDe" + + "lete\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\n\n" + + "\002id\030\002 \001(\004\022\017\n\007room_id\030\003 \001(\004\"[\n\031GroupAvata" + + "rDeleteResponse\022!\n\010response\030\001 \001(\0132\017.prot" + + "o.Response\022\n\n\002id\030\002 \001(\004\022\017\n\007room_id\030\003 \001(\004B" + + "(\n\016net.iGap.protoB\026ProtoGroupAvatarDelet" + + "eb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupAvatarDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupAvatarDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAvatarDelete_descriptor, + new java.lang.String[] { "Request", "Id", "RoomId", }); + internal_static_proto_GroupAvatarDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupAvatarDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAvatarDeleteResponse_descriptor, + new java.lang.String[] { "Response", "Id", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupAvatarGetList.java b/src/main/java/net/iGap/proto/ProtoGroupAvatarGetList.java index a298bf0..95d22d7 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupAvatarGetList.java +++ b/src/main/java/net/iGap/proto/ProtoGroupAvatarGetList.java @@ -8,109 +8,181 @@ private ProtoGroupAvatarGetList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupAvatarGetListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAvatarGetList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupAvatarGetList} */ - public static final class GroupAvatarGetList extends - com.google.protobuf.GeneratedMessageLite< - GroupAvatarGetList, GroupAvatarGetList.Builder> implements + public static final class GroupAvatarGetList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAvatarGetList) GroupAvatarGetListOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAvatarGetList.newBuilder() to construct. + private GroupAvatarGetList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAvatarGetList() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAvatarGetList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAvatarGetList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.class, net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,284 +208,522 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList other = (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAvatarGetList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAvatarGetList) net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.class, net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList build() { + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList buildPartial() { + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList result = new net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList) { + return mergeFrom((net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList other) { + if (other == net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupAvatarGetList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList other = (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupAvatarGetList) + } + // @@protoc_insertion_point(class_scope:proto.GroupAvatarGetList) private static final net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAvatarGetList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList(); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAvatarGetList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAvatarGetList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupAvatarGetListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupAvatarGetListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Avatar avatar = 2; @@ -426,82 +738,160 @@ public interface GroupAvatarGetListResponseOrBuilder extends * repeated .proto.Avatar avatar = 2; */ int getAvatarCount(); + /** + * repeated .proto.Avatar avatar = 2; + */ + java.util.List + getAvatarOrBuilderList(); + /** + * repeated .proto.Avatar avatar = 2; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( + int index); } /** * Protobuf type {@code proto.GroupAvatarGetListResponse} */ - public static final class GroupAvatarGetListResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupAvatarGetListResponse, GroupAvatarGetListResponse.Builder> implements + public static final class GroupAvatarGetListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupAvatarGetListResponse) GroupAvatarGetListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAvatarGetListResponse.newBuilder() to construct. + private GroupAvatarGetListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupAvatarGetListResponse() { - avatar_ = emptyProtobufList(); + avatar_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupAvatarGetListResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupAvatarGetListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + avatar_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + avatar_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + avatar_ = java.util.Collections.unmodifiableList(avatar_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.class, net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int AVATAR_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList avatar_; + private java.util.List avatar_; /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public java.util.List getAvatarList() { return avatar_; } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public java.util.List getAvatarOrBuilderList() { return avatar_; @@ -509,108 +899,38 @@ public java.util.List getAvatarList() { /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public int getAvatarCount() { return avatar_.size(); } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar(int index) { return avatar_.get(index); } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( int index) { return avatar_.get(index); } - private void ensureAvatarIsMutable() { - if (!avatar_.isModifiable()) { - avatar_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(avatar_); - } - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void setAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.set(index, value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void setAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.add(value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.add(index, value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.add(builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAllAvatar( - java.lang.Iterable values) { - ensureAvatarIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, avatar_); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void clearAvatar() { - avatar_ = emptyProtobufList(); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void removeAvatar(int index) { - ensureAvatarIsMutable(); - avatar_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -619,10 +939,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < avatar_.size(); i++) { output.writeMessage(2, avatar_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -634,162 +956,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, avatar_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse other = (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getAvatarList() + .equals(other.getAvatarList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getAvatarCount() > 0) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatarList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupAvatarGetListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupAvatarGetListResponse) net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.class, net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAvatarFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (avatarBuilder_ == null) { + avatar_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + avatarBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupAvatarGetList.internal_static_proto_GroupAvatarGetListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse build() { + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse buildPartial() { + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse result = new net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + avatar_ = java.util.Collections.unmodifiableList(avatar_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse other) { + if (other == net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (avatarBuilder_ == null) { + if (!other.avatar_.isEmpty()) { + if (avatar_.isEmpty()) { + avatar_ = other.avatar_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAvatarIsMutable(); + avatar_.addAll(other.avatar_); + } + onChanged(); + } + } else { + if (!other.avatar_.isEmpty()) { + if (avatarBuilder_.isEmpty()) { + avatarBuilder_.dispose(); + avatarBuilder_ = null; + avatar_ = other.avatar_; + bitField0_ = (bitField0_ & ~0x00000001); + avatarBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAvatarFieldBuilder() : null; + } else { + avatarBuilder_.addAllMessages(other.avatar_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List avatar_ = + java.util.Collections.emptyList(); + private void ensureAvatarIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + avatar_ = new java.util.ArrayList(avatar_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** * repeated .proto.Avatar avatar = 2; */ public java.util.List getAvatarList() { - return java.util.Collections.unmodifiableList( - instance.getAvatarList()); + if (avatarBuilder_ == null) { + return java.util.Collections.unmodifiableList(avatar_); + } else { + return avatarBuilder_.getMessageList(); + } } /** * repeated .proto.Avatar avatar = 2; */ public int getAvatarCount() { - return instance.getAvatarCount(); - }/** + if (avatarBuilder_ == null) { + return avatar_.size(); + } else { + return avatarBuilder_.getCount(); + } + } + /** * repeated .proto.Avatar avatar = 2; */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar(int index) { - return instance.getAvatar(index); + if (avatarBuilder_ == null) { + return avatar_.get(index); + } else { + return avatarBuilder_.getMessage(index); + } } /** * repeated .proto.Avatar avatar = 2; */ public Builder setAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(index, value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.set(index, value); + onChanged(); + } else { + avatarBuilder_.setMessage(index, value); + } return this; } /** @@ -797,16 +1474,29 @@ public Builder setAvatar( */ public Builder setAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(index, builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.set(index, builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.addAvatar(value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.add(value); + onChanged(); + } else { + avatarBuilder_.addMessage(value); + } return this; } /** @@ -814,8 +1504,16 @@ public Builder addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { */ public Builder addAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.addAvatar(index, value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.add(index, value); + onChanged(); + } else { + avatarBuilder_.addMessage(index, value); + } return this; } /** @@ -823,8 +1521,13 @@ public Builder addAvatar( */ public Builder addAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.addAvatar(builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.add(builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -832,8 +1535,13 @@ public Builder addAvatar( */ public Builder addAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.addAvatar(index, builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.add(index, builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -841,146 +1549,209 @@ public Builder addAvatar( */ public Builder addAllAvatar( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllAvatar(values); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatar_); + onChanged(); + } else { + avatarBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder clearAvatar() { - copyOnWrite(); - instance.clearAvatar(); + if (avatarBuilder_ == null) { + avatar_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + avatarBuilder_.clear(); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder removeAvatar(int index) { - copyOnWrite(); - instance.removeAvatar(index); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.remove(index); + onChanged(); + } else { + avatarBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupAvatarGetListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - avatar_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse other = (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - avatar_= visitor.visitList(avatar_, other.avatar_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!avatar_.isModifiable()) { - avatar_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(avatar_); - } - avatar_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder( + int index) { + return getAvatarFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( + int index) { + if (avatarBuilder_ == null) { + return avatar_.get(index); } else { + return avatarBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public java.util.List + getAvatarOrBuilderList() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(avatar_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder addAvatarBuilder() { + return getAvatarFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder addAvatarBuilder( + int index) { + return getAvatarFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public java.util.List + getAvatarBuilderList() { + return getAvatarFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + avatar_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + avatar_ = null; } + return avatarBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.GroupAvatarGetListResponse) + } // @@protoc_insertion_point(class_scope:proto.GroupAvatarGetListResponse) private static final net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupAvatarGetListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse(); } public static net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAvatarGetListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAvatarGetListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupAvatarGetList.GroupAvatarGetListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAvatarGetList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAvatarGetList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupAvatarGetListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupAvatarGetListResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030GroupAvatarGetList.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"F" + + "\n\022GroupAvatarGetList\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\017\n\007room_id\030\002 \001(\004\"^\n\032GroupA" + + "vatarGetListResponse\022!\n\010response\030\001 \001(\0132\017" + + ".proto.Response\022\035\n\006avatar\030\002 \003(\0132\r.proto." + + "AvatarB)\n\016net.iGap.protoB\027ProtoGroupAvat" + + "arGetListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupAvatarGetList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupAvatarGetList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAvatarGetList_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_GroupAvatarGetListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupAvatarGetListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupAvatarGetListResponse_descriptor, + new java.lang.String[] { "Response", "Avatar", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupChangeMemberRights.java b/src/main/java/net/iGap/proto/ProtoGroupChangeMemberRights.java index 72fbe85..b52bd67 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupChangeMemberRights.java +++ b/src/main/java/net/iGap/proto/ProtoGroupChangeMemberRights.java @@ -8,286 +8,440 @@ private ProtoGroupChangeMemberRights() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupChangeMemberRightsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupChangeMemberRights) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission(); + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.GroupChangeMemberRights} */ - public static final class GroupChangeMemberRights extends - com.google.protobuf.GeneratedMessageLite< - GroupChangeMemberRights, GroupChangeMemberRights.Builder> implements + public static final class GroupChangeMemberRights extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupChangeMemberRights) GroupChangeMemberRightsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupChangeMemberRights.newBuilder() to construct. + private GroupChangeMemberRights(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupChangeMemberRights() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupChangeMemberRights(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupChangeMemberRights( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.class, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.Builder.class); + } + public interface MemberRightsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupChangeMemberRights.MemberRights) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return The sendText. */ boolean getSendText(); /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return The sendMedia. */ boolean getSendMedia(); /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return The sendGif. */ boolean getSendGif(); /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return The sendSticker. */ boolean getSendSticker(); /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return The sendLink. */ boolean getSendLink(); /** - * optional bool pin_message = 7; + * bool pin_message = 7; + * @return The pinMessage. */ boolean getPinMessage(); /** - * optional bool add_member = 8; + * bool add_member = 8; + * @return The addMember. */ boolean getAddMember(); /** - * optional bool get_member = 9; + * bool get_member = 9; + * @return The getMember. */ boolean getGetMember(); } /** * Protobuf type {@code proto.GroupChangeMemberRights.MemberRights} */ - public static final class MemberRights extends - com.google.protobuf.GeneratedMessageLite< - MemberRights, MemberRights.Builder> implements + public static final class MemberRights extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupChangeMemberRights.MemberRights) MemberRightsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MemberRights.newBuilder() to construct. + private MemberRights(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MemberRights() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemberRights(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MemberRights( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + sendText_ = input.readBool(); + break; + } + case 24: { + + sendMedia_ = input.readBool(); + break; + } + case 32: { + + sendGif_ = input.readBool(); + break; + } + case 40: { + + sendSticker_ = input.readBool(); + break; + } + case 48: { + + sendLink_ = input.readBool(); + break; + } + case 56: { + + pinMessage_ = input.readBool(); + break; + } + case 64: { + + addMember_ = input.readBool(); + break; + } + case 72: { + + getMember_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_MemberRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_MemberRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.class, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder.class); + } + public static final int SEND_TEXT_FIELD_NUMBER = 1; private boolean sendText_; /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return The sendText. */ + @java.lang.Override public boolean getSendText() { return sendText_; } - /** - * optional bool send_text = 1; - */ - private void setSendText(boolean value) { - - sendText_ = value; - } - /** - * optional bool send_text = 1; - */ - private void clearSendText() { - - sendText_ = false; - } public static final int SEND_MEDIA_FIELD_NUMBER = 3; private boolean sendMedia_; /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return The sendMedia. */ + @java.lang.Override public boolean getSendMedia() { return sendMedia_; } - /** - * optional bool send_media = 3; - */ - private void setSendMedia(boolean value) { - - sendMedia_ = value; - } - /** - * optional bool send_media = 3; - */ - private void clearSendMedia() { - - sendMedia_ = false; - } public static final int SEND_GIF_FIELD_NUMBER = 4; private boolean sendGif_; /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return The sendGif. */ + @java.lang.Override public boolean getSendGif() { return sendGif_; } - /** - * optional bool send_gif = 4; - */ - private void setSendGif(boolean value) { - - sendGif_ = value; - } - /** - * optional bool send_gif = 4; - */ - private void clearSendGif() { - - sendGif_ = false; - } public static final int SEND_STICKER_FIELD_NUMBER = 5; private boolean sendSticker_; /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return The sendSticker. */ + @java.lang.Override public boolean getSendSticker() { return sendSticker_; } - /** - * optional bool send_sticker = 5; - */ - private void setSendSticker(boolean value) { - - sendSticker_ = value; - } - /** - * optional bool send_sticker = 5; - */ - private void clearSendSticker() { - - sendSticker_ = false; - } public static final int SEND_LINK_FIELD_NUMBER = 6; private boolean sendLink_; /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return The sendLink. */ + @java.lang.Override public boolean getSendLink() { return sendLink_; } - /** - * optional bool send_link = 6; - */ - private void setSendLink(boolean value) { - - sendLink_ = value; - } - /** - * optional bool send_link = 6; - */ - private void clearSendLink() { - - sendLink_ = false; - } public static final int PIN_MESSAGE_FIELD_NUMBER = 7; private boolean pinMessage_; /** - * optional bool pin_message = 7; + * bool pin_message = 7; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { return pinMessage_; } - /** - * optional bool pin_message = 7; - */ - private void setPinMessage(boolean value) { - - pinMessage_ = value; - } - /** - * optional bool pin_message = 7; - */ - private void clearPinMessage() { - - pinMessage_ = false; - } public static final int ADD_MEMBER_FIELD_NUMBER = 8; private boolean addMember_; /** - * optional bool add_member = 8; + * bool add_member = 8; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { return addMember_; } - /** - * optional bool add_member = 8; - */ - private void setAddMember(boolean value) { - - addMember_ = value; - } - /** - * optional bool add_member = 8; - */ - private void clearAddMember() { - - addMember_ = false; - } public static final int GET_MEMBER_FIELD_NUMBER = 9; private boolean getMember_; /** - * optional bool get_member = 9; + * bool get_member = 9; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { return getMember_; } - /** - * optional bool get_member = 9; - */ - private void setGetMember(boolean value) { - - getMember_ = value; - } - /** - * optional bool get_member = 9; - */ - private void clearGetMember() { - - getMember_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sendText_ != false) { @@ -314,10 +468,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (getMember_ != false) { output.writeBool(9, getMember_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -353,573 +509,742 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, getMember_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights other = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights) obj; + + if (getSendText() + != other.getSendText()) return false; + if (getSendMedia() + != other.getSendMedia()) return false; + if (getSendGif() + != other.getSendGif()) return false; + if (getSendSticker() + != other.getSendSticker()) return false; + if (getSendLink() + != other.getSendLink()) return false; + if (getPinMessage() + != other.getPinMessage()) return false; + if (getAddMember() + != other.getAddMember()) return false; + if (getGetMember() + != other.getGetMember()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEND_TEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendText()); + hash = (37 * hash) + SEND_MEDIA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendMedia()); + hash = (37 * hash) + SEND_GIF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendGif()); + hash = (37 * hash) + SEND_STICKER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendSticker()); + hash = (37 * hash) + SEND_LINK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSendLink()); + hash = (37 * hash) + PIN_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinMessage()); + hash = (37 * hash) + ADD_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddMember()); + hash = (37 * hash) + GET_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGetMember()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupChangeMemberRights.MemberRights} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupChangeMemberRights.MemberRights) net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_MemberRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_MemberRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.class, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sendText_ = false; + + sendMedia_ = false; + + sendGif_ = false; + + sendSticker_ = false; + + sendLink_ = false; + + pinMessage_ = false; + + addMember_ = false; + + getMember_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_MemberRights_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights build() { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights buildPartial() { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights result = new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights(this); + result.sendText_ = sendText_; + result.sendMedia_ = sendMedia_; + result.sendGif_ = sendGif_; + result.sendSticker_ = sendSticker_; + result.sendLink_ = sendLink_; + result.pinMessage_ = pinMessage_; + result.addMember_ = addMember_; + result.getMember_ = getMember_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights) { + return mergeFrom((net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights other) { + if (other == net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance()) return this; + if (other.getSendText() != false) { + setSendText(other.getSendText()); + } + if (other.getSendMedia() != false) { + setSendMedia(other.getSendMedia()); + } + if (other.getSendGif() != false) { + setSendGif(other.getSendGif()); + } + if (other.getSendSticker() != false) { + setSendSticker(other.getSendSticker()); + } + if (other.getSendLink() != false) { + setSendLink(other.getSendLink()); + } + if (other.getPinMessage() != false) { + setPinMessage(other.getPinMessage()); + } + if (other.getAddMember() != false) { + setAddMember(other.getAddMember()); + } + if (other.getGetMember() != false) { + setGetMember(other.getGetMember()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private boolean sendText_ ; /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return The sendText. */ + @java.lang.Override public boolean getSendText() { - return instance.getSendText(); + return sendText_; } /** - * optional bool send_text = 1; + * bool send_text = 1; + * @param value The sendText to set. + * @return This builder for chaining. */ public Builder setSendText(boolean value) { - copyOnWrite(); - instance.setSendText(value); + + sendText_ = value; + onChanged(); return this; } /** - * optional bool send_text = 1; + * bool send_text = 1; + * @return This builder for chaining. */ public Builder clearSendText() { - copyOnWrite(); - instance.clearSendText(); + + sendText_ = false; + onChanged(); return this; } + private boolean sendMedia_ ; /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return The sendMedia. */ + @java.lang.Override public boolean getSendMedia() { - return instance.getSendMedia(); + return sendMedia_; } /** - * optional bool send_media = 3; + * bool send_media = 3; + * @param value The sendMedia to set. + * @return This builder for chaining. */ public Builder setSendMedia(boolean value) { - copyOnWrite(); - instance.setSendMedia(value); + + sendMedia_ = value; + onChanged(); return this; } /** - * optional bool send_media = 3; + * bool send_media = 3; + * @return This builder for chaining. */ public Builder clearSendMedia() { - copyOnWrite(); - instance.clearSendMedia(); + + sendMedia_ = false; + onChanged(); return this; } + private boolean sendGif_ ; /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return The sendGif. */ + @java.lang.Override public boolean getSendGif() { - return instance.getSendGif(); + return sendGif_; } /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @param value The sendGif to set. + * @return This builder for chaining. */ public Builder setSendGif(boolean value) { - copyOnWrite(); - instance.setSendGif(value); + + sendGif_ = value; + onChanged(); return this; } /** - * optional bool send_gif = 4; + * bool send_gif = 4; + * @return This builder for chaining. */ public Builder clearSendGif() { - copyOnWrite(); - instance.clearSendGif(); + + sendGif_ = false; + onChanged(); return this; } + private boolean sendSticker_ ; /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return The sendSticker. */ + @java.lang.Override public boolean getSendSticker() { - return instance.getSendSticker(); + return sendSticker_; } /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @param value The sendSticker to set. + * @return This builder for chaining. */ public Builder setSendSticker(boolean value) { - copyOnWrite(); - instance.setSendSticker(value); + + sendSticker_ = value; + onChanged(); return this; } /** - * optional bool send_sticker = 5; + * bool send_sticker = 5; + * @return This builder for chaining. */ public Builder clearSendSticker() { - copyOnWrite(); - instance.clearSendSticker(); + + sendSticker_ = false; + onChanged(); return this; } + private boolean sendLink_ ; /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return The sendLink. */ + @java.lang.Override public boolean getSendLink() { - return instance.getSendLink(); + return sendLink_; } /** - * optional bool send_link = 6; + * bool send_link = 6; + * @param value The sendLink to set. + * @return This builder for chaining. */ public Builder setSendLink(boolean value) { - copyOnWrite(); - instance.setSendLink(value); + + sendLink_ = value; + onChanged(); return this; } /** - * optional bool send_link = 6; + * bool send_link = 6; + * @return This builder for chaining. */ public Builder clearSendLink() { - copyOnWrite(); - instance.clearSendLink(); + + sendLink_ = false; + onChanged(); return this; } + private boolean pinMessage_ ; /** - * optional bool pin_message = 7; + * bool pin_message = 7; + * @return The pinMessage. */ + @java.lang.Override public boolean getPinMessage() { - return instance.getPinMessage(); + return pinMessage_; } /** - * optional bool pin_message = 7; + * bool pin_message = 7; + * @param value The pinMessage to set. + * @return This builder for chaining. */ public Builder setPinMessage(boolean value) { - copyOnWrite(); - instance.setPinMessage(value); + + pinMessage_ = value; + onChanged(); return this; } /** - * optional bool pin_message = 7; + * bool pin_message = 7; + * @return This builder for chaining. */ public Builder clearPinMessage() { - copyOnWrite(); - instance.clearPinMessage(); + + pinMessage_ = false; + onChanged(); return this; } + private boolean addMember_ ; /** - * optional bool add_member = 8; + * bool add_member = 8; + * @return The addMember. */ + @java.lang.Override public boolean getAddMember() { - return instance.getAddMember(); + return addMember_; } /** - * optional bool add_member = 8; + * bool add_member = 8; + * @param value The addMember to set. + * @return This builder for chaining. */ public Builder setAddMember(boolean value) { - copyOnWrite(); - instance.setAddMember(value); + + addMember_ = value; + onChanged(); return this; } /** - * optional bool add_member = 8; + * bool add_member = 8; + * @return This builder for chaining. */ public Builder clearAddMember() { - copyOnWrite(); - instance.clearAddMember(); + + addMember_ = false; + onChanged(); return this; } + private boolean getMember_ ; /** - * optional bool get_member = 9; + * bool get_member = 9; + * @return The getMember. */ + @java.lang.Override public boolean getGetMember() { - return instance.getGetMember(); + return getMember_; } /** - * optional bool get_member = 9; + * bool get_member = 9; + * @param value The getMember to set. + * @return This builder for chaining. */ public Builder setGetMember(boolean value) { - copyOnWrite(); - instance.setGetMember(value); + + getMember_ = value; + onChanged(); return this; } /** - * optional bool get_member = 9; + * bool get_member = 9; + * @return This builder for chaining. */ public Builder clearGetMember() { - copyOnWrite(); - instance.clearGetMember(); + + getMember_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupChangeMemberRights.MemberRights) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights other = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights) arg1; - sendText_ = visitor.visitBoolean(sendText_ != false, sendText_, - other.sendText_ != false, other.sendText_); - sendMedia_ = visitor.visitBoolean(sendMedia_ != false, sendMedia_, - other.sendMedia_ != false, other.sendMedia_); - sendGif_ = visitor.visitBoolean(sendGif_ != false, sendGif_, - other.sendGif_ != false, other.sendGif_); - sendSticker_ = visitor.visitBoolean(sendSticker_ != false, sendSticker_, - other.sendSticker_ != false, other.sendSticker_); - sendLink_ = visitor.visitBoolean(sendLink_ != false, sendLink_, - other.sendLink_ != false, other.sendLink_); - pinMessage_ = visitor.visitBoolean(pinMessage_ != false, pinMessage_, - other.pinMessage_ != false, other.pinMessage_); - addMember_ = visitor.visitBoolean(addMember_ != false, addMember_, - other.addMember_ != false, other.addMember_); - getMember_ = visitor.visitBoolean(getMember_ != false, getMember_, - other.getMember_ != false, other.getMember_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - sendText_ = input.readBool(); - break; - } - case 24: { - - sendMedia_ = input.readBool(); - break; - } - case 32: { - - sendGif_ = input.readBool(); - break; - } - case 40: { - - sendSticker_ = input.readBool(); - break; - } - case 48: { - - sendLink_ = input.readBool(); - break; - } - case 56: { - - pinMessage_ = input.readBool(); - break; - } - case 64: { - - addMember_ = input.readBool(); - break; - } - case 72: { - - getMember_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupChangeMemberRights.MemberRights) + } + // @@protoc_insertion_point(class_scope:proto.GroupChangeMemberRights.MemberRights) private static final net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MemberRights(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights(); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemberRights parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemberRights(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights permission_; /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission() { return permission_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ - private void setPermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void setPermission( - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void mergePermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -934,10 +1259,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -957,553 +1284,933 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights other = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupChangeMemberRights} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupChangeMemberRights) net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.class, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + userId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRights_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights build() { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights buildPartial() { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights result = new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.userId_ = userId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights) { + return mergeFrom((net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights other) { + if (other == net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> permissionBuilder_; /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.GroupChangeMemberRights) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights other = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - roomId_ = input.readUInt64(); - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; } + return permissionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupChangeMemberRights) + } + // @@protoc_insertion_point(class_scope:proto.GroupChangeMemberRights) private static final net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupChangeMemberRights(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights(); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupChangeMemberRights parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupChangeMemberRights(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupChangeMemberRightsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupChangeMemberRightsResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission(); + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.GroupChangeMemberRightsResponse} */ - public static final class GroupChangeMemberRightsResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupChangeMemberRightsResponse, GroupChangeMemberRightsResponse.Builder> implements + public static final class GroupChangeMemberRightsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupChangeMemberRightsResponse) GroupChangeMemberRightsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupChangeMemberRightsResponse.newBuilder() to construct. + private GroupChangeMemberRightsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupChangeMemberRightsResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupChangeMemberRightsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupChangeMemberRightsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRightsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRightsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.class, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights permission_; /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission() { return permission_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ - private void setPermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void setPermission( - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void mergePermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1518,10 +2225,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1541,363 +2250,755 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse other = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupChangeMemberRightsResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupChangeMemberRightsResponse) net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRightsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRightsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.class, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + userId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupChangeMemberRights.internal_static_proto_GroupChangeMemberRightsResponse_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse build() { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse buildPartial() { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse result = new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.userId_ = userId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse other) { + if (other == net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> permissionBuilder_; /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.GroupChangeMemberRightsResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse other = (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - roomId_ = input.readUInt64(); - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; } + return permissionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupChangeMemberRightsResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupChangeMemberRightsResponse) private static final net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupChangeMemberRightsResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse(); } public static net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupChangeMemberRightsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupChangeMemberRightsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRightsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupChangeMemberRights_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupChangeMemberRights_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupChangeMemberRights_MemberRights_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupChangeMemberRights_MemberRights_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupChangeMemberRightsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupChangeMemberRightsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\035GroupChangeMemberRights.proto\022\005proto\032\r" + + "Request.proto\032\016Response.proto\"\315\002\n\027GroupC" + + "hangeMemberRights\022\037\n\007request\030\001 \001(\0132\016.pro" + + "to.Request\022\017\n\007room_id\030\002 \001(\004\022\017\n\007user_id\030\003" + + " \001(\004\022?\n\npermission\030\004 \001(\0132+.proto.GroupCh" + + "angeMemberRights.MemberRights\032\255\001\n\014Member" + + "Rights\022\021\n\tsend_text\030\001 \001(\010\022\022\n\nsend_media\030" + + "\003 \001(\010\022\020\n\010send_gif\030\004 \001(\010\022\024\n\014send_sticker\030" + + "\005 \001(\010\022\021\n\tsend_link\030\006 \001(\010\022\023\n\013pin_message\030" + + "\007 \001(\010\022\022\n\nadd_member\030\010 \001(\010\022\022\n\nget_member\030" + + "\t \001(\010\"\247\001\n\037GroupChangeMemberRightsRespons" + + "e\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007" + + "room_id\030\002 \001(\004\022\017\n\007user_id\030\003 \001(\004\022?\n\npermis" + + "sion\030\004 \001(\0132+.proto.GroupChangeMemberRigh" + + "ts.MemberRightsB.\n\016net.iGap.protoB\034Proto" + + "GroupChangeMemberRightsb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupChangeMemberRights_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupChangeMemberRights_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupChangeMemberRights_descriptor, + new java.lang.String[] { "Request", "RoomId", "UserId", "Permission", }); + internal_static_proto_GroupChangeMemberRights_MemberRights_descriptor = + internal_static_proto_GroupChangeMemberRights_descriptor.getNestedTypes().get(0); + internal_static_proto_GroupChangeMemberRights_MemberRights_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupChangeMemberRights_MemberRights_descriptor, + new java.lang.String[] { "SendText", "SendMedia", "SendGif", "SendSticker", "SendLink", "PinMessage", "AddMember", "GetMember", }); + internal_static_proto_GroupChangeMemberRightsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupChangeMemberRightsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupChangeMemberRightsResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "UserId", "Permission", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupCheckUsername.java b/src/main/java/net/iGap/proto/ProtoGroupCheckUsername.java index e15e99a..6af8433 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupCheckUsername.java +++ b/src/main/java/net/iGap/proto/ProtoGroupCheckUsername.java @@ -8,181 +8,255 @@ private ProtoGroupCheckUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupCheckUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupCheckUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupCheckUsername} */ - public static final class GroupCheckUsername extends - com.google.protobuf.GeneratedMessageLite< - GroupCheckUsername, GroupCheckUsername.Builder> implements + public static final class GroupCheckUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupCheckUsername) GroupCheckUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupCheckUsername.newBuilder() to construct. + private GroupCheckUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupCheckUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupCheckUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupCheckUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.class, net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,365 +264,730 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername other = (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupCheckUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupCheckUsername) net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.class, net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername build() { + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername buildPartial() { + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername result = new net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername) { + return mergeFrom((net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername other) { + if (other == net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupCheckUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername other = (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupCheckUsername) + } + // @@protoc_insertion_point(class_scope:proto.GroupCheckUsername) private static final net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupCheckUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername(); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupCheckUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupCheckUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupCheckUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupCheckUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status getStatus(); } /** * Protobuf type {@code proto.GroupCheckUsernameResponse} */ - public static final class GroupCheckUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupCheckUsernameResponse, GroupCheckUsernameResponse.Builder> implements + public static final class GroupCheckUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupCheckUsernameResponse) GroupCheckUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupCheckUsernameResponse.newBuilder() to construct. + private GroupCheckUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupCheckUsernameResponse() { + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupCheckUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupCheckUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.class, net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Builder.class); + } + /** * Protobuf enum {@code proto.GroupCheckUsernameResponse.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * INVALID = 0; */ @@ -587,10 +1026,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -598,6 +1043,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return INVALID; @@ -620,6 +1069,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -632,94 +1112,60 @@ private Status(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status getStatus() { - net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status result = net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status result = net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status.UNRECOGNIZED : result; } - /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -728,10 +1174,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status.INVALID.getNumber()) { output.writeEnum(2, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -743,288 +1191,576 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse other = (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (status_ != other.status_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupCheckUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupCheckUsernameResponse) net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.class, net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupCheckUsername.internal_static_proto_GroupCheckUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse build() { + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse buildPartial() { + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse result = new net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse other) { + if (other == net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ = 0; /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status result = net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status.UNRECOGNIZED : result; } /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupCheckUsernameResponse.Status status = 2; + * .proto.GroupCheckUsernameResponse.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupCheckUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse other = (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupCheckUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupCheckUsernameResponse) private static final net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupCheckUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse(); } public static net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupCheckUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupCheckUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCheckUsername.GroupCheckUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupCheckUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupCheckUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupCheckUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupCheckUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030GroupCheckUsername.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"X\n\022GroupCheckUs" + + "ername\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\020\n\010username\030\002 \001(\t\022\017\n\007room_id\030\003 \001(\004\"\310\001\n\032G" + + "roupCheckUsernameResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\0228\n\006status\030\002 \001(\0162(.p" + + "roto.GroupCheckUsernameResponse.Status\"M" + + "\n\006Status\022\013\n\007INVALID\020\000\022\t\n\005TAKEN\020\001\022\r\n\tAVAI" + + "LABLE\020\002\022\034\n\030OCCUPYING_LIMIT_EXCEEDED\020\003B)\n" + + "\016net.iGap.protoB\027ProtoGroupCheckUsername" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupCheckUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupCheckUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupCheckUsername_descriptor, + new java.lang.String[] { "Request", "Username", "RoomId", }); + internal_static_proto_GroupCheckUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupCheckUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupCheckUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Status", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java b/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java index 4e590e7..d4d1411 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java @@ -8,165 +8,225 @@ private ProtoGroupClearMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupClearMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupClearMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ long getClearMessageId(); /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ long getClearDocumentId(); } /** * Protobuf type {@code proto.GroupClearMessage} */ - public static final class GroupClearMessage extends - com.google.protobuf.GeneratedMessageLite< - GroupClearMessage, GroupClearMessage.Builder> implements + public static final class GroupClearMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupClearMessage) GroupClearMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupClearMessage.newBuilder() to construct. + private GroupClearMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupClearMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupClearMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupClearMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.class, net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; private long clearMessageId_; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { return clearMessageId_; } - /** - * optional uint64 clear_message_id = 3; - */ - private void setClearMessageId(long value) { - - clearMessageId_ = value; - } - /** - * optional uint64 clear_message_id = 3; - */ - private void clearClearMessageId() { - - clearMessageId_ = 0L; - } public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; private long clearDocumentId_; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { return clearDocumentId_; } - /** - * optional uint64 clear_document_id = 4; - */ - private void setClearDocumentId(long value) { - - clearDocumentId_ = value; - } - /** - * optional uint64 clear_document_id = 4; - */ - private void clearClearDocumentId() { - - clearDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (clearDocumentId_ != 0L) { output.writeUInt64(4, clearDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,491 +266,801 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, clearDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage other = (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getClearMessageId() + != other.getClearMessageId()) return false; + if (getClearDocumentId() + != other.getClearDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupClearMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupClearMessage) net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.class, net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + clearMessageId_ = 0L; + clearDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage build() { + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage buildPartial() { + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage result = new net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage) { + return mergeFrom((net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage other) { + if (other == net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long clearMessageId_ ; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { - return instance.getClearMessageId(); + return clearMessageId_; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @param value The clearMessageId to set. + * @return This builder for chaining. */ public Builder setClearMessageId(long value) { - copyOnWrite(); - instance.setClearMessageId(value); + + clearMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return This builder for chaining. */ public Builder clearClearMessageId() { - copyOnWrite(); - instance.clearClearMessageId(); + + clearMessageId_ = 0L; + onChanged(); return this; } + private long clearDocumentId_ ; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { - return instance.getClearDocumentId(); + return clearDocumentId_; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @param value The clearDocumentId to set. + * @return This builder for chaining. */ public Builder setClearDocumentId(long value) { - copyOnWrite(); - instance.setClearDocumentId(value); + + clearDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return This builder for chaining. */ public Builder clearClearDocumentId() { - copyOnWrite(); - instance.clearClearDocumentId(); + + clearDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupClearMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage other = (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - clearMessageId_ = visitor.visitLong(clearMessageId_ != 0L, clearMessageId_, - other.clearMessageId_ != 0L, other.clearMessageId_); - clearDocumentId_ = visitor.visitLong(clearDocumentId_ != 0L, clearDocumentId_, - other.clearDocumentId_ != 0L, other.clearDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - clearMessageId_ = input.readUInt64(); - break; - } - case 32: { - - clearDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupClearMessage) + } + // @@protoc_insertion_point(class_scope:proto.GroupClearMessage) private static final net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupClearMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage(); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupClearMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupClearMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupClearMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupClearMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ long getClearMessageId(); /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ long getClearDocumentId(); } /** * Protobuf type {@code proto.GroupClearMessageResponse} */ - public static final class GroupClearMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupClearMessageResponse, GroupClearMessageResponse.Builder> implements + public static final class GroupClearMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupClearMessageResponse) GroupClearMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupClearMessageResponse.newBuilder() to construct. + private GroupClearMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupClearMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupClearMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupClearMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.class, net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; private long clearMessageId_; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { return clearMessageId_; } - /** - * optional uint64 clear_message_id = 3; - */ - private void setClearMessageId(long value) { - - clearMessageId_ = value; - } - /** - * optional uint64 clear_message_id = 3; - */ - private void clearClearMessageId() { - - clearMessageId_ = 0L; - } public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; private long clearDocumentId_; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { return clearDocumentId_; } - /** - * optional uint64 clear_document_id = 4; - */ - private void setClearDocumentId(long value) { - - clearDocumentId_ = value; - } - /** - * optional uint64 clear_document_id = 4; - */ - private void clearClearDocumentId() { - - clearDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -703,10 +1075,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (clearDocumentId_ != 0L) { output.writeUInt64(4, clearDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -726,334 +1100,638 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, clearDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse other = (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getClearMessageId() + != other.getClearMessageId()) return false; + if (getClearDocumentId() + != other.getClearDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupClearMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupClearMessageResponse) net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.class, net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + clearMessageId_ = 0L; + clearDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupClearMessage.internal_static_proto_GroupClearMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse build() { + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse buildPartial() { + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse result = new net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse other) { + if (other == net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long clearMessageId_ ; /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return The clearMessageId. */ + @java.lang.Override public long getClearMessageId() { - return instance.getClearMessageId(); + return clearMessageId_; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @param value The clearMessageId to set. + * @return This builder for chaining. */ public Builder setClearMessageId(long value) { - copyOnWrite(); - instance.setClearMessageId(value); + + clearMessageId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_message_id = 3; + * uint64 clear_message_id = 3; + * @return This builder for chaining. */ public Builder clearClearMessageId() { - copyOnWrite(); - instance.clearClearMessageId(); + + clearMessageId_ = 0L; + onChanged(); return this; } + private long clearDocumentId_ ; /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return The clearDocumentId. */ + @java.lang.Override public long getClearDocumentId() { - return instance.getClearDocumentId(); + return clearDocumentId_; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @param value The clearDocumentId to set. + * @return This builder for chaining. */ public Builder setClearDocumentId(long value) { - copyOnWrite(); - instance.setClearDocumentId(value); + + clearDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_document_id = 4; + * uint64 clear_document_id = 4; + * @return This builder for chaining. */ public Builder clearClearDocumentId() { - copyOnWrite(); - instance.clearClearDocumentId(); + + clearDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupClearMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse other = (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - clearMessageId_ = visitor.visitLong(clearMessageId_ != 0L, clearMessageId_, - other.clearMessageId_ != 0L, other.clearMessageId_); - clearDocumentId_ = visitor.visitLong(clearDocumentId_ != 0L, clearDocumentId_, - other.clearDocumentId_ != 0L, other.clearDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - clearMessageId_ = input.readUInt64(); - break; - } - case 32: { - - clearDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupClearMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupClearMessageResponse) private static final net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupClearMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse(); } public static net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupClearMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupClearMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupClearMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupClearMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupClearMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupClearMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027GroupClearMessage.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"z\n\021GroupClearMes" + + "sage\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007room_id\030\002 \001(\004\022\030\n\020clear_message_id\030\003 \001(\004" + + "\022\031\n\021clear_document_id\030\004 \001(\004\"\204\001\n\031GroupCle" + + "arMessageResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\017\n\007room_id\030\002 \001(\004\022\030\n\020clear_m" + + "essage_id\030\003 \001(\004\022\031\n\021clear_document_id\030\004 \001" + + "(\004B(\n\016net.iGap.protoB\026ProtoGroupClearMes" + + "sageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupClearMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupClearMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupClearMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "ClearMessageId", "ClearDocumentId", }); + internal_static_proto_GroupClearMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupClearMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupClearMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "ClearMessageId", "ClearDocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupCreate.java b/src/main/java/net/iGap/proto/ProtoGroupCreate.java index 837207b..7548b99 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupCreate.java +++ b/src/main/java/net/iGap/proto/ProtoGroupCreate.java @@ -8,35 +8,51 @@ private ProtoGroupCreate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupCreateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupCreate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string name = 2; + * string name = 2; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 3; + * string description = 3; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 3; + * string description = 3; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -44,174 +60,238 @@ public interface GroupCreateOrBuilder extends /** * Protobuf type {@code proto.GroupCreate} */ - public static final class GroupCreate extends - com.google.protobuf.GeneratedMessageLite< - GroupCreate, GroupCreate.Builder> implements + public static final class GroupCreate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupCreate) GroupCreateOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupCreate.newBuilder() to construct. + private GroupCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupCreate() { name_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupCreate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCreate.GroupCreate.class, net.iGap.proto.ProtoGroupCreate.GroupCreate.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int NAME_FIELD_NUMBER = 2; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 2; + * string name = 2; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 2; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 2; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 2; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 3; + * string description = 3; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 3; + * string description = 3; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 3; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 3; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 3; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!name_.isEmpty()) { - output.writeString(2, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (!description_.isEmpty()) { - output.writeString(3, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -219,370 +299,675 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupCreate.GroupCreate)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupCreate.GroupCreate other = (net.iGap.proto.ProtoGroupCreate.GroupCreate) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupCreate.GroupCreate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupCreate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupCreate.GroupCreate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupCreate) net.iGap.proto.ProtoGroupCreate.GroupCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCreate.GroupCreate.class, net.iGap.proto.ProtoGroupCreate.GroupCreate.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupCreate.GroupCreate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + name_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreate getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupCreate.GroupCreate.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreate build() { + net.iGap.proto.ProtoGroupCreate.GroupCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreate buildPartial() { + net.iGap.proto.ProtoGroupCreate.GroupCreate result = new net.iGap.proto.ProtoGroupCreate.GroupCreate(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupCreate.GroupCreate) { + return mergeFrom((net.iGap.proto.ProtoGroupCreate.GroupCreate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupCreate.GroupCreate other) { + if (other == net.iGap.proto.ProtoGroupCreate.GroupCreate.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupCreate.GroupCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupCreate.GroupCreate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object name_ = ""; /** - * optional string name = 2; + * string name = 2; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 2; + * string name = 2; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 2; + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 2; + * string name = 2; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 2; + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 3; + * string description = 3; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 3; + * string description = 3; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 3; + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 3; + * string description = 3; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 3; + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupCreate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupCreate.GroupCreate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupCreate.GroupCreate other = (net.iGap.proto.ProtoGroupCreate.GroupCreate) arg1; - request_ = visitor.visitMessage(request_, other.request_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupCreate.GroupCreate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupCreate) + } + // @@protoc_insertion_point(class_scope:proto.GroupCreate) private static final net.iGap.proto.ProtoGroupCreate.GroupCreate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupCreate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupCreate.GroupCreate(); } public static net.iGap.proto.ProtoGroupCreate.GroupCreate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupCreate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupCreateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupCreateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ java.lang.String getInviteLink(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ com.google.protobuf.ByteString getInviteLinkBytes(); @@ -590,135 +975,192 @@ public interface GroupCreateResponseOrBuilder extends /** * Protobuf type {@code proto.GroupCreateResponse} */ - public static final class GroupCreateResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupCreateResponse, GroupCreateResponse.Builder> implements + public static final class GroupCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupCreateResponse) GroupCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupCreateResponse.newBuilder() to construct. + private GroupCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupCreateResponse() { inviteLink_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupCreateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteLink_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.class, net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int INVITE_LINK_FIELD_NUMBER = 3; - private java.lang.String inviteLink_; + private volatile java.lang.Object inviteLink_; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ + @java.lang.Override public java.lang.String getInviteLink() { - return inviteLink_; + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteLink_); - } - /** - * optional string invite_link = 3; - */ - private void setInviteLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteLink_ = value; - } - /** - * optional string invite_link = 3; - */ - private void clearInviteLink() { - - inviteLink_ = getDefaultInstance().getInviteLink(); + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_link = 3; - */ - private void setInviteLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteLink_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -727,13 +1169,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!inviteLink_.isEmpty()) { - output.writeString(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inviteLink_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -745,326 +1189,641 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!inviteLink_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inviteLink_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupCreate.GroupCreateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupCreate.GroupCreateResponse other = (net.iGap.proto.ProtoGroupCreate.GroupCreateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getInviteLink() + .equals(other.getInviteLink())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + INVITE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getInviteLink().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupCreate.GroupCreateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupCreateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupCreate.GroupCreateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupCreateResponse) net.iGap.proto.ProtoGroupCreate.GroupCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.class, net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + inviteLink_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupCreate.internal_static_proto_GroupCreateResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreateResponse build() { + net.iGap.proto.ProtoGroupCreate.GroupCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreateResponse buildPartial() { + net.iGap.proto.ProtoGroupCreate.GroupCreateResponse result = new net.iGap.proto.ProtoGroupCreate.GroupCreateResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.inviteLink_ = inviteLink_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupCreate.GroupCreateResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupCreate.GroupCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupCreate.GroupCreateResponse other) { + if (other == net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getInviteLink().isEmpty()) { + inviteLink_ = other.inviteLink_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupCreate.GroupCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupCreate.GroupCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object inviteLink_ = ""; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ public java.lang.String getInviteLink() { - return instance.getInviteLink(); + java.lang.Object ref = inviteLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ public com.google.protobuf.ByteString getInviteLinkBytes() { - return instance.getInviteLinkBytes(); + java.lang.Object ref = inviteLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLink( java.lang.String value) { - copyOnWrite(); - instance.setInviteLink(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteLink_ = value; + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return This builder for chaining. */ public Builder clearInviteLink() { - copyOnWrite(); - instance.clearInviteLink(); + + inviteLink_ = getDefaultInstance().getInviteLink(); + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The bytes for inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteLink_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupCreateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupCreate.GroupCreateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupCreate.GroupCreateResponse other = (net.iGap.proto.ProtoGroupCreate.GroupCreateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - inviteLink_ = visitor.visitString(!inviteLink_.isEmpty(), inviteLink_, - !other.inviteLink_.isEmpty(), other.inviteLink_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - inviteLink_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupCreate.GroupCreateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupCreateResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupCreateResponse) private static final net.iGap.proto.ProtoGroupCreate.GroupCreateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupCreateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupCreate.GroupCreateResponse(); } public static net.iGap.proto.ProtoGroupCreate.GroupCreateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupCreateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupCreate.GroupCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupCreate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupCreateResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021GroupCreate.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\"Q\n\013GroupCreate\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\014\n\004name\030\002 \001(\t\022" + + "\023\n\013description\030\003 \001(\t\"^\n\023GroupCreateRespo" + + "nse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017" + + "\n\007room_id\030\002 \001(\004\022\023\n\013invite_link\030\003 \001(\tB\"\n\016" + + "net.iGap.protoB\020ProtoGroupCreateb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupCreate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupCreate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupCreate_descriptor, + new java.lang.String[] { "Request", "Name", "Description", }); + internal_static_proto_GroupCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupCreateResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "InviteLink", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupDelete.java b/src/main/java/net/iGap/proto/ProtoGroupDelete.java index 8d62fe9..28aa708 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupDelete.java +++ b/src/main/java/net/iGap/proto/ProtoGroupDelete.java @@ -8,109 +8,181 @@ private ProtoGroupDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupDelete} */ - public static final class GroupDelete extends - com.google.protobuf.GeneratedMessageLite< - GroupDelete, GroupDelete.Builder> implements + public static final class GroupDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupDelete) GroupDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupDelete.newBuilder() to construct. + private GroupDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupDelete() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDelete.GroupDelete.class, net.iGap.proto.ProtoGroupDelete.GroupDelete.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupDelete.GroupDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupDelete.GroupDelete other = (net.iGap.proto.ProtoGroupDelete.GroupDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupDelete.GroupDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupDelete.GroupDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupDelete) net.iGap.proto.ProtoGroupDelete.GroupDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDelete.GroupDelete.class, net.iGap.proto.ProtoGroupDelete.GroupDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupDelete.GroupDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDelete_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupDelete.GroupDelete.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDelete build() { + net.iGap.proto.ProtoGroupDelete.GroupDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDelete buildPartial() { + net.iGap.proto.ProtoGroupDelete.GroupDelete result = new net.iGap.proto.ProtoGroupDelete.GroupDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupDelete.GroupDelete) { + return mergeFrom((net.iGap.proto.ProtoGroupDelete.GroupDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupDelete.GroupDelete other) { + if (other == net.iGap.proto.ProtoGroupDelete.GroupDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupDelete.GroupDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupDelete.GroupDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupDelete.GroupDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupDelete.GroupDelete other = (net.iGap.proto.ProtoGroupDelete.GroupDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupDelete.GroupDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupDelete) + } + // @@protoc_insertion_point(class_scope:proto.GroupDelete) private static final net.iGap.proto.ProtoGroupDelete.GroupDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupDelete.GroupDelete(); } public static net.iGap.proto.ProtoGroupDelete.GroupDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupDeleteResponse} */ - public static final class GroupDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupDeleteResponse, GroupDeleteResponse.Builder> implements + public static final class GroupDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupDeleteResponse) GroupDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupDeleteResponse.newBuilder() to construct. + private GroupDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.class, net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse other = (net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupDeleteResponse) net.iGap.proto.ProtoGroupDelete.GroupDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.class, net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupDelete.internal_static_proto_GroupDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse build() { + net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse buildPartial() { + net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse result = new net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse other) { + if (other == net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse other = (net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupDeleteResponse) private static final net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse(); } public static net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDelete.GroupDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021GroupDelete.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\"?\n\013GroupDelete\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001" + + "(\004\"I\n\023GroupDeleteResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004B\"\n" + + "\016net.iGap.protoB\020ProtoGroupDeleteb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupDelete_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_GroupDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupDeleteResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupDeleteMessage.java b/src/main/java/net/iGap/proto/ProtoGroupDeleteMessage.java index 4c07c00..f7a14e2 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupDeleteMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupDeleteMessage.java @@ -8,165 +8,225 @@ private ProtoGroupDeleteMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupDeleteMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupDeleteMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.GroupDeleteMessage} */ - public static final class GroupDeleteMessage extends - com.google.protobuf.GeneratedMessageLite< - GroupDeleteMessage, GroupDeleteMessage.Builder> implements + public static final class GroupDeleteMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupDeleteMessage) GroupDeleteMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupDeleteMessage.newBuilder() to construct. + private GroupDeleteMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupDeleteMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupDeleteMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupDeleteMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.class, net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 4; private long documentId_; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 4; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 4; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(4, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,519 +266,823 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage other = (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupDeleteMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupDeleteMessage) net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.class, net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage build() { + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage buildPartial() { + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage result = new net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage) { + return mergeFrom((net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage other) { + if (other == net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupDeleteMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage other = (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupDeleteMessage) + } + // @@protoc_insertion_point(class_scope:proto.GroupDeleteMessage) private static final net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupDeleteMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage(); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupDeleteMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupDeleteMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupDeleteMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupDeleteMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ long getDeleteVersion(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.GroupDeleteMessageResponse} */ - public static final class GroupDeleteMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupDeleteMessageResponse, GroupDeleteMessageResponse.Builder> implements + public static final class GroupDeleteMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupDeleteMessageResponse) GroupDeleteMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupDeleteMessageResponse.newBuilder() to construct. + private GroupDeleteMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupDeleteMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupDeleteMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupDeleteMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + deleteVersion_ = input.readUInt64(); + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.class, net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DELETE_VERSION_FIELD_NUMBER = 4; private long deleteVersion_; /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { return deleteVersion_; } - /** - * optional uint64 delete_version = 4; - */ - private void setDeleteVersion(long value) { - - deleteVersion_ = value; - } - /** - * optional uint64 delete_version = 4; - */ - private void clearDeleteVersion() { - - deleteVersion_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -734,10 +1100,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -761,364 +1129,680 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse other = (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDeleteVersion() + != other.getDeleteVersion()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DELETE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeleteVersion()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupDeleteMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupDeleteMessageResponse) net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.class, net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + deleteVersion_ = 0L; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupDeleteMessage.internal_static_proto_GroupDeleteMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse build() { + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse buildPartial() { + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse result = new net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.deleteVersion_ = deleteVersion_; + result.documentId_ = documentId_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse other) { + if (other == net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDeleteVersion() != 0L) { + setDeleteVersion(other.getDeleteVersion()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long deleteVersion_ ; /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return The deleteVersion. */ + @java.lang.Override public long getDeleteVersion() { - return instance.getDeleteVersion(); + return deleteVersion_; } /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @param value The deleteVersion to set. + * @return This builder for chaining. */ public Builder setDeleteVersion(long value) { - copyOnWrite(); - instance.setDeleteVersion(value); + + deleteVersion_ = value; + onChanged(); return this; } /** - * optional uint64 delete_version = 4; + * uint64 delete_version = 4; + * @return This builder for chaining. */ public Builder clearDeleteVersion() { - copyOnWrite(); - instance.clearDeleteVersion(); + + deleteVersion_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupDeleteMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse other = (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - deleteVersion_ = visitor.visitLong(deleteVersion_ != 0L, deleteVersion_, - other.deleteVersion_ != 0L, other.deleteVersion_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - deleteVersion_ = input.readUInt64(); - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupDeleteMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupDeleteMessageResponse) private static final net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupDeleteMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse(); } public static net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupDeleteMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupDeleteMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupDeleteMessage.GroupDeleteMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupDeleteMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupDeleteMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupDeleteMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupDeleteMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030GroupDeleteMessage.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"o\n\022GroupDeleteM" + + "essage\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\023\n\013" + + "document_id\030\004 \001(\004\"\221\001\n\032GroupDeleteMessage" + + "Response\022!\n\010response\030\001 \001(\0132\017.proto.Respo" + + "nse\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004" + + "\022\026\n\016delete_version\030\004 \001(\004\022\023\n\013document_id\030" + + "\005 \001(\004B)\n\016net.iGap.protoB\027ProtoGroupDelet" + + "eMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupDeleteMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupDeleteMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupDeleteMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_GroupDeleteMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupDeleteMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupDeleteMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "DeleteVersion", "DocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupEdit.java b/src/main/java/net/iGap/proto/ProtoGroupEdit.java index cb1b698..15d09d1 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupEdit.java +++ b/src/main/java/net/iGap/proto/ProtoGroupEdit.java @@ -8,40 +8,57 @@ private ProtoGroupEdit() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupEditOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupEdit) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string name = 3; + * string name = 3; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 4; + * string description = 4; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -49,182 +66,237 @@ public interface GroupEditOrBuilder extends /** * Protobuf type {@code proto.GroupEdit} */ - public static final class GroupEdit extends - com.google.protobuf.GeneratedMessageLite< - GroupEdit, GroupEdit.Builder> implements + public static final class GroupEdit extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupEdit) GroupEditOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupEdit.newBuilder() to construct. + private GroupEdit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupEdit() { name_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupEdit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupEdit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEdit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEdit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEdit.GroupEdit.class, net.iGap.proto.ProtoGroupEdit.GroupEdit.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 3; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 3; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 3; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 4; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 4; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 4; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -233,16 +305,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!name_.isEmpty()) { - output.writeString(3, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - if (!description_.isEmpty()) { - output.writeString(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -254,410 +328,729 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupEdit.GroupEdit)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupEdit.GroupEdit other = (net.iGap.proto.ProtoGroupEdit.GroupEdit) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupEdit.GroupEdit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupEdit} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupEdit.GroupEdit, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupEdit) net.iGap.proto.ProtoGroupEdit.GroupEditOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEdit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEdit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEdit.GroupEdit.class, net.iGap.proto.ProtoGroupEdit.GroupEdit.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupEdit.GroupEdit.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + name_ = ""; + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEdit_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEdit getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupEdit.GroupEdit.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEdit build() { + net.iGap.proto.ProtoGroupEdit.GroupEdit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEdit buildPartial() { + net.iGap.proto.ProtoGroupEdit.GroupEdit result = new net.iGap.proto.ProtoGroupEdit.GroupEdit(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupEdit.GroupEdit) { + return mergeFrom((net.iGap.proto.ProtoGroupEdit.GroupEdit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupEdit.GroupEdit other) { + if (other == net.iGap.proto.ProtoGroupEdit.GroupEdit.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupEdit.GroupEdit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupEdit.GroupEdit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupEdit) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupEdit.GroupEdit(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupEdit.GroupEdit other = (net.iGap.proto.ProtoGroupEdit.GroupEdit) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupEdit.GroupEdit.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupEdit) + } + // @@protoc_insertion_point(class_scope:proto.GroupEdit) private static final net.iGap.proto.ProtoGroupEdit.GroupEdit DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupEdit(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupEdit.GroupEdit(); } public static net.iGap.proto.ProtoGroupEdit.GroupEdit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupEdit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupEdit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEdit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupEditResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupEditResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string name = 3; + * string name = 3; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string description = 4; + * string description = 4; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -665,182 +1058,237 @@ public interface GroupEditResponseOrBuilder extends /** * Protobuf type {@code proto.GroupEditResponse} */ - public static final class GroupEditResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupEditResponse, GroupEditResponse.Builder> implements + public static final class GroupEditResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupEditResponse) GroupEditResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupEditResponse.newBuilder() to construct. + private GroupEditResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupEditResponse() { name_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupEditResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupEditResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEditResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEditResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEdit.GroupEditResponse.class, net.iGap.proto.ProtoGroupEdit.GroupEditResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 3; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 3; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 3; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 4; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 4; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 4; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -849,16 +1297,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!name_.isEmpty()) { - output.writeString(3, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - if (!description_.isEmpty()) { - output.writeString(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -870,378 +1320,732 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupEdit.GroupEditResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupEdit.GroupEditResponse other = (net.iGap.proto.ProtoGroupEdit.GroupEditResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupEdit.GroupEditResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupEditResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupEdit.GroupEditResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupEditResponse) net.iGap.proto.ProtoGroupEdit.GroupEditResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEditResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEditResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEdit.GroupEditResponse.class, net.iGap.proto.ProtoGroupEdit.GroupEditResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupEdit.GroupEditResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + name_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupEdit.internal_static_proto_GroupEditResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEditResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupEdit.GroupEditResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEditResponse build() { + net.iGap.proto.ProtoGroupEdit.GroupEditResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEditResponse buildPartial() { + net.iGap.proto.ProtoGroupEdit.GroupEditResponse result = new net.iGap.proto.ProtoGroupEdit.GroupEditResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupEdit.GroupEditResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupEdit.GroupEditResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoGroupEdit.GroupEditResponse other) { + if (other == net.iGap.proto.ProtoGroupEdit.GroupEditResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupEdit.GroupEditResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupEdit.GroupEditResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupEditResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupEdit.GroupEditResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupEdit.GroupEditResponse other = (net.iGap.proto.ProtoGroupEdit.GroupEditResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupEdit.GroupEditResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupEditResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupEditResponse) private static final net.iGap.proto.ProtoGroupEdit.GroupEditResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupEditResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupEdit.GroupEditResponse(); } public static net.iGap.proto.ProtoGroupEdit.GroupEditResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupEditResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupEditResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEdit.GroupEditResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupEdit_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupEdit_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupEditResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupEditResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\017GroupEdit.proto\022\005proto\032\rRequest.proto\032" + + "\016Response.proto\"`\n\tGroupEdit\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\014" + + "\n\004name\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\"j\n\021Gro" + + "upEditResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022\017\n\007room_id\030\002 \001(\004\022\014\n\004name\030\003 \001(\t" + + "\022\023\n\013description\030\004 \001(\tB \n\016net.iGap.protoB" + + "\016ProtoGroupEditb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupEdit_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupEdit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupEdit_descriptor, + new java.lang.String[] { "Request", "RoomId", "Name", "Description", }); + internal_static_proto_GroupEditResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupEditResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupEditResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Name", "Description", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java b/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java index 4f2563e..5664700 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java @@ -8,344 +8,390 @@ private ProtoGroupEditMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupEditMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupEditMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional string message = 4; + * string message = 4; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; + * @return Whether the mentions field is set. */ boolean hasMentions(); /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; + * @return The mentions. */ net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * .proto.Mention mentions = 7; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); } /** * Protobuf type {@code proto.GroupEditMessage} */ - public static final class GroupEditMessage extends - com.google.protobuf.GeneratedMessageLite< - GroupEditMessage, GroupEditMessage.Builder> implements + public static final class GroupEditMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupEditMessage) GroupEditMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupEditMessage.newBuilder() to construct. + private GroupEditMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupEditMessage() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupEditMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupEditMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.class, net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 4; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 4; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 4; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 4; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int TEXT_SIGNS_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 6; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 6; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 6; - */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - - } - /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ - private void clearTextSigns() { textSigns_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } public static final int MENTIONS_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.Mention mentions_; /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; + * @return Whether the mentions field is set. */ + @java.lang.Override public boolean hasMentions() { return mentions_ != null; } /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; + * @return The mentions. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Mention getMentions() { return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; */ - private void setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (value == null) { - throw new NullPointerException(); - } - mentions_ = value; - - } - /** - * optional .proto.Mention mentions = 7; - */ - private void setMentions( - net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - mentions_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); } - /** - * optional .proto.Mention mentions = 7; - */ - private void mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (mentions_ != null && - mentions_ != net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance()) { - mentions_ = - net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); - } else { - mentions_ = value; - } - - } - /** - * optional .proto.Mention mentions = 7; - */ - private void clearMentions() { mentions_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -357,8 +403,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageId_ != 0L) { output.writeUInt64(3, messageId_); } - if (!message_.isEmpty()) { - output.writeString(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } if (documentId_ != 0L) { output.writeUInt64(5, documentId_); @@ -369,10 +415,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (mentions_ != null) { output.writeMessage(7, getMentions()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -388,9 +436,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, messageId_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -404,912 +451,1396 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMentions()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage other = (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (hasMentions() != other.hasMentions()) return false; + if (hasMentions()) { + if (!getMentions() + .equals(other.getMentions())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupEditMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupEditMessage) net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.class, net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + message_ = ""; + + documentId_ = 0L; + + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage build() { + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage buildPartial() { + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage result = new net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.message_ = message_; + result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage) { + return mergeFrom((net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage other) { + if (other == net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 6; + * .proto.TextSigns text_signs = 6; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } + /** + * .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * .proto.TextSigns text_signs = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } + private net.iGap.proto.ProtoGlobal.Mention mentions_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; + * @return Whether the mentions field is set. */ public boolean hasMentions() { - return instance.hasMentions(); + return mentionsBuilder_ != null || mentions_ != null; } /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; + * @return The mentions. */ public net.iGap.proto.ProtoGlobal.Mention getMentions() { - return instance.getMentions(); + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } } /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; */ public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.setMentions(value); - return this; + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; */ public Builder setMentions( net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - copyOnWrite(); - instance.setMentions(builderForValue); + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; */ public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.mergeMentions(value); + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Mention mentions = 7; + * .proto.Mention mentions = 7; */ - public Builder clearMentions() { copyOnWrite(); - instance.clearMentions(); + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupEditMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage other = (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - mentions_ = visitor.visitMessage(mentions_, other.mentions_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; - if (mentions_ != null) { - subBuilder = mentions_.toBuilder(); - } - mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mentions_); - mentions_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Mention mentions = 7; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * .proto.Mention mentions = 7; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Mention mentions = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; } + return mentionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupEditMessage) + } + // @@protoc_insertion_point(class_scope:proto.GroupEditMessage) private static final net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupEditMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage(); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupEditMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupEditMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupEditMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupEditMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ long getMessageVersion(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ int getMessageTypeValue(); /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType(); /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ long getDocumentId(); /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; + * @return Whether the mentions field is set. */ boolean hasMentions(); /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; + * @return The mentions. */ net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * .proto.Mention mentions = 9; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); } /** * Protobuf type {@code proto.GroupEditMessageResponse} */ - public static final class GroupEditMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupEditMessageResponse, GroupEditMessageResponse.Builder> implements + public static final class GroupEditMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupEditMessageResponse) GroupEditMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupEditMessageResponse.newBuilder() to construct. + private GroupEditMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupEditMessageResponse() { message_ = ""; + messageType_ = 0; } - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupEditMessageResponse(); } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - + private GroupEditMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + messageVersion_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + messageType_ = rawValue; + break; + } + case 56: { + + documentId_ = input.readUInt64(); + break; + } + case 66: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.class, net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.Builder.class); + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public boolean hasResponse() { + return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int MESSAGE_VERSION_FIELD_NUMBER = 4; private long messageVersion_; /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { return messageVersion_; } - /** - * optional uint64 message_version = 4; - */ - private void setMessageVersion(long value) { - - messageVersion_ = value; - } - /** - * optional uint64 message_version = 4; - */ - private void clearMessageVersion() { - - messageVersion_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MESSAGE_TYPE_FIELD_NUMBER = 6; private int messageType_; /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { + @java.lang.Override public int getMessageTypeValue() { return messageType_; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.forNumber(messageType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void setMessageTypeValue(int value) { - messageType_ = value; - } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - - messageType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageType message_type = 6; - */ - private void clearMessageType() { - - messageType_ = 0; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 7; private long documentId_; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 7; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 7; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int TEXT_SIGNS_FIELD_NUMBER = 8; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 8; - */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 8; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 8; - */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - - } - /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ - private void clearTextSigns() { textSigns_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } public static final int MENTIONS_FIELD_NUMBER = 9; private net.iGap.proto.ProtoGlobal.Mention mentions_; /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; + * @return Whether the mentions field is set. */ + @java.lang.Override public boolean hasMentions() { return mentions_ != null; } /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; + * @return The mentions. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Mention getMentions() { return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } /** - * optional .proto.Mention mentions = 9; - */ - private void setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (value == null) { - throw new NullPointerException(); - } - mentions_ = value; - - } - /** - * optional .proto.Mention mentions = 9; - */ - private void setMentions( - net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - mentions_ = builderForValue.build(); - - } - /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; */ - private void mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (mentions_ != null && - mentions_ != net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance()) { - mentions_ = - net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); - } else { - mentions_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); } - /** - * optional .proto.Mention mentions = 9; - */ - private void clearMentions() { mentions_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1324,8 +1855,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageVersion_ != 0L) { output.writeUInt64(4, messageVersion_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } if (messageType_ != net.iGap.proto.ProtoGlobal.RoomMessageType.TEXT.getNumber()) { output.writeEnum(6, messageType_); @@ -1339,10 +1870,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (mentions_ != null) { output.writeMessage(9, getMentions()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1362,9 +1895,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, messageVersion_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } if (messageType_ != net.iGap.proto.ProtoGlobal.RoomMessageType.TEXT.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -1382,574 +1914,1122 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getMentions()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse other = (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getMessageVersion() + != other.getMessageVersion()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (messageType_ != other.messageType_) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (hasMentions() != other.hasMentions()) return false; + if (hasMentions()) { + if (!getMentions() + .equals(other.getMentions())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + MESSAGE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageVersion()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupEditMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupEditMessageResponse) net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.class, net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + messageVersion_ = 0L; + + message_ = ""; + + messageType_ = 0; + + documentId_ = 0L; + + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupEditMessage.internal_static_proto_GroupEditMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse build() { + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse buildPartial() { + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse result = new net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.messageVersion_ = messageVersion_; + result.message_ = message_; + result.messageType_ = messageType_; + result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse other) { + if (other == net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getMessageVersion() != 0L) { + setMessageVersion(other.getMessageVersion()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.messageType_ != 0) { + setMessageTypeValue(other.getMessageTypeValue()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long messageVersion_ ; /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return The messageVersion. */ + @java.lang.Override public long getMessageVersion() { - return instance.getMessageVersion(); + return messageVersion_; } /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @param value The messageVersion to set. + * @return This builder for chaining. */ public Builder setMessageVersion(long value) { - copyOnWrite(); - instance.setMessageVersion(value); + + messageVersion_ = value; + onChanged(); return this; } /** - * optional uint64 message_version = 4; + * uint64 message_version = 4; + * @return This builder for chaining. */ public Builder clearMessageVersion() { - copyOnWrite(); - instance.clearMessageVersion(); + + messageVersion_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private int messageType_ = 0; /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { - return instance.getMessageTypeValue(); + @java.lang.Override public int getMessageTypeValue() { + return messageType_; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @param value The enum numeric value on the wire for messageType to set. + * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - copyOnWrite(); - instance.setMessageTypeValue(value); + + messageType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return The messageType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - return instance.getMessageType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + if (value == null) { + throw new NullPointerException(); + } + + messageType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 6; + * .proto.RoomMessageType message_type = 6; + * @return This builder for chaining. */ public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); + + messageType_ = 0; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 8; + * .proto.TextSigns text_signs = 8; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } + /** + * .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * .proto.TextSigns text_signs = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } + private net.iGap.proto.ProtoGlobal.Mention mentions_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; + * @return Whether the mentions field is set. */ public boolean hasMentions() { - return instance.hasMentions(); + return mentionsBuilder_ != null || mentions_ != null; } /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; + * @return The mentions. */ public net.iGap.proto.ProtoGlobal.Mention getMentions() { - return instance.getMentions(); + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } } /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; */ public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.setMentions(value); - return this; + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; */ public Builder setMentions( net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - copyOnWrite(); - instance.setMentions(builderForValue); + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; */ public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.mergeMentions(value); + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Mention mentions = 9; + * .proto.Mention mentions = 9; */ - public Builder clearMentions() { copyOnWrite(); - instance.clearMentions(); + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupEditMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse other = (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - messageVersion_ = visitor.visitLong(messageVersion_ != 0L, messageVersion_, - other.messageVersion_ != 0L, other.messageVersion_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - messageType_ = visitor.visitInt(messageType_ != 0, messageType_, other.messageType_ != 0, other.messageType_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - mentions_ = visitor.visitMessage(mentions_, other.mentions_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - messageVersion_ = input.readUInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - case 56: { - - documentId_ = input.readUInt64(); - break; - } - case 66: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; - if (mentions_ != null) { - subBuilder = mentions_.toBuilder(); - } - mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mentions_); - mentions_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Mention mentions = 9; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * .proto.Mention mentions = 9; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Mention mentions = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; } + return mentionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupEditMessageResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupEditMessageResponse) private static final net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupEditMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse(); } public static net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupEditMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupEditMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupEditMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupEditMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupEditMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupEditMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026GroupEditMessage.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\032\014Global.proto\"\306\001\n" + + "\020GroupEditMessage\022\037\n\007request\030\001 \001(\0132\016.pro" + + "to.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_i" + + "d\030\003 \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document_id\030" + + "\005 \001(\004\022$\n\ntext_signs\030\006 \001(\0132\020.proto.TextSi" + + "gns\022 \n\010mentions\030\007 \001(\0132\016.proto.Mention\"\227\002" + + "\n\030GroupEditMessageResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\022" + + "\n\nmessage_id\030\003 \001(\004\022\027\n\017message_version\030\004 " + + "\001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014message_type\030\006 \001" + + "(\0162\026.proto.RoomMessageType\022\023\n\013document_i" + + "d\030\007 \001(\004\022$\n\ntext_signs\030\010 \001(\0132\020.proto.Text" + + "Signs\022 \n\010mentions\030\t \001(\0132\016.proto.MentionB" + + "\'\n\016net.iGap.protoB\025ProtoGroupEditMessage" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupEditMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupEditMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupEditMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", "TextSigns", "Mentions", }); + internal_static_proto_GroupEditMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupEditMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupEditMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", "TextSigns", "Mentions", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupGetDraft.java b/src/main/java/net/iGap/proto/ProtoGroupGetDraft.java index 87c30ec..8f09023 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupGetDraft.java +++ b/src/main/java/net/iGap/proto/ProtoGroupGetDraft.java @@ -8,109 +8,181 @@ private ProtoGroupGetDraft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupGetDraftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupGetDraft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupGetDraft} */ - public static final class GroupGetDraft extends - com.google.protobuf.GeneratedMessageLite< - GroupGetDraft, GroupGetDraft.Builder> implements + public static final class GroupGetDraft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupGetDraft) GroupGetDraftOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupGetDraft.newBuilder() to construct. + private GroupGetDraft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupGetDraft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupGetDraft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupGetDraft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.class, net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,408 +208,705 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft other = (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupGetDraft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupGetDraft) net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.class, net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft build() { + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft buildPartial() { + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft result = new net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft) { + return mergeFrom((net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft other) { + if (other == net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupGetDraft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft other = (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupGetDraft) + } + // @@protoc_insertion_point(class_scope:proto.GroupGetDraft) private static final net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupGetDraft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft(); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupGetDraft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupGetDraft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupGetDraftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupGetDraftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 2; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.GroupGetDraftResponse} */ - public static final class GroupGetDraftResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupGetDraftResponse, GroupGetDraftResponse.Builder> implements + public static final class GroupGetDraftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupGetDraftResponse) GroupGetDraftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupGetDraftResponse.newBuilder() to construct. + private GroupGetDraftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupGetDraftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupGetDraftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupGetDraftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.class, net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int DRAFT_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 2; - */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 2; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - - } - /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 2; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -544,10 +915,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(2, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -559,303 +932,653 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse other = (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupGetDraftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupGetDraftResponse) net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.class, net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupGetDraft.internal_static_proto_GroupGetDraftResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse build() { + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse buildPartial() { + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse result = new net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse other) { + if (other == net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 2; + * .proto.RoomDraft draft = 2; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupGetDraftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse other = (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupGetDraftResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupGetDraftResponse) private static final net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupGetDraftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse(); } public static net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupGetDraftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupGetDraftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetDraft.GroupGetDraftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupGetDraft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupGetDraft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupGetDraftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupGetDraftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023GroupGetDraft.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\032\014Global.proto\"A\n\rGro" + + "upGetDraft\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007room_id\030\002 \001(\004\"[\n\025GroupGetDraftRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "\022\037\n\005draft\030\002 \001(\0132\020.proto.RoomDraftB$\n\016net" + + ".iGap.protoB\022ProtoGroupGetDraftb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupGetDraft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupGetDraft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupGetDraft_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_GroupGetDraftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupGetDraftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupGetDraftResponse_descriptor, + new java.lang.String[] { "Response", "Draft", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java b/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java index 12934ea..249103e 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java +++ b/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java @@ -8,57 +8,183 @@ private ProtoGroupGetMemberList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupGetMemberListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupGetMemberList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @return The enum numeric value on the wire for filterRole. */ int getFilterRoleValue(); /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @return The filterRole. */ net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole getFilterRole(); /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 4; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.GroupGetMemberList} */ - public static final class GroupGetMemberList extends - com.google.protobuf.GeneratedMessageLite< - GroupGetMemberList, GroupGetMemberList.Builder> implements + public static final class GroupGetMemberList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupGetMemberList) GroupGetMemberListOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupGetMemberList.newBuilder() to construct. + private GroupGetMemberList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupGetMemberList() { + filterRole_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupGetMemberList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupGetMemberList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + filterRole_ = rawValue; + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.class, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.Builder.class); } + /** * Protobuf enum {@code proto.GroupGetMemberList.FilterRole} */ public enum FilterRole - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * ALL = 0; */ @@ -97,10 +223,16 @@ public enum FilterRole public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -108,6 +240,10 @@ public static FilterRole valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static FilterRole forNumber(int value) { switch (value) { case 0: return ALL; @@ -130,6 +266,37 @@ public FilterRole findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.getDescriptor().getEnumTypes().get(0); + } + + private static final FilterRole[] VALUES = values(); + + public static FilterRole valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private FilterRole(int value) { @@ -142,169 +309,97 @@ private FilterRole(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int FILTER_ROLE_FIELD_NUMBER = 3; private int filterRole_; /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @return The enum numeric value on the wire for filterRole. */ - public int getFilterRoleValue() { + @java.lang.Override public int getFilterRoleValue() { return filterRole_; } /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @return The filterRole. */ - public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole getFilterRole() { - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole result = net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole.forNumber(filterRole_); + @java.lang.Override public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole getFilterRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole result = net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole.valueOf(filterRole_); return result == null ? net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole.UNRECOGNIZED : result; } - /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; - */ - private void setFilterRoleValue(int value) { - filterRole_ = value; - } - /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; - */ - private void setFilterRole(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole value) { - if (value == null) { - throw new NullPointerException(); - } - - filterRole_ = value.getNumber(); - } - /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; - */ - private void clearFilterRole() { - - filterRole_ = 0; - } public static final int PAGINATION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 4; - */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 4; - */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 4; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -319,10 +414,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(4, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -342,387 +439,727 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList other = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (filterRole_ != other.filterRole_) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + FILTER_ROLE_FIELD_NUMBER; + hash = (53 * hash) + filterRole_; + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupGetMemberList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupGetMemberList) net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.class, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + filterRole_ = 0; + + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList build() { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList buildPartial() { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList result = new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.filterRole_ = filterRole_; + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList) { + return mergeFrom((net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList other) { + if (other == net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.filterRole_ != 0) { + setFilterRoleValue(other.getFilterRoleValue()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int filterRole_ = 0; /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @return The enum numeric value on the wire for filterRole. */ - public int getFilterRoleValue() { - return instance.getFilterRoleValue(); + @java.lang.Override public int getFilterRoleValue() { + return filterRole_; } /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @param value The enum numeric value on the wire for filterRole to set. + * @return This builder for chaining. */ public Builder setFilterRoleValue(int value) { - copyOnWrite(); - instance.setFilterRoleValue(value); + + filterRole_ = value; + onChanged(); return this; } /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @return The filterRole. */ + @java.lang.Override public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole getFilterRole() { - return instance.getFilterRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole result = net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole.valueOf(filterRole_); + return result == null ? net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole.UNRECOGNIZED : result; } /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @param value The filterRole to set. + * @return This builder for chaining. */ public Builder setFilterRole(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.FilterRole value) { - copyOnWrite(); - instance.setFilterRole(value); + if (value == null) { + throw new NullPointerException(); + } + + filterRole_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupGetMemberList.FilterRole filter_role = 3; + * .proto.GroupGetMemberList.FilterRole filter_role = 3; + * @return This builder for chaining. */ public Builder clearFilterRole() { - copyOnWrite(); - instance.clearFilterRole(); + + filterRole_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 4; + * .proto.Pagination pagination = 4; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.GroupGetMemberList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList other = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - filterRole_ = visitor.visitInt(filterRole_ != 0, filterRole_, other.filterRole_ != 0, other.filterRole_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - filterRole_ = rawValue; - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + return this; + } + /** + * .proto.Pagination pagination = 4; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 4; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - // @@protoc_insertion_point(class_scope:proto.GroupGetMemberList) + + // @@protoc_insertion_point(builder_scope:proto.GroupGetMemberList) + } + + // @@protoc_insertion_point(class_scope:proto.GroupGetMemberList) private static final net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupGetMemberList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList(); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupGetMemberList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupGetMemberList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupGetMemberListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupGetMemberListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; @@ -737,291 +1174,435 @@ public interface GroupGetMemberListResponseOrBuilder extends * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ int getMemberCount(); + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + java.util.List + getMemberOrBuilderList(); + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.MemberOrBuilder getMemberOrBuilder( + int index); } /** * Protobuf type {@code proto.GroupGetMemberListResponse} */ - public static final class GroupGetMemberListResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupGetMemberListResponse, GroupGetMemberListResponse.Builder> implements + public static final class GroupGetMemberListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupGetMemberListResponse) GroupGetMemberListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupGetMemberListResponse.newBuilder() to construct. + private GroupGetMemberListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupGetMemberListResponse() { - member_ = emptyProtobufList(); + member_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupGetMemberListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupGetMemberListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + member_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + member_.add( + input.readMessage(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + member_ = java.util.Collections.unmodifiableList(member_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.class, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Builder.class); + } + public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupGetMemberListResponse.Member) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return The userId. */ long getUserId(); /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The role. */ net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole(); /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; + * @return Whether the adminRights field is set. */ boolean hasAdminRights(); /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; + * @return The adminRights. */ net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getAdminRights(); + /** + * .proto.GroupAddAdmin.AdminRights adminRights = 3; + */ + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getAdminRightsOrBuilder(); /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * @return Whether the memberRights field is set. */ boolean hasMemberRights(); /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * @return The memberRights. */ net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getMemberRights(); + /** + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + */ + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getMemberRightsOrBuilder(); /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; + * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; + * @return The userInfo. */ net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo(); + /** + * .proto.RegisteredUser userInfo = 5; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder(); } /** * Protobuf type {@code proto.GroupGetMemberListResponse.Member} */ - public static final class Member extends - com.google.protobuf.GeneratedMessageLite< - Member, Member.Builder> implements + public static final class Member extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupGetMemberListResponse.Member) MemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use Member.newBuilder() to construct. + private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Member() { + role_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Member(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Member( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + role_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder subBuilder = null; + if (adminRights_ != null) { + subBuilder = adminRights_.toBuilder(); + } + adminRights_ = input.readMessage(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adminRights_); + adminRights_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; + if (memberRights_ != null) { + subBuilder = memberRights_.toBuilder(); + } + memberRights_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(memberRights_); + memberRights_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (userInfo_ != null) { + subBuilder = userInfo_.toBuilder(); + } + userInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userInfo_); + userInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.class, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder.class); } + public static final int USERID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 userId = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 userId = 1; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int ROLE_FIELD_NUMBER = 2; private int role_; /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { + @java.lang.Override public int getRoleValue() { return role_; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The role. */ - public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.forNumber(role_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } - /** - * optional .proto.GroupRoom.Role role = 2; - */ - private void setRoleValue(int value) { - role_ = value; - } - /** - * optional .proto.GroupRoom.Role role = 2; - */ - private void setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value.getNumber(); - } - /** - * optional .proto.GroupRoom.Role role = 2; - */ - private void clearRole() { - - role_ = 0; - } public static final int ADMINRIGHTS_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights adminRights_; /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; + * @return Whether the adminRights field is set. */ + @java.lang.Override public boolean hasAdminRights() { return adminRights_ != null; } /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; + * @return The adminRights. */ + @java.lang.Override public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getAdminRights() { return adminRights_ == null ? net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : adminRights_; } /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; - */ - private void setAdminRights(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - if (value == null) { - throw new NullPointerException(); - } - adminRights_ = value; - - } - /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; - */ - private void setAdminRights( - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder builderForValue) { - adminRights_ = builderForValue.build(); - - } - /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; - */ - private void mergeAdminRights(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - if (adminRights_ != null && - adminRights_ != net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance()) { - adminRights_ = - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.newBuilder(adminRights_).mergeFrom(value).buildPartial(); - } else { - adminRights_ = value; - } - - } - /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ - private void clearAdminRights() { adminRights_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getAdminRightsOrBuilder() { + return getAdminRights(); } public static final int MEMBERRIGHTS_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights memberRights_; /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * @return Whether the memberRights field is set. */ + @java.lang.Override public boolean hasMemberRights() { return memberRights_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * @return The memberRights. */ + @java.lang.Override public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getMemberRights() { return memberRights_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : memberRights_; } /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; - */ - private void setMemberRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (value == null) { - throw new NullPointerException(); - } - memberRights_ = value; - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; - */ - private void setMemberRights( - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - memberRights_ = builderForValue.build(); - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; - */ - private void mergeMemberRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (memberRights_ != null && - memberRights_ != net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance()) { - memberRights_ = - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(memberRights_).mergeFrom(value).buildPartial(); - } else { - memberRights_ = value; - } - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; */ - private void clearMemberRights() { memberRights_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getMemberRightsOrBuilder() { + return getMemberRights(); } public static final int USERINFO_FIELD_NUMBER = 5; private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_; /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; + * @return Whether the userInfo field is set. */ + @java.lang.Override public boolean hasUserInfo() { return userInfo_ != null; } /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; + * @return The userInfo. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; } /** - * optional .proto.RegisteredUser userInfo = 5; - */ - private void setUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - userInfo_ = value; - - } - /** - * optional .proto.RegisteredUser userInfo = 5; - */ - private void setUserInfo( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - userInfo_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; */ - private void mergeUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (userInfo_ != null && - userInfo_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - userInfo_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(userInfo_).mergeFrom(value).buildPartial(); - } else { - userInfo_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + return getUserInfo(); } - /** - * optional .proto.RegisteredUser userInfo = 5; - */ - private void clearUserInfo() { userInfo_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { @@ -1039,10 +1620,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userInfo_ != null) { output.writeMessage(5, getUserInfo()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1066,498 +1649,890 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUserInfo()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member other = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member) obj; + + if (getUserId() + != other.getUserId()) return false; + if (role_ != other.role_) return false; + if (hasAdminRights() != other.hasAdminRights()) return false; + if (hasAdminRights()) { + if (!getAdminRights() + .equals(other.getAdminRights())) return false; + } + if (hasMemberRights() != other.hasMemberRights()) return false; + if (hasMemberRights()) { + if (!getMemberRights() + .equals(other.getMemberRights())) return false; + } + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo() + .equals(other.getUserInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + if (hasAdminRights()) { + hash = (37 * hash) + ADMINRIGHTS_FIELD_NUMBER; + hash = (53 * hash) + getAdminRights().hashCode(); + } + if (hasMemberRights()) { + hash = (37 * hash) + MEMBERRIGHTS_FIELD_NUMBER; + hash = (53 * hash) + getMemberRights().hashCode(); + } + if (hasUserInfo()) { + hash = (37 * hash) + USERINFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupGetMemberListResponse.Member} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupGetMemberListResponse.Member) net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.MemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.class, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + role_ = 0; + + if (adminRightsBuilder_ == null) { + adminRights_ = null; + } else { + adminRights_ = null; + adminRightsBuilder_ = null; + } + if (memberRightsBuilder_ == null) { + memberRights_ = null; + } else { + memberRights_ = null; + memberRightsBuilder_ = null; + } + if (userInfoBuilder_ == null) { + userInfo_ = null; + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_Member_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member build() { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member buildPartial() { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member result = new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member(this); + result.userId_ = userId_; + result.role_ = role_; + if (adminRightsBuilder_ == null) { + result.adminRights_ = adminRights_; + } else { + result.adminRights_ = adminRightsBuilder_.build(); + } + if (memberRightsBuilder_ == null) { + result.memberRights_ = memberRights_; + } else { + result.memberRights_ = memberRightsBuilder_.build(); + } + if (userInfoBuilder_ == null) { + result.userInfo_ = userInfo_; + } else { + result.userInfo_ = userInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member) { + return mergeFrom((net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member other) { + if (other == net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (other.hasAdminRights()) { + mergeAdminRights(other.getAdminRights()); + } + if (other.hasMemberRights()) { + mergeMemberRights(other.getMemberRights()); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long userId_ ; /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 userId = 1; + * uint64 userId = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private int role_ = 0; /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The enum numeric value on the wire for role. */ - public int getRoleValue() { - return instance.getRoleValue(); + @java.lang.Override public int getRoleValue() { + return role_; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. */ public Builder setRoleValue(int value) { - copyOnWrite(); - instance.setRoleValue(value); + + role_ = value; + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return The role. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.GroupRoom.Role getRole() { - return instance.getRole(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.GroupRoom.Role result = net.iGap.proto.ProtoGlobal.GroupRoom.Role.valueOf(role_); + return result == null ? net.iGap.proto.ProtoGlobal.GroupRoom.Role.UNRECOGNIZED : result; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(net.iGap.proto.ProtoGlobal.GroupRoom.Role value) { - copyOnWrite(); - instance.setRole(value); + if (value == null) { + throw new NullPointerException(); + } + + role_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupRoom.Role role = 2; + * .proto.GroupRoom.Role role = 2; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights adminRights_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder> adminRightsBuilder_; /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; + * @return Whether the adminRights field is set. */ public boolean hasAdminRights() { - return instance.hasAdminRights(); + return adminRightsBuilder_ != null || adminRights_ != null; } /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; + * @return The adminRights. */ public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights getAdminRights() { - return instance.getAdminRights(); + if (adminRightsBuilder_ == null) { + return adminRights_ == null ? net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : adminRights_; + } else { + return adminRightsBuilder_.getMessage(); + } } /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ public Builder setAdminRights(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - copyOnWrite(); - instance.setAdminRights(value); - return this; + if (adminRightsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adminRights_ = value; + onChanged(); + } else { + adminRightsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ public Builder setAdminRights( net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder builderForValue) { - copyOnWrite(); - instance.setAdminRights(builderForValue); + if (adminRightsBuilder_ == null) { + adminRights_ = builderForValue.build(); + onChanged(); + } else { + adminRightsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ public Builder mergeAdminRights(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights value) { - copyOnWrite(); - instance.mergeAdminRights(value); + if (adminRightsBuilder_ == null) { + if (adminRights_ != null) { + adminRights_ = + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.newBuilder(adminRights_).mergeFrom(value).buildPartial(); + } else { + adminRights_ = value; + } + onChanged(); + } else { + adminRightsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupAddAdmin.AdminRights adminRights = 3; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ - public Builder clearAdminRights() { copyOnWrite(); - instance.clearAdminRights(); + public Builder clearAdminRights() { + if (adminRightsBuilder_ == null) { + adminRights_ = null; + onChanged(); + } else { + adminRights_ = null; + adminRightsBuilder_ = null; + } + return this; } - /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ - public boolean hasMemberRights() { - return instance.hasMemberRights(); + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder getAdminRightsBuilder() { + + onChanged(); + return getAdminRightsFieldBuilder().getBuilder(); } /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ - public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getMemberRights() { - return instance.getMemberRights(); + public net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder getAdminRightsOrBuilder() { + if (adminRightsBuilder_ != null) { + return adminRightsBuilder_.getMessageOrBuilder(); + } else { + return adminRights_ == null ? + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.getDefaultInstance() : adminRights_; + } } /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupAddAdmin.AdminRights adminRights = 3; */ - public Builder setMemberRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.setMemberRights(value); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder> + getAdminRightsFieldBuilder() { + if (adminRightsBuilder_ == null) { + adminRightsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder, net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRightsOrBuilder>( + getAdminRights(), + getParentForChildren(), + isClean()); + adminRights_ = null; } + return adminRightsBuilder_; + } + + private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights memberRights_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> memberRightsBuilder_; + /** + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * @return Whether the memberRights field is set. + */ + public boolean hasMemberRights() { + return memberRightsBuilder_ != null || memberRights_ != null; + } + /** + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * @return The memberRights. + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getMemberRights() { + if (memberRightsBuilder_ == null) { + return memberRights_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : memberRights_; + } else { + return memberRightsBuilder_.getMessage(); + } + } /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + */ + public Builder setMemberRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { + if (memberRightsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + memberRights_ = value; + onChanged(); + } else { + memberRightsBuilder_.setMessage(value); + } + + return this; + } + /** + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; */ public Builder setMemberRights( net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - copyOnWrite(); - instance.setMemberRights(builderForValue); + if (memberRightsBuilder_ == null) { + memberRights_ = builderForValue.build(); + onChanged(); + } else { + memberRightsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; */ public Builder mergeMemberRights(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.mergeMemberRights(value); + if (memberRightsBuilder_ == null) { + if (memberRights_ != null) { + memberRights_ = + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(memberRights_).mergeFrom(value).buildPartial(); + } else { + memberRights_ = value; + } + onChanged(); + } else { + memberRightsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; */ - public Builder clearMemberRights() { copyOnWrite(); - instance.clearMemberRights(); + public Builder clearMemberRights() { + if (memberRightsBuilder_ == null) { + memberRights_ = null; + onChanged(); + } else { + memberRights_ = null; + memberRightsBuilder_ = null; + } + return this; } + /** + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder getMemberRightsBuilder() { + + onChanged(); + return getMemberRightsFieldBuilder().getBuilder(); + } + /** + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getMemberRightsOrBuilder() { + if (memberRightsBuilder_ != null) { + return memberRightsBuilder_.getMessageOrBuilder(); + } else { + return memberRights_ == null ? + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : memberRights_; + } + } + /** + * .proto.GroupChangeMemberRights.MemberRights memberRights = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> + getMemberRightsFieldBuilder() { + if (memberRightsBuilder_ == null) { + memberRightsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder>( + getMemberRights(), + getParentForChildren(), + isClean()); + memberRights_ = null; + } + return memberRightsBuilder_; + } + private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userInfoBuilder_; /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; + * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { - return instance.hasUserInfo(); + return userInfoBuilder_ != null || userInfo_ != null; } /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; + * @return The userInfo. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { - return instance.getUserInfo(); + if (userInfoBuilder_ == null) { + return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; */ public Builder setUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUserInfo(value); - return this; + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + onChanged(); + } else { + userInfoBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; */ public Builder setUserInfo( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUserInfo(builderForValue); + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + onChanged(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; */ public Builder mergeUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergeUserInfo(value); + if (userInfoBuilder_ == null) { + if (userInfo_ != null) { + userInfo_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(userInfo_).mergeFrom(value).buildPartial(); + } else { + userInfo_ = value; + } + onChanged(); + } else { + userInfoBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser userInfo = 5; + * .proto.RegisteredUser userInfo = 5; */ - public Builder clearUserInfo() { copyOnWrite(); - instance.clearUserInfo(); + public Builder clearUserInfo() { + if (userInfoBuilder_ == null) { + userInfo_ = null; + onChanged(); + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupGetMemberListResponse.Member) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member other = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); - adminRights_ = visitor.visitMessage(adminRights_, other.adminRights_); - memberRights_ = visitor.visitMessage(memberRights_, other.memberRights_); - userInfo_ = visitor.visitMessage(userInfo_, other.userInfo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - role_ = rawValue; - break; - } - case 26: { - net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.Builder subBuilder = null; - if (adminRights_ != null) { - subBuilder = adminRights_.toBuilder(); - } - adminRights_ = input.readMessage(net.iGap.proto.ProtoGroupAddAdmin.GroupAddAdmin.AdminRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(adminRights_); - adminRights_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; - if (memberRights_ != null) { - subBuilder = memberRights_.toBuilder(); - } - memberRights_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(memberRights_); - memberRights_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (userInfo_ != null) { - subBuilder = userInfo_.toBuilder(); - } - userInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userInfo_); - userInfo_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RegisteredUser userInfo = 5; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserInfoBuilder() { + + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser userInfo = 5; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RegisteredUser userInfo = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); + userInfo_ = null; } + return userInfoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupGetMemberListResponse.Member) + } + // @@protoc_insertion_point(class_scope:proto.GroupGetMemberListResponse.Member) private static final net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Member(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member(); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Member parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Member(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int MEMBER_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList member_; + private java.util.List member_; /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ + @java.lang.Override public java.util.List getMemberList() { return member_; } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ + @java.lang.Override public java.util.List getMemberOrBuilderList() { return member_; @@ -1565,108 +2540,38 @@ public java.util.Listrepeated .proto.GroupGetMemberListResponse.Member member = 2; */ + @java.lang.Override public int getMemberCount() { return member_.size(); } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member getMember(int index) { return member_.get(index); } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.MemberOrBuilder getMemberOrBuilder( int index) { return member_.get(index); } - private void ensureMemberIsMutable() { - if (!member_.isModifiable()) { - member_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(member_); - } - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void setMember( - int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMemberIsMutable(); - member_.set(index, value); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void setMember( - int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder builderForValue) { - ensureMemberIsMutable(); - member_.set(index, builderForValue.build()); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void addMember(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMemberIsMutable(); - member_.add(value); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void addMember( - int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMemberIsMutable(); - member_.add(index, value); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void addMember( - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder builderForValue) { - ensureMemberIsMutable(); - member_.add(builderForValue.build()); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void addMember( - int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder builderForValue) { - ensureMemberIsMutable(); - member_.add(index, builderForValue.build()); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void addAllMember( - java.lang.Iterable values) { - ensureMemberIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, member_); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void clearMember() { - member_ = emptyProtobufList(); - } - /** - * repeated .proto.GroupGetMemberListResponse.Member member = 2; - */ - private void removeMember(int index) { - ensureMemberIsMutable(); - member_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1675,10 +2580,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < member_.size(); i++) { output.writeMessage(2, member_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1690,162 +2597,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, member_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse other = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getMemberList() + .equals(other.getMemberList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getMemberCount() > 0) { + hash = (37 * hash) + MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getMemberList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupGetMemberListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupGetMemberListResponse) net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.class, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMemberFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (memberBuilder_ == null) { + member_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + memberBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupGetMemberList.internal_static_proto_GroupGetMemberListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse build() { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse buildPartial() { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse result = new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (memberBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + member_ = java.util.Collections.unmodifiableList(member_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.member_ = member_; + } else { + result.member_ = memberBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse other) { + if (other == net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (memberBuilder_ == null) { + if (!other.member_.isEmpty()) { + if (member_.isEmpty()) { + member_ = other.member_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMemberIsMutable(); + member_.addAll(other.member_); + } + onChanged(); + } + } else { + if (!other.member_.isEmpty()) { + if (memberBuilder_.isEmpty()) { + memberBuilder_.dispose(); + memberBuilder_ = null; + member_ = other.member_; + bitField0_ = (bitField0_ & ~0x00000001); + memberBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMemberFieldBuilder() : null; + } else { + memberBuilder_.addAllMessages(other.member_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List member_ = + java.util.Collections.emptyList(); + private void ensureMemberIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + member_ = new java.util.ArrayList(member_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.MemberOrBuilder> memberBuilder_; /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ public java.util.List getMemberList() { - return java.util.Collections.unmodifiableList( - instance.getMemberList()); + if (memberBuilder_ == null) { + return java.util.Collections.unmodifiableList(member_); + } else { + return memberBuilder_.getMessageList(); + } } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ public int getMemberCount() { - return instance.getMemberCount(); - }/** + if (memberBuilder_ == null) { + return member_.size(); + } else { + return memberBuilder_.getCount(); + } + } + /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member getMember(int index) { - return instance.getMember(index); + if (memberBuilder_ == null) { + return member_.get(index); + } else { + return memberBuilder_.getMessage(index); + } } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ public Builder setMember( int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member value) { - copyOnWrite(); - instance.setMember(index, value); + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMemberIsMutable(); + member_.set(index, value); + onChanged(); + } else { + memberBuilder_.setMessage(index, value); + } return this; } /** @@ -1853,16 +3115,29 @@ public Builder setMember( */ public Builder setMember( int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder builderForValue) { - copyOnWrite(); - instance.setMember(index, builderForValue); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.set(index, builderForValue.build()); + onChanged(); + } else { + memberBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ public Builder addMember(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member value) { - copyOnWrite(); - instance.addMember(value); + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMemberIsMutable(); + member_.add(value); + onChanged(); + } else { + memberBuilder_.addMessage(value); + } return this; } /** @@ -1870,8 +3145,16 @@ public Builder addMember(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberLi */ public Builder addMember( int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member value) { - copyOnWrite(); - instance.addMember(index, value); + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMemberIsMutable(); + member_.add(index, value); + onChanged(); + } else { + memberBuilder_.addMessage(index, value); + } return this; } /** @@ -1879,8 +3162,13 @@ public Builder addMember( */ public Builder addMember( net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder builderForValue) { - copyOnWrite(); - instance.addMember(builderForValue); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.add(builderForValue.build()); + onChanged(); + } else { + memberBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1888,8 +3176,13 @@ public Builder addMember( */ public Builder addMember( int index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder builderForValue) { - copyOnWrite(); - instance.addMember(index, builderForValue); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.add(index, builderForValue.build()); + onChanged(); + } else { + memberBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1897,146 +3190,236 @@ public Builder addMember( */ public Builder addAllMember( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllMember(values); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, member_); + onChanged(); + } else { + memberBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ public Builder clearMember() { - copyOnWrite(); - instance.clearMember(); + if (memberBuilder_ == null) { + member_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + memberBuilder_.clear(); + } return this; } /** * repeated .proto.GroupGetMemberListResponse.Member member = 2; */ public Builder removeMember(int index) { - copyOnWrite(); - instance.removeMember(index); + if (memberBuilder_ == null) { + ensureMemberIsMutable(); + member_.remove(index); + onChanged(); + } else { + memberBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupGetMemberListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - member_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse other = (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - member_= visitor.visitList(member_, other.member_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!member_.isModifiable()) { - member_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(member_); - } - member_.add( - input.readMessage(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder getMemberBuilder( + int index) { + return getMemberFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.MemberOrBuilder getMemberOrBuilder( + int index) { + if (memberBuilder_ == null) { + return member_.get(index); } else { + return memberBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + public java.util.List + getMemberOrBuilderList() { + if (memberBuilder_ != null) { + return memberBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(member_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder addMemberBuilder() { + return getMemberFieldBuilder().addBuilder( + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.getDefaultInstance()); + } + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder addMemberBuilder( + int index) { + return getMemberFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.getDefaultInstance()); + } + /** + * repeated .proto.GroupGetMemberListResponse.Member member = 2; + */ + public java.util.List + getMemberBuilderList() { + return getMemberFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.MemberOrBuilder> + getMemberFieldBuilder() { + if (memberBuilder_ == null) { + memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member.Builder, net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.MemberOrBuilder>( + member_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + member_ = null; } + return memberBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupGetMemberListResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupGetMemberListResponse) private static final net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupGetMemberListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse(); } public static net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupGetMemberListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupGetMemberListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - } + @java.lang.Override + public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupGetMemberList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupGetMemberList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupGetMemberListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupGetMemberListResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupGetMemberListResponse_Member_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupGetMemberListResponse_Member_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030GroupGetMemberList.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\032\023" + + "GroupAddAdmin.proto\032\035GroupChangeMemberRi" + + "ghts.proto\"\345\001\n\022GroupGetMemberList\022\037\n\007req" + + "uest\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 " + + "\001(\004\0229\n\013filter_role\030\003 \001(\0162$.proto.GroupGe" + + "tMemberList.FilterRole\022%\n\npagination\030\004 \001" + + "(\0132\021.proto.Pagination\";\n\nFilterRole\022\007\n\003A" + + "LL\020\000\022\n\n\006MEMBER\020\001\022\r\n\tMODERATOR\020\002\022\t\n\005ADMIN" + + "\020\003\"\334\002\n\032GroupGetMemberListResponse\022!\n\010res" + + "ponse\030\001 \001(\0132\017.proto.Response\0228\n\006member\030\002" + + " \003(\0132(.proto.GroupGetMemberListResponse." + + "Member\032\340\001\n\006Member\022\016\n\006userId\030\001 \001(\004\022#\n\004rol" + + "e\030\002 \001(\0162\025.proto.GroupRoom.Role\0225\n\013adminR" + + "ights\030\003 \001(\0132 .proto.GroupAddAdmin.AdminR" + + "ights\022A\n\014memberRights\030\004 \001(\0132+.proto.Grou" + + "pChangeMemberRights.MemberRights\022\'\n\010user" + + "Info\030\005 \001(\0132\025.proto.RegisteredUserB)\n\016net" + + ".iGap.protoB\027ProtoGroupGetMemberListb\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + net.iGap.proto.ProtoGroupAddAdmin.getDescriptor(), + net.iGap.proto.ProtoGroupChangeMemberRights.getDescriptor(), + }); + internal_static_proto_GroupGetMemberList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupGetMemberList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupGetMemberList_descriptor, + new java.lang.String[] { "Request", "RoomId", "FilterRole", "Pagination", }); + internal_static_proto_GroupGetMemberListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupGetMemberListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupGetMemberListResponse_descriptor, + new java.lang.String[] { "Response", "Member", }); + internal_static_proto_GroupGetMemberListResponse_Member_descriptor = + internal_static_proto_GroupGetMemberListResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_GroupGetMemberListResponse_Member_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupGetMemberListResponse_Member_descriptor, + new java.lang.String[] { "UserId", "Role", "AdminRights", "MemberRights", "UserInfo", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); + net.iGap.proto.ProtoGroupAddAdmin.getDescriptor(); + net.iGap.proto.ProtoGroupChangeMemberRights.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupKickAdmin.java b/src/main/java/net/iGap/proto/ProtoGroupKickAdmin.java index 06e50ba..a30c5c2 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupKickAdmin.java +++ b/src/main/java/net/iGap/proto/ProtoGroupKickAdmin.java @@ -8,137 +8,203 @@ private ProtoGroupKickAdmin() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupKickAdminOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupKickAdmin) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupKickAdmin} */ - public static final class GroupKickAdmin extends - com.google.protobuf.GeneratedMessageLite< - GroupKickAdmin, GroupKickAdmin.Builder> implements + public static final class GroupKickAdmin extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupKickAdmin) GroupKickAdminOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKickAdmin.newBuilder() to construct. + private GroupKickAdmin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupKickAdmin() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupKickAdmin(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupKickAdmin( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.class, net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,494 +237,791 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin other = (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupKickAdmin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupKickAdmin) net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdmin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdmin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.class, net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdmin_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin build() { + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin buildPartial() { + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin result = new net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin) { + return mergeFrom((net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin other) { + if (other == net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupKickAdmin) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin other = (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupKickAdmin) + } + // @@protoc_insertion_point(class_scope:proto.GroupKickAdmin) private static final net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupKickAdmin(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin(); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKickAdmin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKickAdmin(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdmin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupKickAdminResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupKickAdminResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ boolean hasPermission(); /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission(); + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder(); } /** * Protobuf type {@code proto.GroupKickAdminResponse} */ - public static final class GroupKickAdminResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupKickAdminResponse, GroupKickAdminResponse.Builder> implements + public static final class GroupKickAdminResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupKickAdminResponse) GroupKickAdminResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKickAdminResponse.newBuilder() to construct. + private GroupKickAdminResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupKickAdminResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupKickAdminResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupKickAdminResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + case 34: { + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; + if (permission_ != null) { + subBuilder = permission_.toBuilder(); + } + permission_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(permission_); + permission_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.class, net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; - } public static final int PERMISSION_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights permission_; /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ + @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ + @java.lang.Override public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission() { return permission_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ - private void setPermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (value == null) { - throw new NullPointerException(); - } - permission_ = value; - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void setPermission( - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - permission_ = builderForValue.build(); - - } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void mergePermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - if (permission_ != null && - permission_ != net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance()) { - permission_ = - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(permission_).mergeFrom(value).buildPartial(); - } else { - permission_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder() { + return getPermission(); } - /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; - */ - private void clearPermission() { permission_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -671,10 +1036,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -694,363 +1061,740 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse other = (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (hasPermission() != other.hasPermission()) return false; + if (hasPermission()) { + if (!getPermission() + .equals(other.getPermission())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + if (hasPermission()) { + hash = (37 * hash) + PERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getPermission().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupKickAdminResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupKickAdminResponse) net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdminResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdminResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.class, net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + if (permissionBuilder_ == null) { + permission_ = null; + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupKickAdmin.internal_static_proto_GroupKickAdminResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse build() { + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse buildPartial() { + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse result = new net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + if (permissionBuilder_ == null) { + result.permission_ = permission_; + } else { + result.permission_ = permissionBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse other) { + if (other == net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + if (other.hasPermission()) { + mergePermission(other.getPermission()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights permission_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> permissionBuilder_; /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return Whether the permission field is set. */ public boolean hasPermission() { - return instance.hasPermission(); + return permissionBuilder_ != null || permission_ != null; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + * @return The permission. */ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights getPermission() { - return instance.getPermission(); + if (permissionBuilder_ == null) { + return permission_ == null ? net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; + } else { + return permissionBuilder_.getMessage(); + } } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder setPermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.setPermission(value); - return this; + if (permissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + permission_ = value; + onChanged(); + } else { + permissionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder setPermission( net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder builderForValue) { - copyOnWrite(); - instance.setPermission(builderForValue); + if (permissionBuilder_ == null) { + permission_ = builderForValue.build(); + onChanged(); + } else { + permissionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ public Builder mergePermission(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights value) { - copyOnWrite(); - instance.mergePermission(value); + if (permissionBuilder_ == null) { + if (permission_ != null) { + permission_ = + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.newBuilder(permission_).mergeFrom(value).buildPartial(); + } else { + permission_ = value; + } + onChanged(); + } else { + permissionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.GroupChangeMemberRights.MemberRights permission = 4; + * .proto.GroupChangeMemberRights.MemberRights permission = 4; */ - public Builder clearPermission() { copyOnWrite(); - instance.clearPermission(); + public Builder clearPermission() { + if (permissionBuilder_ == null) { + permission_ = null; + onChanged(); + } else { + permission_ = null; + permissionBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupKickAdminResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse other = (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - permission_ = visitor.visitMessage(permission_, other.permission_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - case 34: { - net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder subBuilder = null; - if (permission_ != null) { - subBuilder = permission_.toBuilder(); - } - permission_ = input.readMessage(net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permission_); - permission_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder getPermissionBuilder() { + + onChanged(); + return getPermissionFieldBuilder().getBuilder(); + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getPermissionOrBuilder() { + if (permissionBuilder_ != null) { + return permissionBuilder_.getMessageOrBuilder(); + } else { + return permission_ == null ? + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.getDefaultInstance() : permission_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.GroupChangeMemberRights.MemberRights permission = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder> + getPermissionFieldBuilder() { + if (permissionBuilder_ == null) { + permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRights.Builder, net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder>( + getPermission(), + getParentForChildren(), + isClean()); + permission_ = null; } + return permissionBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GroupKickAdminResponse) + } // @@protoc_insertion_point(class_scope:proto.GroupKickAdminResponse) private static final net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupKickAdminResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse(); } public static net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKickAdminResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKickAdminResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickAdmin.GroupKickAdminResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupKickAdmin_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupKickAdmin_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupKickAdminResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupKickAdminResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024GroupKickAdmin.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\032\035GroupChangeMemberR" + + "ights.proto\"U\n\016GroupKickAdmin\022\037\n\007request" + + "\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022" + + "\021\n\tmember_id\030\003 \001(\004\"\240\001\n\026GroupKickAdminRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "\022\017\n\007room_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\022?\n\n" + + "permission\030\004 \001(\0132+.proto.GroupChangeMemb" + + "erRights.MemberRightsB%\n\016net.iGap.protoB" + + "\023ProtoGroupKickAdminb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGroupChangeMemberRights.getDescriptor(), + }); + internal_static_proto_GroupKickAdmin_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupKickAdmin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupKickAdmin_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_GroupKickAdminResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupKickAdminResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupKickAdminResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", "Permission", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGroupChangeMemberRights.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupKickMember.java b/src/main/java/net/iGap/proto/ProtoGroupKickMember.java index 4d50187..86f121a 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupKickMember.java +++ b/src/main/java/net/iGap/proto/ProtoGroupKickMember.java @@ -8,137 +8,203 @@ private ProtoGroupKickMember() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupKickMemberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupKickMember) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupKickMember} */ - public static final class GroupKickMember extends - com.google.protobuf.GeneratedMessageLite< - GroupKickMember, GroupKickMember.Builder> implements + public static final class GroupKickMember extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupKickMember) GroupKickMemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKickMember.newBuilder() to construct. + private GroupKickMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupKickMember() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupKickMember(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupKickMember( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickMember.GroupKickMember.class, net.iGap.proto.ProtoGroupKickMember.GroupKickMember.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupKickMember.GroupKickMember)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupKickMember.GroupKickMember other = (net.iGap.proto.ProtoGroupKickMember.GroupKickMember) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupKickMember.GroupKickMember prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupKickMember} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupKickMember.GroupKickMember, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupKickMember) net.iGap.proto.ProtoGroupKickMember.GroupKickMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickMember.GroupKickMember.class, net.iGap.proto.ProtoGroupKickMember.GroupKickMember.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupKickMember.GroupKickMember.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + memberId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMember_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMember getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupKickMember.GroupKickMember.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMember build() { + net.iGap.proto.ProtoGroupKickMember.GroupKickMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMember buildPartial() { + net.iGap.proto.ProtoGroupKickMember.GroupKickMember result = new net.iGap.proto.ProtoGroupKickMember.GroupKickMember(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupKickMember.GroupKickMember) { + return mergeFrom((net.iGap.proto.ProtoGroupKickMember.GroupKickMember)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupKickMember.GroupKickMember other) { + if (other == net.iGap.proto.ProtoGroupKickMember.GroupKickMember.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupKickMember.GroupKickMember parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupKickMember.GroupKickMember) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupKickMember) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupKickMember.GroupKickMember(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupKickMember.GroupKickMember other = (net.iGap.proto.ProtoGroupKickMember.GroupKickMember) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupKickMember.GroupKickMember.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupKickMember) + } + // @@protoc_insertion_point(class_scope:proto.GroupKickMember) private static final net.iGap.proto.ProtoGroupKickMember.GroupKickMember DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupKickMember(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupKickMember.GroupKickMember(); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMember getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKickMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKickMember(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupKickMemberResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupKickMemberResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupKickMemberResponse} */ - public static final class GroupKickMemberResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupKickMemberResponse, GroupKickMemberResponse.Builder> implements + public static final class GroupKickMemberResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupKickMemberResponse) GroupKickMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKickMemberResponse.newBuilder() to construct. + private GroupKickMemberResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupKickMemberResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupKickMemberResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupKickMemberResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.class, net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse other = (net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupKickMemberResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupKickMemberResponse) net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.class, net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupKickMember.internal_static_proto_GroupKickMemberResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse build() { + net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse buildPartial() { + net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse result = new net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse other) { + if (other == net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupKickMemberResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse other = (net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupKickMemberResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupKickMemberResponse) private static final net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupKickMemberResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse(); } public static net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKickMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKickMemberResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickMember.GroupKickMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupKickMember_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupKickMember_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupKickMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupKickMemberResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025GroupKickMember.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\"V\n\017GroupKickMember" + + "\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007roo" + + "m_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\"`\n\027GroupKi" + + "ckMemberResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.Response\022\017\n\007room_id\030\002 \001(\004\022\021\n\tmember_i" + + "d\030\003 \001(\004B&\n\016net.iGap.protoB\024ProtoGroupKic" + + "kMemberb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupKickMember_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupKickMember_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupKickMember_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_GroupKickMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupKickMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupKickMemberResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupKickModerator.java b/src/main/java/net/iGap/proto/ProtoGroupKickModerator.java index 90f4367..5237ac7 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupKickModerator.java +++ b/src/main/java/net/iGap/proto/ProtoGroupKickModerator.java @@ -8,137 +8,203 @@ private ProtoGroupKickModerator() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupKickModeratorOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupKickModerator) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupKickModerator} */ - public static final class GroupKickModerator extends - com.google.protobuf.GeneratedMessageLite< - GroupKickModerator, GroupKickModerator.Builder> implements + public static final class GroupKickModerator extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupKickModerator) GroupKickModeratorOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKickModerator.newBuilder() to construct. + private GroupKickModerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupKickModerator() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupKickModerator(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupKickModerator( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.class, net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,433 +237,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator other = (net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupKickModerator} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupKickModerator) net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModerator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModerator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.class, net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + memberId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModerator_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator build() { + net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator buildPartial() { + net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator result = new net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator) { + return mergeFrom((net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator other) { + if (other == net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupKickModerator) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator other = (net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupKickModerator) + } + // @@protoc_insertion_point(class_scope:proto.GroupKickModerator) private static final net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupKickModerator(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator(); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKickModerator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKickModerator(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModerator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupKickModeratorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupKickModeratorResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupKickModeratorResponse} */ - public static final class GroupKickModeratorResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupKickModeratorResponse, GroupKickModeratorResponse.Builder> implements + public static final class GroupKickModeratorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupKickModeratorResponse) GroupKickModeratorResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKickModeratorResponse.newBuilder() to construct. + private GroupKickModeratorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupKickModeratorResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupKickModeratorResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupKickModeratorResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.class, net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -607,10 +979,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -626,304 +1000,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse other = (net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupKickModeratorResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupKickModeratorResponse) net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModeratorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModeratorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.class, net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupKickModerator.internal_static_proto_GroupKickModeratorResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse build() { + net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse buildPartial() { + net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse result = new net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse other) { + if (other == net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupKickModeratorResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse other = (net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupKickModeratorResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupKickModeratorResponse) private static final net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupKickModeratorResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse(); } public static net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKickModeratorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKickModeratorResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupKickModerator.GroupKickModeratorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupKickModerator_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupKickModerator_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupKickModeratorResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupKickModeratorResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030GroupKickModerator.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"Y\n\022GroupKickMod" + + "erator\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\017\n\007room_id\030\002 \001(\004\022\021\n\tmember_id\030\003 \001(\004\"c\n\032G" + + "roupKickModeratorResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\021\n" + + "\tmember_id\030\003 \001(\004B)\n\016net.iGap.protoB\027Prot" + + "oGroupKickModeratorb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupKickModerator_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupKickModerator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupKickModerator_descriptor, + new java.lang.String[] { "Request", "RoomId", "MemberId", }); + internal_static_proto_GroupKickModeratorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupKickModeratorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupKickModeratorResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupLeft.java b/src/main/java/net/iGap/proto/ProtoGroupLeft.java index e39d7f2..f64fcf7 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupLeft.java +++ b/src/main/java/net/iGap/proto/ProtoGroupLeft.java @@ -8,109 +8,181 @@ private ProtoGroupLeft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupLeftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupLeft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupLeft} */ - public static final class GroupLeft extends - com.google.protobuf.GeneratedMessageLite< - GroupLeft, GroupLeft.Builder> implements + public static final class GroupLeft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupLeft) GroupLeftOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupLeft.newBuilder() to construct. + private GroupLeft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupLeft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupLeft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupLeft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupLeft.GroupLeft.class, net.iGap.proto.ProtoGroupLeft.GroupLeft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,403 +208,695 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupLeft.GroupLeft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupLeft.GroupLeft other = (net.iGap.proto.ProtoGroupLeft.GroupLeft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupLeft.GroupLeft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupLeft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupLeft.GroupLeft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupLeft) net.iGap.proto.ProtoGroupLeft.GroupLeftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupLeft.GroupLeft.class, net.iGap.proto.ProtoGroupLeft.GroupLeft.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupLeft.GroupLeft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeft getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupLeft.GroupLeft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeft build() { + net.iGap.proto.ProtoGroupLeft.GroupLeft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeft buildPartial() { + net.iGap.proto.ProtoGroupLeft.GroupLeft result = new net.iGap.proto.ProtoGroupLeft.GroupLeft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupLeft.GroupLeft) { + return mergeFrom((net.iGap.proto.ProtoGroupLeft.GroupLeft)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupLeft.GroupLeft other) { + if (other == net.iGap.proto.ProtoGroupLeft.GroupLeft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupLeft.GroupLeft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupLeft.GroupLeft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupLeft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupLeft.GroupLeft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupLeft.GroupLeft other = (net.iGap.proto.ProtoGroupLeft.GroupLeft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupLeft.GroupLeft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupLeft) + } + // @@protoc_insertion_point(class_scope:proto.GroupLeft) private static final net.iGap.proto.ProtoGroupLeft.GroupLeft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupLeft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupLeft.GroupLeft(); } public static net.iGap.proto.ProtoGroupLeft.GroupLeft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupLeft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupLeft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupLeftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupLeftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ long getMemberId(); } /** * Protobuf type {@code proto.GroupLeftResponse} */ - public static final class GroupLeftResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupLeftResponse, GroupLeftResponse.Builder> implements + public static final class GroupLeftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupLeftResponse) GroupLeftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupLeftResponse.newBuilder() to construct. + private GroupLeftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupLeftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupLeftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupLeftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + memberId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.class, net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { return memberId_; } - /** - * optional uint64 member_id = 3; - */ - private void setMemberId(long value) { - - memberId_ = value; - } - /** - * optional uint64 member_id = 3; - */ - private void clearMemberId() { - - memberId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -542,10 +908,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -561,304 +929,593 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupLeft.GroupLeftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupLeft.GroupLeftResponse other = (net.iGap.proto.ProtoGroupLeft.GroupLeftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMemberId() + != other.getMemberId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemberId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupLeft.GroupLeftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupLeftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupLeft.GroupLeftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupLeftResponse) net.iGap.proto.ProtoGroupLeft.GroupLeftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.class, net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + memberId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupLeft.internal_static_proto_GroupLeftResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeftResponse build() { + net.iGap.proto.ProtoGroupLeft.GroupLeftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeftResponse buildPartial() { + net.iGap.proto.ProtoGroupLeft.GroupLeftResponse result = new net.iGap.proto.ProtoGroupLeft.GroupLeftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.memberId_ = memberId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupLeft.GroupLeftResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupLeft.GroupLeftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupLeft.GroupLeftResponse other) { + if (other == net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMemberId() != 0L) { + setMemberId(other.getMemberId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupLeft.GroupLeftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupLeft.GroupLeftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long memberId_ ; /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return The memberId. */ + @java.lang.Override public long getMemberId() { - return instance.getMemberId(); + return memberId_; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @param value The memberId to set. + * @return This builder for chaining. */ public Builder setMemberId(long value) { - copyOnWrite(); - instance.setMemberId(value); + + memberId_ = value; + onChanged(); return this; } /** - * optional uint64 member_id = 3; + * uint64 member_id = 3; + * @return This builder for chaining. */ public Builder clearMemberId() { - copyOnWrite(); - instance.clearMemberId(); + + memberId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupLeftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupLeft.GroupLeftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupLeft.GroupLeftResponse other = (net.iGap.proto.ProtoGroupLeft.GroupLeftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - memberId_ = visitor.visitLong(memberId_ != 0L, memberId_, - other.memberId_ != 0L, other.memberId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - memberId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupLeft.GroupLeftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupLeftResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupLeftResponse) private static final net.iGap.proto.ProtoGroupLeft.GroupLeftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupLeftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupLeft.GroupLeftResponse(); } public static net.iGap.proto.ProtoGroupLeft.GroupLeftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupLeftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupLeftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupLeft.GroupLeftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupLeft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupLeft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupLeftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupLeftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\017GroupLeft.proto\022\005proto\032\rRequest.proto\032" + + "\016Response.proto\"=\n\tGroupLeft\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\"Z" + + "\n\021GroupLeftResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\017\n\007room_id\030\002 \001(\004\022\021\n\tmembe" + + "r_id\030\003 \001(\004B \n\016net.iGap.protoB\016ProtoGroup" + + "Leftb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupLeft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupLeft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupLeft_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_GroupLeftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupLeftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupLeftResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MemberId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupPinMessage.java b/src/main/java/net/iGap/proto/ProtoGroupPinMessage.java index 51aa0e5..08d93ea 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupPinMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupPinMessage.java @@ -8,165 +8,225 @@ private ProtoGroupPinMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupPinMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupPinMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.GroupPinMessage} */ - public static final class GroupPinMessage extends - com.google.protobuf.GeneratedMessageLite< - GroupPinMessage, GroupPinMessage.Builder> implements + public static final class GroupPinMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupPinMessage) GroupPinMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupPinMessage.newBuilder() to construct. + private GroupPinMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupPinMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupPinMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupPinMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.class, net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 4; private long documentId_; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 4; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 4; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(4, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,496 +266,811 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage other = (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupPinMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupPinMessage) net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.class, net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessage_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage build() { + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage buildPartial() { + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage result = new net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage) { + return mergeFrom((net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage other) { + if (other == net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupPinMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage other = (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupPinMessage) + } + // @@protoc_insertion_point(class_scope:proto.GroupPinMessage) private static final net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupPinMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage(); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupPinMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupPinMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupPinMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupPinMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ boolean hasPinnedMessage(); /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage(); + /** + * .proto.RoomMessage pinned_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder(); } /** * Protobuf type {@code proto.GroupPinMessageResponse} */ - public static final class GroupPinMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupPinMessageResponse, GroupPinMessageResponse.Builder> implements + public static final class GroupPinMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupPinMessageResponse) GroupPinMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupPinMessageResponse.newBuilder() to construct. + private GroupPinMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupPinMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupPinMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupPinMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (pinnedMessage_ != null) { + subBuilder = pinnedMessage_.toBuilder(); + } + pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pinnedMessage_); + pinnedMessage_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.class, net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int PINNED_MESSAGE_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ + @java.lang.Override public boolean hasPinnedMessage() { return pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; } /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - pinnedMessage_ = value; - - } - /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void setPinnedMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - pinnedMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ - private void mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (pinnedMessage_ != null && - pinnedMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - pinnedMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); - } else { - pinnedMessage_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + return getPinnedMessage(); } - /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void clearPinnedMessage() { pinnedMessage_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -705,10 +1082,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pinnedMessage_ != null) { output.writeMessage(3, getPinnedMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -724,333 +1103,697 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPinnedMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse other = (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasPinnedMessage() != other.hasPinnedMessage()) return false; + if (hasPinnedMessage()) { + if (!getPinnedMessage() + .equals(other.getPinnedMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasPinnedMessage()) { + hash = (37 * hash) + PINNED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getPinnedMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupPinMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupPinMessageResponse) net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.class, net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupPinMessage.internal_static_proto_GroupPinMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse build() { + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse buildPartial() { + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse result = new net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (pinnedMessageBuilder_ == null) { + result.pinnedMessage_ = pinnedMessage_; + } else { + result.pinnedMessage_ = pinnedMessageBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse other) { + if (other == net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasPinnedMessage()) { + mergePinnedMessage(other.getPinnedMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> pinnedMessageBuilder_; /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ public boolean hasPinnedMessage() { - return instance.hasPinnedMessage(); + return pinnedMessageBuilder_ != null || pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { - return instance.getPinnedMessage(); + if (pinnedMessageBuilder_ == null) { + return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } else { + return pinnedMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setPinnedMessage(value); - return this; + if (pinnedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pinnedMessage_ = value; + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder setPinnedMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPinnedMessage(builderForValue); + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = builderForValue.build(); + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergePinnedMessage(value); + if (pinnedMessageBuilder_ == null) { + if (pinnedMessage_ != null) { + pinnedMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); + } else { + pinnedMessage_ = value; + } + onChanged(); + } else { + pinnedMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ - public Builder clearPinnedMessage() { copyOnWrite(); - instance.clearPinnedMessage(); + public Builder clearPinnedMessage() { + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + onChanged(); + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupPinMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse other = (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - pinnedMessage_ = visitor.visitMessage(pinnedMessage_, other.pinnedMessage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (pinnedMessage_ != null) { - subBuilder = pinnedMessage_.toBuilder(); - } - pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pinnedMessage_); - pinnedMessage_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getPinnedMessageBuilder() { + + onChanged(); + return getPinnedMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + if (pinnedMessageBuilder_ != null) { + return pinnedMessageBuilder_.getMessageOrBuilder(); + } else { + return pinnedMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage pinned_message = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getPinnedMessageFieldBuilder() { + if (pinnedMessageBuilder_ == null) { + pinnedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getPinnedMessage(), + getParentForChildren(), + isClean()); + pinnedMessage_ = null; } + return pinnedMessageBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GroupPinMessageResponse) + } // @@protoc_insertion_point(class_scope:proto.GroupPinMessageResponse) private static final net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupPinMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse(); } public static net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupPinMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupPinMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupPinMessage.GroupPinMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupPinMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupPinMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupPinMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupPinMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025GroupPinMessage.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"l\n\017G" + + "roupPinMessage\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003" + + " \001(\004\022\023\n\013document_id\030\004 \001(\004\"y\n\027GroupPinMes" + + "sageResponse\022!\n\010response\030\001 \001(\0132\017.proto.R" + + "esponse\022\017\n\007room_id\030\002 \001(\004\022*\n\016pinned_messa" + + "ge\030\003 \001(\0132\022.proto.RoomMessageB&\n\016net.iGap" + + ".protoB\024ProtoGroupPinMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupPinMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupPinMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupPinMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_GroupPinMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupPinMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupPinMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "PinnedMessage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupRemoveUsername.java b/src/main/java/net/iGap/proto/ProtoGroupRemoveUsername.java index 551db85..bad8ee2 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupRemoveUsername.java +++ b/src/main/java/net/iGap/proto/ProtoGroupRemoveUsername.java @@ -8,109 +8,181 @@ private ProtoGroupRemoveUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupRemoveUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRemoveUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupRemoveUsername} */ - public static final class GroupRemoveUsername extends - com.google.protobuf.GeneratedMessageLite< - GroupRemoveUsername, GroupRemoveUsername.Builder> implements + public static final class GroupRemoveUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRemoveUsername) GroupRemoveUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupRemoveUsername.newBuilder() to construct. + private GroupRemoveUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupRemoveUsername() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupRemoveUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupRemoveUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.class, net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername other = (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRemoveUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRemoveUsername) net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.class, net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsername_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername build() { + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername buildPartial() { + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername result = new net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername) { + return mergeFrom((net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername other) { + if (other == net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRemoveUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername other = (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupRemoveUsername) + } + // @@protoc_insertion_point(class_scope:proto.GroupRemoveUsername) private static final net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupRemoveUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername(); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupRemoveUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupRemoveUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupRemoveUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRemoveUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupRemoveUsernameResponse} */ - public static final class GroupRemoveUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupRemoveUsernameResponse, GroupRemoveUsernameResponse.Builder> implements + public static final class GroupRemoveUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRemoveUsernameResponse) GroupRemoveUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupRemoveUsernameResponse.newBuilder() to construct. + private GroupRemoveUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupRemoveUsernameResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupRemoveUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupRemoveUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.class, net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse other = (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRemoveUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRemoveUsernameResponse) net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.class, net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupRemoveUsername.internal_static_proto_GroupRemoveUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse build() { + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse buildPartial() { + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse result = new net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse other) { + if (other == net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRemoveUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse other = (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupRemoveUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupRemoveUsernameResponse) private static final net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupRemoveUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse(); } public static net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupRemoveUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupRemoveUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRemoveUsername.GroupRemoveUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRemoveUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRemoveUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRemoveUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRemoveUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031GroupRemoveUsername.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"G\n\023GroupRemove" + + "Username\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\017\n\007room_id\030\002 \001(\004\"Q\n\033GroupRemoveUsernam" + + "eResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\017\n\007room_id\030\002 \001(\004B*\n\016net.iGap.protoB" + + "\030ProtoGroupRemoveUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupRemoveUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupRemoveUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRemoveUsername_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_GroupRemoveUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupRemoveUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRemoveUsernameResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupRevokeLink.java b/src/main/java/net/iGap/proto/ProtoGroupRevokeLink.java index 9093eff..5bc8d39 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupRevokeLink.java +++ b/src/main/java/net/iGap/proto/ProtoGroupRevokeLink.java @@ -8,109 +8,181 @@ private ProtoGroupRevokeLink() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupRevokeLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRevokeLink) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupRevokeLink} */ - public static final class GroupRevokeLink extends - com.google.protobuf.GeneratedMessageLite< - GroupRevokeLink, GroupRevokeLink.Builder> implements + public static final class GroupRevokeLink extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRevokeLink) GroupRevokeLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupRevokeLink.newBuilder() to construct. + private GroupRevokeLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupRevokeLink() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupRevokeLink(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupRevokeLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.class, net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,306 +208,549 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink other = (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRevokeLink} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRevokeLink) net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.class, net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLink_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink build() { + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink buildPartial() { + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink result = new net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink) { + return mergeFrom((net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink other) { + if (other == net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRevokeLink) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink other = (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupRevokeLink) + } + // @@protoc_insertion_point(class_scope:proto.GroupRevokeLink) private static final net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupRevokeLink(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink(); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupRevokeLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupRevokeLink(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupRevokeLinkResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRevokeLinkResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ java.lang.String getInviteLink(); /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ com.google.protobuf.ByteString getInviteLinkBytes(); /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The inviteToken. */ java.lang.String getInviteToken(); /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The bytes for inviteToken. */ com.google.protobuf.ByteString getInviteTokenBytes(); @@ -441,182 +758,237 @@ public interface GroupRevokeLinkResponseOrBuilder extends /** * Protobuf type {@code proto.GroupRevokeLinkResponse} */ - public static final class GroupRevokeLinkResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupRevokeLinkResponse, GroupRevokeLinkResponse.Builder> implements + public static final class GroupRevokeLinkResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRevokeLinkResponse) GroupRevokeLinkResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupRevokeLinkResponse.newBuilder() to construct. + private GroupRevokeLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupRevokeLinkResponse() { inviteLink_ = ""; inviteToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupRevokeLinkResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupRevokeLinkResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteLink_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.class, net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int INVITE_LINK_FIELD_NUMBER = 3; - private java.lang.String inviteLink_; + private volatile java.lang.Object inviteLink_; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ + @java.lang.Override public java.lang.String getInviteLink() { - return inviteLink_; + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteLinkBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteLink_); - } - /** - * optional string invite_link = 3; - */ - private void setInviteLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteLink_ = value; - } - /** - * optional string invite_link = 3; - */ - private void clearInviteLink() { - - inviteLink_ = getDefaultInstance().getInviteLink(); - } - /** - * optional string invite_link = 3; - */ - private void setInviteLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteLink_ = value.toStringUtf8(); + java.lang.Object ref = inviteLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INVITE_TOKEN_FIELD_NUMBER = 4; - private java.lang.String inviteToken_; + private volatile java.lang.Object inviteToken_; /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The inviteToken. */ + @java.lang.Override public java.lang.String getInviteToken() { - return inviteToken_; + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The bytes for inviteToken. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteToken_); - } - /** - * optional string invite_token = 4; - */ - private void setInviteToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteToken_ = value; - } - /** - * optional string invite_token = 4; - */ - private void clearInviteToken() { - - inviteToken_ = getDefaultInstance().getInviteToken(); + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_token = 4; - */ - private void setInviteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -625,16 +997,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!inviteLink_.isEmpty()) { - output.writeString(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inviteLink_); } - if (!inviteToken_.isEmpty()) { - output.writeString(4, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inviteToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -646,378 +1020,732 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!inviteLink_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getInviteLink()); + if (!getInviteLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inviteLink_); } - if (!inviteToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, inviteToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse other = (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getInviteLink() + .equals(other.getInviteLink())) return false; + if (!getInviteToken() + .equals(other.getInviteToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + INVITE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getInviteLink().hashCode(); + hash = (37 * hash) + INVITE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getInviteToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRevokeLinkResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRevokeLinkResponse) net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.class, net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + inviteLink_ = ""; + + inviteToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupRevokeLink.internal_static_proto_GroupRevokeLinkResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse build() { + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse buildPartial() { + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse result = new net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.inviteLink_ = inviteLink_; + result.inviteToken_ = inviteToken_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse other) { + if (other == net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getInviteLink().isEmpty()) { + inviteLink_ = other.inviteLink_; + onChanged(); + } + if (!other.getInviteToken().isEmpty()) { + inviteToken_ = other.inviteToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object inviteLink_ = ""; /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The inviteLink. */ public java.lang.String getInviteLink() { - return instance.getInviteLink(); + java.lang.Object ref = inviteLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return The bytes for inviteLink. */ public com.google.protobuf.ByteString getInviteLinkBytes() { - return instance.getInviteLinkBytes(); + java.lang.Object ref = inviteLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLink( java.lang.String value) { - copyOnWrite(); - instance.setInviteLink(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteLink_ = value; + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @return This builder for chaining. */ public Builder clearInviteLink() { - copyOnWrite(); - instance.clearInviteLink(); + + inviteLink_ = getDefaultInstance().getInviteLink(); + onChanged(); return this; } /** - * optional string invite_link = 3; + * string invite_link = 3; + * @param value The bytes for inviteLink to set. + * @return This builder for chaining. */ public Builder setInviteLinkBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteLinkBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteLink_ = value; + onChanged(); return this; } + private java.lang.Object inviteToken_ = ""; /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The inviteToken. */ public java.lang.String getInviteToken() { - return instance.getInviteToken(); + java.lang.Object ref = inviteToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return The bytes for inviteToken. */ public com.google.protobuf.ByteString getInviteTokenBytes() { - return instance.getInviteTokenBytes(); + java.lang.Object ref = inviteToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @param value The inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteToken( java.lang.String value) { - copyOnWrite(); - instance.setInviteToken(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteToken_ = value; + onChanged(); return this; } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @return This builder for chaining. */ public Builder clearInviteToken() { - copyOnWrite(); - instance.clearInviteToken(); + + inviteToken_ = getDefaultInstance().getInviteToken(); + onChanged(); return this; } /** - * optional string invite_token = 4; + * string invite_token = 4; + * @param value The bytes for inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRevokeLinkResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse other = (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - inviteLink_ = visitor.visitString(!inviteLink_.isEmpty(), inviteLink_, - !other.inviteLink_.isEmpty(), other.inviteLink_); - inviteToken_ = visitor.visitString(!inviteToken_.isEmpty(), inviteToken_, - !other.inviteToken_.isEmpty(), other.inviteToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - inviteLink_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - inviteToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupRevokeLinkResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupRevokeLinkResponse) private static final net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupRevokeLinkResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse(); } public static net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupRevokeLinkResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupRevokeLinkResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRevokeLink.GroupRevokeLinkResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRevokeLink_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRevokeLink_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRevokeLinkResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRevokeLinkResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025GroupRevokeLink.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\"C\n\017GroupRevokeLink" + + "\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007roo" + + "m_id\030\002 \001(\004\"x\n\027GroupRevokeLinkResponse\022!\n" + + "\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007room" + + "_id\030\002 \001(\004\022\023\n\013invite_link\030\003 \001(\t\022\024\n\014invite" + + "_token\030\004 \001(\tB&\n\016net.iGap.protoB\024ProtoGro" + + "upRevokeLinkb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupRevokeLink_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupRevokeLink_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRevokeLink_descriptor, + new java.lang.String[] { "Request", "RoomId", }); + internal_static_proto_GroupRevokeLinkResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupRevokeLinkResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRevokeLinkResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "InviteLink", "InviteToken", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupRoomMemberMention.java b/src/main/java/net/iGap/proto/ProtoGroupRoomMemberMention.java index 110918a..01528ad 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupRoomMemberMention.java +++ b/src/main/java/net/iGap/proto/ProtoGroupRoomMemberMention.java @@ -8,30 +8,45 @@ private ProtoGroupRoomMemberMention() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupRoomMemberMentionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRoomMemberMention) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string query = 3; + * string query = 3; + * @return The query. */ java.lang.String getQuery(); /** - * optional string query = 3; + * string query = 3; + * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); @@ -39,135 +54,192 @@ public interface GroupRoomMemberMentionOrBuilder extends /** * Protobuf type {@code proto.GroupRoomMemberMention} */ - public static final class GroupRoomMemberMention extends - com.google.protobuf.GeneratedMessageLite< - GroupRoomMemberMention, GroupRoomMemberMention.Builder> implements + public static final class GroupRoomMemberMention extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRoomMemberMention) GroupRoomMemberMentionOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupRoomMemberMention.newBuilder() to construct. + private GroupRoomMemberMention(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupRoomMemberMention() { query_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupRoomMemberMention(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupRoomMemberMention( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMention_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMention_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.class, net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int QUERY_FIELD_NUMBER = 3; - private java.lang.String query_; + private volatile java.lang.Object query_; /** - * optional string query = 3; + * string query = 3; + * @return The query. */ + @java.lang.Override public java.lang.String getQuery() { - return query_; + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } } /** - * optional string query = 3; + * string query = 3; + * @return The bytes for query. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(query_); - } - /** - * optional string query = 3; - */ - private void setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - } - /** - * optional string query = 3; - */ - private void clearQuery() { - - query_ = getDefaultInstance().getQuery(); + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string query = 3; - */ - private void setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -176,13 +248,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!query_.isEmpty()) { - output.writeString(3, getQuery()); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -194,339 +268,616 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!query_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getQuery()); + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention other = (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRoomMemberMention} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRoomMemberMention) net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMention_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMention_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.class, net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + query_ = ""; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMention_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention build() { + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention buildPartial() { + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention result = new net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.query_ = query_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention) { + return mergeFrom((net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention other) { + if (other == net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object query_ = ""; /** - * optional string query = 3; + * string query = 3; + * @return The query. */ public java.lang.String getQuery() { - return instance.getQuery(); + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string query = 3; + * string query = 3; + * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { - return instance.getQueryBytes(); + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string query = 3; + * string query = 3; + * @param value The query to set. + * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { - copyOnWrite(); - instance.setQuery(value); + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); return this; } /** - * optional string query = 3; + * string query = 3; + * @return This builder for chaining. */ public Builder clearQuery() { - copyOnWrite(); - instance.clearQuery(); + + query_ = getDefaultInstance().getQuery(); + onChanged(); return this; } /** - * optional string query = 3; + * string query = 3; + * @param value The bytes for query to set. + * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQueryBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupRoomMemberMention) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention other = (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - query_ = visitor.visitString(!query_.isEmpty(), query_, - !other.query_.isEmpty(), other.query_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupRoomMemberMention) + } + // @@protoc_insertion_point(class_scope:proto.GroupRoomMemberMention) private static final net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupRoomMemberMention(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention(); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupRoomMemberMention parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupRoomMemberMention(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMention getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupRoomMemberMentionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupRoomMemberMentionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); @@ -543,105 +894,176 @@ public interface GroupRoomMemberMentionResponseOrBuilder extends * repeated .proto.RegisteredUser users = 3; */ int getUsersCount(); + /** + * repeated .proto.RegisteredUser users = 3; + */ + java.util.List + getUsersOrBuilderList(); + /** + * repeated .proto.RegisteredUser users = 3; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUsersOrBuilder( + int index); } /** * Protobuf type {@code proto.GroupRoomMemberMentionResponse} */ - public static final class GroupRoomMemberMentionResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupRoomMemberMentionResponse, GroupRoomMemberMentionResponse.Builder> implements + public static final class GroupRoomMemberMentionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupRoomMemberMentionResponse) GroupRoomMemberMentionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupRoomMemberMentionResponse.newBuilder() to construct. + private GroupRoomMemberMentionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupRoomMemberMentionResponse() { - users_ = emptyProtobufList(); + users_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupRoomMemberMentionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupRoomMemberMentionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + users_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + users_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + users_ = java.util.Collections.unmodifiableList(users_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMentionResponse_descriptor; } - private int bitField0_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMentionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.class, net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int USERS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList users_; + private java.util.List users_; /** * repeated .proto.RegisteredUser users = 3; */ + @java.lang.Override public java.util.List getUsersList() { return users_; } /** * repeated .proto.RegisteredUser users = 3; */ + @java.lang.Override public java.util.List getUsersOrBuilderList() { return users_; @@ -649,108 +1071,38 @@ public java.util.List getUsersList() /** * repeated .proto.RegisteredUser users = 3; */ + @java.lang.Override public int getUsersCount() { return users_.size(); } /** * repeated .proto.RegisteredUser users = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUsers(int index) { return users_.get(index); } /** * repeated .proto.RegisteredUser users = 3; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUsersOrBuilder( int index) { return users_.get(index); } - private void ensureUsersIsMutable() { - if (!users_.isModifiable()) { - users_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(users_); - } - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void setUsers( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.set(index, value); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void setUsers( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - ensureUsersIsMutable(); - users_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void addUsers(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(value); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void addUsers( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(index, value); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void addUsers( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - ensureUsersIsMutable(); - users_.add(builderForValue.build()); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void addUsers( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - ensureUsersIsMutable(); - users_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void addAllUsers( - java.lang.Iterable values) { - ensureUsersIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, users_); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void clearUsers() { - users_ = emptyProtobufList(); - } - /** - * repeated .proto.RegisteredUser users = 3; - */ - private void removeUsers(int index) { - ensureUsersIsMutable(); - users_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -762,10 +1114,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < users_.size(); i++) { output.writeMessage(3, users_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -781,185 +1135,559 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, users_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse other = (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getUsersList() + .equals(other.getUsersList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (getUsersCount() > 0) { + hash = (37 * hash) + USERS_FIELD_NUMBER; + hash = (53 * hash) + getUsersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupRoomMemberMentionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupRoomMemberMentionResponse) net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMentionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMentionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.class, net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUsersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + usersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupRoomMemberMention.internal_static_proto_GroupRoomMemberMentionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse build() { + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse buildPartial() { + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse result = new net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (usersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + users_ = java.util.Collections.unmodifiableList(users_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.users_ = users_; + } else { + result.users_ = usersBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse other) { + if (other == net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (usersBuilder_ == null) { + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + onChanged(); + } + } else { + if (!other.users_.isEmpty()) { + if (usersBuilder_.isEmpty()) { + usersBuilder_.dispose(); + usersBuilder_ = null; + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + usersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUsersFieldBuilder() : null; + } else { + usersBuilder_.addAllMessages(other.users_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.util.List users_ = + java.util.Collections.emptyList(); + private void ensureUsersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + users_ = new java.util.ArrayList(users_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> usersBuilder_; + /** * repeated .proto.RegisteredUser users = 3; */ public java.util.List getUsersList() { - return java.util.Collections.unmodifiableList( - instance.getUsersList()); + if (usersBuilder_ == null) { + return java.util.Collections.unmodifiableList(users_); + } else { + return usersBuilder_.getMessageList(); + } } /** * repeated .proto.RegisteredUser users = 3; */ public int getUsersCount() { - return instance.getUsersCount(); - }/** + if (usersBuilder_ == null) { + return users_.size(); + } else { + return usersBuilder_.getCount(); + } + } + /** * repeated .proto.RegisteredUser users = 3; */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUsers(int index) { - return instance.getUsers(index); + if (usersBuilder_ == null) { + return users_.get(index); + } else { + return usersBuilder_.getMessage(index); + } } /** * repeated .proto.RegisteredUser users = 3; */ public Builder setUsers( int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUsers(index, value); + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.set(index, value); + onChanged(); + } else { + usersBuilder_.setMessage(index, value); + } return this; } /** @@ -967,16 +1695,29 @@ public Builder setUsers( */ public Builder setUsers( int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUsers(index, builderForValue); + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.set(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RegisteredUser users = 3; */ public Builder addUsers(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.addUsers(value); + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(value); + onChanged(); + } else { + usersBuilder_.addMessage(value); + } return this; } /** @@ -984,8 +1725,16 @@ public Builder addUsers(net.iGap.proto.ProtoGlobal.RegisteredUser value) { */ public Builder addUsers( int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.addUsers(index, value); + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(index, value); + onChanged(); + } else { + usersBuilder_.addMessage(index, value); + } return this; } /** @@ -993,8 +1742,13 @@ public Builder addUsers( */ public Builder addUsers( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.addUsers(builderForValue); + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1002,8 +1756,13 @@ public Builder addUsers( */ public Builder addUsers( int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.addUsers(index, builderForValue); + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1011,153 +1770,210 @@ public Builder addUsers( */ public Builder addAllUsers( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllUsers(values); + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, users_); + onChanged(); + } else { + usersBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.RegisteredUser users = 3; */ public Builder clearUsers() { - copyOnWrite(); - instance.clearUsers(); + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + usersBuilder_.clear(); + } return this; } /** * repeated .proto.RegisteredUser users = 3; */ public Builder removeUsers(int index) { - copyOnWrite(); - instance.removeUsers(index); + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.remove(index); + onChanged(); + } else { + usersBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupRoomMemberMentionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - users_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse other = (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - users_= visitor.visitList(users_, other.users_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - if (!users_.isModifiable()) { - users_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(users_); - } - users_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.RegisteredUser users = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUsersBuilder( + int index) { + return getUsersFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RegisteredUser users = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUsersOrBuilder( + int index) { + if (usersBuilder_ == null) { + return users_.get(index); } else { + return usersBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.RegisteredUser users = 3; + */ + public java.util.List + getUsersOrBuilderList() { + if (usersBuilder_ != null) { + return usersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(users_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.RegisteredUser users = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder addUsersBuilder() { + return getUsersFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()); + } + /** + * repeated .proto.RegisteredUser users = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder addUsersBuilder( + int index) { + return getUsersFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()); + } + /** + * repeated .proto.RegisteredUser users = 3; + */ + public java.util.List + getUsersBuilderList() { + return getUsersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUsersFieldBuilder() { + if (usersBuilder_ == null) { + usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + users_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + users_ = null; } + return usersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupRoomMemberMentionResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupRoomMemberMentionResponse) private static final net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupRoomMemberMentionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse(); } public static net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupRoomMemberMentionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupRoomMemberMentionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupRoomMemberMention.GroupRoomMemberMentionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRoomMemberMention_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRoomMemberMention_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupRoomMemberMentionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupRoomMemberMentionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034GroupRoomMemberMention.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\032\014Global.pro" + + "to\"Y\n\026GroupRoomMemberMention\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\r" + + "\n\005query\030\003 \001(\t\"z\n\036GroupRoomMemberMentionR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "se\022\017\n\007room_id\030\002 \001(\004\022$\n\005users\030\003 \003(\0132\025.pro" + + "to.RegisteredUserB-\n\016net.iGap.protoB\033Pro" + + "toGroupRoomMemberMentionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupRoomMemberMention_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupRoomMemberMention_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRoomMemberMention_descriptor, + new java.lang.String[] { "Request", "RoomId", "Query", }); + internal_static_proto_GroupRoomMemberMentionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupRoomMemberMentionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupRoomMemberMentionResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Users", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java b/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java index 30bfbd6..adc381e 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java @@ -8,149 +8,221 @@ private ProtoGroupSendMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupSendMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupSendMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ int getMessageTypeValue(); /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); /** - * optional string message = 4; + * string message = 4; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ java.lang.String getAttachment(); /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ com.google.protobuf.ByteString getAttachmentBytes(); /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ boolean hasLocation(); /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation(); + /** + * .proto.RoomMessageLocation location = 6; + */ + net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder(); /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ boolean hasContact(); /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ net.iGap.proto.ProtoGlobal.RoomMessageContact getContact(); + /** + * .proto.RoomMessageContact contact = 7; + */ + net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder(); /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ long getReplyTo(); /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ boolean hasForwardFrom(); /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom(); + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder(); /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ long getRandomId(); /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ int getAdditionalType(); /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ java.lang.String getAdditionalData(); /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ com.google.protobuf.ByteString getAdditionalDataBytes(); /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return Whether the storyReply field is set. */ boolean hasStoryReply(); /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return The storyReply. */ net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getStoryReply(); + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder getStoryReplyOrBuilder(); /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return Whether the storyForward field is set. */ boolean hasStoryForward(); /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return The storyForward. */ net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getStoryForward(); + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder(); /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; + * @return Whether the mentions field is set. */ boolean hasMentions(); /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; + * @return The mentions. */ net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * .proto.Mention mentions = 15; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; + * @return Whether the sticker field is set. */ boolean hasSticker(); /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; + * @return The sticker. */ net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * .proto.RoomMessageSticker sticker = 16; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; + * @return Whether the cardToCard field is set. */ boolean hasCardToCard(); /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; + * @return The cardToCard. */ net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * .proto.RoomMessageCardToCard card_to_card = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; @@ -165,779 +237,725 @@ public interface GroupSendMessageOrBuilder extends * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; + * @return Whether the textSigns field is set. */ boolean hasTextSigns(); /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; + * @return The textSigns. */ net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * .proto.TextSigns text_signs = 19; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.GroupSendMessage} */ - public static final class GroupSendMessage extends - com.google.protobuf.GeneratedMessageLite< - GroupSendMessage, GroupSendMessage.Builder> implements + public static final class GroupSendMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupSendMessage) GroupSendMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupSendMessage.newBuilder() to construct. + private GroupSendMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupSendMessage() { + messageType_ = 0; message_ = ""; attachment_ = ""; additionalData_ = ""; - botActionLists_ = emptyProtobufList(); + botActionLists_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupSendMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - private int bitField0_; + private GroupSendMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + messageType_ = rawValue; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + attachment_ = s; + break; + } + case 50: { + net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); + } + contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); + } + + break; + } + case 64: { + + replyTo_ = input.readUInt64(); + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder subBuilder = null; + if (forwardFrom_ != null) { + subBuilder = forwardFrom_.toBuilder(); + } + forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(forwardFrom_); + forwardFrom_ = subBuilder.buildPartial(); + } + + break; + } + case 80: { + + randomId_ = input.readUInt64(); + break; + } + case 88: { + + additionalType_ = input.readUInt32(); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + additionalData_ = s; + break; + } + case 106: { + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder subBuilder = null; + if (storyReply_ != null) { + subBuilder = storyReply_.toBuilder(); + } + storyReply_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storyReply_); + storyReply_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder subBuilder = null; + if (storyForward_ != null) { + subBuilder = storyForward_.toBuilder(); + } + storyForward_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storyForward_); + storyForward_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 146: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 154: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.class, net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int MESSAGE_TYPE_FIELD_NUMBER = 2; private int messageType_; /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { + @java.lang.Override public int getMessageTypeValue() { return messageType_; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.forNumber(messageType_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void setMessageTypeValue(int value) { - messageType_ = value; - } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - - messageType_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageType message_type = 2; - */ - private void clearMessageType() { - - messageType_ = 0; - } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_FIELD_NUMBER = 4; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 4; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 4; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 4; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ATTACHMENT_FIELD_NUMBER = 5; - private java.lang.String attachment_; + private volatile java.lang.Object attachment_; /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ + @java.lang.Override public java.lang.String getAttachment() { - return attachment_; + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(attachment_); - } - /** - * optional string attachment = 5; - */ - private void setAttachment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attachment_ = value; - } - /** - * optional string attachment = 5; - */ - private void clearAttachment() { - - attachment_ = getDefaultInstance().getAttachment(); - } - /** - * optional string attachment = 5; - */ - private void setAttachmentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attachment_ = value.toStringUtf8(); + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LOCATION_FIELD_NUMBER = 6; private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ + @java.lang.Override public boolean hasLocation() { return location_ != null; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ - private void setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (value == null) { - throw new NullPointerException(); - } - location_ = value; - - } - /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void setLocation( - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - location_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - if (location_ != null && - location_ != net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance()) { - location_ = - net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); - } else { - location_ = value; - } - - } - /** - * optional .proto.RoomMessageLocation location = 6; - */ - private void clearLocation() { location_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + return getLocation(); } public static final int CONTACT_FIELD_NUMBER = 7; private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ + @java.lang.Override public boolean hasContact() { return contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; } /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (value == null) { - throw new NullPointerException(); - } - contact_ = value; - - } - /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ - private void setContact( - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - contact_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - if (contact_ != null && - contact_ != net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance()) { - contact_ = - net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); - } else { - contact_ = value; - } - - } - /** - * optional .proto.RoomMessageContact contact = 7; - */ - private void clearContact() { contact_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + return getContact(); } public static final int REPLY_TO_FIELD_NUMBER = 8; private long replyTo_; /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { return replyTo_; } - /** - * optional uint64 reply_to = 8; - */ - private void setReplyTo(long value) { - - replyTo_ = value; - } - /** - * optional uint64 reply_to = 8; - */ - private void clearReplyTo() { - - replyTo_ = 0L; - } public static final int FORWARD_FROM_FIELD_NUMBER = 9; private net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom forwardFrom_; /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ + @java.lang.Override public boolean hasForwardFrom() { return forwardFrom_ != null; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom() { return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - if (value == null) { - throw new NullPointerException(); - } - forwardFrom_ = value; - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void setForwardFrom( - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder builderForValue) { - forwardFrom_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; - */ - private void mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - if (forwardFrom_ != null && - forwardFrom_ != net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance()) { - forwardFrom_ = - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); - } else { - forwardFrom_ = value; - } - - } - /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ - private void clearForwardFrom() { forwardFrom_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder() { + return getForwardFrom(); } public static final int RANDOM_ID_FIELD_NUMBER = 10; private long randomId_; /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { return randomId_; } - /** - * optional uint64 random_id = 10; - */ - private void setRandomId(long value) { - - randomId_ = value; - } - /** - * optional uint64 random_id = 10; - */ - private void clearRandomId() { - - randomId_ = 0L; - } public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 11; private int additionalType_; /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { return additionalType_; } - /** - * optional uint32 additional_type = 11; - */ - private void setAdditionalType(int value) { - - additionalType_ = value; - } - /** - * optional uint32 additional_type = 11; - */ - private void clearAdditionalType() { - - additionalType_ = 0; - } public static final int ADDITIONAL_DATA_FIELD_NUMBER = 12; - private java.lang.String additionalData_; + private volatile java.lang.Object additionalData_; /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ + @java.lang.Override public java.lang.String getAdditionalData() { - return additionalData_; + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ + @java.lang.Override public com.google.protobuf.ByteString getAdditionalDataBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(additionalData_); - } - /** - * optional string additional_data = 12; - */ - private void setAdditionalData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - additionalData_ = value; - } - /** - * optional string additional_data = 12; - */ - private void clearAdditionalData() { - - additionalData_ = getDefaultInstance().getAdditionalData(); - } - /** - * optional string additional_data = 12; - */ - private void setAdditionalDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - additionalData_ = value.toStringUtf8(); + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STORY_REPLY_FIELD_NUMBER = 13; private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_; /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return Whether the storyReply field is set. */ + @java.lang.Override public boolean hasStoryReply() { return storyReply_ != null; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return The storyReply. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getStoryReply() { return storyReply_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance() : storyReply_; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; - */ - private void setStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - if (value == null) { - throw new NullPointerException(); - } - storyReply_ = value; - - } - /** - * optional .proto.RoomMessageStoryReply story_reply = 13; - */ - private void setStoryReply( - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder builderForValue) { - storyReply_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageStoryReply story_reply = 13; - */ - private void mergeStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - if (storyReply_ != null && - storyReply_ != net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance()) { - storyReply_ = - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.newBuilder(storyReply_).mergeFrom(value).buildPartial(); - } else { - storyReply_ = value; - } - - } - /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ - private void clearStoryReply() { storyReply_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder getStoryReplyOrBuilder() { + return getStoryReply(); } public static final int STORY_FORWARD_FIELD_NUMBER = 14; private net.iGap.proto.ProtoGlobal.RoomMessageStoryForward storyForward_; /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return Whether the storyForward field is set. */ + @java.lang.Override public boolean hasStoryForward() { return storyForward_ != null; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return The storyForward. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getStoryForward() { return storyForward_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance() : storyForward_; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; - */ - private void setStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - if (value == null) { - throw new NullPointerException(); - } - storyForward_ = value; - - } - /** - * optional .proto.RoomMessageStoryForward story_forward = 14; - */ - private void setStoryForward( - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder builderForValue) { - storyForward_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageStoryForward story_forward = 14; - */ - private void mergeStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - if (storyForward_ != null && - storyForward_ != net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance()) { - storyForward_ = - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.newBuilder(storyForward_).mergeFrom(value).buildPartial(); - } else { - storyForward_ = value; - } - - } - /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ - private void clearStoryForward() { storyForward_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder() { + return getStoryForward(); } public static final int MENTIONS_FIELD_NUMBER = 15; private net.iGap.proto.ProtoGlobal.Mention mentions_; /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; + * @return Whether the mentions field is set. */ + @java.lang.Override public boolean hasMentions() { return mentions_ != null; } /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; + * @return The mentions. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Mention getMentions() { return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; } /** - * optional .proto.Mention mentions = 15; - */ - private void setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (value == null) { - throw new NullPointerException(); - } - mentions_ = value; - - } - /** - * optional .proto.Mention mentions = 15; - */ - private void setMentions( - net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - mentions_ = builderForValue.build(); - - } - /** - * optional .proto.Mention mentions = 15; - */ - private void mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - if (mentions_ != null && - mentions_ != net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance()) { - mentions_ = - net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); - } else { - mentions_ = value; - } - - } - /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; */ - private void clearMentions() { mentions_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); } public static final int STICKER_FIELD_NUMBER = 16; private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; + * @return Whether the sticker field is set. */ + @java.lang.Override public boolean hasSticker() { return sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; + * @return The sticker. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; } /** - * optional .proto.RoomMessageSticker sticker = 16; - */ - private void setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (value == null) { - throw new NullPointerException(); - } - sticker_ = value; - - } - /** - * optional .proto.RoomMessageSticker sticker = 16; - */ - private void setSticker( - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - sticker_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageSticker sticker = 16; - */ - private void mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - if (sticker_ != null && - sticker_ != net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance()) { - sticker_ = - net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); - } else { - sticker_ = value; - } - - } - /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; */ - private void clearSticker() { sticker_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); } public static final int CARD_TO_CARD_FIELD_NUMBER = 17; private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; + * @return Whether the cardToCard field is set. */ + @java.lang.Override public boolean hasCardToCard() { return cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; + * @return The cardToCard. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; - */ - private void setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (value == null) { - throw new NullPointerException(); - } - cardToCard_ = value; - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; - */ - private void setCardToCard( - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - cardToCard_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; - */ - private void mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - if (cardToCard_ != null && - cardToCard_ != net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance()) { - cardToCard_ = - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); - } else { - cardToCard_ = value; - } - - } - /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; */ - private void clearCardToCard() { cardToCard_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); } public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 18; - private com.google.protobuf.Internal.ProtobufList botActionLists_; + private java.util.List botActionLists_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ + @java.lang.Override public java.util.List getBotActionListsList() { return botActionLists_; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ + @java.lang.Override public java.util.List getBotActionListsOrBuilderList() { return botActionLists_; @@ -945,160 +963,64 @@ public java.util.List getBo /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ + @java.lang.Override public int getBotActionListsCount() { return botActionLists_.size(); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { return botActionLists_.get(index); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( int index) { return botActionLists_.get(index); } - private void ensureBotActionListsIsMutable() { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - } - - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.set(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void setBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBotActionListsIsMutable(); - botActionLists_.add(index, value); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void addBotActionLists( - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - ensureBotActionListsIsMutable(); - botActionLists_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void addAllBotActionLists( - java.lang.Iterable values) { - ensureBotActionListsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, botActionLists_); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void clearBotActionLists() { - botActionLists_ = emptyProtobufList(); - } - /** - * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; - */ - private void removeBotActionLists(int index) { - ensureBotActionListsIsMutable(); - botActionLists_.remove(index); - } public static final int TEXT_SIGNS_FIELD_NUMBER = 19; private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; + * @return Whether the textSigns field is set. */ + @java.lang.Override public boolean hasTextSigns() { return textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; + * @return The textSigns. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; */ - private void setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (value == null) { - throw new NullPointerException(); - } - textSigns_ = value; - - } - /** - * optional .proto.TextSigns text_signs = 19; - */ - private void setTextSigns( - net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - textSigns_ = builderForValue.build(); - - } - /** - * optional .proto.TextSigns text_signs = 19; - */ - private void mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - if (textSigns_ != null && - textSigns_ != net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) { - textSigns_ = - net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); - } else { - textSigns_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } - /** - * optional .proto.TextSigns text_signs = 19; - */ - private void clearTextSigns() { textSigns_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -1110,11 +1032,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } - if (!message_.isEmpty()) { - output.writeString(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } - if (!attachment_.isEmpty()) { - output.writeString(5, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, attachment_); } if (location_ != null) { output.writeMessage(6, getLocation()); @@ -1134,8 +1056,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (additionalType_ != 0) { output.writeUInt32(11, additionalType_); } - if (!additionalData_.isEmpty()) { - output.writeString(12, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, additionalData_); } if (storyReply_ != null) { output.writeMessage(13, getStoryReply()); @@ -1158,10 +1080,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textSigns_ != null) { output.writeMessage(19, getTextSigns()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1177,13 +1101,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } - if (!attachment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, attachment_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1209,9 +1131,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, additionalType_); } - if (!additionalData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(12, getAdditionalData()); + if (!getAdditionalDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, additionalData_); } if (storyReply_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1241,771 +1162,2167 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getTextSigns()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage other = (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (messageType_ != other.messageType_) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getAttachment() + .equals(other.getAttachment())) return false; + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation() + .equals(other.getLocation())) return false; + } + if (hasContact() != other.hasContact()) return false; + if (hasContact()) { + if (!getContact() + .equals(other.getContact())) return false; + } + if (getReplyTo() + != other.getReplyTo()) return false; + if (hasForwardFrom() != other.hasForwardFrom()) return false; + if (hasForwardFrom()) { + if (!getForwardFrom() + .equals(other.getForwardFrom())) return false; + } + if (getRandomId() + != other.getRandomId()) return false; + if (getAdditionalType() + != other.getAdditionalType()) return false; + if (!getAdditionalData() + .equals(other.getAdditionalData())) return false; + if (hasStoryReply() != other.hasStoryReply()) return false; + if (hasStoryReply()) { + if (!getStoryReply() + .equals(other.getStoryReply())) return false; + } + if (hasStoryForward() != other.hasStoryForward()) return false; + if (hasStoryForward()) { + if (!getStoryForward() + .equals(other.getStoryForward())) return false; + } + if (hasMentions() != other.hasMentions()) return false; + if (hasMentions()) { + if (!getMentions() + .equals(other.getMentions())) return false; + } + if (hasSticker() != other.hasSticker()) return false; + if (hasSticker()) { + if (!getSticker() + .equals(other.getSticker())) return false; + } + if (hasCardToCard() != other.hasCardToCard()) return false; + if (hasCardToCard()) { + if (!getCardToCard() + .equals(other.getCardToCard())) return false; + } + if (!getBotActionListsList() + .equals(other.getBotActionListsList())) return false; + if (hasTextSigns() != other.hasTextSigns()) return false; + if (hasTextSigns()) { + if (!getTextSigns() + .equals(other.getTextSigns())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + if (hasContact()) { + hash = (37 * hash) + CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getContact().hashCode(); + } + hash = (37 * hash) + REPLY_TO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReplyTo()); + if (hasForwardFrom()) { + hash = (37 * hash) + FORWARD_FROM_FIELD_NUMBER; + hash = (53 * hash) + getForwardFrom().hashCode(); + } + hash = (37 * hash) + RANDOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRandomId()); + hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalType(); + hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalData().hashCode(); + if (hasStoryReply()) { + hash = (37 * hash) + STORY_REPLY_FIELD_NUMBER; + hash = (53 * hash) + getStoryReply().hashCode(); + } + if (hasStoryForward()) { + hash = (37 * hash) + STORY_FORWARD_FIELD_NUMBER; + hash = (53 * hash) + getStoryForward().hashCode(); + } + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupSendMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupSendMessage) net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.class, net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + messageType_ = 0; + + roomId_ = 0L; + + message_ = ""; + + attachment_ = ""; + + if (locationBuilder_ == null) { + location_ = null; + } else { + location_ = null; + locationBuilder_ = null; + } + if (contactBuilder_ == null) { + contact_ = null; + } else { + contact_ = null; + contactBuilder_ = null; + } + replyTo_ = 0L; + + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + randomId_ = 0L; + + additionalType_ = 0; + + additionalData_ = ""; + + if (storyReplyBuilder_ == null) { + storyReply_ = null; + } else { + storyReply_ = null; + storyReplyBuilder_ = null; + } + if (storyForwardBuilder_ == null) { + storyForward_ = null; + } else { + storyForward_ = null; + storyForwardBuilder_ = null; + } + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage build() { + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage buildPartial() { + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage result = new net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.messageType_ = messageType_; + result.roomId_ = roomId_; + result.message_ = message_; + result.attachment_ = attachment_; + if (locationBuilder_ == null) { + result.location_ = location_; + } else { + result.location_ = locationBuilder_.build(); + } + if (contactBuilder_ == null) { + result.contact_ = contact_; + } else { + result.contact_ = contactBuilder_.build(); + } + result.replyTo_ = replyTo_; + if (forwardFromBuilder_ == null) { + result.forwardFrom_ = forwardFrom_; + } else { + result.forwardFrom_ = forwardFromBuilder_.build(); + } + result.randomId_ = randomId_; + result.additionalType_ = additionalType_; + result.additionalData_ = additionalData_; + if (storyReplyBuilder_ == null) { + result.storyReply_ = storyReply_; + } else { + result.storyReply_ = storyReplyBuilder_.build(); + } + if (storyForwardBuilder_ == null) { + result.storyForward_ = storyForward_; + } else { + result.storyForward_ = storyForwardBuilder_.build(); + } + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage) { + return mergeFrom((net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage other) { + if (other == net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.messageType_ != 0) { + setMessageTypeValue(other.getMessageTypeValue()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getAttachment().isEmpty()) { + attachment_ = other.attachment_; + onChanged(); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + if (other.hasContact()) { + mergeContact(other.getContact()); + } + if (other.getReplyTo() != 0L) { + setReplyTo(other.getReplyTo()); + } + if (other.hasForwardFrom()) { + mergeForwardFrom(other.getForwardFrom()); + } + if (other.getRandomId() != 0L) { + setRandomId(other.getRandomId()); + } + if (other.getAdditionalType() != 0) { + setAdditionalType(other.getAdditionalType()); + } + if (!other.getAdditionalData().isEmpty()) { + additionalData_ = other.additionalData_; + onChanged(); + } + if (other.hasStoryReply()) { + mergeStoryReply(other.getStoryReply()); + } + if (other.hasStoryForward()) { + mergeStoryForward(other.getStoryForward()); + } + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00000001); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int messageType_ = 0; /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The enum numeric value on the wire for messageType. */ - public int getMessageTypeValue() { - return instance.getMessageTypeValue(); + @java.lang.Override public int getMessageTypeValue() { + return messageType_; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @param value The enum numeric value on the wire for messageType to set. + * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - copyOnWrite(); - instance.setMessageTypeValue(value); + + messageType_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return The messageType. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - return instance.getMessageType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(net.iGap.proto.ProtoGlobal.RoomMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + if (value == null) { + throw new NullPointerException(); + } + + messageType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageType message_type = 2; + * .proto.RoomMessageType message_type = 2; + * @return This builder for chaining. */ public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); + + messageType_ = 0; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 4; + * string message = 4; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 4; + * string message = 4; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 4; + * string message = 4; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private java.lang.Object attachment_ = ""; /** - * optional string attachment = 5; + * string attachment = 5; + * @return The attachment. */ public java.lang.String getAttachment() { - return instance.getAttachment(); + java.lang.Object ref = attachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @return The bytes for attachment. */ public com.google.protobuf.ByteString getAttachmentBytes() { - return instance.getAttachmentBytes(); + java.lang.Object ref = attachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string attachment = 5; + * string attachment = 5; + * @param value The attachment to set. + * @return This builder for chaining. */ public Builder setAttachment( java.lang.String value) { - copyOnWrite(); - instance.setAttachment(value); + if (value == null) { + throw new NullPointerException(); + } + + attachment_ = value; + onChanged(); return this; } /** - * optional string attachment = 5; + * string attachment = 5; + * @return This builder for chaining. */ public Builder clearAttachment() { - copyOnWrite(); - instance.clearAttachment(); + + attachment_ = getDefaultInstance().getAttachment(); + onChanged(); return this; } /** - * optional string attachment = 5; + * string attachment = 5; + * @param value The bytes for attachment to set. + * @return This builder for chaining. */ public Builder setAttachmentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAttachmentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachment_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> locationBuilder_; /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return Whether the location field is set. */ public boolean hasLocation() { - return instance.hasLocation(); + return locationBuilder_ != null || location_ != null; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; + * @return The location. */ public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { - return instance.getLocation(); + if (locationBuilder_ == null) { + return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder setLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.setLocation(value); - return this; + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder setLocation( net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder builderForValue) { - copyOnWrite(); - instance.setLocation(builderForValue); + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ public Builder mergeLocation(net.iGap.proto.ProtoGlobal.RoomMessageLocation value) { - copyOnWrite(); - instance.mergeLocation(value); + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + net.iGap.proto.ProtoGlobal.RoomMessageLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageLocation location = 6; + * .proto.RoomMessageLocation location = 6; */ - public Builder clearLocation() { copyOnWrite(); - instance.clearLocation(); + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageLocation location = 6; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageLocation location = 6; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } + } + /** + * .proto.RoomMessageLocation location = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageLocation, net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder, net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> contactBuilder_; /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return Whether the contact field is set. */ public boolean hasContact() { - return instance.hasContact(); + return contactBuilder_ != null || contact_ != null; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; + * @return The contact. */ public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { - return instance.getContact(); + if (contactBuilder_ == null) { + return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } else { + return contactBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder setContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.setContact(value); - return this; + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contact_ = value; + onChanged(); + } else { + contactBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder setContact( net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder builderForValue) { - copyOnWrite(); - instance.setContact(builderForValue); + if (contactBuilder_ == null) { + contact_ = builderForValue.build(); + onChanged(); + } else { + contactBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ public Builder mergeContact(net.iGap.proto.ProtoGlobal.RoomMessageContact value) { - copyOnWrite(); - instance.mergeContact(value); + if (contactBuilder_ == null) { + if (contact_ != null) { + contact_ = + net.iGap.proto.ProtoGlobal.RoomMessageContact.newBuilder(contact_).mergeFrom(value).buildPartial(); + } else { + contact_ = value; + } + onChanged(); + } else { + contactBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageContact contact = 7; + * .proto.RoomMessageContact contact = 7; */ - public Builder clearContact() { copyOnWrite(); - instance.clearContact(); + public Builder clearContact() { + if (contactBuilder_ == null) { + contact_ = null; + onChanged(); + } else { + contact_ = null; + contactBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageContact contact = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder getContactBuilder() { + + onChanged(); + return getContactFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageContact contact = 7; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + if (contactBuilder_ != null) { + return contactBuilder_.getMessageOrBuilder(); + } else { + return contact_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } + } + /** + * .proto.RoomMessageContact contact = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder> + getContactFieldBuilder() { + if (contactBuilder_ == null) { + contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageContact, net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder, net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder>( + getContact(), + getParentForChildren(), + isClean()); + contact_ = null; + } + return contactBuilder_; + } + private long replyTo_ ; /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return The replyTo. */ + @java.lang.Override public long getReplyTo() { - return instance.getReplyTo(); + return replyTo_; } /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @param value The replyTo to set. + * @return This builder for chaining. */ public Builder setReplyTo(long value) { - copyOnWrite(); - instance.setReplyTo(value); + + replyTo_ = value; + onChanged(); return this; } /** - * optional uint64 reply_to = 8; + * uint64 reply_to = 8; + * @return This builder for chaining. */ public Builder clearReplyTo() { - copyOnWrite(); - instance.clearReplyTo(); + + replyTo_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom forwardFrom_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder> forwardFromBuilder_; /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return Whether the forwardFrom field is set. */ public boolean hasForwardFrom() { - return instance.hasForwardFrom(); + return forwardFromBuilder_ != null || forwardFrom_ != null; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; + * @return The forwardFrom. */ public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom getForwardFrom() { - return instance.getForwardFrom(); + if (forwardFromBuilder_ == null) { + return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; + } else { + return forwardFromBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder setForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - copyOnWrite(); - instance.setForwardFrom(value); - return this; + if (forwardFromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forwardFrom_ = value; + onChanged(); + } else { + forwardFromBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder setForwardFrom( net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder builderForValue) { - copyOnWrite(); - instance.setForwardFrom(builderForValue); + if (forwardFromBuilder_ == null) { + forwardFrom_ = builderForValue.build(); + onChanged(); + } else { + forwardFromBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ public Builder mergeForwardFrom(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom value) { - copyOnWrite(); - instance.mergeForwardFrom(value); + if (forwardFromBuilder_ == null) { + if (forwardFrom_ != null) { + forwardFrom_ = + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.newBuilder(forwardFrom_).mergeFrom(value).buildPartial(); + } else { + forwardFrom_ = value; + } + onChanged(); + } else { + forwardFromBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageForwardFrom forward_from = 9; + * .proto.RoomMessageForwardFrom forward_from = 9; */ - public Builder clearForwardFrom() { copyOnWrite(); - instance.clearForwardFrom(); + public Builder clearForwardFrom() { + if (forwardFromBuilder_ == null) { + forwardFrom_ = null; + onChanged(); + } else { + forwardFrom_ = null; + forwardFromBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder getForwardFromBuilder() { + + onChanged(); + return getForwardFromFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder getForwardFromOrBuilder() { + if (forwardFromBuilder_ != null) { + return forwardFromBuilder_.getMessageOrBuilder(); + } else { + return forwardFrom_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.getDefaultInstance() : forwardFrom_; + } + } + /** + * .proto.RoomMessageForwardFrom forward_from = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder> + getForwardFromFieldBuilder() { + if (forwardFromBuilder_ == null) { + forwardFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom, net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder, net.iGap.proto.ProtoGlobal.RoomMessageForwardFromOrBuilder>( + getForwardFrom(), + getParentForChildren(), + isClean()); + forwardFrom_ = null; + } + return forwardFromBuilder_; + } + private long randomId_ ; /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return The randomId. */ + @java.lang.Override public long getRandomId() { - return instance.getRandomId(); + return randomId_; } /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @param value The randomId to set. + * @return This builder for chaining. */ public Builder setRandomId(long value) { - copyOnWrite(); - instance.setRandomId(value); + + randomId_ = value; + onChanged(); return this; } /** - * optional uint64 random_id = 10; + * uint64 random_id = 10; + * @return This builder for chaining. */ public Builder clearRandomId() { - copyOnWrite(); - instance.clearRandomId(); + + randomId_ = 0L; + onChanged(); return this; } + private int additionalType_ ; /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return The additionalType. */ + @java.lang.Override public int getAdditionalType() { - return instance.getAdditionalType(); + return additionalType_; } /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @param value The additionalType to set. + * @return This builder for chaining. */ public Builder setAdditionalType(int value) { - copyOnWrite(); - instance.setAdditionalType(value); + + additionalType_ = value; + onChanged(); return this; } /** - * optional uint32 additional_type = 11; + * uint32 additional_type = 11; + * @return This builder for chaining. */ public Builder clearAdditionalType() { - copyOnWrite(); - instance.clearAdditionalType(); + + additionalType_ = 0; + onChanged(); return this; } + private java.lang.Object additionalData_ = ""; /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The additionalData. */ public java.lang.String getAdditionalData() { - return instance.getAdditionalData(); + java.lang.Object ref = additionalData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return The bytes for additionalData. */ public com.google.protobuf.ByteString getAdditionalDataBytes() { - return instance.getAdditionalDataBytes(); + java.lang.Object ref = additionalData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @param value The additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalData( java.lang.String value) { - copyOnWrite(); - instance.setAdditionalData(value); + if (value == null) { + throw new NullPointerException(); + } + + additionalData_ = value; + onChanged(); return this; } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @return This builder for chaining. */ public Builder clearAdditionalData() { - copyOnWrite(); - instance.clearAdditionalData(); + + additionalData_ = getDefaultInstance().getAdditionalData(); + onChanged(); return this; } /** - * optional string additional_data = 12; + * string additional_data = 12; + * @param value The bytes for additionalData to set. + * @return This builder for chaining. */ public Builder setAdditionalDataBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAdditionalDataBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + additionalData_ = value; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder> storyReplyBuilder_; /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return Whether the storyReply field is set. */ public boolean hasStoryReply() { - return instance.hasStoryReply(); + return storyReplyBuilder_ != null || storyReply_ != null; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; + * @return The storyReply. */ public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply getStoryReply() { - return instance.getStoryReply(); + if (storyReplyBuilder_ == null) { + return storyReply_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance() : storyReply_; + } else { + return storyReplyBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ public Builder setStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - copyOnWrite(); - instance.setStoryReply(value); - return this; + if (storyReplyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storyReply_ = value; + onChanged(); + } else { + storyReplyBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ public Builder setStoryReply( net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder builderForValue) { - copyOnWrite(); - instance.setStoryReply(builderForValue); + if (storyReplyBuilder_ == null) { + storyReply_ = builderForValue.build(); + onChanged(); + } else { + storyReplyBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ public Builder mergeStoryReply(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply value) { - copyOnWrite(); - instance.mergeStoryReply(value); + if (storyReplyBuilder_ == null) { + if (storyReply_ != null) { + storyReply_ = + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.newBuilder(storyReply_).mergeFrom(value).buildPartial(); + } else { + storyReply_ = value; + } + onChanged(); + } else { + storyReplyBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageStoryReply story_reply = 13; + * .proto.RoomMessageStoryReply story_reply = 13; */ - public Builder clearStoryReply() { copyOnWrite(); - instance.clearStoryReply(); + public Builder clearStoryReply() { + if (storyReplyBuilder_ == null) { + storyReply_ = null; + onChanged(); + } else { + storyReply_ = null; + storyReplyBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder getStoryReplyBuilder() { + + onChanged(); + return getStoryReplyFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder getStoryReplyOrBuilder() { + if (storyReplyBuilder_ != null) { + return storyReplyBuilder_.getMessageOrBuilder(); + } else { + return storyReply_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.getDefaultInstance() : storyReply_; + } + } + /** + * .proto.RoomMessageStoryReply story_reply = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder> + getStoryReplyFieldBuilder() { + if (storyReplyBuilder_ == null) { + storyReplyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder>( + getStoryReply(), + getParentForChildren(), + isClean()); + storyReply_ = null; + } + return storyReplyBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageStoryForward storyForward_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder> storyForwardBuilder_; /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return Whether the storyForward field is set. */ public boolean hasStoryForward() { - return instance.hasStoryForward(); + return storyForwardBuilder_ != null || storyForward_ != null; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; + * @return The storyForward. */ public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward getStoryForward() { - return instance.getStoryForward(); + if (storyForwardBuilder_ == null) { + return storyForward_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance() : storyForward_; + } else { + return storyForwardBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ public Builder setStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - copyOnWrite(); - instance.setStoryForward(value); - return this; + if (storyForwardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storyForward_ = value; + onChanged(); + } else { + storyForwardBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ public Builder setStoryForward( net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder builderForValue) { - copyOnWrite(); - instance.setStoryForward(builderForValue); + if (storyForwardBuilder_ == null) { + storyForward_ = builderForValue.build(); + onChanged(); + } else { + storyForwardBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ public Builder mergeStoryForward(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward value) { - copyOnWrite(); - instance.mergeStoryForward(value); + if (storyForwardBuilder_ == null) { + if (storyForward_ != null) { + storyForward_ = + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.newBuilder(storyForward_).mergeFrom(value).buildPartial(); + } else { + storyForward_ = value; + } + onChanged(); + } else { + storyForwardBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageStoryForward story_forward = 14; + * .proto.RoomMessageStoryForward story_forward = 14; */ - public Builder clearStoryForward() { copyOnWrite(); - instance.clearStoryForward(); + public Builder clearStoryForward() { + if (storyForwardBuilder_ == null) { + storyForward_ = null; + onChanged(); + } else { + storyForward_ = null; + storyForwardBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder getStoryForwardBuilder() { + + onChanged(); + return getStoryForwardFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder() { + if (storyForwardBuilder_ != null) { + return storyForwardBuilder_.getMessageOrBuilder(); + } else { + return storyForward_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.getDefaultInstance() : storyForward_; + } + } + /** + * .proto.RoomMessageStoryForward story_forward = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder> + getStoryForwardFieldBuilder() { + if (storyForwardBuilder_ == null) { + storyForwardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageStoryForward, net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder>( + getStoryForward(), + getParentForChildren(), + isClean()); + storyForward_ = null; + } + return storyForwardBuilder_; + } + private net.iGap.proto.ProtoGlobal.Mention mentions_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; + * @return Whether the mentions field is set. */ public boolean hasMentions() { - return instance.hasMentions(); + return mentionsBuilder_ != null || mentions_ != null; } /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; + * @return The mentions. */ public net.iGap.proto.ProtoGlobal.Mention getMentions() { - return instance.getMentions(); + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } } /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; */ public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.setMentions(value); - return this; + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; */ public Builder setMentions( net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { - copyOnWrite(); - instance.setMentions(builderForValue); + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; */ public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { - copyOnWrite(); - instance.mergeMentions(value); + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Mention mentions = 15; + * .proto.Mention mentions = 15; */ - public Builder clearMentions() { copyOnWrite(); - instance.clearMentions(); + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; } + /** + * .proto.Mention mentions = 15; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * .proto.Mention mentions = 15; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + } + /** + * .proto.Mention mentions = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; + } + return mentionsBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; + * @return Whether the sticker field is set. */ public boolean hasSticker() { - return instance.hasSticker(); + return stickerBuilder_ != null || sticker_ != null; } /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; + * @return The sticker. */ public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { - return instance.getSticker(); + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; */ public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.setSticker(value); - return this; + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; */ public Builder setSticker( net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { - copyOnWrite(); - instance.setSticker(builderForValue); + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; */ public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { - copyOnWrite(); - instance.mergeSticker(value); + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageSticker sticker = 16; + * .proto.RoomMessageSticker sticker = 16; */ - public Builder clearSticker() { copyOnWrite(); - instance.clearSticker(); + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageSticker sticker = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { + + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageSticker sticker = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * .proto.RoomMessageSticker sticker = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; + * @return Whether the cardToCard field is set. */ public boolean hasCardToCard() { - return instance.hasCardToCard(); + return cardToCardBuilder_ != null || cardToCard_ != null; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; + * @return The cardToCard. */ public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { - return instance.getCardToCard(); + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; */ public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.setCardToCard(value); - return this; + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; */ public Builder setCardToCard( net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { - copyOnWrite(); - instance.setCardToCard(builderForValue); + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; */ public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { - copyOnWrite(); - instance.mergeCardToCard(value); + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessageCardToCard card_to_card = 17; + * .proto.RoomMessageCardToCard card_to_card = 17; */ - public Builder clearCardToCard() { copyOnWrite(); - instance.clearCardToCard(); + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + return this; } + /** + * .proto.RoomMessageCardToCard card_to_card = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { + + onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessageCardToCard card_to_card = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * .proto.RoomMessageCardToCard card_to_card = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ public java.util.List getBotActionListsList() { - return java.util.Collections.unmodifiableList( - instance.getBotActionListsList()); + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ public int getBotActionListsCount() { - return instance.getBotActionListsCount(); - }/** + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { - return instance.getBotActionLists(index); + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.setBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } return this; } /** @@ -2013,16 +3330,29 @@ public Builder setBotActionLists( */ public Builder setBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.setBotActionLists(index, builderForValue); + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } return this; } /** @@ -2030,565 +3360,546 @@ public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotAction */ public Builder addBotActionLists( int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { - copyOnWrite(); - instance.addBotActionLists(index, value); + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addBotActionLists( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addAllBotActionLists( + java.lang.Iterable values) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder clearBotActionLists() { + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder removeBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } return this; } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ - public Builder addBotActionLists( - net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(builderForValue); - return this; + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ - public Builder addBotActionLists( - int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { - copyOnWrite(); - instance.addBotActionLists(index, builderForValue); - return this; + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ - public Builder addAllBotActionLists( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllBotActionLists(values); - return this; + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ - public Builder clearBotActionLists() { - copyOnWrite(); - instance.clearBotActionLists(); - return this; + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); } /** * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; */ - public Builder removeBotActionLists(int index) { - copyOnWrite(); - instance.removeBotActionLists(index); - return this; + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; } + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; + * @return Whether the textSigns field is set. */ public boolean hasTextSigns() { - return instance.hasTextSigns(); + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; + * @return The textSigns. */ public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { - return instance.getTextSigns(); + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } } /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; */ public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.setTextSigns(value); - return this; + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; */ public Builder setTextSigns( net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { - copyOnWrite(); - instance.setTextSigns(builderForValue); + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; */ public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { - copyOnWrite(); - instance.mergeTextSigns(value); + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.TextSigns text_signs = 19; + * .proto.TextSigns text_signs = 19; */ - public Builder clearTextSigns() { copyOnWrite(); - instance.clearTextSigns(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupSendMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - botActionLists_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage other = (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - messageType_ = visitor.visitInt(messageType_ != 0, messageType_, other.messageType_ != 0, other.messageType_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - attachment_ = visitor.visitString(!attachment_.isEmpty(), attachment_, - !other.attachment_.isEmpty(), other.attachment_); - location_ = visitor.visitMessage(location_, other.location_); - contact_ = visitor.visitMessage(contact_, other.contact_); - replyTo_ = visitor.visitLong(replyTo_ != 0L, replyTo_, - other.replyTo_ != 0L, other.replyTo_); - forwardFrom_ = visitor.visitMessage(forwardFrom_, other.forwardFrom_); - randomId_ = visitor.visitLong(randomId_ != 0L, randomId_, - other.randomId_ != 0L, other.randomId_); - additionalType_ = visitor.visitInt(additionalType_ != 0, additionalType_, - other.additionalType_ != 0, other.additionalType_); - additionalData_ = visitor.visitString(!additionalData_.isEmpty(), additionalData_, - !other.additionalData_.isEmpty(), other.additionalData_); - storyReply_ = visitor.visitMessage(storyReply_, other.storyReply_); - storyForward_ = visitor.visitMessage(storyForward_, other.storyForward_); - mentions_ = visitor.visitMessage(mentions_, other.mentions_); - sticker_ = visitor.visitMessage(sticker_, other.sticker_); - cardToCard_ = visitor.visitMessage(cardToCard_, other.cardToCard_); - botActionLists_= visitor.visitList(botActionLists_, other.botActionLists_); - textSigns_ = visitor.visitMessage(textSigns_, other.textSigns_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - attachment_ = s; - break; - } - case 50: { - net.iGap.proto.ProtoGlobal.RoomMessageLocation.Builder subBuilder = null; - if (location_ != null) { - subBuilder = location_.toBuilder(); - } - location_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageLocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(location_); - location_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - net.iGap.proto.ProtoGlobal.RoomMessageContact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); - } - contact_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageContact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - replyTo_ = input.readUInt64(); - break; - } - case 74: { - net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.Builder subBuilder = null; - if (forwardFrom_ != null) { - subBuilder = forwardFrom_.toBuilder(); - } - forwardFrom_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageForwardFrom.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(forwardFrom_); - forwardFrom_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - - randomId_ = input.readUInt64(); - break; - } - case 88: { - - additionalType_ = input.readUInt32(); - break; - } - case 98: { - String s = input.readStringRequireUtf8(); - - additionalData_ = s; - break; - } - case 106: { - net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder subBuilder = null; - if (storyReply_ != null) { - subBuilder = storyReply_.toBuilder(); - } - storyReply_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storyReply_); - storyReply_ = subBuilder.buildPartial(); - } - - break; - } - case 114: { - net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.Builder subBuilder = null; - if (storyForward_ != null) { - subBuilder = storyForward_.toBuilder(); - } - storyForward_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageStoryForward.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storyForward_); - storyForward_ = subBuilder.buildPartial(); - } - - break; - } - case 122: { - net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; - if (mentions_ != null) { - subBuilder = mentions_.toBuilder(); - } - mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mentions_); - mentions_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; - if (sticker_ != null) { - subBuilder = sticker_.toBuilder(); - } - sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sticker_); - sticker_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; - if (cardToCard_ != null) { - subBuilder = cardToCard_.toBuilder(); - } - cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cardToCard_); - cardToCard_ = subBuilder.buildPartial(); - } - - break; - } - case 146: { - if (!botActionLists_.isModifiable()) { - botActionLists_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(botActionLists_); - } - botActionLists_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); - break; - } - case 154: { - net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; - if (textSigns_ != null) { - subBuilder = textSigns_.toBuilder(); - } - textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textSigns_); - textSigns_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.TextSigns text_signs = 19; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * .proto.TextSigns text_signs = 19; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.TextSigns text_signs = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; } + return textSignsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.GroupSendMessage) + } // @@protoc_insertion_point(class_scope:proto.GroupSendMessage) private static final net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupSendMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage(); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupSendMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupSendMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupSendMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupSendMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ boolean hasRoomMessage(); /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage(); + /** + * .proto.RoomMessage room_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder(); } /** * Protobuf type {@code proto.GroupSendMessageResponse} */ - public static final class GroupSendMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupSendMessageResponse, GroupSendMessageResponse.Builder> implements + public static final class GroupSendMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupSendMessageResponse) GroupSendMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupSendMessageResponse.newBuilder() to construct. + private GroupSendMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupSendMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupSendMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupSendMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (roomMessage_ != null) { + subBuilder = roomMessage_.toBuilder(); + } + roomMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(roomMessage_); + roomMessage_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.class, net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ROOM_MESSAGE_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessage roomMessage_; /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ + @java.lang.Override public boolean hasRoomMessage() { return roomMessage_ != null; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage() { return roomMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; } /** - * optional .proto.RoomMessage room_message = 3; - */ - private void setRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - roomMessage_ = value; - - } - /** - * optional .proto.RoomMessage room_message = 3; - */ - private void setRoomMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - roomMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ - private void mergeRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (roomMessage_ != null && - roomMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - roomMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(roomMessage_).mergeFrom(value).buildPartial(); - } else { - roomMessage_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder() { + return getRoomMessage(); } - /** - * optional .proto.RoomMessage room_message = 3; - */ - private void clearRoomMessage() { roomMessage_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -2600,10 +3911,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomMessage_ != null) { output.writeMessage(3, getRoomMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2619,333 +3932,713 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRoomMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse other = (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasRoomMessage() != other.hasRoomMessage()) return false; + if (hasRoomMessage()) { + if (!getRoomMessage() + .equals(other.getRoomMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasRoomMessage()) { + hash = (37 * hash) + ROOM_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getRoomMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupSendMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupSendMessageResponse) net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.class, net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (roomMessageBuilder_ == null) { + roomMessage_ = null; + } else { + roomMessage_ = null; + roomMessageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse build() { + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse buildPartial() { + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse result = new net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (roomMessageBuilder_ == null) { + result.roomMessage_ = roomMessage_; + } else { + result.roomMessage_ = roomMessageBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse other) { + if (other == net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasRoomMessage()) { + mergeRoomMessage(other.getRoomMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage roomMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> roomMessageBuilder_; /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return Whether the roomMessage field is set. */ public boolean hasRoomMessage() { - return instance.hasRoomMessage(); + return roomMessageBuilder_ != null || roomMessage_ != null; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; + * @return The roomMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getRoomMessage() { - return instance.getRoomMessage(); + if (roomMessageBuilder_ == null) { + return roomMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; + } else { + return roomMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder setRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setRoomMessage(value); - return this; + if (roomMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + roomMessage_ = value; + onChanged(); + } else { + roomMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder setRoomMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setRoomMessage(builderForValue); + if (roomMessageBuilder_ == null) { + roomMessage_ = builderForValue.build(); + onChanged(); + } else { + roomMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ public Builder mergeRoomMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergeRoomMessage(value); + if (roomMessageBuilder_ == null) { + if (roomMessage_ != null) { + roomMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(roomMessage_).mergeFrom(value).buildPartial(); + } else { + roomMessage_ = value; + } + onChanged(); + } else { + roomMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage room_message = 3; + * .proto.RoomMessage room_message = 3; */ - public Builder clearRoomMessage() { copyOnWrite(); - instance.clearRoomMessage(); + public Builder clearRoomMessage() { + if (roomMessageBuilder_ == null) { + roomMessage_ = null; + onChanged(); + } else { + roomMessage_ = null; + roomMessageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupSendMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse other = (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - roomMessage_ = visitor.visitMessage(roomMessage_, other.roomMessage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (roomMessage_ != null) { - subBuilder = roomMessage_.toBuilder(); - } - roomMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roomMessage_); - roomMessage_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage room_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getRoomMessageBuilder() { + + onChanged(); + return getRoomMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage room_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getRoomMessageOrBuilder() { + if (roomMessageBuilder_ != null) { + return roomMessageBuilder_.getMessageOrBuilder(); + } else { + return roomMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : roomMessage_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage room_message = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getRoomMessageFieldBuilder() { + if (roomMessageBuilder_ == null) { + roomMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getRoomMessage(), + getParentForChildren(), + isClean()); + roomMessage_ = null; } + return roomMessageBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.GroupSendMessageResponse) + } // @@protoc_insertion_point(class_scope:proto.GroupSendMessageResponse) private static final net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupSendMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse(); } public static net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupSendMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupSendMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupSendMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupSendMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupSendMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupSendMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026GroupSendMessage.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\032\014Global.proto\"\312\005\n" + + "\020GroupSendMessage\022\037\n\007request\030\001 \001(\0132\016.pro" + + "to.Request\022,\n\014message_type\030\002 \001(\0162\026.proto" + + ".RoomMessageType\022\017\n\007room_id\030\003 \001(\004\022\017\n\007mes" + + "sage\030\004 \001(\t\022\022\n\nattachment\030\005 \001(\t\022,\n\010locati" + + "on\030\006 \001(\0132\032.proto.RoomMessageLocation\022*\n\007" + + "contact\030\007 \001(\0132\031.proto.RoomMessageContact" + + "\022\020\n\010reply_to\030\010 \001(\004\0223\n\014forward_from\030\t \001(\013" + + "2\035.proto.RoomMessageForwardFrom\022\021\n\trando" + + "m_id\030\n \001(\004\022\027\n\017additional_type\030\013 \001(\r\022\027\n\017a" + + "dditional_data\030\014 \001(\t\0221\n\013story_reply\030\r \001(" + + "\0132\034.proto.RoomMessageStoryReply\0225\n\rstory" + + "_forward\030\016 \001(\0132\036.proto.RoomMessageStoryF" + + "orward\022 \n\010mentions\030\017 \001(\0132\016.proto.Mention" + + "\022*\n\007sticker\030\020 \001(\0132\031.proto.RoomMessageSti" + + "cker\0222\n\014card_to_card\030\021 \001(\0132\034.proto.RoomM" + + "essageCardToCard\0229\n\020bot_action_lists\030\022 \003" + + "(\0132\037.proto.RoomMessageBotActionList\022$\n\nt" + + "ext_signs\030\023 \001(\0132\020.proto.TextSigns\"x\n\030Gro" + + "upSendMessageResponse\022!\n\010response\030\001 \001(\0132" + + "\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022(\n\014roo" + + "m_message\030\003 \001(\0132\022.proto.RoomMessageB\'\n\016n" + + "et.iGap.protoB\025ProtoGroupSendMessageb\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupSendMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupSendMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupSendMessage_descriptor, + new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "AdditionalType", "AdditionalData", "StoryReply", "StoryForward", "Mentions", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); + internal_static_proto_GroupSendMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupSendMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupSendMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "RoomMessage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupSetAction.java b/src/main/java/net/iGap/proto/ProtoGroupSetAction.java index e7b8cac..323d5f4 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupSetAction.java +++ b/src/main/java/net/iGap/proto/ProtoGroupSetAction.java @@ -8,185 +8,240 @@ private ProtoGroupSetAction() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupSetActionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupSetAction) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ net.iGap.proto.ProtoGlobal.ClientAction getAction(); /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ int getActionId(); } /** * Protobuf type {@code proto.GroupSetAction} */ - public static final class GroupSetAction extends - com.google.protobuf.GeneratedMessageLite< - GroupSetAction, GroupSetAction.Builder> implements + public static final class GroupSetAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupSetAction) GroupSetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupSetAction.newBuilder() to construct. + private GroupSetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupSetAction() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupSetAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupSetAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 32: { + + actionId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSetAction.GroupSetAction.class, net.iGap.proto.ProtoGroupSetAction.GroupSetAction.Builder.class); } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ACTION_FIELD_NUMBER = 3; private int action_; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ - public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.forNumber(action_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } - /** - * optional .proto.ClientAction action = 3; - */ - private void setActionValue(int value) { - action_ = value; - } - /** - * optional .proto.ClientAction action = 3; - */ - private void setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - } - /** - * optional .proto.ClientAction action = 3; - */ - private void clearAction() { - - action_ = 0; - } public static final int ACTION_ID_FIELD_NUMBER = 4; private int actionId_; /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ + @java.lang.Override public int getActionId() { return actionId_; } - /** - * optional uint32 action_id = 4; - */ - private void setActionId(int value) { - - actionId_ = value; - } - /** - * optional uint32 action_id = 4; - */ - private void clearActionId() { - - actionId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -201,10 +256,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (actionId_ != 0) { output.writeUInt32(4, actionId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -224,525 +281,836 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, actionId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupSetAction.GroupSetAction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupSetAction.GroupSetAction other = (net.iGap.proto.ProtoGroupSetAction.GroupSetAction) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (action_ != other.action_) return false; + if (getActionId() + != other.getActionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getActionId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupSetAction.GroupSetAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupSetAction} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupSetAction.GroupSetAction, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupSetAction) net.iGap.proto.ProtoGroupSetAction.GroupSetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSetAction.GroupSetAction.class, net.iGap.proto.ProtoGroupSetAction.GroupSetAction.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupSetAction.GroupSetAction.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + action_ = 0; + + actionId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetAction_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetAction getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupSetAction.GroupSetAction.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetAction build() { + net.iGap.proto.ProtoGroupSetAction.GroupSetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetAction buildPartial() { + net.iGap.proto.ProtoGroupSetAction.GroupSetAction result = new net.iGap.proto.ProtoGroupSetAction.GroupSetAction(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.action_ = action_; + result.actionId_ = actionId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupSetAction.GroupSetAction) { + return mergeFrom((net.iGap.proto.ProtoGroupSetAction.GroupSetAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupSetAction.GroupSetAction other) { + if (other == net.iGap.proto.ProtoGroupSetAction.GroupSetAction.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.getActionId() != 0) { + setActionId(other.getActionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupSetAction.GroupSetAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupSetAction.GroupSetAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int action_ = 0; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { - return instance.getActionValue(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. */ public Builder setActionValue(int value) { - copyOnWrite(); - instance.setActionValue(value); + + action_ = value; + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - return instance.getAction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - copyOnWrite(); - instance.setAction(value); + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return This builder for chaining. */ public Builder clearAction() { - copyOnWrite(); - instance.clearAction(); + + action_ = 0; + onChanged(); return this; } + private int actionId_ ; /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return The actionId. */ + @java.lang.Override public int getActionId() { - return instance.getActionId(); + return actionId_; } /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @param value The actionId to set. + * @return This builder for chaining. */ public Builder setActionId(int value) { - copyOnWrite(); - instance.setActionId(value); + + actionId_ = value; + onChanged(); return this; } /** - * optional uint32 action_id = 4; + * uint32 action_id = 4; + * @return This builder for chaining. */ public Builder clearActionId() { - copyOnWrite(); - instance.clearActionId(); + + actionId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupSetAction) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupSetAction.GroupSetAction(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupSetAction.GroupSetAction other = (net.iGap.proto.ProtoGroupSetAction.GroupSetAction) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - action_ = visitor.visitInt(action_ != 0, action_, other.action_ != 0, other.action_); - actionId_ = visitor.visitInt(actionId_ != 0, actionId_, - other.actionId_ != 0, other.actionId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 32: { - - actionId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupSetAction.GroupSetAction.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupSetAction) + } + // @@protoc_insertion_point(class_scope:proto.GroupSetAction) private static final net.iGap.proto.ProtoGroupSetAction.GroupSetAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupSetAction(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupSetAction.GroupSetAction(); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupSetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupSetAction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupSetActionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupSetActionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ net.iGap.proto.ProtoGlobal.ClientAction getAction(); /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.GroupSetActionResponse} */ - public static final class GroupSetActionResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupSetActionResponse, GroupSetActionResponse.Builder> implements + public static final class GroupSetActionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupSetActionResponse) GroupSetActionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupSetActionResponse.newBuilder() to construct. + private GroupSetActionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupSetActionResponse() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupSetActionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupSetActionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 32: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetActionResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetActionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.class, net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int ACTION_FIELD_NUMBER = 3; private int action_; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ - public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.forNumber(action_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } - /** - * optional .proto.ClientAction action = 3; - */ - private void setActionValue(int value) { - action_ = value; - } - /** - * optional .proto.ClientAction action = 3; - */ - private void setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - } - /** - * optional .proto.ClientAction action = 3; - */ - private void clearAction() { - - action_ = 0; - } public static final int USER_ID_FIELD_NUMBER = 4; private long userId_; /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 4; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 4; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -757,10 +1125,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(4, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -780,348 +1150,661 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse other = (net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (action_ != other.action_) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupSetActionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupSetActionResponse) net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetActionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetActionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.class, net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + action_ = 0; + + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupSetAction.internal_static_proto_GroupSetActionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse build() { + net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse buildPartial() { + net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse result = new net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.action_ = action_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse other) { + if (other == net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private int action_ = 0; /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The enum numeric value on the wire for action. */ - public int getActionValue() { - return instance.getActionValue(); + @java.lang.Override public int getActionValue() { + return action_; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. */ public Builder setActionValue(int value) { - copyOnWrite(); - instance.setActionValue(value); + + action_ = value; + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return The action. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.ClientAction getAction() { - return instance.getAction(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.ClientAction result = net.iGap.proto.ProtoGlobal.ClientAction.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.ClientAction.UNRECOGNIZED : result; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(net.iGap.proto.ProtoGlobal.ClientAction value) { - copyOnWrite(); - instance.setAction(value); + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.ClientAction action = 3; + * .proto.ClientAction action = 3; + * @return This builder for chaining. */ public Builder clearAction() { - copyOnWrite(); - instance.clearAction(); + + action_ = 0; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 4; + * uint64 user_id = 4; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupSetActionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse other = (net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - action_ = visitor.visitInt(action_ != 0, action_, other.action_ != 0, other.action_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 32: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupSetActionResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupSetActionResponse) private static final net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupSetActionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse(); } public static net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupSetActionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupSetActionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupSetAction.GroupSetActionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupSetAction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupSetAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupSetActionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupSetActionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024GroupSetAction.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\032\014Global.proto\"z\n\016Gr" + + "oupSetAction\022\037\n\007request\030\001 \001(\0132\016.proto.Re" + + "quest\022\017\n\007room_id\030\002 \001(\004\022#\n\006action\030\003 \001(\0162\023" + + ".proto.ClientAction\022\021\n\taction_id\030\004 \001(\r\"\202" + + "\001\n\026GroupSetActionResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022#\n" + + "\006action\030\003 \001(\0162\023.proto.ClientAction\022\017\n\007us" + + "er_id\030\004 \001(\004B%\n\016net.iGap.protoB\023ProtoGrou" + + "pSetActionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupSetAction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupSetAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupSetAction_descriptor, + new java.lang.String[] { "Request", "RoomId", "Action", "ActionId", }); + internal_static_proto_GroupSetActionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupSetActionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupSetActionResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Action", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupUpdateDraft.java b/src/main/java/net/iGap/proto/ProtoGroupUpdateDraft.java index 5c4f087..d56b9de 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupUpdateDraft.java +++ b/src/main/java/net/iGap/proto/ProtoGroupUpdateDraft.java @@ -8,170 +8,235 @@ private ProtoGroupUpdateDraft() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupUpdateDraftOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupUpdateDraft) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 3; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.GroupUpdateDraft} */ - public static final class GroupUpdateDraft extends - com.google.protobuf.GeneratedMessageLite< - GroupUpdateDraft, GroupUpdateDraft.Builder> implements + public static final class GroupUpdateDraft extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupUpdateDraft) GroupUpdateDraftOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupUpdateDraft.newBuilder() to construct. + private GroupUpdateDraft(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupUpdateDraft() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupUpdateDraft(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupUpdateDraft( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.class, net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int DRAFT_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -183,10 +248,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(3, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -202,495 +269,869 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft other = (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupUpdateDraft} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupUpdateDraft) net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraft_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraft_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.class, net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraft_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft build() { + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft buildPartial() { + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft result = new net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft) { + return mergeFrom((net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft other) { + if (other == net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupUpdateDraft) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft other = (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupUpdateDraft) + } + // @@protoc_insertion_point(class_scope:proto.GroupUpdateDraft) private static final net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupUpdateDraft(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft(); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupUpdateDraft parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupUpdateDraft(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraft getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupUpdateDraftResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupUpdateDraftResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ boolean hasDraft(); /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ net.iGap.proto.ProtoGlobal.RoomDraft getDraft(); + /** + * .proto.RoomDraft draft = 3; + */ + net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder(); } /** * Protobuf type {@code proto.GroupUpdateDraftResponse} */ - public static final class GroupUpdateDraftResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupUpdateDraftResponse, GroupUpdateDraftResponse.Builder> implements + public static final class GroupUpdateDraftResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupUpdateDraftResponse) GroupUpdateDraftResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupUpdateDraftResponse.newBuilder() to construct. + private GroupUpdateDraftResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupUpdateDraftResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupUpdateDraftResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupUpdateDraftResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; + if (draft_ != null) { + subBuilder = draft_.toBuilder(); + } + draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(draft_); + draft_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.class, net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int DRAFT_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomDraft draft_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ + @java.lang.Override public boolean hasDraft() { return draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (value == null) { - throw new NullPointerException(); - } - draft_ = value; - - } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void setDraft( - net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - draft_ = builderForValue.build(); - - } - /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - private void mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - if (draft_ != null && - draft_ != net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance()) { - draft_ = - net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); - } else { - draft_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + return getDraft(); } - /** - * optional .proto.RoomDraft draft = 3; - */ - private void clearDraft() { draft_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -702,10 +1143,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (draft_ != null) { output.writeMessage(3, getDraft()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -721,333 +1164,697 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDraft()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse other = (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasDraft() != other.hasDraft()) return false; + if (hasDraft()) { + if (!getDraft() + .equals(other.getDraft())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasDraft()) { + hash = (37 * hash) + DRAFT_FIELD_NUMBER; + hash = (53 * hash) + getDraft().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupUpdateDraftResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupUpdateDraftResponse) net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraftResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraftResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.class, net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + if (draftBuilder_ == null) { + draft_ = null; + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupUpdateDraft.internal_static_proto_GroupUpdateDraftResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse build() { + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse buildPartial() { + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse result = new net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (draftBuilder_ == null) { + result.draft_ = draft_; + } else { + result.draft_ = draftBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse other) { + if (other == net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasDraft()) { + mergeDraft(other.getDraft()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomDraft draft_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> draftBuilder_; /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return Whether the draft field is set. */ public boolean hasDraft() { - return instance.hasDraft(); + return draftBuilder_ != null || draft_ != null; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; + * @return The draft. */ public net.iGap.proto.ProtoGlobal.RoomDraft getDraft() { - return instance.getDraft(); + if (draftBuilder_ == null) { + return draft_ == null ? net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; + } else { + return draftBuilder_.getMessage(); + } } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.setDraft(value); - return this; + if (draftBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + draft_ = value; + onChanged(); + } else { + draftBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder setDraft( net.iGap.proto.ProtoGlobal.RoomDraft.Builder builderForValue) { - copyOnWrite(); - instance.setDraft(builderForValue); + if (draftBuilder_ == null) { + draft_ = builderForValue.build(); + onChanged(); + } else { + draftBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ public Builder mergeDraft(net.iGap.proto.ProtoGlobal.RoomDraft value) { - copyOnWrite(); - instance.mergeDraft(value); + if (draftBuilder_ == null) { + if (draft_ != null) { + draft_ = + net.iGap.proto.ProtoGlobal.RoomDraft.newBuilder(draft_).mergeFrom(value).buildPartial(); + } else { + draft_ = value; + } + onChanged(); + } else { + draftBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomDraft draft = 3; + * .proto.RoomDraft draft = 3; */ - public Builder clearDraft() { copyOnWrite(); - instance.clearDraft(); + public Builder clearDraft() { + if (draftBuilder_ == null) { + draft_ = null; + onChanged(); + } else { + draft_ = null; + draftBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupUpdateDraftResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse other = (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - draft_ = visitor.visitMessage(draft_, other.draft_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomDraft.Builder subBuilder = null; - if (draft_ != null) { - subBuilder = draft_.toBuilder(); - } - draft_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomDraft.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draft_); - draft_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraft.Builder getDraftBuilder() { + + onChanged(); + return getDraftFieldBuilder().getBuilder(); + } + /** + * .proto.RoomDraft draft = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder getDraftOrBuilder() { + if (draftBuilder_ != null) { + return draftBuilder_.getMessageOrBuilder(); + } else { + return draft_ == null ? + net.iGap.proto.ProtoGlobal.RoomDraft.getDefaultInstance() : draft_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomDraft draft = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder> + getDraftFieldBuilder() { + if (draftBuilder_ == null) { + draftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomDraft, net.iGap.proto.ProtoGlobal.RoomDraft.Builder, net.iGap.proto.ProtoGlobal.RoomDraftOrBuilder>( + getDraft(), + getParentForChildren(), + isClean()); + draft_ = null; } + return draftBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.GroupUpdateDraftResponse) + } // @@protoc_insertion_point(class_scope:proto.GroupUpdateDraftResponse) private static final net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupUpdateDraftResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse(); } public static net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupUpdateDraftResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupUpdateDraftResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateDraft.GroupUpdateDraftResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupUpdateDraft_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupUpdateDraft_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupUpdateDraftResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupUpdateDraftResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026GroupUpdateDraft.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\032\014Global.proto\"e\n\020" + + "GroupUpdateDraft\022\037\n\007request\030\001 \001(\0132\016.prot" + + "o.Request\022\017\n\007room_id\030\002 \001(\004\022\037\n\005draft\030\003 \001(" + + "\0132\020.proto.RoomDraft\"o\n\030GroupUpdateDraftR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "se\022\017\n\007room_id\030\002 \001(\004\022\037\n\005draft\030\003 \001(\0132\020.pro" + + "to.RoomDraftB\'\n\016net.iGap.protoB\025ProtoGro" + + "upUpdateDraftb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupUpdateDraft_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupUpdateDraft_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupUpdateDraft_descriptor, + new java.lang.String[] { "Request", "RoomId", "Draft", }); + internal_static_proto_GroupUpdateDraftResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupUpdateDraftResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupUpdateDraftResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "Draft", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupUpdateStatus.java b/src/main/java/net/iGap/proto/ProtoGroupUpdateStatus.java index 35f4985..11f9edd 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupUpdateStatus.java +++ b/src/main/java/net/iGap/proto/ProtoGroupUpdateStatus.java @@ -8,213 +8,262 @@ private ProtoGroupUpdateStatus() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupUpdateStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupUpdateStatus) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus(); /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.GroupUpdateStatus} */ - public static final class GroupUpdateStatus extends - com.google.protobuf.GeneratedMessageLite< - GroupUpdateStatus, GroupUpdateStatus.Builder> implements + public static final class GroupUpdateStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupUpdateStatus) GroupUpdateStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupUpdateStatus.newBuilder() to construct. + private GroupUpdateStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupUpdateStatus() { + status_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupUpdateStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupUpdateStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 40: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.class, net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void clearStatus() { - - status_ = 0; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 5; private long documentId_; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 5; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 5; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -232,10 +281,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -259,696 +310,1002 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus other = (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (status_ != other.status_) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupUpdateStatus} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupUpdateStatus) net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.class, net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + status_ = 0; + + documentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatus_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus build() { + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus buildPartial() { + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus result = new net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.status_ = status_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus) { + return mergeFrom((net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus other) { + if (other == net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 5; + * uint64 document_id = 5; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupUpdateStatus) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus other = (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 40: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupUpdateStatus) + } + // @@protoc_insertion_point(class_scope:proto.GroupUpdateStatus) private static final net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupUpdateStatus(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus(); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupUpdateStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupUpdateStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupUpdateStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupUpdateStatusResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus(); /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return The statusVersion. */ long getStatusVersion(); /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The updaterAuthorHash. */ java.lang.String getUpdaterAuthorHash(); /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The bytes for updaterAuthorHash. */ com.google.protobuf.ByteString getUpdaterAuthorHashBytes(); /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ long getDocumentId(); /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return The versionDocumentId. */ long getVersionDocumentId(); } /** * Protobuf type {@code proto.GroupUpdateStatusResponse} */ - public static final class GroupUpdateStatusResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupUpdateStatusResponse, GroupUpdateStatusResponse.Builder> implements + public static final class GroupUpdateStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupUpdateStatusResponse) GroupUpdateStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupUpdateStatusResponse.newBuilder() to construct. + private GroupUpdateStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupUpdateStatusResponse() { + status_ = 0; updaterAuthorHash_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupUpdateStatusResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupUpdateStatusResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 40: { + + statusVersion_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + updaterAuthorHash_ = s; + break; + } + case 56: { + + documentId_ = input.readUInt64(); + break; + } + case 64: { + + versionDocumentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.class, net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.RoomMessageStatus status = 4; - */ - private void clearStatus() { - - status_ = 0; - } public static final int STATUS_VERSION_FIELD_NUMBER = 5; private long statusVersion_; /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { return statusVersion_; } - /** - * optional uint64 status_version = 5; - */ - private void setStatusVersion(long value) { - - statusVersion_ = value; - } - /** - * optional uint64 status_version = 5; - */ - private void clearStatusVersion() { - - statusVersion_ = 0L; - } public static final int UPDATER_AUTHOR_HASH_FIELD_NUMBER = 6; - private java.lang.String updaterAuthorHash_; + private volatile java.lang.Object updaterAuthorHash_; /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The updaterAuthorHash. */ + @java.lang.Override public java.lang.String getUpdaterAuthorHash() { - return updaterAuthorHash_; + java.lang.Object ref = updaterAuthorHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updaterAuthorHash_ = s; + return s; + } } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The bytes for updaterAuthorHash. */ + @java.lang.Override public com.google.protobuf.ByteString getUpdaterAuthorHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(updaterAuthorHash_); - } - /** - * optional string updater_author_hash = 6; - */ - private void setUpdaterAuthorHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - updaterAuthorHash_ = value; - } - /** - * optional string updater_author_hash = 6; - */ - private void clearUpdaterAuthorHash() { - - updaterAuthorHash_ = getDefaultInstance().getUpdaterAuthorHash(); - } - /** - * optional string updater_author_hash = 6; - */ - private void setUpdaterAuthorHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - updaterAuthorHash_ = value.toStringUtf8(); + java.lang.Object ref = updaterAuthorHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + updaterAuthorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DOCUMENT_ID_FIELD_NUMBER = 7; private long documentId_; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 7; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 7; - */ - private void clearDocumentId() { - - documentId_ = 0L; - } public static final int VERSION_DOCUMENT_ID_FIELD_NUMBER = 8; private long versionDocumentId_; /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return The versionDocumentId. */ + @java.lang.Override public long getVersionDocumentId() { return versionDocumentId_; } - /** - * optional uint64 version_document_id = 8; - */ - private void setVersionDocumentId(long value) { - - versionDocumentId_ = value; - } - /** - * optional uint64 version_document_id = 8; - */ - private void clearVersionDocumentId() { - - versionDocumentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -966,8 +1323,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (statusVersion_ != 0L) { output.writeUInt64(5, statusVersion_); } - if (!updaterAuthorHash_.isEmpty()) { - output.writeString(6, getUpdaterAuthorHash()); + if (!getUpdaterAuthorHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, updaterAuthorHash_); } if (documentId_ != 0L) { output.writeUInt64(7, documentId_); @@ -975,10 +1332,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (versionDocumentId_ != 0L) { output.writeUInt64(8, versionDocumentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1002,9 +1361,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, statusVersion_); } - if (!updaterAuthorHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getUpdaterAuthorHash()); + if (!getUpdaterAuthorHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, updaterAuthorHash_); } if (documentId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -1014,486 +1372,878 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, versionDocumentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse other = (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (status_ != other.status_) return false; + if (getStatusVersion() + != other.getStatusVersion()) return false; + if (!getUpdaterAuthorHash() + .equals(other.getUpdaterAuthorHash())) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (getVersionDocumentId() + != other.getVersionDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStatusVersion()); + hash = (37 * hash) + UPDATER_AUTHOR_HASH_FIELD_NUMBER; + hash = (53 * hash) + getUpdaterAuthorHash().hashCode(); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (37 * hash) + VERSION_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupUpdateStatusResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupUpdateStatusResponse) net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.class, net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + status_ = 0; + + statusVersion_ = 0L; + + updaterAuthorHash_ = ""; + documentId_ = 0L; + versionDocumentId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupUpdateStatus.internal_static_proto_GroupUpdateStatusResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse build() { + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse buildPartial() { + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse result = new net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.status_ = status_; + result.statusVersion_ = statusVersion_; + result.updaterAuthorHash_ = updaterAuthorHash_; + result.documentId_ = documentId_; + result.versionDocumentId_ = versionDocumentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse other) { + if (other == net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getStatusVersion() != 0L) { + setStatusVersion(other.getStatusVersion()); + } + if (!other.getUpdaterAuthorHash().isEmpty()) { + updaterAuthorHash_ = other.updaterAuthorHash_; + onChanged(); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + if (other.getVersionDocumentId() != 0L) { + setVersionDocumentId(other.getVersionDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.RoomMessageStatus value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.RoomMessageStatus status = 4; + * .proto.RoomMessageStatus status = 4; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long statusVersion_ ; /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return The statusVersion. */ + @java.lang.Override public long getStatusVersion() { - return instance.getStatusVersion(); + return statusVersion_; } /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @param value The statusVersion to set. + * @return This builder for chaining. */ public Builder setStatusVersion(long value) { - copyOnWrite(); - instance.setStatusVersion(value); + + statusVersion_ = value; + onChanged(); return this; } /** - * optional uint64 status_version = 5; + * uint64 status_version = 5; + * @return This builder for chaining. */ public Builder clearStatusVersion() { - copyOnWrite(); - instance.clearStatusVersion(); + + statusVersion_ = 0L; + onChanged(); return this; } + private java.lang.Object updaterAuthorHash_ = ""; /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The updaterAuthorHash. */ public java.lang.String getUpdaterAuthorHash() { - return instance.getUpdaterAuthorHash(); + java.lang.Object ref = updaterAuthorHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updaterAuthorHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return The bytes for updaterAuthorHash. */ public com.google.protobuf.ByteString getUpdaterAuthorHashBytes() { - return instance.getUpdaterAuthorHashBytes(); + java.lang.Object ref = updaterAuthorHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + updaterAuthorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @param value The updaterAuthorHash to set. + * @return This builder for chaining. */ public Builder setUpdaterAuthorHash( java.lang.String value) { - copyOnWrite(); - instance.setUpdaterAuthorHash(value); + if (value == null) { + throw new NullPointerException(); + } + + updaterAuthorHash_ = value; + onChanged(); return this; } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @return This builder for chaining. */ public Builder clearUpdaterAuthorHash() { - copyOnWrite(); - instance.clearUpdaterAuthorHash(); + + updaterAuthorHash_ = getDefaultInstance().getUpdaterAuthorHash(); + onChanged(); return this; } /** - * optional string updater_author_hash = 6; + * string updater_author_hash = 6; + * @param value The bytes for updaterAuthorHash to set. + * @return This builder for chaining. */ public Builder setUpdaterAuthorHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUpdaterAuthorHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + updaterAuthorHash_ = value; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 7; + * uint64 document_id = 7; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + private long versionDocumentId_ ; /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return The versionDocumentId. */ + @java.lang.Override public long getVersionDocumentId() { - return instance.getVersionDocumentId(); + return versionDocumentId_; } /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @param value The versionDocumentId to set. + * @return This builder for chaining. */ public Builder setVersionDocumentId(long value) { - copyOnWrite(); - instance.setVersionDocumentId(value); + + versionDocumentId_ = value; + onChanged(); return this; } /** - * optional uint64 version_document_id = 8; + * uint64 version_document_id = 8; + * @return This builder for chaining. */ public Builder clearVersionDocumentId() { - copyOnWrite(); - instance.clearVersionDocumentId(); + + versionDocumentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupUpdateStatusResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse other = (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - statusVersion_ = visitor.visitLong(statusVersion_ != 0L, statusVersion_, - other.statusVersion_ != 0L, other.statusVersion_); - updaterAuthorHash_ = visitor.visitString(!updaterAuthorHash_.isEmpty(), updaterAuthorHash_, - !other.updaterAuthorHash_.isEmpty(), other.updaterAuthorHash_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - versionDocumentId_ = visitor.visitLong(versionDocumentId_ != 0L, versionDocumentId_, - other.versionDocumentId_ != 0L, other.versionDocumentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 40: { - - statusVersion_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - updaterAuthorHash_ = s; - break; - } - case 56: { - - documentId_ = input.readUInt64(); - break; - } - case 64: { - - versionDocumentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupUpdateStatusResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupUpdateStatusResponse) private static final net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupUpdateStatusResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse(); } public static net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupUpdateStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupUpdateStatusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateStatus.GroupUpdateStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupUpdateStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupUpdateStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupUpdateStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupUpdateStatusResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027GroupUpdateStatus.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\032\014Global.proto\"\230\001" + + "\n\021GroupUpdateStatus\022\037\n\007request\030\001 \001(\0132\016.p" + + "roto.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage" + + "_id\030\003 \001(\004\022(\n\006status\030\004 \001(\0162\030.proto.RoomMe" + + "ssageStatus\022\023\n\013document_id\030\005 \001(\004\"\364\001\n\031Gro" + + "upUpdateStatusResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\022\n\nme" + + "ssage_id\030\003 \001(\004\022(\n\006status\030\004 \001(\0162\030.proto.R" + + "oomMessageStatus\022\026\n\016status_version\030\005 \001(\004" + + "\022\033\n\023updater_author_hash\030\006 \001(\t\022\023\n\013documen" + + "t_id\030\007 \001(\004\022\033\n\023version_document_id\030\010 \001(\004B" + + "(\n\016net.iGap.protoB\026ProtoGroupUpdateStatu" + + "sb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_GroupUpdateStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupUpdateStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupUpdateStatus_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "Status", "DocumentId", }); + internal_static_proto_GroupUpdateStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupUpdateStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupUpdateStatusResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "MessageId", "Status", "StatusVersion", "UpdaterAuthorHash", "DocumentId", "VersionDocumentId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoGroupUpdateUsername.java b/src/main/java/net/iGap/proto/ProtoGroupUpdateUsername.java index 0b299d2..6b6cdb7 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupUpdateUsername.java +++ b/src/main/java/net/iGap/proto/ProtoGroupUpdateUsername.java @@ -8,181 +8,255 @@ private ProtoGroupUpdateUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface GroupUpdateUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupUpdateUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupUpdateUsername} */ - public static final class GroupUpdateUsername extends - com.google.protobuf.GeneratedMessageLite< - GroupUpdateUsername, GroupUpdateUsername.Builder> implements + public static final class GroupUpdateUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupUpdateUsername) GroupUpdateUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupUpdateUsername.newBuilder() to construct. + private GroupUpdateUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupUpdateUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupUpdateUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupUpdateUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.class, net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,503 +264,841 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername other = (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupUpdateUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupUpdateUsername) net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.class, net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + roomId_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername build() { + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername buildPartial() { + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername result = new net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername) { + return mergeFrom((net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername other) { + if (other == net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupUpdateUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername other = (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupUpdateUsername) + } + // @@protoc_insertion_point(class_scope:proto.GroupUpdateUsername) private static final net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupUpdateUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername(); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupUpdateUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupUpdateUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupUpdateUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupUpdateUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ long getRoomId(); } /** * Protobuf type {@code proto.GroupUpdateUsernameResponse} */ - public static final class GroupUpdateUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - GroupUpdateUsernameResponse, GroupUpdateUsernameResponse.Builder> implements + public static final class GroupUpdateUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupUpdateUsernameResponse) GroupUpdateUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupUpdateUsernameResponse.newBuilder() to construct. + private GroupUpdateUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupUpdateUsernameResponse() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupUpdateUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupUpdateUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.class, net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROOM_ID_FIELD_NUMBER = 3; private long roomId_; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 3; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 3; - */ - private void clearRoomId() { - - roomId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -694,330 +1106,646 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, roomId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse other = (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupUpdateUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupUpdateUsernameResponse) net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.class, net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + username_ = ""; + + roomId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupUpdateUsername.internal_static_proto_GroupUpdateUsernameResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse build() { + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse buildPartial() { + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse result = new net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.username_ = username_; + result.roomId_ = roomId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse other) { + if (other == net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 3; + * uint64 room_id = 3; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupUpdateUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse other = (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - roomId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupUpdateUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.GroupUpdateUsernameResponse) private static final net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupUpdateUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse(); } public static net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupUpdateUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupUpdateUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoGroupUpdateUsername.GroupUpdateUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupUpdateUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupUpdateUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupUpdateUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupUpdateUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031GroupUpdateUsername.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"Y\n\023GroupUpdate" + + "Username\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\020\n\010username\030\002 \001(\t\022\017\n\007room_id\030\003 \001(\004\"c\n\033" + + "GroupUpdateUsernameResponse\022!\n\010response\030" + + "\001 \001(\0132\017.proto.Response\022\020\n\010username\030\002 \001(\t" + + "\022\017\n\007room_id\030\003 \001(\004B*\n\016net.iGap.protoB\030Pro" + + "toGroupUpdateUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_GroupUpdateUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_GroupUpdateUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupUpdateUsername_descriptor, + new java.lang.String[] { "Request", "Username", "RoomId", }); + internal_static_proto_GroupUpdateUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupUpdateUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupUpdateUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Username", "RoomId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoHeartbeat.java b/src/main/java/net/iGap/proto/ProtoHeartbeat.java index 2af72d4..1eec1f4 100644 --- a/src/main/java/net/iGap/proto/ProtoHeartbeat.java +++ b/src/main/java/net/iGap/proto/ProtoHeartbeat.java @@ -8,90 +8,170 @@ private ProtoHeartbeat() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface HeartbeatOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Heartbeat) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.Heartbeat} */ - public static final class Heartbeat extends - com.google.protobuf.GeneratedMessageLite< - Heartbeat, Heartbeat.Builder> implements + public static final class Heartbeat extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Heartbeat) HeartbeatOrBuilder { + private static final long serialVersionUID = 0L; + // Use Heartbeat.newBuilder() to construct. + private Heartbeat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Heartbeat() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Heartbeat(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Heartbeat( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_Heartbeat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_Heartbeat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoHeartbeat.Heartbeat.class, net.iGap.proto.ProtoHeartbeat.Heartbeat.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,326 +179,620 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoHeartbeat.Heartbeat)) { + return super.equals(obj); + } + net.iGap.proto.ProtoHeartbeat.Heartbeat other = (net.iGap.proto.ProtoHeartbeat.Heartbeat) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoHeartbeat.Heartbeat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Heartbeat} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoHeartbeat.Heartbeat, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Heartbeat) net.iGap.proto.ProtoHeartbeat.HeartbeatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_Heartbeat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_Heartbeat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoHeartbeat.Heartbeat.class, net.iGap.proto.ProtoHeartbeat.Heartbeat.Builder.class); + } + // Construct using net.iGap.proto.ProtoHeartbeat.Heartbeat.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_Heartbeat_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.Heartbeat getDefaultInstanceForType() { + return net.iGap.proto.ProtoHeartbeat.Heartbeat.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.Heartbeat build() { + net.iGap.proto.ProtoHeartbeat.Heartbeat result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.Heartbeat buildPartial() { + net.iGap.proto.ProtoHeartbeat.Heartbeat result = new net.iGap.proto.ProtoHeartbeat.Heartbeat(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoHeartbeat.Heartbeat) { + return mergeFrom((net.iGap.proto.ProtoHeartbeat.Heartbeat)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoHeartbeat.Heartbeat other) { + if (other == net.iGap.proto.ProtoHeartbeat.Heartbeat.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoHeartbeat.Heartbeat parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoHeartbeat.Heartbeat) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.Heartbeat) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoHeartbeat.Heartbeat(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoHeartbeat.Heartbeat other = (net.iGap.proto.ProtoHeartbeat.Heartbeat) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoHeartbeat.Heartbeat.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.Heartbeat) + } + // @@protoc_insertion_point(class_scope:proto.Heartbeat) private static final net.iGap.proto.ProtoHeartbeat.Heartbeat DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Heartbeat(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoHeartbeat.Heartbeat(); } public static net.iGap.proto.ProtoHeartbeat.Heartbeat getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Heartbeat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Heartbeat(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.Heartbeat getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface HeartbeatResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.HeartbeatResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.HeartbeatResponse} */ - public static final class HeartbeatResponse extends - com.google.protobuf.GeneratedMessageLite< - HeartbeatResponse, HeartbeatResponse.Builder> implements + public static final class HeartbeatResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.HeartbeatResponse) HeartbeatResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use HeartbeatResponse.newBuilder() to construct. + private HeartbeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private HeartbeatResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HeartbeatResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HeartbeatResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_HeartbeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_HeartbeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.class, net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -426,244 +800,507 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoHeartbeat.HeartbeatResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoHeartbeat.HeartbeatResponse other = (net.iGap.proto.ProtoHeartbeat.HeartbeatResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoHeartbeat.HeartbeatResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.HeartbeatResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoHeartbeat.HeartbeatResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.HeartbeatResponse) net.iGap.proto.ProtoHeartbeat.HeartbeatResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_HeartbeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_HeartbeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.class, net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoHeartbeat.internal_static_proto_HeartbeatResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.HeartbeatResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.HeartbeatResponse build() { + net.iGap.proto.ProtoHeartbeat.HeartbeatResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.HeartbeatResponse buildPartial() { + net.iGap.proto.ProtoHeartbeat.HeartbeatResponse result = new net.iGap.proto.ProtoHeartbeat.HeartbeatResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoHeartbeat.HeartbeatResponse) { + return mergeFrom((net.iGap.proto.ProtoHeartbeat.HeartbeatResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoHeartbeat.HeartbeatResponse other) { + if (other == net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoHeartbeat.HeartbeatResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoHeartbeat.HeartbeatResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.HeartbeatResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoHeartbeat.HeartbeatResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoHeartbeat.HeartbeatResponse other = (net.iGap.proto.ProtoHeartbeat.HeartbeatResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoHeartbeat.HeartbeatResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.HeartbeatResponse) + } // @@protoc_insertion_point(class_scope:proto.HeartbeatResponse) private static final net.iGap.proto.ProtoHeartbeat.HeartbeatResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new HeartbeatResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoHeartbeat.HeartbeatResponse(); } public static net.iGap.proto.ProtoHeartbeat.HeartbeatResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeartbeatResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeartbeatResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoHeartbeat.HeartbeatResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Heartbeat_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Heartbeat_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_HeartbeatResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_HeartbeatResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\017Heartbeat.proto\022\005proto\032\rRequest.proto\032" + + "\016Response.proto\",\n\tHeartbeat\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\"6\n\021HeartbeatRespon" + + "se\022!\n\010response\030\001 \001(\0132\017.proto.ResponseB \n" + + "\016net.iGap.protoB\016ProtoHeartbeatb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_Heartbeat_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_Heartbeat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Heartbeat_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_HeartbeatResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_HeartbeatResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_HeartbeatResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoInfoConfig.java b/src/main/java/net/iGap/proto/ProtoInfoConfig.java index ef3c56b..e9f1a36 100644 --- a/src/main/java/net/iGap/proto/ProtoInfoConfig.java +++ b/src/main/java/net/iGap/proto/ProtoInfoConfig.java @@ -8,90 +8,170 @@ private ProtoInfoConfig() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InfoConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoConfig) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.InfoConfig} */ - public static final class InfoConfig extends - com.google.protobuf.GeneratedMessageLite< - InfoConfig, InfoConfig.Builder> implements + public static final class InfoConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoConfig) InfoConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoConfig.newBuilder() to construct. + private InfoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoConfig() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoConfig.InfoConfig.class, net.iGap.proto.ProtoInfoConfig.InfoConfig.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,292 +179,526 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoConfig.InfoConfig)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoConfig.InfoConfig other = (net.iGap.proto.ProtoInfoConfig.InfoConfig) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoConfig.InfoConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoConfig} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoConfig.InfoConfig, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoConfig) net.iGap.proto.ProtoInfoConfig.InfoConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoConfig.InfoConfig.class, net.iGap.proto.ProtoInfoConfig.InfoConfig.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoConfig.InfoConfig.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfig_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfig getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoConfig.InfoConfig.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfig build() { + net.iGap.proto.ProtoInfoConfig.InfoConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfig buildPartial() { + net.iGap.proto.ProtoInfoConfig.InfoConfig result = new net.iGap.proto.ProtoInfoConfig.InfoConfig(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoConfig.InfoConfig) { + return mergeFrom((net.iGap.proto.ProtoInfoConfig.InfoConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoConfig.InfoConfig other) { + if (other == net.iGap.proto.ProtoInfoConfig.InfoConfig.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoConfig.InfoConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoConfig.InfoConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.InfoConfig) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoConfig.InfoConfig(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoConfig.InfoConfig other = (net.iGap.proto.ProtoInfoConfig.InfoConfig) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoConfig.InfoConfig.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoConfig) + } + // @@protoc_insertion_point(class_scope:proto.InfoConfig) private static final net.iGap.proto.ProtoInfoConfig.InfoConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoConfig(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoConfig.InfoConfig(); } public static net.iGap.proto.ProtoInfoConfig.InfoConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface InfoConfigResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoConfigResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bool debug_mode = 2; + * bool debug_mode = 2; + * @return The debugMode. */ boolean getDebugMode(); /** - * optional uint32 default_timeout = 3; + * uint32 default_timeout = 3; + * @return The defaultTimeout. */ int getDefaultTimeout(); /** - * optional bool optimize_mode = 4; + * bool optimize_mode = 4; + * @return The optimizeMode. */ boolean getOptimizeMode(); /** - * optional uint64 max_file_size = 5; + * uint64 max_file_size = 5; + * @return The maxFileSize. */ long getMaxFileSize(); /** - * optional uint64 caption_length_max = 6; + * uint64 caption_length_max = 6; + * @return The captionLengthMax. */ long getCaptionLengthMax(); /** - * optional uint64 message_length_max = 7; + * uint64 message_length_max = 7; + * @return The messageLengthMax. */ long getMessageLengthMax(); /** - * optional uint32 group_add_member_limit = 8; + * uint32 group_add_member_limit = 8; + * @return The groupAddMemberLimit. */ int getGroupAddMemberLimit(); /** - * optional uint32 channel_add_member_limit = 9; + * uint32 channel_add_member_limit = 9; + * @return The channelAddMemberLimit. */ int getChannelAddMemberLimit(); @@ -401,57 +715,232 @@ public interface InfoConfigResponseOrBuilder extends * repeated .proto.MicroService micro_service = 10; */ int getMicroServiceCount(); + /** + * repeated .proto.MicroService micro_service = 10; + */ + java.util.List + getMicroServiceOrBuilderList(); + /** + * repeated .proto.MicroService micro_service = 10; + */ + net.iGap.proto.ProtoInfoConfig.MicroServiceOrBuilder getMicroServiceOrBuilder( + int index); /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @return The enum numeric value on the wire for debugger. */ int getDebuggerValue(); /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @return The debugger. */ net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger getDebugger(); /** - * optional string base_url = 12; + * string base_url = 12; + * @return The baseUrl. */ java.lang.String getBaseUrl(); /** - * optional string base_url = 12; + * string base_url = 12; + * @return The bytes for baseUrl. */ com.google.protobuf.ByteString getBaseUrlBytes(); /** - * optional bool show_advertising = 13; + * bool show_advertising = 13; + * @return The showAdvertising. */ boolean getShowAdvertising(); /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @return The enum numeric value on the wire for defaultTab. */ int getDefaultTabValue(); /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @return The defaultTab. */ net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab getDefaultTab(); } /** * Protobuf type {@code proto.InfoConfigResponse} */ - public static final class InfoConfigResponse extends - com.google.protobuf.GeneratedMessageLite< - InfoConfigResponse, InfoConfigResponse.Builder> implements + public static final class InfoConfigResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoConfigResponse) InfoConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoConfigResponse.newBuilder() to construct. + private InfoConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoConfigResponse() { - microService_ = emptyProtobufList(); + microService_ = java.util.Collections.emptyList(); + debugger_ = 0; baseUrl_ = ""; + defaultTab_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoConfigResponse(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoConfigResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + debugMode_ = input.readBool(); + break; + } + case 24: { + + defaultTimeout_ = input.readUInt32(); + break; + } + case 32: { + + optimizeMode_ = input.readBool(); + break; + } + case 40: { + + maxFileSize_ = input.readUInt64(); + break; + } + case 48: { + + captionLengthMax_ = input.readUInt64(); + break; + } + case 56: { + + messageLengthMax_ = input.readUInt64(); + break; + } + case 64: { + + groupAddMemberLimit_ = input.readUInt32(); + break; + } + case 72: { + + channelAddMemberLimit_ = input.readUInt32(); + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + microService_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + microService_.add( + input.readMessage(net.iGap.proto.ProtoInfoConfig.MicroService.parser(), extensionRegistry)); + break; + } + case 88: { + int rawValue = input.readEnum(); + + debugger_ = rawValue; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + baseUrl_ = s; + break; + } + case 104: { + + showAdvertising_ = input.readBool(); + break; + } + case 112: { + int rawValue = input.readEnum(); + + defaultTab_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + microService_ = java.util.Collections.unmodifiableList(microService_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.class, net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Builder.class); + } + /** * Protobuf enum {@code proto.InfoConfigResponse.Debugger} */ public enum Debugger - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * CRASHLYTICS = 0; */ @@ -474,10 +963,16 @@ public enum Debugger public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -485,6 +980,10 @@ public static Debugger valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Debugger forNumber(int value) { switch (value) { case 0: return CRASHLYTICS; @@ -505,6 +1004,37 @@ public Debugger findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Debugger[] VALUES = values(); + + public static Debugger valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Debugger(int value) { @@ -518,7 +1048,7 @@ private Debugger(int value) { * Protobuf enum {@code proto.InfoConfigResponse.Tab} */ public enum Tab - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * CONTACT = 0; */ @@ -565,10 +1095,16 @@ public enum Tab public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -576,6 +1112,10 @@ public static Tab valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Tab forNumber(int value) { switch (value) { case 0: return CONTACT; @@ -599,6 +1139,37 @@ public Tab findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.getDescriptor().getEnumTypes().get(1); + } + + private static final Tab[] VALUES = values(); + + public static Tab valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Tab(int value) { @@ -608,254 +1179,133 @@ private Tab(int value) { // @@protoc_insertion_point(enum_scope:proto.InfoConfigResponse.Tab) } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int DEBUG_MODE_FIELD_NUMBER = 2; private boolean debugMode_; /** - * optional bool debug_mode = 2; + * bool debug_mode = 2; + * @return The debugMode. */ + @java.lang.Override public boolean getDebugMode() { return debugMode_; } - /** - * optional bool debug_mode = 2; - */ - private void setDebugMode(boolean value) { - - debugMode_ = value; - } - /** - * optional bool debug_mode = 2; - */ - private void clearDebugMode() { - - debugMode_ = false; - } public static final int DEFAULT_TIMEOUT_FIELD_NUMBER = 3; private int defaultTimeout_; /** - * optional uint32 default_timeout = 3; + * uint32 default_timeout = 3; + * @return The defaultTimeout. */ + @java.lang.Override public int getDefaultTimeout() { return defaultTimeout_; } - /** - * optional uint32 default_timeout = 3; - */ - private void setDefaultTimeout(int value) { - - defaultTimeout_ = value; - } - /** - * optional uint32 default_timeout = 3; - */ - private void clearDefaultTimeout() { - - defaultTimeout_ = 0; - } public static final int OPTIMIZE_MODE_FIELD_NUMBER = 4; private boolean optimizeMode_; /** - * optional bool optimize_mode = 4; + * bool optimize_mode = 4; + * @return The optimizeMode. */ + @java.lang.Override public boolean getOptimizeMode() { return optimizeMode_; } - /** - * optional bool optimize_mode = 4; - */ - private void setOptimizeMode(boolean value) { - - optimizeMode_ = value; - } - /** - * optional bool optimize_mode = 4; - */ - private void clearOptimizeMode() { - - optimizeMode_ = false; - } public static final int MAX_FILE_SIZE_FIELD_NUMBER = 5; private long maxFileSize_; /** - * optional uint64 max_file_size = 5; + * uint64 max_file_size = 5; + * @return The maxFileSize. */ + @java.lang.Override public long getMaxFileSize() { return maxFileSize_; } - /** - * optional uint64 max_file_size = 5; - */ - private void setMaxFileSize(long value) { - - maxFileSize_ = value; - } - /** - * optional uint64 max_file_size = 5; - */ - private void clearMaxFileSize() { - - maxFileSize_ = 0L; - } public static final int CAPTION_LENGTH_MAX_FIELD_NUMBER = 6; private long captionLengthMax_; /** - * optional uint64 caption_length_max = 6; + * uint64 caption_length_max = 6; + * @return The captionLengthMax. */ + @java.lang.Override public long getCaptionLengthMax() { return captionLengthMax_; } - /** - * optional uint64 caption_length_max = 6; - */ - private void setCaptionLengthMax(long value) { - - captionLengthMax_ = value; - } - /** - * optional uint64 caption_length_max = 6; - */ - private void clearCaptionLengthMax() { - - captionLengthMax_ = 0L; - } public static final int MESSAGE_LENGTH_MAX_FIELD_NUMBER = 7; private long messageLengthMax_; /** - * optional uint64 message_length_max = 7; + * uint64 message_length_max = 7; + * @return The messageLengthMax. */ + @java.lang.Override public long getMessageLengthMax() { return messageLengthMax_; } - /** - * optional uint64 message_length_max = 7; - */ - private void setMessageLengthMax(long value) { - - messageLengthMax_ = value; - } - /** - * optional uint64 message_length_max = 7; - */ - private void clearMessageLengthMax() { - - messageLengthMax_ = 0L; - } public static final int GROUP_ADD_MEMBER_LIMIT_FIELD_NUMBER = 8; private int groupAddMemberLimit_; /** - * optional uint32 group_add_member_limit = 8; + * uint32 group_add_member_limit = 8; + * @return The groupAddMemberLimit. */ + @java.lang.Override public int getGroupAddMemberLimit() { return groupAddMemberLimit_; } - /** - * optional uint32 group_add_member_limit = 8; - */ - private void setGroupAddMemberLimit(int value) { - - groupAddMemberLimit_ = value; - } - /** - * optional uint32 group_add_member_limit = 8; - */ - private void clearGroupAddMemberLimit() { - - groupAddMemberLimit_ = 0; - } public static final int CHANNEL_ADD_MEMBER_LIMIT_FIELD_NUMBER = 9; private int channelAddMemberLimit_; /** - * optional uint32 channel_add_member_limit = 9; + * uint32 channel_add_member_limit = 9; + * @return The channelAddMemberLimit. */ + @java.lang.Override public int getChannelAddMemberLimit() { return channelAddMemberLimit_; } - /** - * optional uint32 channel_add_member_limit = 9; - */ - private void setChannelAddMemberLimit(int value) { - - channelAddMemberLimit_ = value; - } - /** - * optional uint32 channel_add_member_limit = 9; - */ - private void clearChannelAddMemberLimit() { - - channelAddMemberLimit_ = 0; - } public static final int MICRO_SERVICE_FIELD_NUMBER = 10; - private com.google.protobuf.Internal.ProtobufList microService_; + private java.util.List microService_; /** * repeated .proto.MicroService micro_service = 10; */ + @java.lang.Override public java.util.List getMicroServiceList() { return microService_; } /** * repeated .proto.MicroService micro_service = 10; */ + @java.lang.Override public java.util.List getMicroServiceOrBuilderList() { return microService_; @@ -863,255 +1313,125 @@ public java.util.List getMicroServi /** * repeated .proto.MicroService micro_service = 10; */ + @java.lang.Override public int getMicroServiceCount() { return microService_.size(); } /** * repeated .proto.MicroService micro_service = 10; */ + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.MicroService getMicroService(int index) { return microService_.get(index); } /** * repeated .proto.MicroService micro_service = 10; */ + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.MicroServiceOrBuilder getMicroServiceOrBuilder( int index) { return microService_.get(index); } - private void ensureMicroServiceIsMutable() { - if (!microService_.isModifiable()) { - microService_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(microService_); - } - } - - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void setMicroService( - int index, net.iGap.proto.ProtoInfoConfig.MicroService value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMicroServiceIsMutable(); - microService_.set(index, value); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void setMicroService( - int index, net.iGap.proto.ProtoInfoConfig.MicroService.Builder builderForValue) { - ensureMicroServiceIsMutable(); - microService_.set(index, builderForValue.build()); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void addMicroService(net.iGap.proto.ProtoInfoConfig.MicroService value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMicroServiceIsMutable(); - microService_.add(value); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void addMicroService( - int index, net.iGap.proto.ProtoInfoConfig.MicroService value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMicroServiceIsMutable(); - microService_.add(index, value); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void addMicroService( - net.iGap.proto.ProtoInfoConfig.MicroService.Builder builderForValue) { - ensureMicroServiceIsMutable(); - microService_.add(builderForValue.build()); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void addMicroService( - int index, net.iGap.proto.ProtoInfoConfig.MicroService.Builder builderForValue) { - ensureMicroServiceIsMutable(); - microService_.add(index, builderForValue.build()); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void addAllMicroService( - java.lang.Iterable values) { - ensureMicroServiceIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, microService_); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void clearMicroService() { - microService_ = emptyProtobufList(); - } - /** - * repeated .proto.MicroService micro_service = 10; - */ - private void removeMicroService(int index) { - ensureMicroServiceIsMutable(); - microService_.remove(index); - } public static final int DEBUGGER_FIELD_NUMBER = 11; private int debugger_; /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @return The enum numeric value on the wire for debugger. */ - public int getDebuggerValue() { + @java.lang.Override public int getDebuggerValue() { return debugger_; } /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @return The debugger. */ - public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger getDebugger() { - net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger result = net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger.forNumber(debugger_); + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger getDebugger() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger result = net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger.valueOf(debugger_); return result == null ? net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger.UNRECOGNIZED : result; } - /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; - */ - private void setDebuggerValue(int value) { - debugger_ = value; - } - /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; - */ - private void setDebugger(net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger value) { - if (value == null) { - throw new NullPointerException(); - } - - debugger_ = value.getNumber(); - } - /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; - */ - private void clearDebugger() { - - debugger_ = 0; - } public static final int BASE_URL_FIELD_NUMBER = 12; - private java.lang.String baseUrl_; + private volatile java.lang.Object baseUrl_; /** - * optional string base_url = 12; + * string base_url = 12; + * @return The baseUrl. */ + @java.lang.Override public java.lang.String getBaseUrl() { - return baseUrl_; + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseUrl_ = s; + return s; + } } /** - * optional string base_url = 12; + * string base_url = 12; + * @return The bytes for baseUrl. */ + @java.lang.Override public com.google.protobuf.ByteString getBaseUrlBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(baseUrl_); - } - /** - * optional string base_url = 12; - */ - private void setBaseUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - baseUrl_ = value; - } - /** - * optional string base_url = 12; - */ - private void clearBaseUrl() { - - baseUrl_ = getDefaultInstance().getBaseUrl(); - } - /** - * optional string base_url = 12; - */ - private void setBaseUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - baseUrl_ = value.toStringUtf8(); + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + baseUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SHOW_ADVERTISING_FIELD_NUMBER = 13; private boolean showAdvertising_; /** - * optional bool show_advertising = 13; + * bool show_advertising = 13; + * @return The showAdvertising. */ + @java.lang.Override public boolean getShowAdvertising() { return showAdvertising_; } - /** - * optional bool show_advertising = 13; - */ - private void setShowAdvertising(boolean value) { - - showAdvertising_ = value; - } - /** - * optional bool show_advertising = 13; - */ - private void clearShowAdvertising() { - - showAdvertising_ = false; - } public static final int DEFAULTTAB_FIELD_NUMBER = 14; private int defaultTab_; /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @return The enum numeric value on the wire for defaultTab. */ - public int getDefaultTabValue() { + @java.lang.Override public int getDefaultTabValue() { return defaultTab_; } /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @return The defaultTab. */ - public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab getDefaultTab() { - net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab result = net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab.forNumber(defaultTab_); + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab getDefaultTab() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab result = net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab.valueOf(defaultTab_); return result == null ? net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab.UNRECOGNIZED : result; } - /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; - */ - private void setDefaultTabValue(int value) { - defaultTab_ = value; - } - /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; - */ - private void setDefaultTab(net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultTab_ = value.getNumber(); - } - /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; - */ - private void clearDefaultTab() { - - defaultTab_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1147,8 +1467,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (debugger_ != net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger.CRASHLYTICS.getNumber()) { output.writeEnum(11, debugger_); } - if (!baseUrl_.isEmpty()) { - output.writeString(12, getBaseUrl()); + if (!getBaseUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, baseUrl_); } if (showAdvertising_ != false) { output.writeBool(13, showAdvertising_); @@ -1156,10 +1476,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (defaultTab_ != net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab.CONTACT.getNumber()) { output.writeEnum(14, defaultTab_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1207,9 +1529,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, debugger_); } - if (!baseUrl_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(12, getBaseUrl()); + if (!getBaseUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, baseUrl_); } if (showAdvertising_ != false) { size += com.google.protobuf.CodedOutputStream @@ -1219,346 +1540,890 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, defaultTab_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoConfig.InfoConfigResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse other = (net.iGap.proto.ProtoInfoConfig.InfoConfigResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getDebugMode() + != other.getDebugMode()) return false; + if (getDefaultTimeout() + != other.getDefaultTimeout()) return false; + if (getOptimizeMode() + != other.getOptimizeMode()) return false; + if (getMaxFileSize() + != other.getMaxFileSize()) return false; + if (getCaptionLengthMax() + != other.getCaptionLengthMax()) return false; + if (getMessageLengthMax() + != other.getMessageLengthMax()) return false; + if (getGroupAddMemberLimit() + != other.getGroupAddMemberLimit()) return false; + if (getChannelAddMemberLimit() + != other.getChannelAddMemberLimit()) return false; + if (!getMicroServiceList() + .equals(other.getMicroServiceList())) return false; + if (debugger_ != other.debugger_) return false; + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + if (getShowAdvertising() + != other.getShowAdvertising()) return false; + if (defaultTab_ != other.defaultTab_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + DEBUG_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDebugMode()); + hash = (37 * hash) + DEFAULT_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getDefaultTimeout(); + hash = (37 * hash) + OPTIMIZE_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOptimizeMode()); + hash = (37 * hash) + MAX_FILE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxFileSize()); + hash = (37 * hash) + CAPTION_LENGTH_MAX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCaptionLengthMax()); + hash = (37 * hash) + MESSAGE_LENGTH_MAX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageLengthMax()); + hash = (37 * hash) + GROUP_ADD_MEMBER_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getGroupAddMemberLimit(); + hash = (37 * hash) + CHANNEL_ADD_MEMBER_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getChannelAddMemberLimit(); + if (getMicroServiceCount() > 0) { + hash = (37 * hash) + MICRO_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMicroServiceList().hashCode(); + } + hash = (37 * hash) + DEBUGGER_FIELD_NUMBER; + hash = (53 * hash) + debugger_; + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().hashCode(); + hash = (37 * hash) + SHOW_ADVERTISING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowAdvertising()); + hash = (37 * hash) + DEFAULTTAB_FIELD_NUMBER; + hash = (53 * hash) + defaultTab_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoConfig.InfoConfigResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoConfigResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoConfig.InfoConfigResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoConfigResponse) net.iGap.proto.ProtoInfoConfig.InfoConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.class, net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMicroServiceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + debugMode_ = false; + + defaultTimeout_ = 0; + + optimizeMode_ = false; + + maxFileSize_ = 0L; + + captionLengthMax_ = 0L; + + messageLengthMax_ = 0L; + + groupAddMemberLimit_ = 0; + + channelAddMemberLimit_ = 0; + + if (microServiceBuilder_ == null) { + microService_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + microServiceBuilder_.clear(); + } + debugger_ = 0; + + baseUrl_ = ""; + + showAdvertising_ = false; + + defaultTab_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_InfoConfigResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse build() { + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse buildPartial() { + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse result = new net.iGap.proto.ProtoInfoConfig.InfoConfigResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.debugMode_ = debugMode_; + result.defaultTimeout_ = defaultTimeout_; + result.optimizeMode_ = optimizeMode_; + result.maxFileSize_ = maxFileSize_; + result.captionLengthMax_ = captionLengthMax_; + result.messageLengthMax_ = messageLengthMax_; + result.groupAddMemberLimit_ = groupAddMemberLimit_; + result.channelAddMemberLimit_ = channelAddMemberLimit_; + if (microServiceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + microService_ = java.util.Collections.unmodifiableList(microService_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.microService_ = microService_; + } else { + result.microService_ = microServiceBuilder_.build(); + } + result.debugger_ = debugger_; + result.baseUrl_ = baseUrl_; + result.showAdvertising_ = showAdvertising_; + result.defaultTab_ = defaultTab_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoConfig.InfoConfigResponse) { + return mergeFrom((net.iGap.proto.ProtoInfoConfig.InfoConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoConfig.InfoConfigResponse other) { + if (other == net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getDebugMode() != false) { + setDebugMode(other.getDebugMode()); + } + if (other.getDefaultTimeout() != 0) { + setDefaultTimeout(other.getDefaultTimeout()); + } + if (other.getOptimizeMode() != false) { + setOptimizeMode(other.getOptimizeMode()); + } + if (other.getMaxFileSize() != 0L) { + setMaxFileSize(other.getMaxFileSize()); + } + if (other.getCaptionLengthMax() != 0L) { + setCaptionLengthMax(other.getCaptionLengthMax()); + } + if (other.getMessageLengthMax() != 0L) { + setMessageLengthMax(other.getMessageLengthMax()); + } + if (other.getGroupAddMemberLimit() != 0) { + setGroupAddMemberLimit(other.getGroupAddMemberLimit()); + } + if (other.getChannelAddMemberLimit() != 0) { + setChannelAddMemberLimit(other.getChannelAddMemberLimit()); + } + if (microServiceBuilder_ == null) { + if (!other.microService_.isEmpty()) { + if (microService_.isEmpty()) { + microService_ = other.microService_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMicroServiceIsMutable(); + microService_.addAll(other.microService_); + } + onChanged(); + } + } else { + if (!other.microService_.isEmpty()) { + if (microServiceBuilder_.isEmpty()) { + microServiceBuilder_.dispose(); + microServiceBuilder_ = null; + microService_ = other.microService_; + bitField0_ = (bitField0_ & ~0x00000001); + microServiceBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMicroServiceFieldBuilder() : null; + } else { + microServiceBuilder_.addAllMessages(other.microService_); + } + } + } + if (other.debugger_ != 0) { + setDebuggerValue(other.getDebuggerValue()); + } + if (!other.getBaseUrl().isEmpty()) { + baseUrl_ = other.baseUrl_; + onChanged(); + } + if (other.getShowAdvertising() != false) { + setShowAdvertising(other.getShowAdvertising()); + } + if (other.defaultTab_ != 0) { + setDefaultTabValue(other.getDefaultTabValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoConfig.InfoConfigResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private boolean debugMode_ ; /** - * optional bool debug_mode = 2; + * bool debug_mode = 2; + * @return The debugMode. */ + @java.lang.Override public boolean getDebugMode() { - return instance.getDebugMode(); + return debugMode_; } /** - * optional bool debug_mode = 2; + * bool debug_mode = 2; + * @param value The debugMode to set. + * @return This builder for chaining. */ public Builder setDebugMode(boolean value) { - copyOnWrite(); - instance.setDebugMode(value); + + debugMode_ = value; + onChanged(); return this; } /** - * optional bool debug_mode = 2; + * bool debug_mode = 2; + * @return This builder for chaining. */ public Builder clearDebugMode() { - copyOnWrite(); - instance.clearDebugMode(); + + debugMode_ = false; + onChanged(); return this; } + private int defaultTimeout_ ; /** - * optional uint32 default_timeout = 3; + * uint32 default_timeout = 3; + * @return The defaultTimeout. */ + @java.lang.Override public int getDefaultTimeout() { - return instance.getDefaultTimeout(); + return defaultTimeout_; } /** - * optional uint32 default_timeout = 3; + * uint32 default_timeout = 3; + * @param value The defaultTimeout to set. + * @return This builder for chaining. */ public Builder setDefaultTimeout(int value) { - copyOnWrite(); - instance.setDefaultTimeout(value); + + defaultTimeout_ = value; + onChanged(); return this; } /** - * optional uint32 default_timeout = 3; + * uint32 default_timeout = 3; + * @return This builder for chaining. */ public Builder clearDefaultTimeout() { - copyOnWrite(); - instance.clearDefaultTimeout(); + + defaultTimeout_ = 0; + onChanged(); return this; } + private boolean optimizeMode_ ; /** - * optional bool optimize_mode = 4; + * bool optimize_mode = 4; + * @return The optimizeMode. */ + @java.lang.Override public boolean getOptimizeMode() { - return instance.getOptimizeMode(); + return optimizeMode_; } /** - * optional bool optimize_mode = 4; + * bool optimize_mode = 4; + * @param value The optimizeMode to set. + * @return This builder for chaining. */ public Builder setOptimizeMode(boolean value) { - copyOnWrite(); - instance.setOptimizeMode(value); + + optimizeMode_ = value; + onChanged(); return this; } /** - * optional bool optimize_mode = 4; + * bool optimize_mode = 4; + * @return This builder for chaining. */ public Builder clearOptimizeMode() { - copyOnWrite(); - instance.clearOptimizeMode(); + + optimizeMode_ = false; + onChanged(); return this; } + private long maxFileSize_ ; /** - * optional uint64 max_file_size = 5; + * uint64 max_file_size = 5; + * @return The maxFileSize. */ + @java.lang.Override public long getMaxFileSize() { - return instance.getMaxFileSize(); + return maxFileSize_; } /** - * optional uint64 max_file_size = 5; + * uint64 max_file_size = 5; + * @param value The maxFileSize to set. + * @return This builder for chaining. */ public Builder setMaxFileSize(long value) { - copyOnWrite(); - instance.setMaxFileSize(value); + + maxFileSize_ = value; + onChanged(); return this; } /** - * optional uint64 max_file_size = 5; + * uint64 max_file_size = 5; + * @return This builder for chaining. */ public Builder clearMaxFileSize() { - copyOnWrite(); - instance.clearMaxFileSize(); + + maxFileSize_ = 0L; + onChanged(); return this; } + private long captionLengthMax_ ; /** - * optional uint64 caption_length_max = 6; + * uint64 caption_length_max = 6; + * @return The captionLengthMax. */ + @java.lang.Override public long getCaptionLengthMax() { - return instance.getCaptionLengthMax(); + return captionLengthMax_; } /** - * optional uint64 caption_length_max = 6; + * uint64 caption_length_max = 6; + * @param value The captionLengthMax to set. + * @return This builder for chaining. */ public Builder setCaptionLengthMax(long value) { - copyOnWrite(); - instance.setCaptionLengthMax(value); + + captionLengthMax_ = value; + onChanged(); return this; } /** - * optional uint64 caption_length_max = 6; + * uint64 caption_length_max = 6; + * @return This builder for chaining. */ public Builder clearCaptionLengthMax() { - copyOnWrite(); - instance.clearCaptionLengthMax(); + + captionLengthMax_ = 0L; + onChanged(); return this; } + private long messageLengthMax_ ; /** - * optional uint64 message_length_max = 7; + * uint64 message_length_max = 7; + * @return The messageLengthMax. */ + @java.lang.Override public long getMessageLengthMax() { - return instance.getMessageLengthMax(); + return messageLengthMax_; } /** - * optional uint64 message_length_max = 7; + * uint64 message_length_max = 7; + * @param value The messageLengthMax to set. + * @return This builder for chaining. */ public Builder setMessageLengthMax(long value) { - copyOnWrite(); - instance.setMessageLengthMax(value); + + messageLengthMax_ = value; + onChanged(); return this; } /** - * optional uint64 message_length_max = 7; + * uint64 message_length_max = 7; + * @return This builder for chaining. */ public Builder clearMessageLengthMax() { - copyOnWrite(); - instance.clearMessageLengthMax(); + + messageLengthMax_ = 0L; + onChanged(); return this; } + private int groupAddMemberLimit_ ; /** - * optional uint32 group_add_member_limit = 8; + * uint32 group_add_member_limit = 8; + * @return The groupAddMemberLimit. */ + @java.lang.Override public int getGroupAddMemberLimit() { - return instance.getGroupAddMemberLimit(); + return groupAddMemberLimit_; } /** - * optional uint32 group_add_member_limit = 8; + * uint32 group_add_member_limit = 8; + * @param value The groupAddMemberLimit to set. + * @return This builder for chaining. */ public Builder setGroupAddMemberLimit(int value) { - copyOnWrite(); - instance.setGroupAddMemberLimit(value); + + groupAddMemberLimit_ = value; + onChanged(); return this; } /** - * optional uint32 group_add_member_limit = 8; + * uint32 group_add_member_limit = 8; + * @return This builder for chaining. */ public Builder clearGroupAddMemberLimit() { - copyOnWrite(); - instance.clearGroupAddMemberLimit(); + + groupAddMemberLimit_ = 0; + onChanged(); return this; } + private int channelAddMemberLimit_ ; /** - * optional uint32 channel_add_member_limit = 9; + * uint32 channel_add_member_limit = 9; + * @return The channelAddMemberLimit. */ + @java.lang.Override public int getChannelAddMemberLimit() { - return instance.getChannelAddMemberLimit(); + return channelAddMemberLimit_; } /** - * optional uint32 channel_add_member_limit = 9; + * uint32 channel_add_member_limit = 9; + * @param value The channelAddMemberLimit to set. + * @return This builder for chaining. */ public Builder setChannelAddMemberLimit(int value) { - copyOnWrite(); - instance.setChannelAddMemberLimit(value); + + channelAddMemberLimit_ = value; + onChanged(); return this; } /** - * optional uint32 channel_add_member_limit = 9; + * uint32 channel_add_member_limit = 9; + * @return This builder for chaining. */ public Builder clearChannelAddMemberLimit() { - copyOnWrite(); - instance.clearChannelAddMemberLimit(); + + channelAddMemberLimit_ = 0; + onChanged(); return this; } + private java.util.List microService_ = + java.util.Collections.emptyList(); + private void ensureMicroServiceIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + microService_ = new java.util.ArrayList(microService_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoInfoConfig.MicroService, net.iGap.proto.ProtoInfoConfig.MicroService.Builder, net.iGap.proto.ProtoInfoConfig.MicroServiceOrBuilder> microServiceBuilder_; + /** * repeated .proto.MicroService micro_service = 10; */ public java.util.List getMicroServiceList() { - return java.util.Collections.unmodifiableList( - instance.getMicroServiceList()); + if (microServiceBuilder_ == null) { + return java.util.Collections.unmodifiableList(microService_); + } else { + return microServiceBuilder_.getMessageList(); + } } /** * repeated .proto.MicroService micro_service = 10; */ public int getMicroServiceCount() { - return instance.getMicroServiceCount(); - }/** + if (microServiceBuilder_ == null) { + return microService_.size(); + } else { + return microServiceBuilder_.getCount(); + } + } + /** * repeated .proto.MicroService micro_service = 10; */ public net.iGap.proto.ProtoInfoConfig.MicroService getMicroService(int index) { - return instance.getMicroService(index); + if (microServiceBuilder_ == null) { + return microService_.get(index); + } else { + return microServiceBuilder_.getMessage(index); + } } /** * repeated .proto.MicroService micro_service = 10; */ public Builder setMicroService( int index, net.iGap.proto.ProtoInfoConfig.MicroService value) { - copyOnWrite(); - instance.setMicroService(index, value); + if (microServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMicroServiceIsMutable(); + microService_.set(index, value); + onChanged(); + } else { + microServiceBuilder_.setMessage(index, value); + } return this; } /** @@ -1566,16 +2431,29 @@ public Builder setMicroService( */ public Builder setMicroService( int index, net.iGap.proto.ProtoInfoConfig.MicroService.Builder builderForValue) { - copyOnWrite(); - instance.setMicroService(index, builderForValue); + if (microServiceBuilder_ == null) { + ensureMicroServiceIsMutable(); + microService_.set(index, builderForValue.build()); + onChanged(); + } else { + microServiceBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.MicroService micro_service = 10; */ public Builder addMicroService(net.iGap.proto.ProtoInfoConfig.MicroService value) { - copyOnWrite(); - instance.addMicroService(value); + if (microServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMicroServiceIsMutable(); + microService_.add(value); + onChanged(); + } else { + microServiceBuilder_.addMessage(value); + } return this; } /** @@ -1583,8 +2461,16 @@ public Builder addMicroService(net.iGap.proto.ProtoInfoConfig.MicroService value */ public Builder addMicroService( int index, net.iGap.proto.ProtoInfoConfig.MicroService value) { - copyOnWrite(); - instance.addMicroService(index, value); + if (microServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMicroServiceIsMutable(); + microService_.add(index, value); + onChanged(); + } else { + microServiceBuilder_.addMessage(index, value); + } return this; } /** @@ -1592,8 +2478,13 @@ public Builder addMicroService( */ public Builder addMicroService( net.iGap.proto.ProtoInfoConfig.MicroService.Builder builderForValue) { - copyOnWrite(); - instance.addMicroService(builderForValue); + if (microServiceBuilder_ == null) { + ensureMicroServiceIsMutable(); + microService_.add(builderForValue.build()); + onChanged(); + } else { + microServiceBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1601,8 +2492,13 @@ public Builder addMicroService( */ public Builder addMicroService( int index, net.iGap.proto.ProtoInfoConfig.MicroService.Builder builderForValue) { - copyOnWrite(); - instance.addMicroService(index, builderForValue); + if (microServiceBuilder_ == null) { + ensureMicroServiceIsMutable(); + microService_.add(index, builderForValue.build()); + onChanged(); + } else { + microServiceBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1610,405 +2506,497 @@ public Builder addMicroService( */ public Builder addAllMicroService( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllMicroService(values); + if (microServiceBuilder_ == null) { + ensureMicroServiceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, microService_); + onChanged(); + } else { + microServiceBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.MicroService micro_service = 10; */ public Builder clearMicroService() { - copyOnWrite(); - instance.clearMicroService(); + if (microServiceBuilder_ == null) { + microService_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + microServiceBuilder_.clear(); + } return this; } /** * repeated .proto.MicroService micro_service = 10; */ public Builder removeMicroService(int index) { - copyOnWrite(); - instance.removeMicroService(index); + if (microServiceBuilder_ == null) { + ensureMicroServiceIsMutable(); + microService_.remove(index); + onChanged(); + } else { + microServiceBuilder_.remove(index); + } return this; } + /** + * repeated .proto.MicroService micro_service = 10; + */ + public net.iGap.proto.ProtoInfoConfig.MicroService.Builder getMicroServiceBuilder( + int index) { + return getMicroServiceFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.MicroService micro_service = 10; + */ + public net.iGap.proto.ProtoInfoConfig.MicroServiceOrBuilder getMicroServiceOrBuilder( + int index) { + if (microServiceBuilder_ == null) { + return microService_.get(index); } else { + return microServiceBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.MicroService micro_service = 10; + */ + public java.util.List + getMicroServiceOrBuilderList() { + if (microServiceBuilder_ != null) { + return microServiceBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(microService_); + } + } + /** + * repeated .proto.MicroService micro_service = 10; + */ + public net.iGap.proto.ProtoInfoConfig.MicroService.Builder addMicroServiceBuilder() { + return getMicroServiceFieldBuilder().addBuilder( + net.iGap.proto.ProtoInfoConfig.MicroService.getDefaultInstance()); + } + /** + * repeated .proto.MicroService micro_service = 10; + */ + public net.iGap.proto.ProtoInfoConfig.MicroService.Builder addMicroServiceBuilder( + int index) { + return getMicroServiceFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoInfoConfig.MicroService.getDefaultInstance()); + } + /** + * repeated .proto.MicroService micro_service = 10; + */ + public java.util.List + getMicroServiceBuilderList() { + return getMicroServiceFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoInfoConfig.MicroService, net.iGap.proto.ProtoInfoConfig.MicroService.Builder, net.iGap.proto.ProtoInfoConfig.MicroServiceOrBuilder> + getMicroServiceFieldBuilder() { + if (microServiceBuilder_ == null) { + microServiceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoInfoConfig.MicroService, net.iGap.proto.ProtoInfoConfig.MicroService.Builder, net.iGap.proto.ProtoInfoConfig.MicroServiceOrBuilder>( + microService_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + microService_ = null; + } + return microServiceBuilder_; + } + private int debugger_ = 0; /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @return The enum numeric value on the wire for debugger. */ - public int getDebuggerValue() { - return instance.getDebuggerValue(); + @java.lang.Override public int getDebuggerValue() { + return debugger_; } /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @param value The enum numeric value on the wire for debugger to set. + * @return This builder for chaining. */ public Builder setDebuggerValue(int value) { - copyOnWrite(); - instance.setDebuggerValue(value); + + debugger_ = value; + onChanged(); return this; } /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @return The debugger. */ + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger getDebugger() { - return instance.getDebugger(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger result = net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger.valueOf(debugger_); + return result == null ? net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger.UNRECOGNIZED : result; } /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @param value The debugger to set. + * @return This builder for chaining. */ public Builder setDebugger(net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Debugger value) { - copyOnWrite(); - instance.setDebugger(value); + if (value == null) { + throw new NullPointerException(); + } + + debugger_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.InfoConfigResponse.Debugger debugger = 11; + * .proto.InfoConfigResponse.Debugger debugger = 11; + * @return This builder for chaining. */ public Builder clearDebugger() { - copyOnWrite(); - instance.clearDebugger(); + + debugger_ = 0; + onChanged(); return this; } + private java.lang.Object baseUrl_ = ""; /** - * optional string base_url = 12; + * string base_url = 12; + * @return The baseUrl. */ public java.lang.String getBaseUrl() { - return instance.getBaseUrl(); + java.lang.Object ref = baseUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string base_url = 12; + * string base_url = 12; + * @return The bytes for baseUrl. */ public com.google.protobuf.ByteString getBaseUrlBytes() { - return instance.getBaseUrlBytes(); + java.lang.Object ref = baseUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + baseUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string base_url = 12; + * string base_url = 12; + * @param value The baseUrl to set. + * @return This builder for chaining. */ public Builder setBaseUrl( java.lang.String value) { - copyOnWrite(); - instance.setBaseUrl(value); + if (value == null) { + throw new NullPointerException(); + } + + baseUrl_ = value; + onChanged(); return this; } /** - * optional string base_url = 12; + * string base_url = 12; + * @return This builder for chaining. */ public Builder clearBaseUrl() { - copyOnWrite(); - instance.clearBaseUrl(); + + baseUrl_ = getDefaultInstance().getBaseUrl(); + onChanged(); return this; } /** - * optional string base_url = 12; + * string base_url = 12; + * @param value The bytes for baseUrl to set. + * @return This builder for chaining. */ public Builder setBaseUrlBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBaseUrlBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseUrl_ = value; + onChanged(); return this; } + private boolean showAdvertising_ ; /** - * optional bool show_advertising = 13; + * bool show_advertising = 13; + * @return The showAdvertising. */ + @java.lang.Override public boolean getShowAdvertising() { - return instance.getShowAdvertising(); + return showAdvertising_; } /** - * optional bool show_advertising = 13; + * bool show_advertising = 13; + * @param value The showAdvertising to set. + * @return This builder for chaining. */ public Builder setShowAdvertising(boolean value) { - copyOnWrite(); - instance.setShowAdvertising(value); + + showAdvertising_ = value; + onChanged(); return this; } /** - * optional bool show_advertising = 13; + * bool show_advertising = 13; + * @return This builder for chaining. */ public Builder clearShowAdvertising() { - copyOnWrite(); - instance.clearShowAdvertising(); + + showAdvertising_ = false; + onChanged(); return this; } + private int defaultTab_ = 0; /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @return The enum numeric value on the wire for defaultTab. */ - public int getDefaultTabValue() { - return instance.getDefaultTabValue(); + @java.lang.Override public int getDefaultTabValue() { + return defaultTab_; } /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @param value The enum numeric value on the wire for defaultTab to set. + * @return This builder for chaining. */ public Builder setDefaultTabValue(int value) { - copyOnWrite(); - instance.setDefaultTabValue(value); + + defaultTab_ = value; + onChanged(); return this; } /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @return The defaultTab. */ + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab getDefaultTab() { - return instance.getDefaultTab(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab result = net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab.valueOf(defaultTab_); + return result == null ? net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab.UNRECOGNIZED : result; } /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @param value The defaultTab to set. + * @return This builder for chaining. */ public Builder setDefaultTab(net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.Tab value) { - copyOnWrite(); - instance.setDefaultTab(value); + if (value == null) { + throw new NullPointerException(); + } + + defaultTab_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.InfoConfigResponse.Tab defaultTab = 14; + * .proto.InfoConfigResponse.Tab defaultTab = 14; + * @return This builder for chaining. */ public Builder clearDefaultTab() { - copyOnWrite(); - instance.clearDefaultTab(); + + defaultTab_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoConfigResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoConfig.InfoConfigResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - microService_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoConfig.InfoConfigResponse other = (net.iGap.proto.ProtoInfoConfig.InfoConfigResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - debugMode_ = visitor.visitBoolean(debugMode_ != false, debugMode_, - other.debugMode_ != false, other.debugMode_); - defaultTimeout_ = visitor.visitInt(defaultTimeout_ != 0, defaultTimeout_, - other.defaultTimeout_ != 0, other.defaultTimeout_); - optimizeMode_ = visitor.visitBoolean(optimizeMode_ != false, optimizeMode_, - other.optimizeMode_ != false, other.optimizeMode_); - maxFileSize_ = visitor.visitLong(maxFileSize_ != 0L, maxFileSize_, - other.maxFileSize_ != 0L, other.maxFileSize_); - captionLengthMax_ = visitor.visitLong(captionLengthMax_ != 0L, captionLengthMax_, - other.captionLengthMax_ != 0L, other.captionLengthMax_); - messageLengthMax_ = visitor.visitLong(messageLengthMax_ != 0L, messageLengthMax_, - other.messageLengthMax_ != 0L, other.messageLengthMax_); - groupAddMemberLimit_ = visitor.visitInt(groupAddMemberLimit_ != 0, groupAddMemberLimit_, - other.groupAddMemberLimit_ != 0, other.groupAddMemberLimit_); - channelAddMemberLimit_ = visitor.visitInt(channelAddMemberLimit_ != 0, channelAddMemberLimit_, - other.channelAddMemberLimit_ != 0, other.channelAddMemberLimit_); - microService_= visitor.visitList(microService_, other.microService_); - debugger_ = visitor.visitInt(debugger_ != 0, debugger_, other.debugger_ != 0, other.debugger_); - baseUrl_ = visitor.visitString(!baseUrl_.isEmpty(), baseUrl_, - !other.baseUrl_.isEmpty(), other.baseUrl_); - showAdvertising_ = visitor.visitBoolean(showAdvertising_ != false, showAdvertising_, - other.showAdvertising_ != false, other.showAdvertising_); - defaultTab_ = visitor.visitInt(defaultTab_ != 0, defaultTab_, other.defaultTab_ != 0, other.defaultTab_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - debugMode_ = input.readBool(); - break; - } - case 24: { - - defaultTimeout_ = input.readUInt32(); - break; - } - case 32: { - - optimizeMode_ = input.readBool(); - break; - } - case 40: { - - maxFileSize_ = input.readUInt64(); - break; - } - case 48: { - - captionLengthMax_ = input.readUInt64(); - break; - } - case 56: { - - messageLengthMax_ = input.readUInt64(); - break; - } - case 64: { - - groupAddMemberLimit_ = input.readUInt32(); - break; - } - case 72: { - - channelAddMemberLimit_ = input.readUInt32(); - break; - } - case 82: { - if (!microService_.isModifiable()) { - microService_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(microService_); - } - microService_.add( - input.readMessage(net.iGap.proto.ProtoInfoConfig.MicroService.parser(), extensionRegistry)); - break; - } - case 88: { - int rawValue = input.readEnum(); - - debugger_ = rawValue; - break; - } - case 98: { - String s = input.readStringRequireUtf8(); - - baseUrl_ = s; - break; - } - case 104: { - - showAdvertising_ = input.readBool(); - break; - } - case 112: { - int rawValue = input.readEnum(); - - defaultTab_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoConfig.InfoConfigResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoConfigResponse) + } + // @@protoc_insertion_point(class_scope:proto.InfoConfigResponse) private static final net.iGap.proto.ProtoInfoConfig.InfoConfigResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoConfigResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoConfig.InfoConfigResponse(); } public static net.iGap.proto.ProtoInfoConfig.InfoConfigResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoConfigResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.InfoConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface MicroServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MicroService) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string name = 1; + * string name = 1; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 1; + * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @return The type. */ net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType getType(); } /** * Protobuf type {@code proto.MicroService} */ - public static final class MicroService extends - com.google.protobuf.GeneratedMessageLite< - MicroService, MicroService.Builder> implements + public static final class MicroService extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MicroService) MicroServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use MicroService.newBuilder() to construct. + private MicroService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MicroService() { name_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MicroService(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MicroService( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_MicroService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_MicroService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoConfig.MicroService.class, net.iGap.proto.ProtoInfoConfig.MicroService.Builder.class); } + /** * Protobuf enum {@code proto.MicroService.ConnectionType} */ public enum ConnectionType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * HTTPS = 0; */ @@ -2031,10 +3019,16 @@ public enum ConnectionType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -2042,6 +3036,10 @@ public static ConnectionType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ConnectionType forNumber(int value) { switch (value) { case 0: return HTTPS; @@ -2062,6 +3060,37 @@ public ConnectionType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.MicroService.getDescriptor().getEnumTypes().get(0); + } + + private static final ConnectionType[] VALUES = values(); + + public static ConnectionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private ConnectionType(int value) { @@ -2072,384 +3101,634 @@ private ConnectionType(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 1; + * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 1; + * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 1; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 1; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 1; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @return The type. */ - public net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType getType() { - net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType result = net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType result = net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType.valueOf(type_); return result == null ? net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType.UNRECOGNIZED : result; } - /** - * optional .proto.MicroService.ConnectionType type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.MicroService.ConnectionType type = 2; - */ - private void setType(net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.MicroService.ConnectionType type = 2; - */ - private void clearType() { - - type_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!name_.isEmpty()) { - output.writeString(1, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType.HTTPS.getNumber()) { output.writeEnum(2, type_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType.HTTPS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoConfig.MicroService)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoConfig.MicroService other = (net.iGap.proto.ProtoInfoConfig.MicroService) obj; + + if (!getName() + .equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoConfig.MicroService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoConfig.MicroService prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MicroService} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoConfig.MicroService, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MicroService) net.iGap.proto.ProtoInfoConfig.MicroServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_MicroService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_MicroService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoConfig.MicroService.class, net.iGap.proto.ProtoInfoConfig.MicroService.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoConfig.MicroService.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoConfig.internal_static_proto_MicroService_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.MicroService getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoConfig.MicroService.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.MicroService build() { + net.iGap.proto.ProtoInfoConfig.MicroService result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.MicroService buildPartial() { + net.iGap.proto.ProtoInfoConfig.MicroService result = new net.iGap.proto.ProtoInfoConfig.MicroService(this); + result.name_ = name_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoConfig.MicroService) { + return mergeFrom((net.iGap.proto.ProtoInfoConfig.MicroService)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoInfoConfig.MicroService other) { + if (other == net.iGap.proto.ProtoInfoConfig.MicroService.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoConfig.MicroService parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoConfig.MicroService) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; /** - * optional string name = 1; + * string name = 1; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 1; + * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 1; + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 1; + * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 1; + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType result = net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType.valueOf(type_); + return result == null ? net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType.UNRECOGNIZED : result; } /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoInfoConfig.MicroService.ConnectionType value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MicroService.ConnectionType type = 2; + * .proto.MicroService.ConnectionType type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MicroService) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoConfig.MicroService(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoConfig.MicroService other = (net.iGap.proto.ProtoInfoConfig.MicroService) arg1; - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoConfig.MicroService.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MicroService) + } + // @@protoc_insertion_point(class_scope:proto.MicroService) private static final net.iGap.proto.ProtoInfoConfig.MicroService DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MicroService(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoConfig.MicroService(); } public static net.iGap.proto.ProtoInfoConfig.MicroService getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MicroService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MicroService(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoConfig.MicroService getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoConfigResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoConfigResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MicroService_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MicroService_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020InfoConfig.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"-\n\nInfoConfig\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\"\266\004\n\022InfoConfigRe" + + "sponse\022!\n\010response\030\001 \001(\0132\017.proto.Respons" + + "e\022\022\n\ndebug_mode\030\002 \001(\010\022\027\n\017default_timeout" + + "\030\003 \001(\r\022\025\n\roptimize_mode\030\004 \001(\010\022\025\n\rmax_fil" + + "e_size\030\005 \001(\004\022\032\n\022caption_length_max\030\006 \001(\004" + + "\022\032\n\022message_length_max\030\007 \001(\004\022\036\n\026group_ad" + + "d_member_limit\030\010 \001(\r\022 \n\030channel_add_memb" + + "er_limit\030\t \001(\r\022*\n\rmicro_service\030\n \003(\0132\023." + + "proto.MicroService\0224\n\010debugger\030\013 \001(\0162\".p" + + "roto.InfoConfigResponse.Debugger\022\020\n\010base" + + "_url\030\014 \001(\t\022\030\n\020show_advertising\030\r \001(\010\0221\n\n" + + "defaultTab\030\016 \001(\0162\035.proto.InfoConfigRespo" + + "nse.Tab\"\'\n\010Debugger\022\017\n\013CRASHLYTICS\020\000\022\n\n\006" + + "SENTRY\020\001\">\n\003Tab\022\013\n\007CONTACT\020\000\022\010\n\004CALL\020\001\022\010" + + "\n\004CHAT\020\002\022\t\n\005ILAND\020\003\022\013\n\007SETTING\020\004\"w\n\014Micr" + + "oService\022\014\n\004name\030\001 \001(\t\0220\n\004type\030\002 \001(\0162\".p" + + "roto.MicroService.ConnectionType\"\'\n\016Conn" + + "ectionType\022\t\n\005HTTPS\020\000\022\n\n\006SOCKET\020\001B!\n\016net" + + ".iGap.protoB\017ProtoInfoConfigb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_InfoConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_InfoConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoConfig_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_InfoConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_InfoConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoConfigResponse_descriptor, + new java.lang.String[] { "Response", "DebugMode", "DefaultTimeout", "OptimizeMode", "MaxFileSize", "CaptionLengthMax", "MessageLengthMax", "GroupAddMemberLimit", "ChannelAddMemberLimit", "MicroService", "Debugger", "BaseUrl", "ShowAdvertising", "DefaultTab", }); + internal_static_proto_MicroService_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_proto_MicroService_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MicroService_descriptor, + new java.lang.String[] { "Name", "Type", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoInfoCountry.java b/src/main/java/net/iGap/proto/ProtoInfoCountry.java index 3cfd0c3..f4648a3 100644 --- a/src/main/java/net/iGap/proto/ProtoInfoCountry.java +++ b/src/main/java/net/iGap/proto/ProtoInfoCountry.java @@ -8,25 +8,39 @@ private ProtoInfoCountry() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InfoCountryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoCountry) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The isoCode. */ java.lang.String getIsoCode(); /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The bytes for isoCode. */ com.google.protobuf.ByteString getIsoCodeBytes(); @@ -34,124 +48,190 @@ public interface InfoCountryOrBuilder extends /** * Protobuf type {@code proto.InfoCountry} */ - public static final class InfoCountry extends - com.google.protobuf.GeneratedMessageLite< - InfoCountry, InfoCountry.Builder> implements + public static final class InfoCountry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoCountry) InfoCountryOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoCountry.newBuilder() to construct. + private InfoCountry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoCountry() { isoCode_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoCountry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoCountry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + isoCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoCountry.InfoCountry.class, net.iGap.proto.ProtoInfoCountry.InfoCountry.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ISO_CODE_FIELD_NUMBER = 2; - private java.lang.String isoCode_; + private volatile java.lang.Object isoCode_; /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The isoCode. */ + @java.lang.Override public java.lang.String getIsoCode() { - return isoCode_; + java.lang.Object ref = isoCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isoCode_ = s; + return s; + } } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The bytes for isoCode. */ + @java.lang.Override public com.google.protobuf.ByteString getIsoCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(isoCode_); - } - /** - * optional string iso_code = 2; - */ - private void setIsoCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - isoCode_ = value; - } - /** - * optional string iso_code = 2; - */ - private void clearIsoCode() { - - isoCode_ = getDefaultInstance().getIsoCode(); + java.lang.Object ref = isoCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + isoCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string iso_code = 2; - */ - private void setIsoCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - isoCode_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!isoCode_.isEmpty()) { - output.writeString(2, getIsoCode()); + if (!getIsoCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, isoCode_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,338 +239,609 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!isoCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getIsoCode()); + if (!getIsoCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, isoCode_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoCountry.InfoCountry)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoCountry.InfoCountry other = (net.iGap.proto.ProtoInfoCountry.InfoCountry) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getIsoCode() + .equals(other.getIsoCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ISO_CODE_FIELD_NUMBER; + hash = (53 * hash) + getIsoCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoCountry.InfoCountry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoCountry} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoCountry.InfoCountry, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoCountry) net.iGap.proto.ProtoInfoCountry.InfoCountryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoCountry.InfoCountry.class, net.iGap.proto.ProtoInfoCountry.InfoCountry.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoCountry.InfoCountry.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + isoCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountry_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountry getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoCountry.InfoCountry.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountry build() { + net.iGap.proto.ProtoInfoCountry.InfoCountry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountry buildPartial() { + net.iGap.proto.ProtoInfoCountry.InfoCountry result = new net.iGap.proto.ProtoInfoCountry.InfoCountry(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.isoCode_ = isoCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoCountry.InfoCountry) { + return mergeFrom((net.iGap.proto.ProtoInfoCountry.InfoCountry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoCountry.InfoCountry other) { + if (other == net.iGap.proto.ProtoInfoCountry.InfoCountry.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getIsoCode().isEmpty()) { + isoCode_ = other.isoCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoCountry.InfoCountry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoCountry.InfoCountry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object isoCode_ = ""; /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The isoCode. */ public java.lang.String getIsoCode() { - return instance.getIsoCode(); + java.lang.Object ref = isoCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isoCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The bytes for isoCode. */ public com.google.protobuf.ByteString getIsoCodeBytes() { - return instance.getIsoCodeBytes(); + java.lang.Object ref = isoCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + isoCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @param value The isoCode to set. + * @return This builder for chaining. */ public Builder setIsoCode( java.lang.String value) { - copyOnWrite(); - instance.setIsoCode(value); + if (value == null) { + throw new NullPointerException(); + } + + isoCode_ = value; + onChanged(); return this; } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return This builder for chaining. */ public Builder clearIsoCode() { - copyOnWrite(); - instance.clearIsoCode(); + + isoCode_ = getDefaultInstance().getIsoCode(); + onChanged(); return this; } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @param value The bytes for isoCode to set. + * @return This builder for chaining. */ public Builder setIsoCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIsoCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + isoCode_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoCountry) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoCountry.InfoCountry(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoCountry.InfoCountry other = (net.iGap.proto.ProtoInfoCountry.InfoCountry) arg1; - request_ = visitor.visitMessage(request_, other.request_); - isoCode_ = visitor.visitString(!isoCode_.isEmpty(), isoCode_, - !other.isoCode_.isEmpty(), other.isoCode_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - isoCode_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoCountry.InfoCountry.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoCountry) + } + // @@protoc_insertion_point(class_scope:proto.InfoCountry) private static final net.iGap.proto.ProtoInfoCountry.InfoCountry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoCountry(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoCountry.InfoCountry(); } public static net.iGap.proto.ProtoInfoCountry.InfoCountry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoCountry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoCountry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface InfoCountryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoCountryResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 calling_code = 2; + * uint32 calling_code = 2; + * @return The callingCode. */ int getCallingCode(); /** - * optional string name = 3; + * string name = 3; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string pattern = 4; + * string pattern = 4; + * @return The pattern. */ java.lang.String getPattern(); /** - * optional string pattern = 4; + * string pattern = 4; + * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** - * optional string regex = 5; + * string regex = 5; + * @return The regex. */ java.lang.String getRegex(); /** - * optional string regex = 5; + * string regex = 5; + * @return The bytes for regex. */ com.google.protobuf.ByteString getRegexBytes(); @@ -498,229 +849,282 @@ public interface InfoCountryResponseOrBuilder extends /** * Protobuf type {@code proto.InfoCountryResponse} */ - public static final class InfoCountryResponse extends - com.google.protobuf.GeneratedMessageLite< - InfoCountryResponse, InfoCountryResponse.Builder> implements + public static final class InfoCountryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoCountryResponse) InfoCountryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoCountryResponse.newBuilder() to construct. + private InfoCountryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoCountryResponse() { name_ = ""; pattern_ = ""; regex_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoCountryResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoCountryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + callingCode_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pattern_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.class, net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int CALLING_CODE_FIELD_NUMBER = 2; private int callingCode_; /** - * optional uint32 calling_code = 2; + * uint32 calling_code = 2; + * @return The callingCode. */ + @java.lang.Override public int getCallingCode() { return callingCode_; } - /** - * optional uint32 calling_code = 2; - */ - private void setCallingCode(int value) { - - callingCode_ = value; - } - /** - * optional uint32 calling_code = 2; - */ - private void clearCallingCode() { - - callingCode_ = 0; - } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 3; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 3; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 3; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PATTERN_FIELD_NUMBER = 4; - private java.lang.String pattern_; + private volatile java.lang.Object pattern_; /** - * optional string pattern = 4; + * string pattern = 4; + * @return The pattern. */ + @java.lang.Override public java.lang.String getPattern() { - return pattern_; + java.lang.Object ref = pattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pattern_ = s; + return s; + } } /** - * optional string pattern = 4; + * string pattern = 4; + * @return The bytes for pattern. */ + @java.lang.Override public com.google.protobuf.ByteString getPatternBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(pattern_); - } - /** - * optional string pattern = 4; - */ - private void setPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pattern_ = value; - } - /** - * optional string pattern = 4; - */ - private void clearPattern() { - - pattern_ = getDefaultInstance().getPattern(); - } - /** - * optional string pattern = 4; - */ - private void setPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pattern_ = value.toStringUtf8(); + java.lang.Object ref = pattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int REGEX_FIELD_NUMBER = 5; - private java.lang.String regex_; + private volatile java.lang.Object regex_; /** - * optional string regex = 5; + * string regex = 5; + * @return The regex. */ + @java.lang.Override public java.lang.String getRegex() { - return regex_; + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } } /** - * optional string regex = 5; + * string regex = 5; + * @return The bytes for regex. */ + @java.lang.Override public com.google.protobuf.ByteString getRegexBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(regex_); - } - /** - * optional string regex = 5; - */ - private void setRegex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - regex_ = value; - } - /** - * optional string regex = 5; - */ - private void clearRegex() { - - regex_ = getDefaultInstance().getRegex(); + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string regex = 5; - */ - private void setRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - regex_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -729,19 +1133,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (callingCode_ != 0) { output.writeUInt32(2, callingCode_); } - if (!name_.isEmpty()) { - output.writeString(3, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - if (!pattern_.isEmpty()) { - output.writeString(4, getPattern()); + if (!getPatternBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pattern_); } - if (!regex_.isEmpty()) { - output.writeString(5, getRegex()); + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regex_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -753,430 +1159,821 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, callingCode_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - if (!pattern_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getPattern()); + if (!getPatternBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pattern_); } - if (!regex_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getRegex()); + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regex_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoCountry.InfoCountryResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoCountry.InfoCountryResponse other = (net.iGap.proto.ProtoInfoCountry.InfoCountryResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getCallingCode() + != other.getCallingCode()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPattern() + .equals(other.getPattern())) return false; + if (!getRegex() + .equals(other.getRegex())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CALLING_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCallingCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getPattern().hashCode(); + hash = (37 * hash) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoCountry.InfoCountryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoCountryResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoCountry.InfoCountryResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoCountryResponse) net.iGap.proto.ProtoInfoCountry.InfoCountryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.class, net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + callingCode_ = 0; + + name_ = ""; + + pattern_ = ""; + + regex_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoCountry.internal_static_proto_InfoCountryResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountryResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountryResponse build() { + net.iGap.proto.ProtoInfoCountry.InfoCountryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountryResponse buildPartial() { + net.iGap.proto.ProtoInfoCountry.InfoCountryResponse result = new net.iGap.proto.ProtoInfoCountry.InfoCountryResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.callingCode_ = callingCode_; + result.name_ = name_; + result.pattern_ = pattern_; + result.regex_ = regex_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoCountry.InfoCountryResponse) { + return mergeFrom((net.iGap.proto.ProtoInfoCountry.InfoCountryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoCountry.InfoCountryResponse other) { + if (other == net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getCallingCode() != 0) { + setCallingCode(other.getCallingCode()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPattern().isEmpty()) { + pattern_ = other.pattern_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoCountry.InfoCountryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoCountry.InfoCountryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int callingCode_ ; /** - * optional uint32 calling_code = 2; + * uint32 calling_code = 2; + * @return The callingCode. */ + @java.lang.Override public int getCallingCode() { - return instance.getCallingCode(); + return callingCode_; } /** - * optional uint32 calling_code = 2; + * uint32 calling_code = 2; + * @param value The callingCode to set. + * @return This builder for chaining. */ public Builder setCallingCode(int value) { - copyOnWrite(); - instance.setCallingCode(value); + + callingCode_ = value; + onChanged(); return this; } /** - * optional uint32 calling_code = 2; + * uint32 calling_code = 2; + * @return This builder for chaining. */ public Builder clearCallingCode() { - copyOnWrite(); - instance.clearCallingCode(); + + callingCode_ = 0; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 3; + * string name = 3; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 3; + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 3; + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object pattern_ = ""; /** - * optional string pattern = 4; + * string pattern = 4; + * @return The pattern. */ public java.lang.String getPattern() { - return instance.getPattern(); + java.lang.Object ref = pattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string pattern = 4; + * string pattern = 4; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { - return instance.getPatternBytes(); + java.lang.Object ref = pattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string pattern = 4; + * string pattern = 4; + * @param value The pattern to set. + * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { - copyOnWrite(); - instance.setPattern(value); + if (value == null) { + throw new NullPointerException(); + } + + pattern_ = value; + onChanged(); return this; } /** - * optional string pattern = 4; + * string pattern = 4; + * @return This builder for chaining. */ public Builder clearPattern() { - copyOnWrite(); - instance.clearPattern(); + + pattern_ = getDefaultInstance().getPattern(); + onChanged(); return this; } /** - * optional string pattern = 4; + * string pattern = 4; + * @param value The bytes for pattern to set. + * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPatternBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pattern_ = value; + onChanged(); return this; } + private java.lang.Object regex_ = ""; /** - * optional string regex = 5; + * string regex = 5; + * @return The regex. */ public java.lang.String getRegex() { - return instance.getRegex(); + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string regex = 5; + * string regex = 5; + * @return The bytes for regex. */ public com.google.protobuf.ByteString getRegexBytes() { - return instance.getRegexBytes(); + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string regex = 5; + * string regex = 5; + * @param value The regex to set. + * @return This builder for chaining. */ public Builder setRegex( java.lang.String value) { - copyOnWrite(); - instance.setRegex(value); + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); return this; } /** - * optional string regex = 5; + * string regex = 5; + * @return This builder for chaining. */ public Builder clearRegex() { - copyOnWrite(); - instance.clearRegex(); + + regex_ = getDefaultInstance().getRegex(); + onChanged(); return this; } /** - * optional string regex = 5; + * string regex = 5; + * @param value The bytes for regex to set. + * @return This builder for chaining. */ public Builder setRegexBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setRegexBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoCountryResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoCountry.InfoCountryResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoCountry.InfoCountryResponse other = (net.iGap.proto.ProtoInfoCountry.InfoCountryResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - callingCode_ = visitor.visitInt(callingCode_ != 0, callingCode_, - other.callingCode_ != 0, other.callingCode_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - pattern_ = visitor.visitString(!pattern_.isEmpty(), pattern_, - !other.pattern_.isEmpty(), other.pattern_); - regex_ = visitor.visitString(!regex_.isEmpty(), regex_, - !other.regex_.isEmpty(), other.regex_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - callingCode_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - pattern_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - regex_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoCountry.InfoCountryResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoCountryResponse) + } + // @@protoc_insertion_point(class_scope:proto.InfoCountryResponse) private static final net.iGap.proto.ProtoInfoCountry.InfoCountryResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoCountryResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoCountry.InfoCountryResponse(); } public static net.iGap.proto.ProtoInfoCountry.InfoCountryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoCountryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoCountryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoCountry.InfoCountryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoCountry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoCountry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoCountryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoCountryResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021InfoCountry.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\"@\n\013InfoCountry\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\020\n\010iso_code\030\002 " + + "\001(\t\"|\n\023InfoCountryResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\024\n\014calling_code\030\002 " + + "\001(\r\022\014\n\004name\030\003 \001(\t\022\017\n\007pattern\030\004 \001(\t\022\r\n\005re" + + "gex\030\005 \001(\tB\"\n\016net.iGap.protoB\020ProtoInfoCo" + + "untryb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_InfoCountry_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_InfoCountry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoCountry_descriptor, + new java.lang.String[] { "Request", "IsoCode", }); + internal_static_proto_InfoCountryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_InfoCountryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoCountryResponse_descriptor, + new java.lang.String[] { "Response", "CallingCode", "Name", "Pattern", "Regex", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoInfoLocation.java b/src/main/java/net/iGap/proto/ProtoInfoLocation.java index dbce9c8..5e1625d 100644 --- a/src/main/java/net/iGap/proto/ProtoInfoLocation.java +++ b/src/main/java/net/iGap/proto/ProtoInfoLocation.java @@ -8,90 +8,170 @@ private ProtoInfoLocation() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InfoLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoLocation) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.InfoLocation} */ - public static final class InfoLocation extends - com.google.protobuf.GeneratedMessageLite< - InfoLocation, InfoLocation.Builder> implements + public static final class InfoLocation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoLocation) InfoLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoLocation.newBuilder() to construct. + private InfoLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoLocation() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoLocation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoLocation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoLocation.InfoLocation.class, net.iGap.proto.ProtoInfoLocation.InfoLocation.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,296 +179,531 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoLocation.InfoLocation)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoLocation.InfoLocation other = (net.iGap.proto.ProtoInfoLocation.InfoLocation) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoLocation.InfoLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoLocation} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoLocation.InfoLocation, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoLocation) net.iGap.proto.ProtoInfoLocation.InfoLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoLocation.InfoLocation.class, net.iGap.proto.ProtoInfoLocation.InfoLocation.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoLocation.InfoLocation.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocation_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocation getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoLocation.InfoLocation.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocation build() { + net.iGap.proto.ProtoInfoLocation.InfoLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocation buildPartial() { + net.iGap.proto.ProtoInfoLocation.InfoLocation result = new net.iGap.proto.ProtoInfoLocation.InfoLocation(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoLocation.InfoLocation) { + return mergeFrom((net.iGap.proto.ProtoInfoLocation.InfoLocation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoLocation.InfoLocation other) { + if (other == net.iGap.proto.ProtoInfoLocation.InfoLocation.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoLocation.InfoLocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoLocation.InfoLocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.InfoLocation) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoLocation.InfoLocation(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoLocation.InfoLocation other = (net.iGap.proto.ProtoInfoLocation.InfoLocation) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoLocation.InfoLocation.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoLocation) + } + // @@protoc_insertion_point(class_scope:proto.InfoLocation) private static final net.iGap.proto.ProtoInfoLocation.InfoLocation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoLocation(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoLocation.InfoLocation(); } public static net.iGap.proto.ProtoInfoLocation.InfoLocation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoLocation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface InfoLocationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoLocationResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The isoCode. */ java.lang.String getIsoCode(); /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The bytes for isoCode. */ com.google.protobuf.ByteString getIsoCodeBytes(); /** - * optional uint32 calling_code = 3; + * uint32 calling_code = 3; + * @return The callingCode. */ int getCallingCode(); /** - * optional string name = 4; + * string name = 4; + * @return The name. */ java.lang.String getName(); /** - * optional string name = 4; + * string name = 4; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** - * optional string pattern = 5; + * string pattern = 5; + * @return The pattern. */ java.lang.String getPattern(); /** - * optional string pattern = 5; + * string pattern = 5; + * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** - * optional string regex = 6; + * string regex = 6; + * @return The regex. */ java.lang.String getRegex(); /** - * optional string regex = 6; + * string regex = 6; + * @return The bytes for regex. */ com.google.protobuf.ByteString getRegexBytes(); @@ -396,300 +711,353 @@ public interface InfoLocationResponseOrBuilder extends /** * Protobuf type {@code proto.InfoLocationResponse} */ - public static final class InfoLocationResponse extends - com.google.protobuf.GeneratedMessageLite< - InfoLocationResponse, InfoLocationResponse.Builder> implements + public static final class InfoLocationResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoLocationResponse) InfoLocationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoLocationResponse.newBuilder() to construct. + private InfoLocationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoLocationResponse() { isoCode_ = ""; name_ = ""; pattern_ = ""; regex_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoLocationResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoLocationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + isoCode_ = s; + break; + } + case 24: { + + callingCode_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + pattern_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.class, net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ISO_CODE_FIELD_NUMBER = 2; - private java.lang.String isoCode_; + private volatile java.lang.Object isoCode_; /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The isoCode. */ + @java.lang.Override public java.lang.String getIsoCode() { - return isoCode_; + java.lang.Object ref = isoCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isoCode_ = s; + return s; + } } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The bytes for isoCode. */ + @java.lang.Override public com.google.protobuf.ByteString getIsoCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(isoCode_); - } - /** - * optional string iso_code = 2; - */ - private void setIsoCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - isoCode_ = value; - } - /** - * optional string iso_code = 2; - */ - private void clearIsoCode() { - - isoCode_ = getDefaultInstance().getIsoCode(); - } - /** - * optional string iso_code = 2; - */ - private void setIsoCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - isoCode_ = value.toStringUtf8(); + java.lang.Object ref = isoCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + isoCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CALLING_CODE_FIELD_NUMBER = 3; private int callingCode_; /** - * optional uint32 calling_code = 3; + * uint32 calling_code = 3; + * @return The callingCode. */ + @java.lang.Override public int getCallingCode() { return callingCode_; } - /** - * optional uint32 calling_code = 3; - */ - private void setCallingCode(int value) { - - callingCode_ = value; - } - /** - * optional uint32 calling_code = 3; - */ - private void clearCallingCode() { - - callingCode_ = 0; - } public static final int NAME_FIELD_NUMBER = 4; - private java.lang.String name_; + private volatile java.lang.Object name_; /** - * optional string name = 4; + * string name = 4; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { - return name_; + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } /** - * optional string name = 4; + * string name = 4; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(name_); - } - /** - * optional string name = 4; - */ - private void setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - } - /** - * optional string name = 4; - */ - private void clearName() { - - name_ = getDefaultInstance().getName(); - } - /** - * optional string name = 4; - */ - private void setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value.toStringUtf8(); + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PATTERN_FIELD_NUMBER = 5; - private java.lang.String pattern_; + private volatile java.lang.Object pattern_; /** - * optional string pattern = 5; + * string pattern = 5; + * @return The pattern. */ + @java.lang.Override public java.lang.String getPattern() { - return pattern_; + java.lang.Object ref = pattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pattern_ = s; + return s; + } } /** - * optional string pattern = 5; + * string pattern = 5; + * @return The bytes for pattern. */ + @java.lang.Override public com.google.protobuf.ByteString getPatternBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(pattern_); - } - /** - * optional string pattern = 5; - */ - private void setPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pattern_ = value; - } - /** - * optional string pattern = 5; - */ - private void clearPattern() { - - pattern_ = getDefaultInstance().getPattern(); - } - /** - * optional string pattern = 5; - */ - private void setPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pattern_ = value.toStringUtf8(); + java.lang.Object ref = pattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int REGEX_FIELD_NUMBER = 6; - private java.lang.String regex_; + private volatile java.lang.Object regex_; /** - * optional string regex = 6; + * string regex = 6; + * @return The regex. */ + @java.lang.Override public java.lang.String getRegex() { - return regex_; + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } } /** - * optional string regex = 6; + * string regex = 6; + * @return The bytes for regex. */ + @java.lang.Override public com.google.protobuf.ByteString getRegexBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(regex_); - } - /** - * optional string regex = 6; - */ - private void setRegex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - regex_ = value; - } - /** - * optional string regex = 6; - */ - private void clearRegex() { - - regex_ = getDefaultInstance().getRegex(); + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string regex = 6; - */ - private void setRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - regex_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!isoCode_.isEmpty()) { - output.writeString(2, getIsoCode()); + if (!getIsoCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, isoCode_); } if (callingCode_ != 0) { output.writeUInt32(3, callingCode_); } - if (!name_.isEmpty()) { - output.writeString(4, getName()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } - if (!pattern_.isEmpty()) { - output.writeString(5, getPattern()); + if (!getPatternBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pattern_); } - if (!regex_.isEmpty()) { - output.writeString(6, getRegex()); + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, regex_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -697,486 +1065,915 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!isoCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getIsoCode()); + if (!getIsoCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, isoCode_); } if (callingCode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, callingCode_); } - if (!name_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getName()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } - if (!pattern_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getPattern()); + if (!getPatternBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pattern_); } - if (!regex_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getRegex()); + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, regex_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoLocation.InfoLocationResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoLocation.InfoLocationResponse other = (net.iGap.proto.ProtoInfoLocation.InfoLocationResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getIsoCode() + .equals(other.getIsoCode())) return false; + if (getCallingCode() + != other.getCallingCode()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPattern() + .equals(other.getPattern())) return false; + if (!getRegex() + .equals(other.getRegex())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ISO_CODE_FIELD_NUMBER; + hash = (53 * hash) + getIsoCode().hashCode(); + hash = (37 * hash) + CALLING_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCallingCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getPattern().hashCode(); + hash = (37 * hash) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoLocation.InfoLocationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoLocationResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoLocation.InfoLocationResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoLocationResponse) net.iGap.proto.ProtoInfoLocation.InfoLocationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.class, net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + isoCode_ = ""; + + callingCode_ = 0; + + name_ = ""; + + pattern_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoLocation.internal_static_proto_InfoLocationResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocationResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocationResponse build() { + net.iGap.proto.ProtoInfoLocation.InfoLocationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocationResponse buildPartial() { + net.iGap.proto.ProtoInfoLocation.InfoLocationResponse result = new net.iGap.proto.ProtoInfoLocation.InfoLocationResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.isoCode_ = isoCode_; + result.callingCode_ = callingCode_; + result.name_ = name_; + result.pattern_ = pattern_; + result.regex_ = regex_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoLocation.InfoLocationResponse) { + return mergeFrom((net.iGap.proto.ProtoInfoLocation.InfoLocationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoLocation.InfoLocationResponse other) { + if (other == net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getIsoCode().isEmpty()) { + isoCode_ = other.isoCode_; + onChanged(); + } + if (other.getCallingCode() != 0) { + setCallingCode(other.getCallingCode()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPattern().isEmpty()) { + pattern_ = other.pattern_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoLocation.InfoLocationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoLocation.InfoLocationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object isoCode_ = ""; /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The isoCode. */ public java.lang.String getIsoCode() { - return instance.getIsoCode(); + java.lang.Object ref = isoCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isoCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return The bytes for isoCode. */ public com.google.protobuf.ByteString getIsoCodeBytes() { - return instance.getIsoCodeBytes(); + java.lang.Object ref = isoCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + isoCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @param value The isoCode to set. + * @return This builder for chaining. */ public Builder setIsoCode( java.lang.String value) { - copyOnWrite(); - instance.setIsoCode(value); + if (value == null) { + throw new NullPointerException(); + } + + isoCode_ = value; + onChanged(); return this; } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @return This builder for chaining. */ public Builder clearIsoCode() { - copyOnWrite(); - instance.clearIsoCode(); + + isoCode_ = getDefaultInstance().getIsoCode(); + onChanged(); return this; } /** - * optional string iso_code = 2; + * string iso_code = 2; + * @param value The bytes for isoCode to set. + * @return This builder for chaining. */ public Builder setIsoCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIsoCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + isoCode_ = value; + onChanged(); return this; } + private int callingCode_ ; /** - * optional uint32 calling_code = 3; + * uint32 calling_code = 3; + * @return The callingCode. */ + @java.lang.Override public int getCallingCode() { - return instance.getCallingCode(); + return callingCode_; } /** - * optional uint32 calling_code = 3; + * uint32 calling_code = 3; + * @param value The callingCode to set. + * @return This builder for chaining. */ public Builder setCallingCode(int value) { - copyOnWrite(); - instance.setCallingCode(value); + + callingCode_ = value; + onChanged(); return this; } /** - * optional uint32 calling_code = 3; + * uint32 calling_code = 3; + * @return This builder for chaining. */ public Builder clearCallingCode() { - copyOnWrite(); - instance.clearCallingCode(); + + callingCode_ = 0; + onChanged(); return this; } + private java.lang.Object name_ = ""; /** - * optional string name = 4; + * string name = 4; + * @return The name. */ public java.lang.String getName() { - return instance.getName(); + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string name = 4; + * string name = 4; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { - return instance.getNameBytes(); + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string name = 4; + * string name = 4; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - copyOnWrite(); - instance.setName(value); + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); return this; } /** - * optional string name = 4; + * string name = 4; + * @return This builder for chaining. */ public Builder clearName() { - copyOnWrite(); - instance.clearName(); + + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * optional string name = 4; + * string name = 4; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); return this; } + private java.lang.Object pattern_ = ""; /** - * optional string pattern = 5; + * string pattern = 5; + * @return The pattern. */ public java.lang.String getPattern() { - return instance.getPattern(); + java.lang.Object ref = pattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string pattern = 5; + * string pattern = 5; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { - return instance.getPatternBytes(); + java.lang.Object ref = pattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string pattern = 5; + * string pattern = 5; + * @param value The pattern to set. + * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { - copyOnWrite(); - instance.setPattern(value); + if (value == null) { + throw new NullPointerException(); + } + + pattern_ = value; + onChanged(); return this; } /** - * optional string pattern = 5; + * string pattern = 5; + * @return This builder for chaining. */ public Builder clearPattern() { - copyOnWrite(); - instance.clearPattern(); + + pattern_ = getDefaultInstance().getPattern(); + onChanged(); return this; } /** - * optional string pattern = 5; + * string pattern = 5; + * @param value The bytes for pattern to set. + * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPatternBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pattern_ = value; + onChanged(); return this; } + private java.lang.Object regex_ = ""; /** - * optional string regex = 6; + * string regex = 6; + * @return The regex. */ public java.lang.String getRegex() { - return instance.getRegex(); + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string regex = 6; + * string regex = 6; + * @return The bytes for regex. */ public com.google.protobuf.ByteString getRegexBytes() { - return instance.getRegexBytes(); + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string regex = 6; + * string regex = 6; + * @param value The regex to set. + * @return This builder for chaining. */ public Builder setRegex( java.lang.String value) { - copyOnWrite(); - instance.setRegex(value); + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); return this; } /** - * optional string regex = 6; + * string regex = 6; + * @return This builder for chaining. */ public Builder clearRegex() { - copyOnWrite(); - instance.clearRegex(); + + regex_ = getDefaultInstance().getRegex(); + onChanged(); return this; } /** - * optional string regex = 6; + * string regex = 6; + * @param value The bytes for regex to set. + * @return This builder for chaining. */ public Builder setRegexBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setRegexBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoLocationResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoLocation.InfoLocationResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoLocation.InfoLocationResponse other = (net.iGap.proto.ProtoInfoLocation.InfoLocationResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - isoCode_ = visitor.visitString(!isoCode_.isEmpty(), isoCode_, - !other.isoCode_.isEmpty(), other.isoCode_); - callingCode_ = visitor.visitInt(callingCode_ != 0, callingCode_, - other.callingCode_ != 0, other.callingCode_); - name_ = visitor.visitString(!name_.isEmpty(), name_, - !other.name_.isEmpty(), other.name_); - pattern_ = visitor.visitString(!pattern_.isEmpty(), pattern_, - !other.pattern_.isEmpty(), other.pattern_); - regex_ = visitor.visitString(!regex_.isEmpty(), regex_, - !other.regex_.isEmpty(), other.regex_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - isoCode_ = s; - break; - } - case 24: { - - callingCode_ = input.readUInt32(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - pattern_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - regex_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoLocation.InfoLocationResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoLocationResponse) + } + // @@protoc_insertion_point(class_scope:proto.InfoLocationResponse) private static final net.iGap.proto.ProtoInfoLocation.InfoLocationResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoLocationResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoLocation.InfoLocationResponse(); } public static net.iGap.proto.ProtoInfoLocation.InfoLocationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoLocationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoLocationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoLocation.InfoLocationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoLocation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoLocation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoLocationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoLocationResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022InfoLocation.proto\022\005proto\032\rRequest.pro" + + "to\032\016Response.proto\"/\n\014InfoLocation\022\037\n\007re" + + "quest\030\001 \001(\0132\016.proto.Request\"\217\001\n\024InfoLoca" + + "tionResponse\022!\n\010response\030\001 \001(\0132\017.proto.R" + + "esponse\022\020\n\010iso_code\030\002 \001(\t\022\024\n\014calling_cod" + + "e\030\003 \001(\r\022\014\n\004name\030\004 \001(\t\022\017\n\007pattern\030\005 \001(\t\022\r" + + "\n\005regex\030\006 \001(\tB#\n\016net.iGap.protoB\021ProtoIn" + + "foLocationb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_InfoLocation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_InfoLocation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoLocation_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_InfoLocationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_InfoLocationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoLocationResponse_descriptor, + new java.lang.String[] { "Response", "IsoCode", "CallingCode", "Name", "Pattern", "Regex", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoInfoPage.java b/src/main/java/net/iGap/proto/ProtoInfoPage.java index 0870c9b..629dd0c 100644 --- a/src/main/java/net/iGap/proto/ProtoInfoPage.java +++ b/src/main/java/net/iGap/proto/ProtoInfoPage.java @@ -8,25 +8,39 @@ private ProtoInfoPage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InfoPageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoPage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string id = 2; + * string id = 2; + * @return The id. */ java.lang.String getId(); /** - * optional string id = 2; + * string id = 2; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); @@ -34,124 +48,190 @@ public interface InfoPageOrBuilder extends /** * Protobuf type {@code proto.InfoPage} */ - public static final class InfoPage extends - com.google.protobuf.GeneratedMessageLite< - InfoPage, InfoPage.Builder> implements + public static final class InfoPage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoPage) InfoPageOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoPage.newBuilder() to construct. + private InfoPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoPage() { id_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoPage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoPage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoPage.InfoPage.class, net.iGap.proto.ProtoInfoPage.InfoPage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ID_FIELD_NUMBER = 2; - private java.lang.String id_; + private volatile java.lang.Object id_; /** - * optional string id = 2; + * string id = 2; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { - return id_; + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } /** - * optional string id = 2; + * string id = 2; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(id_); - } - /** - * optional string id = 2; - */ - private void setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - } - /** - * optional string id = 2; - */ - private void clearId() { - - id_ = getDefaultInstance().getId(); + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string id = 2; - */ - private void setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!id_.isEmpty()) { - output.writeString(2, getId()); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!id_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getId()); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoPage.InfoPage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoPage.InfoPage other = (net.iGap.proto.ProtoInfoPage.InfoPage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getId() + .equals(other.getId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoPage.InfoPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoPage.InfoPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoPage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoPage.InfoPage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoPage) net.iGap.proto.ProtoInfoPage.InfoPageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoPage.InfoPage.class, net.iGap.proto.ProtoInfoPage.InfoPage.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoPage.InfoPage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + id_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPage_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPage getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoPage.InfoPage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPage build() { + net.iGap.proto.ProtoInfoPage.InfoPage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPage buildPartial() { + net.iGap.proto.ProtoInfoPage.InfoPage result = new net.iGap.proto.ProtoInfoPage.InfoPage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoPage.InfoPage) { + return mergeFrom((net.iGap.proto.ProtoInfoPage.InfoPage)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoInfoPage.InfoPage other) { + if (other == net.iGap.proto.ProtoInfoPage.InfoPage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoPage.InfoPage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoPage.InfoPage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object id_ = ""; /** - * optional string id = 2; + * string id = 2; + * @return The id. */ public java.lang.String getId() { - return instance.getId(); + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string id = 2; + * string id = 2; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { - return instance.getIdBytes(); + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string id = 2; + * string id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - copyOnWrite(); - instance.setId(value); + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); return this; } /** - * optional string id = 2; + * string id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = getDefaultInstance().getId(); + onChanged(); return this; } /** - * optional string id = 2; + * string id = 2; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoPage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoPage.InfoPage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoPage.InfoPage other = (net.iGap.proto.ProtoInfoPage.InfoPage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - id_ = visitor.visitString(!id_.isEmpty(), id_, - !other.id_.isEmpty(), other.id_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoPage.InfoPage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoPage) + } + // @@protoc_insertion_point(class_scope:proto.InfoPage) private static final net.iGap.proto.ProtoInfoPage.InfoPage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoPage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoPage.InfoPage(); } public static net.iGap.proto.ProtoInfoPage.InfoPage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface InfoPageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoPageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string body = 2; + * string body = 2; + * @return The body. */ java.lang.String getBody(); /** - * optional string body = 2; + * string body = 2; + * @return The bytes for body. */ com.google.protobuf.ByteString getBodyBytes(); @@ -473,124 +819,190 @@ public interface InfoPageResponseOrBuilder extends /** * Protobuf type {@code proto.InfoPageResponse} */ - public static final class InfoPageResponse extends - com.google.protobuf.GeneratedMessageLite< - InfoPageResponse, InfoPageResponse.Builder> implements + public static final class InfoPageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoPageResponse) InfoPageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoPageResponse.newBuilder() to construct. + private InfoPageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoPageResponse() { body_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoPageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoPageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + body_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoPage.InfoPageResponse.class, net.iGap.proto.ProtoInfoPage.InfoPageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int BODY_FIELD_NUMBER = 2; - private java.lang.String body_; + private volatile java.lang.Object body_; /** - * optional string body = 2; + * string body = 2; + * @return The body. */ + @java.lang.Override public java.lang.String getBody() { - return body_; + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } } /** - * optional string body = 2; + * string body = 2; + * @return The bytes for body. */ + @java.lang.Override public com.google.protobuf.ByteString getBodyBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(body_); - } - /** - * optional string body = 2; - */ - private void setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - } - /** - * optional string body = 2; - */ - private void clearBody() { - - body_ = getDefaultInstance().getBody(); + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string body = 2; - */ - private void setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - body_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!body_.isEmpty()) { - output.writeString(2, getBody()); + if (!getBodyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, body_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,598 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getBody()); + if (!getBodyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, body_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoPage.InfoPageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoPage.InfoPageResponse other = (net.iGap.proto.ProtoInfoPage.InfoPageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getBody() + .equals(other.getBody())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoPage.InfoPageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoPageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoPage.InfoPageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoPageResponse) net.iGap.proto.ProtoInfoPage.InfoPageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoPage.InfoPageResponse.class, net.iGap.proto.ProtoInfoPage.InfoPageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoPage.InfoPageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + body_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoPage.internal_static_proto_InfoPageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoPage.InfoPageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPageResponse build() { + net.iGap.proto.ProtoInfoPage.InfoPageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPageResponse buildPartial() { + net.iGap.proto.ProtoInfoPage.InfoPageResponse result = new net.iGap.proto.ProtoInfoPage.InfoPageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.body_ = body_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoPage.InfoPageResponse) { + return mergeFrom((net.iGap.proto.ProtoInfoPage.InfoPageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoPage.InfoPageResponse other) { + if (other == net.iGap.proto.ProtoInfoPage.InfoPageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoPage.InfoPageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoPage.InfoPageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object body_ = ""; /** - * optional string body = 2; + * string body = 2; + * @return The body. */ public java.lang.String getBody() { - return instance.getBody(); + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string body = 2; + * string body = 2; + * @return The bytes for body. */ public com.google.protobuf.ByteString getBodyBytes() { - return instance.getBodyBytes(); + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string body = 2; + * string body = 2; + * @param value The body to set. + * @return This builder for chaining. */ public Builder setBody( java.lang.String value) { - copyOnWrite(); - instance.setBody(value); + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); return this; } /** - * optional string body = 2; + * string body = 2; + * @return This builder for chaining. */ public Builder clearBody() { - copyOnWrite(); - instance.clearBody(); + + body_ = getDefaultInstance().getBody(); + onChanged(); return this; } /** - * optional string body = 2; + * string body = 2; + * @param value The bytes for body to set. + * @return This builder for chaining. */ public Builder setBodyBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBodyBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + body_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoPageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoPage.InfoPageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoPage.InfoPageResponse other = (net.iGap.proto.ProtoInfoPage.InfoPageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - body_ = visitor.visitString(!body_.isEmpty(), body_, - !other.body_.isEmpty(), other.body_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - body_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoPage.InfoPageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoPageResponse) + } + // @@protoc_insertion_point(class_scope:proto.InfoPageResponse) private static final net.iGap.proto.ProtoInfoPage.InfoPageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoPageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoPage.InfoPageResponse(); } public static net.iGap.proto.ProtoInfoPage.InfoPageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoPageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoPageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoInfoPage.InfoPageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoPage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoPage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoPageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoPageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\016InfoPage.proto\022\005proto\032\rRequest.proto\032\016" + + "Response.proto\"7\n\010InfoPage\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022\n\n\002id\030\002 \001(\t\"C\n\020InfoP" + + "ageResponse\022!\n\010response\030\001 \001(\0132\017.proto.Re" + + "sponse\022\014\n\004body\030\002 \001(\tB\037\n\016net.iGap.protoB\r" + + "ProtoInfoPageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_InfoPage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_InfoPage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoPage_descriptor, + new java.lang.String[] { "Request", "Id", }); + internal_static_proto_InfoPageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_InfoPageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoPageResponse_descriptor, + new java.lang.String[] { "Response", "Body", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoInfoTime.java b/src/main/java/net/iGap/proto/ProtoInfoTime.java index 7afe575..70531d1 100644 --- a/src/main/java/net/iGap/proto/ProtoInfoTime.java +++ b/src/main/java/net/iGap/proto/ProtoInfoTime.java @@ -8,90 +8,170 @@ private ProtoInfoTime() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InfoTimeOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoTime) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.InfoTime} */ - public static final class InfoTime extends - com.google.protobuf.GeneratedMessageLite< - InfoTime, InfoTime.Builder> implements + public static final class InfoTime extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoTime) InfoTimeOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoTime.newBuilder() to construct. + private InfoTime(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoTime() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoTime(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoTime( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoTime.InfoTime.class, net.iGap.proto.ProtoInfoTime.InfoTime.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,345 +179,631 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoTime.InfoTime)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoTime.InfoTime other = (net.iGap.proto.ProtoInfoTime.InfoTime) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoTime.InfoTime parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoTime.InfoTime prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoTime} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoTime.InfoTime, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoTime) net.iGap.proto.ProtoInfoTime.InfoTimeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoTime.InfoTime.class, net.iGap.proto.ProtoInfoTime.InfoTime.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoTime.InfoTime.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTime_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTime getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoTime.InfoTime.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTime build() { + net.iGap.proto.ProtoInfoTime.InfoTime result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTime buildPartial() { + net.iGap.proto.ProtoInfoTime.InfoTime result = new net.iGap.proto.ProtoInfoTime.InfoTime(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoTime.InfoTime) { + return mergeFrom((net.iGap.proto.ProtoInfoTime.InfoTime)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoTime.InfoTime other) { + if (other == net.iGap.proto.ProtoInfoTime.InfoTime.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoTime.InfoTime parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoTime.InfoTime) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.InfoTime) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoTime.InfoTime(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoTime.InfoTime other = (net.iGap.proto.ProtoInfoTime.InfoTime) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoTime.InfoTime.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.InfoTime) + } // @@protoc_insertion_point(class_scope:proto.InfoTime) private static final net.iGap.proto.ProtoInfoTime.InfoTime DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoTime(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoTime.InfoTime(); } public static net.iGap.proto.ProtoInfoTime.InfoTime getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoTime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoTime(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTime getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface InfoTimeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoTimeResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return The timestamp. */ int getTimestamp(); } /** * Protobuf type {@code proto.InfoTimeResponse} */ - public static final class InfoTimeResponse extends - com.google.protobuf.GeneratedMessageLite< - InfoTimeResponse, InfoTimeResponse.Builder> implements + public static final class InfoTimeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoTimeResponse) InfoTimeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoTimeResponse.newBuilder() to construct. + private InfoTimeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoTimeResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoTimeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoTimeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + timestamp_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTimeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTimeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoTime.InfoTimeResponse.class, net.iGap.proto.ProtoInfoTime.InfoTimeResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TIMESTAMP_FIELD_NUMBER = 2; private int timestamp_; /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return The timestamp. */ + @java.lang.Override public int getTimestamp() { return timestamp_; } - /** - * optional uint32 timestamp = 2; - */ - private void setTimestamp(int value) { - - timestamp_ = value; - } - /** - * optional uint32 timestamp = 2; - */ - private void clearTimestamp() { - - timestamp_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -446,10 +812,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (timestamp_ != 0) { output.writeUInt32(2, timestamp_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -461,274 +829,549 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, timestamp_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoTime.InfoTimeResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoTime.InfoTimeResponse other = (net.iGap.proto.ProtoInfoTime.InfoTimeResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getTimestamp() + != other.getTimestamp()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoTime.InfoTimeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoTimeResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoTime.InfoTimeResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoTimeResponse) net.iGap.proto.ProtoInfoTime.InfoTimeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTimeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTimeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoTime.InfoTimeResponse.class, net.iGap.proto.ProtoInfoTime.InfoTimeResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoTime.InfoTimeResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + timestamp_ = 0; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoTime.internal_static_proto_InfoTimeResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTimeResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoTime.InfoTimeResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTimeResponse build() { + net.iGap.proto.ProtoInfoTime.InfoTimeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTimeResponse buildPartial() { + net.iGap.proto.ProtoInfoTime.InfoTimeResponse result = new net.iGap.proto.ProtoInfoTime.InfoTimeResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.timestamp_ = timestamp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoTime.InfoTimeResponse) { + return mergeFrom((net.iGap.proto.ProtoInfoTime.InfoTimeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoTime.InfoTimeResponse other) { + if (other == net.iGap.proto.ProtoInfoTime.InfoTimeResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getTimestamp() != 0) { + setTimestamp(other.getTimestamp()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoTime.InfoTimeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoTime.InfoTimeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int timestamp_ ; /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return The timestamp. */ + @java.lang.Override public int getTimestamp() { - return instance.getTimestamp(); + return timestamp_; } /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @param value The timestamp to set. + * @return This builder for chaining. */ public Builder setTimestamp(int value) { - copyOnWrite(); - instance.setTimestamp(value); + + timestamp_ = value; + onChanged(); return this; } /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return This builder for chaining. */ public Builder clearTimestamp() { - copyOnWrite(); - instance.clearTimestamp(); + + timestamp_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoTimeResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoTime.InfoTimeResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoTime.InfoTimeResponse other = (net.iGap.proto.ProtoInfoTime.InfoTimeResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - timestamp_ = visitor.visitInt(timestamp_ != 0, timestamp_, - other.timestamp_ != 0, other.timestamp_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - timestamp_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoTime.InfoTimeResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoTimeResponse) + } + // @@protoc_insertion_point(class_scope:proto.InfoTimeResponse) private static final net.iGap.proto.ProtoInfoTime.InfoTimeResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoTimeResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoTime.InfoTimeResponse(); } public static net.iGap.proto.ProtoInfoTime.InfoTimeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoTimeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoTimeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoTime.InfoTimeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoTime_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoTime_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoTimeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoTimeResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\016InfoTime.proto\022\005proto\032\rRequest.proto\032\016" + + "Response.proto\"+\n\010InfoTime\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\"H\n\020InfoTimeResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\022\021\n\tti" + + "mestamp\030\002 \001(\rB\037\n\016net.iGap.protoB\rProtoIn" + + "foTimeb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_InfoTime_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_InfoTime_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoTime_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_InfoTimeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_InfoTimeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoTimeResponse_descriptor, + new java.lang.String[] { "Response", "Timestamp", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoInfoUpdate.java b/src/main/java/net/iGap/proto/ProtoInfoUpdate.java index c5014c4..c77fc47 100644 --- a/src/main/java/net/iGap/proto/ProtoInfoUpdate.java +++ b/src/main/java/net/iGap/proto/ProtoInfoUpdate.java @@ -8,137 +8,203 @@ private ProtoInfoUpdate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InfoUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoUpdate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return The appId. */ int getAppId(); /** - * optional uint32 app_build_version = 3; + * uint32 app_build_version = 3; + * @return The appBuildVersion. */ int getAppBuildVersion(); } /** * Protobuf type {@code proto.InfoUpdate} */ - public static final class InfoUpdate extends - com.google.protobuf.GeneratedMessageLite< - InfoUpdate, InfoUpdate.Builder> implements + public static final class InfoUpdate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoUpdate) InfoUpdateOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoUpdate.newBuilder() to construct. + private InfoUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoUpdate() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoUpdate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoUpdate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + appId_ = input.readUInt32(); + break; + } + case 24: { + + appBuildVersion_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoUpdate.InfoUpdate.class, net.iGap.proto.ProtoInfoUpdate.InfoUpdate.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int APP_ID_FIELD_NUMBER = 2; private int appId_; /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 2; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 2; - */ - private void clearAppId() { - - appId_ = 0; - } public static final int APP_BUILD_VERSION_FIELD_NUMBER = 3; private int appBuildVersion_; /** - * optional uint32 app_build_version = 3; + * uint32 app_build_version = 3; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { return appBuildVersion_; } - /** - * optional uint32 app_build_version = 3; - */ - private void setAppBuildVersion(int value) { - - appBuildVersion_ = value; - } - /** - * optional uint32 app_build_version = 3; - */ - private void clearAppBuildVersion() { - - appBuildVersion_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -150,10 +216,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (appBuildVersion_ != 0) { output.writeUInt32(3, appBuildVersion_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -169,477 +237,787 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, appBuildVersion_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoUpdate.InfoUpdate)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoUpdate.InfoUpdate other = (net.iGap.proto.ProtoInfoUpdate.InfoUpdate) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getAppId() + != other.getAppId()) return false; + if (getAppBuildVersion() + != other.getAppBuildVersion()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + hash = (37 * hash) + APP_BUILD_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppBuildVersion(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoUpdate.InfoUpdate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoUpdate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoUpdate.InfoUpdate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoUpdate) net.iGap.proto.ProtoInfoUpdate.InfoUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoUpdate.InfoUpdate.class, net.iGap.proto.ProtoInfoUpdate.InfoUpdate.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoUpdate.InfoUpdate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + appId_ = 0; + + appBuildVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdate getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoUpdate.InfoUpdate.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdate build() { + net.iGap.proto.ProtoInfoUpdate.InfoUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdate buildPartial() { + net.iGap.proto.ProtoInfoUpdate.InfoUpdate result = new net.iGap.proto.ProtoInfoUpdate.InfoUpdate(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.appId_ = appId_; + result.appBuildVersion_ = appBuildVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoUpdate.InfoUpdate) { + return mergeFrom((net.iGap.proto.ProtoInfoUpdate.InfoUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoUpdate.InfoUpdate other) { + if (other == net.iGap.proto.ProtoInfoUpdate.InfoUpdate.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + if (other.getAppBuildVersion() != 0) { + setAppBuildVersion(other.getAppBuildVersion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoUpdate.InfoUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoUpdate.InfoUpdate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int appId_ ; /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + private int appBuildVersion_ ; /** - * optional uint32 app_build_version = 3; + * uint32 app_build_version = 3; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { - return instance.getAppBuildVersion(); + return appBuildVersion_; } /** - * optional uint32 app_build_version = 3; + * uint32 app_build_version = 3; + * @param value The appBuildVersion to set. + * @return This builder for chaining. */ public Builder setAppBuildVersion(int value) { - copyOnWrite(); - instance.setAppBuildVersion(value); + + appBuildVersion_ = value; + onChanged(); return this; } /** - * optional uint32 app_build_version = 3; + * uint32 app_build_version = 3; + * @return This builder for chaining. */ public Builder clearAppBuildVersion() { - copyOnWrite(); - instance.clearAppBuildVersion(); + + appBuildVersion_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoUpdate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoUpdate.InfoUpdate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoUpdate.InfoUpdate other = (net.iGap.proto.ProtoInfoUpdate.InfoUpdate) arg1; - request_ = visitor.visitMessage(request_, other.request_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - appBuildVersion_ = visitor.visitInt(appBuildVersion_ != 0, appBuildVersion_, - other.appBuildVersion_ != 0, other.appBuildVersion_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - appId_ = input.readUInt32(); - break; - } - case 24: { - - appBuildVersion_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoUpdate.InfoUpdate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoUpdate) + } + // @@protoc_insertion_point(class_scope:proto.InfoUpdate) private static final net.iGap.proto.ProtoInfoUpdate.InfoUpdate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoUpdate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoUpdate.InfoUpdate(); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoUpdate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface InfoUpdateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoUpdateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string body = 2; + * string body = 2; + * @return The body. */ java.lang.String getBody(); /** - * optional string body = 2; + * string body = 2; + * @return The bytes for body. */ com.google.protobuf.ByteString getBodyBytes(); /** - * optional uint32 last_version = 3; + * uint32 last_version = 3; + * @return The lastVersion. */ int getLastVersion(); } /** * Protobuf type {@code proto.InfoUpdateResponse} */ - public static final class InfoUpdateResponse extends - com.google.protobuf.GeneratedMessageLite< - InfoUpdateResponse, InfoUpdateResponse.Builder> implements + public static final class InfoUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoUpdateResponse) InfoUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoUpdateResponse.newBuilder() to construct. + private InfoUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoUpdateResponse() { body_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoUpdateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + body_ = s; + break; + } + case 24: { + + lastVersion_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.class, net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int BODY_FIELD_NUMBER = 2; - private java.lang.String body_; + private volatile java.lang.Object body_; /** - * optional string body = 2; + * string body = 2; + * @return The body. */ + @java.lang.Override public java.lang.String getBody() { - return body_; + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } } /** - * optional string body = 2; + * string body = 2; + * @return The bytes for body. */ + @java.lang.Override public com.google.protobuf.ByteString getBodyBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(body_); - } - /** - * optional string body = 2; - */ - private void setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - } - /** - * optional string body = 2; - */ - private void clearBody() { - - body_ = getDefaultInstance().getBody(); - } - /** - * optional string body = 2; - */ - private void setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - body_ = value.toStringUtf8(); + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LAST_VERSION_FIELD_NUMBER = 3; private int lastVersion_; /** - * optional uint32 last_version = 3; + * uint32 last_version = 3; + * @return The lastVersion. */ + @java.lang.Override public int getLastVersion() { return lastVersion_; } - /** - * optional uint32 last_version = 3; - */ - private void setLastVersion(int value) { - - lastVersion_ = value; - } - /** - * optional uint32 last_version = 3; - */ - private void clearLastVersion() { - - lastVersion_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!body_.isEmpty()) { - output.writeString(2, getBody()); + if (!getBodyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, body_); } if (lastVersion_ != 0) { output.writeUInt32(3, lastVersion_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -647,330 +1025,645 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getBody()); + if (!getBodyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, body_); } if (lastVersion_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, lastVersion_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse other = (net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getBody() + .equals(other.getBody())) return false; + if (getLastVersion() + != other.getLastVersion()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (37 * hash) + LAST_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getLastVersion(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoUpdateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoUpdateResponse) net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.class, net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + body_ = ""; + lastVersion_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoUpdate.internal_static_proto_InfoUpdateResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse build() { + net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse buildPartial() { + net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse result = new net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.body_ = body_; + result.lastVersion_ = lastVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse) { + return mergeFrom((net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse other) { + if (other == net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + onChanged(); + } + if (other.getLastVersion() != 0) { + setLastVersion(other.getLastVersion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object body_ = ""; /** - * optional string body = 2; + * string body = 2; + * @return The body. */ public java.lang.String getBody() { - return instance.getBody(); + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string body = 2; + * string body = 2; + * @return The bytes for body. */ public com.google.protobuf.ByteString getBodyBytes() { - return instance.getBodyBytes(); + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string body = 2; + * string body = 2; + * @param value The body to set. + * @return This builder for chaining. */ public Builder setBody( java.lang.String value) { - copyOnWrite(); - instance.setBody(value); + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); return this; } /** - * optional string body = 2; + * string body = 2; + * @return This builder for chaining. */ public Builder clearBody() { - copyOnWrite(); - instance.clearBody(); + + body_ = getDefaultInstance().getBody(); + onChanged(); return this; } /** - * optional string body = 2; + * string body = 2; + * @param value The bytes for body to set. + * @return This builder for chaining. */ public Builder setBodyBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBodyBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + body_ = value; + onChanged(); return this; } + private int lastVersion_ ; /** - * optional uint32 last_version = 3; + * uint32 last_version = 3; + * @return The lastVersion. */ + @java.lang.Override public int getLastVersion() { - return instance.getLastVersion(); + return lastVersion_; } /** - * optional uint32 last_version = 3; + * uint32 last_version = 3; + * @param value The lastVersion to set. + * @return This builder for chaining. */ public Builder setLastVersion(int value) { - copyOnWrite(); - instance.setLastVersion(value); + + lastVersion_ = value; + onChanged(); return this; } /** - * optional uint32 last_version = 3; + * uint32 last_version = 3; + * @return This builder for chaining. */ public Builder clearLastVersion() { - copyOnWrite(); - instance.clearLastVersion(); + + lastVersion_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoUpdateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse other = (net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - body_ = visitor.visitString(!body_.isEmpty(), body_, - !other.body_.isEmpty(), other.body_); - lastVersion_ = visitor.visitInt(lastVersion_ != 0, lastVersion_, - other.lastVersion_ != 0, other.lastVersion_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - body_ = s; - break; - } - case 24: { - - lastVersion_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoUpdateResponse) + } + // @@protoc_insertion_point(class_scope:proto.InfoUpdateResponse) private static final net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoUpdateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse(); } public static net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoUpdateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoInfoUpdate.InfoUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoUpdate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoUpdate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoUpdateResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020InfoUpdate.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"X\n\nInfoUpdate\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\022\016\n\006app_id\030\002 \001(\r\022" + + "\031\n\021app_build_version\030\003 \001(\r\"[\n\022InfoUpdate" + + "Response\022!\n\010response\030\001 \001(\0132\017.proto.Respo" + + "nse\022\014\n\004body\030\002 \001(\t\022\024\n\014last_version\030\003 \001(\rB" + + "!\n\016net.iGap.protoB\017ProtoInfoUpdateb\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_InfoUpdate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_InfoUpdate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoUpdate_descriptor, + new java.lang.String[] { "Request", "AppId", "AppBuildVersion", }); + internal_static_proto_InfoUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_InfoUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoUpdateResponse_descriptor, + new java.lang.String[] { "Response", "Body", "LastVersion", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoInfoWallpaper.java b/src/main/java/net/iGap/proto/ProtoInfoWallpaper.java index acd49c3..1729642 100644 --- a/src/main/java/net/iGap/proto/ProtoInfoWallpaper.java +++ b/src/main/java/net/iGap/proto/ProtoInfoWallpaper.java @@ -8,52 +8,162 @@ private ProtoInfoWallpaper() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InfoWallpaperOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoWallpaper) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @return The enum numeric value on the wire for fit. */ int getFitValue(); /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @return The fit. */ net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit getFit(); /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @return The type. */ net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type getType(); } /** * Protobuf type {@code proto.InfoWallpaper} */ - public static final class InfoWallpaper extends - com.google.protobuf.GeneratedMessageLite< - InfoWallpaper, InfoWallpaper.Builder> implements + public static final class InfoWallpaper extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoWallpaper) InfoWallpaperOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoWallpaper.newBuilder() to construct. + private InfoWallpaper(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoWallpaper() { + fit_ = 0; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoWallpaper(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoWallpaper( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + fit_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaper_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.class, net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Builder.class); + } + /** * Protobuf enum {@code proto.InfoWallpaper.Fit} */ public enum Fit - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * PHONE = 0; */ @@ -84,10 +194,16 @@ public enum Fit public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -95,6 +211,10 @@ public static Fit valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Fit forNumber(int value) { switch (value) { case 0: return PHONE; @@ -116,6 +236,37 @@ public Fit findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.getDescriptor().getEnumTypes().get(0); + } + + private static final Fit[] VALUES = values(); + + public static Fit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Fit(int value) { @@ -129,7 +280,7 @@ private Fit(int value) { * Protobuf enum {@code proto.InfoWallpaper.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * CHAT_BACKGROUND = 0; */ @@ -152,10 +303,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -163,6 +320,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return CHAT_BACKGROUND; @@ -183,6 +344,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.getDescriptor().getEnumTypes().get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -195,133 +387,79 @@ private Type(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int FIT_FIELD_NUMBER = 2; private int fit_; /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @return The enum numeric value on the wire for fit. */ - public int getFitValue() { + @java.lang.Override public int getFitValue() { return fit_; } /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @return The fit. */ - public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit getFit() { - net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit result = net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit.forNumber(fit_); + @java.lang.Override public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit getFit() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit result = net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit.valueOf(fit_); return result == null ? net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit.UNRECOGNIZED : result; } - /** - * optional .proto.InfoWallpaper.Fit fit = 2; - */ - private void setFitValue(int value) { - fit_ = value; - } - /** - * optional .proto.InfoWallpaper.Fit fit = 2; - */ - private void setFit(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit value) { - if (value == null) { - throw new NullPointerException(); - } - - fit_ = value.getNumber(); - } - /** - * optional .proto.InfoWallpaper.Fit fit = 2; - */ - private void clearFit() { - - fit_ = 0; - } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @return The type. */ - public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type getType() { - net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type result = net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type result = net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type.UNRECOGNIZED : result; } - /** - * optional .proto.InfoWallpaper.Type type = 3; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.InfoWallpaper.Type type = 3; - */ - private void setType(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.InfoWallpaper.Type type = 3; - */ - private void clearType() { - - type_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -333,10 +471,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type.CHAT_BACKGROUND.getNumber()) { output.writeEnum(3, type_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -352,342 +492,606 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper other = (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (fit_ != other.fit_) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + FIT_FIELD_NUMBER; + hash = (53 * hash) + fit_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoWallpaper} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoWallpaper) net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaper_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.class, net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + fit_ = 0; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaper_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper build() { + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper buildPartial() { + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper result = new net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.fit_ = fit_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper) { + return mergeFrom((net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper other) { + if (other == net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.fit_ != 0) { + setFitValue(other.getFitValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int fit_ = 0; /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @return The enum numeric value on the wire for fit. */ - public int getFitValue() { - return instance.getFitValue(); + @java.lang.Override public int getFitValue() { + return fit_; } /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @param value The enum numeric value on the wire for fit to set. + * @return This builder for chaining. */ public Builder setFitValue(int value) { - copyOnWrite(); - instance.setFitValue(value); + + fit_ = value; + onChanged(); return this; } /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @return The fit. */ + @java.lang.Override public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit getFit() { - return instance.getFit(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit result = net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit.valueOf(fit_); + return result == null ? net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit.UNRECOGNIZED : result; } /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @param value The fit to set. + * @return This builder for chaining. */ public Builder setFit(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Fit value) { - copyOnWrite(); - instance.setFit(value); + if (value == null) { + throw new NullPointerException(); + } + + fit_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.InfoWallpaper.Fit fit = 2; + * .proto.InfoWallpaper.Fit fit = 2; + * @return This builder for chaining. */ public Builder clearFit() { - copyOnWrite(); - instance.clearFit(); + + fit_ = 0; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type result = net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type.UNRECOGNIZED : result; } /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.InfoWallpaper.Type type = 3; + * .proto.InfoWallpaper.Type type = 3; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.InfoWallpaper) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper other = (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper) arg1; - request_ = visitor.visitMessage(request_, other.request_); - fit_ = visitor.visitInt(fit_ != 0, fit_, other.fit_ != 0, other.fit_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - fit_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoWallpaper) + } + // @@protoc_insertion_point(class_scope:proto.InfoWallpaper) private static final net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoWallpaper(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper(); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoWallpaper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoWallpaper(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaper getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface InfoWallpaperResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.InfoWallpaperResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Wallpaper wallpaper = 2; @@ -702,82 +1106,160 @@ public interface InfoWallpaperResponseOrBuilder extends * repeated .proto.Wallpaper wallpaper = 2; */ int getWallpaperCount(); + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + java.util.List + getWallpaperOrBuilderList(); + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + net.iGap.proto.ProtoGlobal.WallpaperOrBuilder getWallpaperOrBuilder( + int index); } /** * Protobuf type {@code proto.InfoWallpaperResponse} */ - public static final class InfoWallpaperResponse extends - com.google.protobuf.GeneratedMessageLite< - InfoWallpaperResponse, InfoWallpaperResponse.Builder> implements + public static final class InfoWallpaperResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.InfoWallpaperResponse) InfoWallpaperResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoWallpaperResponse.newBuilder() to construct. + private InfoWallpaperResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InfoWallpaperResponse() { - wallpaper_ = emptyProtobufList(); + wallpaper_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InfoWallpaperResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InfoWallpaperResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + wallpaper_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + wallpaper_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Wallpaper.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + wallpaper_ = java.util.Collections.unmodifiableList(wallpaper_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaperResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaperResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.class, net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int WALLPAPER_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList wallpaper_; + private java.util.List wallpaper_; /** * repeated .proto.Wallpaper wallpaper = 2; */ + @java.lang.Override public java.util.List getWallpaperList() { return wallpaper_; } /** * repeated .proto.Wallpaper wallpaper = 2; */ + @java.lang.Override public java.util.List getWallpaperOrBuilderList() { return wallpaper_; @@ -785,108 +1267,38 @@ public java.util.List getWallpaperList() { /** * repeated .proto.Wallpaper wallpaper = 2; */ + @java.lang.Override public int getWallpaperCount() { return wallpaper_.size(); } /** * repeated .proto.Wallpaper wallpaper = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Wallpaper getWallpaper(int index) { return wallpaper_.get(index); } /** * repeated .proto.Wallpaper wallpaper = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.WallpaperOrBuilder getWallpaperOrBuilder( int index) { return wallpaper_.get(index); } - private void ensureWallpaperIsMutable() { - if (!wallpaper_.isModifiable()) { - wallpaper_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(wallpaper_); - } - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void setWallpaper( - int index, net.iGap.proto.ProtoGlobal.Wallpaper value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWallpaperIsMutable(); - wallpaper_.set(index, value); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void setWallpaper( - int index, net.iGap.proto.ProtoGlobal.Wallpaper.Builder builderForValue) { - ensureWallpaperIsMutable(); - wallpaper_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void addWallpaper(net.iGap.proto.ProtoGlobal.Wallpaper value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWallpaperIsMutable(); - wallpaper_.add(value); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void addWallpaper( - int index, net.iGap.proto.ProtoGlobal.Wallpaper value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWallpaperIsMutable(); - wallpaper_.add(index, value); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void addWallpaper( - net.iGap.proto.ProtoGlobal.Wallpaper.Builder builderForValue) { - ensureWallpaperIsMutable(); - wallpaper_.add(builderForValue.build()); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void addWallpaper( - int index, net.iGap.proto.ProtoGlobal.Wallpaper.Builder builderForValue) { - ensureWallpaperIsMutable(); - wallpaper_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void addAllWallpaper( - java.lang.Iterable values) { - ensureWallpaperIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, wallpaper_); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void clearWallpaper() { - wallpaper_ = emptyProtobufList(); - } - /** - * repeated .proto.Wallpaper wallpaper = 2; - */ - private void removeWallpaper(int index) { - ensureWallpaperIsMutable(); - wallpaper_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -895,10 +1307,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < wallpaper_.size(); i++) { output.writeMessage(2, wallpaper_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -910,162 +1324,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, wallpaper_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse other = (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getWallpaperList() + .equals(other.getWallpaperList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getWallpaperCount() > 0) { + hash = (37 * hash) + WALLPAPER_FIELD_NUMBER; + hash = (53 * hash) + getWallpaperList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.InfoWallpaperResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.InfoWallpaperResponse) net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaperResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaperResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.class, net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWallpaperFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (wallpaperBuilder_ == null) { + wallpaper_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + wallpaperBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoInfoWallpaper.internal_static_proto_InfoWallpaperResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse build() { + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse buildPartial() { + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse result = new net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (wallpaperBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + wallpaper_ = java.util.Collections.unmodifiableList(wallpaper_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.wallpaper_ = wallpaper_; + } else { + result.wallpaper_ = wallpaperBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse) { + return mergeFrom((net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse other) { + if (other == net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (wallpaperBuilder_ == null) { + if (!other.wallpaper_.isEmpty()) { + if (wallpaper_.isEmpty()) { + wallpaper_ = other.wallpaper_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWallpaperIsMutable(); + wallpaper_.addAll(other.wallpaper_); + } + onChanged(); + } + } else { + if (!other.wallpaper_.isEmpty()) { + if (wallpaperBuilder_.isEmpty()) { + wallpaperBuilder_.dispose(); + wallpaperBuilder_ = null; + wallpaper_ = other.wallpaper_; + bitField0_ = (bitField0_ & ~0x00000001); + wallpaperBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWallpaperFieldBuilder() : null; + } else { + wallpaperBuilder_.addAllMessages(other.wallpaper_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List wallpaper_ = + java.util.Collections.emptyList(); + private void ensureWallpaperIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + wallpaper_ = new java.util.ArrayList(wallpaper_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Wallpaper, net.iGap.proto.ProtoGlobal.Wallpaper.Builder, net.iGap.proto.ProtoGlobal.WallpaperOrBuilder> wallpaperBuilder_; /** * repeated .proto.Wallpaper wallpaper = 2; */ public java.util.List getWallpaperList() { - return java.util.Collections.unmodifiableList( - instance.getWallpaperList()); + if (wallpaperBuilder_ == null) { + return java.util.Collections.unmodifiableList(wallpaper_); + } else { + return wallpaperBuilder_.getMessageList(); + } } /** * repeated .proto.Wallpaper wallpaper = 2; */ public int getWallpaperCount() { - return instance.getWallpaperCount(); - }/** + if (wallpaperBuilder_ == null) { + return wallpaper_.size(); + } else { + return wallpaperBuilder_.getCount(); + } + } + /** * repeated .proto.Wallpaper wallpaper = 2; */ public net.iGap.proto.ProtoGlobal.Wallpaper getWallpaper(int index) { - return instance.getWallpaper(index); + if (wallpaperBuilder_ == null) { + return wallpaper_.get(index); + } else { + return wallpaperBuilder_.getMessage(index); + } } /** * repeated .proto.Wallpaper wallpaper = 2; */ public Builder setWallpaper( int index, net.iGap.proto.ProtoGlobal.Wallpaper value) { - copyOnWrite(); - instance.setWallpaper(index, value); + if (wallpaperBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWallpaperIsMutable(); + wallpaper_.set(index, value); + onChanged(); + } else { + wallpaperBuilder_.setMessage(index, value); + } return this; } /** @@ -1073,16 +1842,29 @@ public Builder setWallpaper( */ public Builder setWallpaper( int index, net.iGap.proto.ProtoGlobal.Wallpaper.Builder builderForValue) { - copyOnWrite(); - instance.setWallpaper(index, builderForValue); + if (wallpaperBuilder_ == null) { + ensureWallpaperIsMutable(); + wallpaper_.set(index, builderForValue.build()); + onChanged(); + } else { + wallpaperBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Wallpaper wallpaper = 2; */ public Builder addWallpaper(net.iGap.proto.ProtoGlobal.Wallpaper value) { - copyOnWrite(); - instance.addWallpaper(value); + if (wallpaperBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWallpaperIsMutable(); + wallpaper_.add(value); + onChanged(); + } else { + wallpaperBuilder_.addMessage(value); + } return this; } /** @@ -1090,8 +1872,16 @@ public Builder addWallpaper(net.iGap.proto.ProtoGlobal.Wallpaper value) { */ public Builder addWallpaper( int index, net.iGap.proto.ProtoGlobal.Wallpaper value) { - copyOnWrite(); - instance.addWallpaper(index, value); + if (wallpaperBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWallpaperIsMutable(); + wallpaper_.add(index, value); + onChanged(); + } else { + wallpaperBuilder_.addMessage(index, value); + } return this; } /** @@ -1099,8 +1889,13 @@ public Builder addWallpaper( */ public Builder addWallpaper( net.iGap.proto.ProtoGlobal.Wallpaper.Builder builderForValue) { - copyOnWrite(); - instance.addWallpaper(builderForValue); + if (wallpaperBuilder_ == null) { + ensureWallpaperIsMutable(); + wallpaper_.add(builderForValue.build()); + onChanged(); + } else { + wallpaperBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1108,8 +1903,13 @@ public Builder addWallpaper( */ public Builder addWallpaper( int index, net.iGap.proto.ProtoGlobal.Wallpaper.Builder builderForValue) { - copyOnWrite(); - instance.addWallpaper(index, builderForValue); + if (wallpaperBuilder_ == null) { + ensureWallpaperIsMutable(); + wallpaper_.add(index, builderForValue.build()); + onChanged(); + } else { + wallpaperBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1117,146 +1917,213 @@ public Builder addWallpaper( */ public Builder addAllWallpaper( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllWallpaper(values); + if (wallpaperBuilder_ == null) { + ensureWallpaperIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, wallpaper_); + onChanged(); + } else { + wallpaperBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Wallpaper wallpaper = 2; */ public Builder clearWallpaper() { - copyOnWrite(); - instance.clearWallpaper(); + if (wallpaperBuilder_ == null) { + wallpaper_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + wallpaperBuilder_.clear(); + } return this; } /** * repeated .proto.Wallpaper wallpaper = 2; */ public Builder removeWallpaper(int index) { - copyOnWrite(); - instance.removeWallpaper(index); + if (wallpaperBuilder_ == null) { + ensureWallpaperIsMutable(); + wallpaper_.remove(index); + onChanged(); + } else { + wallpaperBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.InfoWallpaperResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - wallpaper_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse other = (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - wallpaper_= visitor.visitList(wallpaper_, other.wallpaper_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!wallpaper_.isModifiable()) { - wallpaper_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(wallpaper_); - } - wallpaper_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Wallpaper.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + public net.iGap.proto.ProtoGlobal.Wallpaper.Builder getWallpaperBuilder( + int index) { + return getWallpaperFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + public net.iGap.proto.ProtoGlobal.WallpaperOrBuilder getWallpaperOrBuilder( + int index) { + if (wallpaperBuilder_ == null) { + return wallpaper_.get(index); } else { + return wallpaperBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + public java.util.List + getWallpaperOrBuilderList() { + if (wallpaperBuilder_ != null) { + return wallpaperBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(wallpaper_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + public net.iGap.proto.ProtoGlobal.Wallpaper.Builder addWallpaperBuilder() { + return getWallpaperFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Wallpaper.getDefaultInstance()); + } + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + public net.iGap.proto.ProtoGlobal.Wallpaper.Builder addWallpaperBuilder( + int index) { + return getWallpaperFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Wallpaper.getDefaultInstance()); + } + /** + * repeated .proto.Wallpaper wallpaper = 2; + */ + public java.util.List + getWallpaperBuilderList() { + return getWallpaperFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Wallpaper, net.iGap.proto.ProtoGlobal.Wallpaper.Builder, net.iGap.proto.ProtoGlobal.WallpaperOrBuilder> + getWallpaperFieldBuilder() { + if (wallpaperBuilder_ == null) { + wallpaperBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Wallpaper, net.iGap.proto.ProtoGlobal.Wallpaper.Builder, net.iGap.proto.ProtoGlobal.WallpaperOrBuilder>( + wallpaper_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + wallpaper_ = null; } + return wallpaperBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.InfoWallpaperResponse) + } + // @@protoc_insertion_point(class_scope:proto.InfoWallpaperResponse) private static final net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InfoWallpaperResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse(); } public static net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InfoWallpaperResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InfoWallpaperResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoInfoWallpaper.InfoWallpaperResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoWallpaper_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoWallpaper_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_InfoWallpaperResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_InfoWallpaperResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023InfoWallpaper.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\032\014Global.proto\"\337\001\n\rIn" + + "foWallpaper\022\037\n\007request\030\001 \001(\0132\016.proto.Req" + + "uest\022%\n\003fit\030\002 \001(\0162\030.proto.InfoWallpaper." + + "Fit\022\'\n\004type\030\003 \001(\0162\031.proto.InfoWallpaper." + + "Type\")\n\003Fit\022\t\n\005PHONE\020\000\022\n\n\006TABLET\020\001\022\013\n\007DE" + + "SKTOP\020\002\"2\n\004Type\022\023\n\017CHAT_BACKGROUND\020\000\022\025\n\021" + + "PROFILE_WALLPAPER\020\001\"_\n\025InfoWallpaperResp" + + "onse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022" + + "#\n\twallpaper\030\002 \003(\0132\020.proto.WallpaperB$\n\016" + + "net.iGap.protoB\022ProtoInfoWallpaperb\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_InfoWallpaper_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_InfoWallpaper_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoWallpaper_descriptor, + new java.lang.String[] { "Request", "Fit", "Type", }); + internal_static_proto_InfoWallpaperResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_InfoWallpaperResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_InfoWallpaperResponse_descriptor, + new java.lang.String[] { "Response", "Wallpaper", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMessageContainer.java b/src/main/java/net/iGap/proto/ProtoMessageContainer.java index 34ba330..4475449 100644 --- a/src/main/java/net/iGap/proto/ProtoMessageContainer.java +++ b/src/main/java/net/iGap/proto/ProtoMessageContainer.java @@ -8,169 +8,233 @@ private ProtoMessageContainer() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MessageContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MessageContainer) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string id = 1; + * string id = 1; + * @return The id. */ java.lang.String getId(); /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** - * optional uint32 action_id = 2; + * uint32 action_id = 2; + * @return The actionId. */ int getActionId(); /** - * optional uint64 timestamp = 3; + * uint64 timestamp = 3; + * @return The timestamp. */ long getTimestamp(); /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return The wrappedProto. */ com.google.protobuf.ByteString getWrappedProto(); } /** * Protobuf type {@code proto.MessageContainer} */ - public static final class MessageContainer extends - com.google.protobuf.GeneratedMessageLite< - MessageContainer, MessageContainer.Builder> implements + public static final class MessageContainer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MessageContainer) MessageContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageContainer.newBuilder() to construct. + private MessageContainer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MessageContainer() { id_ = ""; wrappedProto_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MessageContainer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MessageContainer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 16: { + + actionId_ = input.readUInt32(); + break; + } + case 24: { + + timestamp_ = input.readUInt64(); + break; + } + case 34: { + + wrappedProto_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMessageContainer.internal_static_proto_MessageContainer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMessageContainer.internal_static_proto_MessageContainer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMessageContainer.MessageContainer.class, net.iGap.proto.ProtoMessageContainer.MessageContainer.Builder.class); + } + public static final int ID_FIELD_NUMBER = 1; - private java.lang.String id_; + private volatile java.lang.Object id_; /** - * optional string id = 1; + * string id = 1; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { - return id_; + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(id_); - } - /** - * optional string id = 1; - */ - private void setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - } - /** - * optional string id = 1; - */ - private void clearId() { - - id_ = getDefaultInstance().getId(); - } - /** - * optional string id = 1; - */ - private void setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value.toStringUtf8(); + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ACTION_ID_FIELD_NUMBER = 2; private int actionId_; /** - * optional uint32 action_id = 2; + * uint32 action_id = 2; + * @return The actionId. */ + @java.lang.Override public int getActionId() { return actionId_; } - /** - * optional uint32 action_id = 2; - */ - private void setActionId(int value) { - - actionId_ = value; - } - /** - * optional uint32 action_id = 2; - */ - private void clearActionId() { - - actionId_ = 0; - } public static final int TIMESTAMP_FIELD_NUMBER = 3; private long timestamp_; /** - * optional uint64 timestamp = 3; + * uint64 timestamp = 3; + * @return The timestamp. */ + @java.lang.Override public long getTimestamp() { return timestamp_; } - /** - * optional uint64 timestamp = 3; - */ - private void setTimestamp(long value) { - - timestamp_ = value; - } - /** - * optional uint64 timestamp = 3; - */ - private void clearTimestamp() { - - timestamp_ = 0L; - } public static final int WRAPPED_PROTO_FIELD_NUMBER = 4; private com.google.protobuf.ByteString wrappedProto_; /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { return wrappedProto_; } - /** - * optional bytes wrapped_proto = 4; - */ - private void setWrappedProto(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - wrappedProto_ = value; - } - /** - * optional bytes wrapped_proto = 4; - */ - private void clearWrappedProto() { - - wrappedProto_ = getDefaultInstance().getWrappedProto(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!id_.isEmpty()) { - output.writeString(1, getId()); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (actionId_ != 0) { output.writeUInt32(2, actionId_); @@ -181,16 +245,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!wrappedProto_.isEmpty()) { output.writeBytes(4, wrappedProto_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!id_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getId()); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (actionId_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -204,323 +269,564 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, wrappedProto_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMessageContainer.MessageContainer)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMessageContainer.MessageContainer other = (net.iGap.proto.ProtoMessageContainer.MessageContainer) obj; + + if (!getId() + .equals(other.getId())) return false; + if (getActionId() + != other.getActionId()) return false; + if (getTimestamp() + != other.getTimestamp()) return false; + if (!getWrappedProto() + .equals(other.getWrappedProto())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getActionId(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + WRAPPED_PROTO_FIELD_NUMBER; + hash = (53 * hash) + getWrappedProto().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMessageContainer.MessageContainer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MessageContainer} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMessageContainer.MessageContainer, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MessageContainer) net.iGap.proto.ProtoMessageContainer.MessageContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMessageContainer.internal_static_proto_MessageContainer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMessageContainer.internal_static_proto_MessageContainer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMessageContainer.MessageContainer.class, net.iGap.proto.ProtoMessageContainer.MessageContainer.Builder.class); + } + // Construct using net.iGap.proto.ProtoMessageContainer.MessageContainer.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + actionId_ = 0; + + timestamp_ = 0L; + + wrappedProto_ = com.google.protobuf.ByteString.EMPTY; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMessageContainer.internal_static_proto_MessageContainer_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMessageContainer.MessageContainer getDefaultInstanceForType() { + return net.iGap.proto.ProtoMessageContainer.MessageContainer.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMessageContainer.MessageContainer build() { + net.iGap.proto.ProtoMessageContainer.MessageContainer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMessageContainer.MessageContainer buildPartial() { + net.iGap.proto.ProtoMessageContainer.MessageContainer result = new net.iGap.proto.ProtoMessageContainer.MessageContainer(this); + result.id_ = id_; + result.actionId_ = actionId_; + result.timestamp_ = timestamp_; + result.wrappedProto_ = wrappedProto_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMessageContainer.MessageContainer) { + return mergeFrom((net.iGap.proto.ProtoMessageContainer.MessageContainer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMessageContainer.MessageContainer other) { + if (other == net.iGap.proto.ProtoMessageContainer.MessageContainer.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.getActionId() != 0) { + setActionId(other.getActionId()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getWrappedProto() != com.google.protobuf.ByteString.EMPTY) { + setWrappedProto(other.getWrappedProto()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMessageContainer.MessageContainer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMessageContainer.MessageContainer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object id_ = ""; /** - * optional string id = 1; + * string id = 1; + * @return The id. */ public java.lang.String getId() { - return instance.getId(); + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { - return instance.getIdBytes(); + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string id = 1; + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - copyOnWrite(); - instance.setId(value); + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); return this; } /** - * optional string id = 1; + * string id = 1; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = getDefaultInstance().getId(); + onChanged(); return this; } /** - * optional string id = 1; + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); return this; } + private int actionId_ ; /** - * optional uint32 action_id = 2; + * uint32 action_id = 2; + * @return The actionId. */ + @java.lang.Override public int getActionId() { - return instance.getActionId(); + return actionId_; } /** - * optional uint32 action_id = 2; + * uint32 action_id = 2; + * @param value The actionId to set. + * @return This builder for chaining. */ public Builder setActionId(int value) { - copyOnWrite(); - instance.setActionId(value); + + actionId_ = value; + onChanged(); return this; } /** - * optional uint32 action_id = 2; + * uint32 action_id = 2; + * @return This builder for chaining. */ public Builder clearActionId() { - copyOnWrite(); - instance.clearActionId(); + + actionId_ = 0; + onChanged(); return this; } + private long timestamp_ ; /** - * optional uint64 timestamp = 3; + * uint64 timestamp = 3; + * @return The timestamp. */ + @java.lang.Override public long getTimestamp() { - return instance.getTimestamp(); + return timestamp_; } /** - * optional uint64 timestamp = 3; + * uint64 timestamp = 3; + * @param value The timestamp to set. + * @return This builder for chaining. */ public Builder setTimestamp(long value) { - copyOnWrite(); - instance.setTimestamp(value); + + timestamp_ = value; + onChanged(); return this; } /** - * optional uint64 timestamp = 3; + * uint64 timestamp = 3; + * @return This builder for chaining. */ public Builder clearTimestamp() { - copyOnWrite(); - instance.clearTimestamp(); + + timestamp_ = 0L; + onChanged(); return this; } + private com.google.protobuf.ByteString wrappedProto_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { - return instance.getWrappedProto(); + return wrappedProto_; } /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @param value The wrappedProto to set. + * @return This builder for chaining. */ public Builder setWrappedProto(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setWrappedProto(value); + if (value == null) { + throw new NullPointerException(); + } + + wrappedProto_ = value; + onChanged(); return this; } /** - * optional bytes wrapped_proto = 4; + * bytes wrapped_proto = 4; + * @return This builder for chaining. */ public Builder clearWrappedProto() { - copyOnWrite(); - instance.clearWrappedProto(); + + wrappedProto_ = getDefaultInstance().getWrappedProto(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MessageContainer) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMessageContainer.MessageContainer(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMessageContainer.MessageContainer other = (net.iGap.proto.ProtoMessageContainer.MessageContainer) arg1; - id_ = visitor.visitString(!id_.isEmpty(), id_, - !other.id_.isEmpty(), other.id_); - actionId_ = visitor.visitInt(actionId_ != 0, actionId_, - other.actionId_ != 0, other.actionId_); - timestamp_ = visitor.visitLong(timestamp_ != 0L, timestamp_, - other.timestamp_ != 0L, other.timestamp_); - wrappedProto_ = visitor.visitByteString(wrappedProto_ != com.google.protobuf.ByteString.EMPTY, wrappedProto_, - other.wrappedProto_ != com.google.protobuf.ByteString.EMPTY, other.wrappedProto_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 16: { - - actionId_ = input.readUInt32(); - break; - } - case 24: { - - timestamp_ = input.readUInt64(); - break; - } - case 34: { - - wrappedProto_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMessageContainer.MessageContainer.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MessageContainer) + } + // @@protoc_insertion_point(class_scope:proto.MessageContainer) private static final net.iGap.proto.ProtoMessageContainer.MessageContainer DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MessageContainer(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMessageContainer.MessageContainer(); } public static net.iGap.proto.ProtoMessageContainer.MessageContainer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageContainer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MessageContainer(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMessageContainer.MessageContainer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MessageContainer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MessageContainer_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026MessageContainer.proto\022\005proto\"[\n\020Messa" + + "geContainer\022\n\n\002id\030\001 \001(\t\022\021\n\taction_id\030\002 \001" + + "(\r\022\021\n\ttimestamp\030\003 \001(\004\022\025\n\rwrapped_proto\030\004" + + " \001(\014B\'\n\016net.iGap.protoB\025ProtoMessageCont" + + "ainerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_proto_MessageContainer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MessageContainer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MessageContainer_descriptor, + new java.lang.String[] { "Id", "ActionId", "Timestamp", "WrappedProto", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplGetBillToken.java b/src/main/java/net/iGap/proto/ProtoMplGetBillToken.java index 247085d..1aa2f85 100644 --- a/src/main/java/net/iGap/proto/ProtoMplGetBillToken.java +++ b/src/main/java/net/iGap/proto/ProtoMplGetBillToken.java @@ -8,53 +8,166 @@ private ProtoMplGetBillToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplGetBillTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetBillToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return The billId. */ long getBillId(); /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return The payId. */ long getPayId(); /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @return The type. */ net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type getType(); } /** * Protobuf type {@code proto.MplGetBillToken} */ - public static final class MplGetBillToken extends - com.google.protobuf.GeneratedMessageLite< - MplGetBillToken, MplGetBillToken.Builder> implements + public static final class MplGetBillToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetBillToken) MplGetBillTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetBillToken.newBuilder() to construct. + private MplGetBillToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetBillToken() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetBillToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetBillToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + billId_ = input.readUInt64(); + break; + } + case 24: { + + payId_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.class, net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Builder.class); + } + /** * Protobuf enum {@code proto.MplGetBillToken.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 0; */ @@ -85,10 +198,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -96,6 +215,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return NONE; @@ -117,6 +240,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -129,140 +283,82 @@ private Type(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int BILL_ID_FIELD_NUMBER = 2; private long billId_; /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return The billId. */ + @java.lang.Override public long getBillId() { return billId_; } - /** - * optional uint64 bill_id = 2; - */ - private void setBillId(long value) { - - billId_ = value; - } - /** - * optional uint64 bill_id = 2; - */ - private void clearBillId() { - - billId_ = 0L; - } public static final int PAY_ID_FIELD_NUMBER = 3; private long payId_; /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return The payId. */ + @java.lang.Override public long getPayId() { return payId_; } - /** - * optional uint64 pay_id = 3; - */ - private void setPayId(long value) { - - payId_ = value; - } - /** - * optional uint64 pay_id = 3; - */ - private void clearPayId() { - - payId_ = 0L; - } public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @return The type. */ - public net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type getType() { - net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type result = net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type result = net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type.UNRECOGNIZED : result; } - /** - * optional .proto.MplGetBillToken.Type type = 4; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.MplGetBillToken.Type type = 4; - */ - private void setType(net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.MplGetBillToken.Type type = 4; - */ - private void clearType() { - - type_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -277,10 +373,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type.NONE.getNumber()) { output.writeEnum(4, type_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -300,410 +398,690 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken other = (net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getBillId() + != other.getBillId()) return false; + if (getPayId() + != other.getPayId()) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + BILL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBillId()); + hash = (37 * hash) + PAY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPayId()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetBillToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetBillToken) net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.class, net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + billId_ = 0L; + + payId_ = 0L; + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken build() { + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken buildPartial() { + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken result = new net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.billId_ = billId_; + result.payId_ = payId_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken) { + return mergeFrom((net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken other) { + if (other == net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getBillId() != 0L) { + setBillId(other.getBillId()); + } + if (other.getPayId() != 0L) { + setPayId(other.getPayId()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long billId_ ; /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return The billId. */ + @java.lang.Override public long getBillId() { - return instance.getBillId(); + return billId_; } /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @param value The billId to set. + * @return This builder for chaining. */ public Builder setBillId(long value) { - copyOnWrite(); - instance.setBillId(value); + + billId_ = value; + onChanged(); return this; } /** - * optional uint64 bill_id = 2; + * uint64 bill_id = 2; + * @return This builder for chaining. */ public Builder clearBillId() { - copyOnWrite(); - instance.clearBillId(); + + billId_ = 0L; + onChanged(); return this; } + private long payId_ ; /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return The payId. */ + @java.lang.Override public long getPayId() { - return instance.getPayId(); + return payId_; } /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @param value The payId to set. + * @return This builder for chaining. */ public Builder setPayId(long value) { - copyOnWrite(); - instance.setPayId(value); + + payId_ = value; + onChanged(); return this; } /** - * optional uint64 pay_id = 3; + * uint64 pay_id = 3; + * @return This builder for chaining. */ public Builder clearPayId() { - copyOnWrite(); - instance.clearPayId(); + + payId_ = 0L; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type result = net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type.UNRECOGNIZED : result; } /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MplGetBillToken.Type type = 4; + * .proto.MplGetBillToken.Type type = 4; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetBillToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken other = (net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - billId_ = visitor.visitLong(billId_ != 0L, billId_, - other.billId_ != 0L, other.billId_); - payId_ = visitor.visitLong(payId_ != 0L, payId_, - other.payId_ != 0L, other.payId_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - billId_ = input.readUInt64(); - break; - } - case 24: { - - payId_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetBillToken) + } + // @@protoc_insertion_point(class_scope:proto.MplGetBillToken) private static final net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetBillToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken(); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetBillToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetBillToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface MplGetBillTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetBillTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ int getStatus(); /** - * optional string token = 3; + * string token = 3; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ int getExpireTime(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint32 discount_amount = 6; + * uint32 discount_amount = 6; + * @return The discountAmount. */ int getDiscountAmount(); /** - * optional uint32 original_amount = 7; + * uint32 original_amount = 7; + * @return The originalAmount. */ int getOriginalAmount(); /** - * optional uint32 new_pay_id = 8; + * uint32 new_pay_id = 8; + * @return The newPayId. */ int getNewPayId(); /** - * optional string organization_name = 9; + * string organization_name = 9; + * @return The organizationName. */ java.lang.String getOrganizationName(); /** - * optional string organization_name = 9; + * string organization_name = 9; + * @return The bytes for organizationName. */ com.google.protobuf.ByteString getOrganizationNameBytes(); @@ -711,321 +1089,346 @@ public interface MplGetBillTokenResponseOrBuilder extends /** * Protobuf type {@code proto.MplGetBillTokenResponse} */ - public static final class MplGetBillTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - MplGetBillTokenResponse, MplGetBillTokenResponse.Builder> implements + public static final class MplGetBillTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetBillTokenResponse) MplGetBillTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetBillTokenResponse.newBuilder() to construct. + private MplGetBillTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetBillTokenResponse() { token_ = ""; message_ = ""; organizationName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetBillTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetBillTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 32: { + + expireTime_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 48: { + + discountAmount_ = input.readUInt32(); + break; + } + case 56: { + + originalAmount_ = input.readUInt32(); + break; + } + case 64: { + + newPayId_ = input.readUInt32(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + organizationName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.class, net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 status = 2; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int TOKEN_FIELD_NUMBER = 3; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 3; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 3; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 3; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private int expireTime_; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { return expireTime_; } - /** - * optional uint32 expire_time = 4; - */ - private void setExpireTime(int value) { - - expireTime_ = value; - } - /** - * optional uint32 expire_time = 4; - */ - private void clearExpireTime() { - - expireTime_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DISCOUNT_AMOUNT_FIELD_NUMBER = 6; private int discountAmount_; /** - * optional uint32 discount_amount = 6; + * uint32 discount_amount = 6; + * @return The discountAmount. */ + @java.lang.Override public int getDiscountAmount() { return discountAmount_; } - /** - * optional uint32 discount_amount = 6; - */ - private void setDiscountAmount(int value) { - - discountAmount_ = value; - } - /** - * optional uint32 discount_amount = 6; - */ - private void clearDiscountAmount() { - - discountAmount_ = 0; - } public static final int ORIGINAL_AMOUNT_FIELD_NUMBER = 7; private int originalAmount_; /** - * optional uint32 original_amount = 7; + * uint32 original_amount = 7; + * @return The originalAmount. */ + @java.lang.Override public int getOriginalAmount() { return originalAmount_; } - /** - * optional uint32 original_amount = 7; - */ - private void setOriginalAmount(int value) { - - originalAmount_ = value; - } - /** - * optional uint32 original_amount = 7; - */ - private void clearOriginalAmount() { - - originalAmount_ = 0; - } public static final int NEW_PAY_ID_FIELD_NUMBER = 8; private int newPayId_; /** - * optional uint32 new_pay_id = 8; + * uint32 new_pay_id = 8; + * @return The newPayId. */ + @java.lang.Override public int getNewPayId() { return newPayId_; } - /** - * optional uint32 new_pay_id = 8; - */ - private void setNewPayId(int value) { - - newPayId_ = value; - } - /** - * optional uint32 new_pay_id = 8; - */ - private void clearNewPayId() { - - newPayId_ = 0; - } public static final int ORGANIZATION_NAME_FIELD_NUMBER = 9; - private java.lang.String organizationName_; + private volatile java.lang.Object organizationName_; /** - * optional string organization_name = 9; + * string organization_name = 9; + * @return The organizationName. */ + @java.lang.Override public java.lang.String getOrganizationName() { - return organizationName_; + java.lang.Object ref = organizationName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationName_ = s; + return s; + } } /** - * optional string organization_name = 9; + * string organization_name = 9; + * @return The bytes for organizationName. */ + @java.lang.Override public com.google.protobuf.ByteString getOrganizationNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(organizationName_); - } - /** - * optional string organization_name = 9; - */ - private void setOrganizationName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - organizationName_ = value; - } - /** - * optional string organization_name = 9; - */ - private void clearOrganizationName() { - - organizationName_ = getDefaultInstance().getOrganizationName(); + java.lang.Object ref = organizationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string organization_name = 9; - */ - private void setOrganizationNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - organizationName_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1034,14 +1437,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != 0) { output.writeUInt32(2, status_); } - if (!token_.isEmpty()) { - output.writeString(3, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); } if (expireTime_ != 0) { output.writeUInt32(4, expireTime_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } if (discountAmount_ != 0) { output.writeUInt32(6, discountAmount_); @@ -1052,13 +1455,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (newPayId_ != 0) { output.writeUInt32(8, newPayId_); } - if (!organizationName_.isEmpty()) { - output.writeString(9, getOrganizationName()); + if (!getOrganizationNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, organizationName_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1070,17 +1475,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, status_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); } if (expireTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, expireTime_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } if (discountAmount_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1094,542 +1497,984 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, newPayId_); } - if (!organizationName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getOrganizationName()); + if (!getOrganizationNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, organizationName_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse other = (net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (getExpireTime() + != other.getExpireTime()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (getDiscountAmount() + != other.getDiscountAmount()) return false; + if (getOriginalAmount() + != other.getOriginalAmount()) return false; + if (getNewPayId() + != other.getNewPayId()) return false; + if (!getOrganizationName() + .equals(other.getOrganizationName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + DISCOUNT_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getDiscountAmount(); + hash = (37 * hash) + ORIGINAL_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getOriginalAmount(); + hash = (37 * hash) + NEW_PAY_ID_FIELD_NUMBER; + hash = (53 * hash) + getNewPayId(); + hash = (37 * hash) + ORGANIZATION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetBillTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetBillTokenResponse) net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.class, net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + token_ = ""; + + expireTime_ = 0; + + message_ = ""; + + discountAmount_ = 0; + + originalAmount_ = 0; + + newPayId_ = 0; + + organizationName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetBillToken.internal_static_proto_MplGetBillTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse build() { + net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse buildPartial() { + net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse result = new net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.token_ = token_; + result.expireTime_ = expireTime_; + result.message_ = message_; + result.discountAmount_ = discountAmount_; + result.originalAmount_ = originalAmount_; + result.newPayId_ = newPayId_; + result.organizationName_ = organizationName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse other) { + if (other == net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getExpireTime() != 0) { + setExpireTime(other.getExpireTime()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getDiscountAmount() != 0) { + setDiscountAmount(other.getDiscountAmount()); + } + if (other.getOriginalAmount() != 0) { + setOriginalAmount(other.getOriginalAmount()); + } + if (other.getNewPayId() != 0) { + setNewPayId(other.getNewPayId()); + } + if (!other.getOrganizationName().isEmpty()) { + organizationName_ = other.organizationName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ ; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private int expireTime_ ; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { - return instance.getExpireTime(); + return expireTime_; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @param value The expireTime to set. + * @return This builder for chaining. */ public Builder setExpireTime(int value) { - copyOnWrite(); - instance.setExpireTime(value); + + expireTime_ = value; + onChanged(); return this; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return This builder for chaining. */ public Builder clearExpireTime() { - copyOnWrite(); - instance.clearExpireTime(); + + expireTime_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private int discountAmount_ ; /** - * optional uint32 discount_amount = 6; + * uint32 discount_amount = 6; + * @return The discountAmount. */ + @java.lang.Override public int getDiscountAmount() { - return instance.getDiscountAmount(); + return discountAmount_; } /** - * optional uint32 discount_amount = 6; + * uint32 discount_amount = 6; + * @param value The discountAmount to set. + * @return This builder for chaining. */ public Builder setDiscountAmount(int value) { - copyOnWrite(); - instance.setDiscountAmount(value); + + discountAmount_ = value; + onChanged(); return this; } /** - * optional uint32 discount_amount = 6; + * uint32 discount_amount = 6; + * @return This builder for chaining. */ public Builder clearDiscountAmount() { - copyOnWrite(); - instance.clearDiscountAmount(); + + discountAmount_ = 0; + onChanged(); return this; } + private int originalAmount_ ; /** - * optional uint32 original_amount = 7; + * uint32 original_amount = 7; + * @return The originalAmount. */ + @java.lang.Override public int getOriginalAmount() { - return instance.getOriginalAmount(); + return originalAmount_; } /** - * optional uint32 original_amount = 7; + * uint32 original_amount = 7; + * @param value The originalAmount to set. + * @return This builder for chaining. */ public Builder setOriginalAmount(int value) { - copyOnWrite(); - instance.setOriginalAmount(value); + + originalAmount_ = value; + onChanged(); return this; } /** - * optional uint32 original_amount = 7; + * uint32 original_amount = 7; + * @return This builder for chaining. */ public Builder clearOriginalAmount() { - copyOnWrite(); - instance.clearOriginalAmount(); + + originalAmount_ = 0; + onChanged(); return this; } + private int newPayId_ ; /** - * optional uint32 new_pay_id = 8; + * uint32 new_pay_id = 8; + * @return The newPayId. */ + @java.lang.Override public int getNewPayId() { - return instance.getNewPayId(); + return newPayId_; } /** - * optional uint32 new_pay_id = 8; + * uint32 new_pay_id = 8; + * @param value The newPayId to set. + * @return This builder for chaining. */ public Builder setNewPayId(int value) { - copyOnWrite(); - instance.setNewPayId(value); + + newPayId_ = value; + onChanged(); return this; } /** - * optional uint32 new_pay_id = 8; + * uint32 new_pay_id = 8; + * @return This builder for chaining. */ public Builder clearNewPayId() { - copyOnWrite(); - instance.clearNewPayId(); + + newPayId_ = 0; + onChanged(); return this; } + private java.lang.Object organizationName_ = ""; /** - * optional string organization_name = 9; + * string organization_name = 9; + * @return The organizationName. */ public java.lang.String getOrganizationName() { - return instance.getOrganizationName(); + java.lang.Object ref = organizationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string organization_name = 9; + * string organization_name = 9; + * @return The bytes for organizationName. */ public com.google.protobuf.ByteString getOrganizationNameBytes() { - return instance.getOrganizationNameBytes(); + java.lang.Object ref = organizationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string organization_name = 9; + * string organization_name = 9; + * @param value The organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationName( java.lang.String value) { - copyOnWrite(); - instance.setOrganizationName(value); + if (value == null) { + throw new NullPointerException(); + } + + organizationName_ = value; + onChanged(); return this; } /** - * optional string organization_name = 9; + * string organization_name = 9; + * @return This builder for chaining. */ public Builder clearOrganizationName() { - copyOnWrite(); - instance.clearOrganizationName(); + + organizationName_ = getDefaultInstance().getOrganizationName(); + onChanged(); return this; } /** - * optional string organization_name = 9; + * string organization_name = 9; + * @param value The bytes for organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setOrganizationNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + organizationName_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetBillTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse other = (net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - expireTime_ = visitor.visitInt(expireTime_ != 0, expireTime_, - other.expireTime_ != 0, other.expireTime_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - discountAmount_ = visitor.visitInt(discountAmount_ != 0, discountAmount_, - other.discountAmount_ != 0, other.discountAmount_); - originalAmount_ = visitor.visitInt(originalAmount_ != 0, originalAmount_, - other.originalAmount_ != 0, other.originalAmount_); - newPayId_ = visitor.visitInt(newPayId_ != 0, newPayId_, - other.newPayId_ != 0, other.newPayId_); - organizationName_ = visitor.visitString(!organizationName_.isEmpty(), organizationName_, - !other.organizationName_.isEmpty(), other.organizationName_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - status_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 32: { - - expireTime_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 48: { - - discountAmount_ = input.readUInt32(); - break; - } - case 56: { - - originalAmount_ = input.readUInt32(); - break; - } - case 64: { - - newPayId_ = input.readUInt32(); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - organizationName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetBillTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.MplGetBillTokenResponse) private static final net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetBillTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse(); } public static net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetBillTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetBillTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetBillToken.MplGetBillTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetBillToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetBillToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetBillTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetBillTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025MplGetBillToken.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\"\255\001\n\017MplGetBillToke" + + "n\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007bi" + + "ll_id\030\002 \001(\004\022\016\n\006pay_id\030\003 \001(\004\022)\n\004type\030\004 \001(" + + "\0162\033.proto.MplGetBillToken.Type\"-\n\004Type\022\010" + + "\n\004NONE\020\000\022\014\n\010MID_TERM\020\001\022\r\n\tLAST_TERM\020\002\"\342\001" + + "\n\027MplGetBillTokenResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022\016\n\006status\030\002 \001(\r\022\r\n\005" + + "token\030\003 \001(\t\022\023\n\013expire_time\030\004 \001(\r\022\017\n\007mess" + + "age\030\005 \001(\t\022\027\n\017discount_amount\030\006 \001(\r\022\027\n\017or" + + "iginal_amount\030\007 \001(\r\022\022\n\nnew_pay_id\030\010 \001(\r\022" + + "\031\n\021organization_name\030\t \001(\tB&\n\016net.iGap.p" + + "rotoB\024ProtoMplGetBillTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_MplGetBillToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplGetBillToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetBillToken_descriptor, + new java.lang.String[] { "Request", "BillId", "PayId", "Type", }); + internal_static_proto_MplGetBillTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplGetBillTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetBillTokenResponse_descriptor, + new java.lang.String[] { "Response", "Status", "Token", "ExpireTime", "Message", "DiscountAmount", "OriginalAmount", "NewPayId", "OrganizationName", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplGetCardToCardToken.java b/src/main/java/net/iGap/proto/ProtoMplGetCardToCardToken.java index 16363c7..a728337 100644 --- a/src/main/java/net/iGap/proto/ProtoMplGetCardToCardToken.java +++ b/src/main/java/net/iGap/proto/ProtoMplGetCardToCardToken.java @@ -8,109 +8,181 @@ private ProtoMplGetCardToCardToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplGetCardToCardTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetCardToCardToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 to_user_id = 2; + * uint64 to_user_id = 2; + * @return The toUserId. */ long getToUserId(); } /** * Protobuf type {@code proto.MplGetCardToCardToken} */ - public static final class MplGetCardToCardToken extends - com.google.protobuf.GeneratedMessageLite< - MplGetCardToCardToken, MplGetCardToCardToken.Builder> implements + public static final class MplGetCardToCardToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetCardToCardToken) MplGetCardToCardTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetCardToCardToken.newBuilder() to construct. + private MplGetCardToCardToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetCardToCardToken() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetCardToCardToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetCardToCardToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + toUserId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.class, net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TO_USER_ID_FIELD_NUMBER = 2; private long toUserId_; /** - * optional uint64 to_user_id = 2; + * uint64 to_user_id = 2; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { return toUserId_; } - /** - * optional uint64 to_user_id = 2; - */ - private void setToUserId(long value) { - - toUserId_ = value; - } - /** - * optional uint64 to_user_id = 2; - */ - private void clearToUserId() { - - toUserId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (toUserId_ != 0L) { output.writeUInt64(2, toUserId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,311 +208,555 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, toUserId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken other = (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getToUserId() + != other.getToUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TO_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetCardToCardToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetCardToCardToken) net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.class, net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + toUserId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken build() { + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken buildPartial() { + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken result = new net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.toUserId_ = toUserId_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken) { + return mergeFrom((net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken other) { + if (other == net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getToUserId() != 0L) { + setToUserId(other.getToUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long toUserId_ ; /** - * optional uint64 to_user_id = 2; + * uint64 to_user_id = 2; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { - return instance.getToUserId(); + return toUserId_; } /** - * optional uint64 to_user_id = 2; + * uint64 to_user_id = 2; + * @param value The toUserId to set. + * @return This builder for chaining. */ public Builder setToUserId(long value) { - copyOnWrite(); - instance.setToUserId(value); + + toUserId_ = value; + onChanged(); return this; } /** - * optional uint64 to_user_id = 2; + * uint64 to_user_id = 2; + * @return This builder for chaining. */ public Builder clearToUserId() { - copyOnWrite(); - instance.clearToUserId(); + + toUserId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetCardToCardToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken other = (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - toUserId_ = visitor.visitLong(toUserId_ != 0L, toUserId_, - other.toUserId_ != 0L, other.toUserId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - toUserId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetCardToCardToken) + } + // @@protoc_insertion_point(class_scope:proto.MplGetCardToCardToken) private static final net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetCardToCardToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken(); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetCardToCardToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetCardToCardToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface MplGetCardToCardTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetCardToCardTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ int getStatus(); /** - * optional string token = 3; + * string token = 3; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ int getExpireTime(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); @@ -446,205 +764,253 @@ public interface MplGetCardToCardTokenResponseOrBuilder extends /** * Protobuf type {@code proto.MplGetCardToCardTokenResponse} */ - public static final class MplGetCardToCardTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - MplGetCardToCardTokenResponse, MplGetCardToCardTokenResponse.Builder> implements + public static final class MplGetCardToCardTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetCardToCardTokenResponse) MplGetCardToCardTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetCardToCardTokenResponse.newBuilder() to construct. + private MplGetCardToCardTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetCardToCardTokenResponse() { token_ = ""; message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetCardToCardTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetCardToCardTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 32: { + + expireTime_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.class, net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 status = 2; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int TOKEN_FIELD_NUMBER = 3; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 3; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 3; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 3; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private int expireTime_; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { return expireTime_; } - /** - * optional uint32 expire_time = 4; - */ - private void setExpireTime(int value) { - - expireTime_ = value; - } - /** - * optional uint32 expire_time = 4; - */ - private void clearExpireTime() { - - expireTime_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -653,19 +1019,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != 0) { output.writeUInt32(2, status_); } - if (!token_.isEmpty()) { - output.writeString(3, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); } if (expireTime_ != 0) { output.writeUInt32(4, expireTime_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -677,412 +1045,777 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, status_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); } if (expireTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, expireTime_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse other = (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (getExpireTime() + != other.getExpireTime()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetCardToCardTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetCardToCardTokenResponse) net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.class, net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + token_ = ""; + + expireTime_ = 0; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetCardToCardToken.internal_static_proto_MplGetCardToCardTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse build() { + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse buildPartial() { + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse result = new net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.token_ = token_; + result.expireTime_ = expireTime_; + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse other) { + if (other == net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getExpireTime() != 0) { + setExpireTime(other.getExpireTime()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ ; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private int expireTime_ ; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { - return instance.getExpireTime(); + return expireTime_; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @param value The expireTime to set. + * @return This builder for chaining. */ public Builder setExpireTime(int value) { - copyOnWrite(); - instance.setExpireTime(value); + + expireTime_ = value; + onChanged(); return this; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return This builder for chaining. */ public Builder clearExpireTime() { - copyOnWrite(); - instance.clearExpireTime(); + + expireTime_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetCardToCardTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse other = (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - expireTime_ = visitor.visitInt(expireTime_ != 0, expireTime_, - other.expireTime_ != 0, other.expireTime_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - status_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 32: { - - expireTime_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetCardToCardTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.MplGetCardToCardTokenResponse) private static final net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetCardToCardTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse(); } public static net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetCardToCardTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetCardToCardTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetCardToCardToken.MplGetCardToCardTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetCardToCardToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetCardToCardToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetCardToCardTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetCardToCardTokenResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033MplGetCardToCardToken.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\"L\n\025MplGetCar" + + "dToCardToken\022\037\n\007request\030\001 \001(\0132\016.proto.Re" + + "quest\022\022\n\nto_user_id\030\002 \001(\004\"\207\001\n\035MplGetCard" + + "ToCardTokenResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\016\n\006status\030\002 \001(\r\022\r\n\005token\030" + + "\003 \001(\t\022\023\n\013expire_time\030\004 \001(\r\022\017\n\007message\030\005 " + + "\001(\tB,\n\016net.iGap.protoB\032ProtoMplGetCardTo" + + "CardTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_MplGetCardToCardToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplGetCardToCardToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetCardToCardToken_descriptor, + new java.lang.String[] { "Request", "ToUserId", }); + internal_static_proto_MplGetCardToCardTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplGetCardToCardTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetCardToCardTokenResponse_descriptor, + new java.lang.String[] { "Response", "Status", "Token", "ExpireTime", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplGetSalesToken.java b/src/main/java/net/iGap/proto/ProtoMplGetSalesToken.java index f9d70bd..40761a7 100644 --- a/src/main/java/net/iGap/proto/ProtoMplGetSalesToken.java +++ b/src/main/java/net/iGap/proto/ProtoMplGetSalesToken.java @@ -8,45 +8,63 @@ private ProtoMplGetSalesToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplGetSalesTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetSalesToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 amount = 2; + * uint64 amount = 2; + * @return The amount. */ long getAmount(); /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return The toUserId. */ long getToUserId(); /** - * optional uint64 invoice_number = 4; + * uint64 invoice_number = 4; + * @return The invoiceNumber. */ long getInvoiceNumber(); /** - * optional bool inquiry = 5; + * bool inquiry = 5; + * @return The inquiry. */ boolean getInquiry(); /** - * optional string description = 6; + * string description = 6; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -54,204 +72,240 @@ public interface MplGetSalesTokenOrBuilder extends /** * Protobuf type {@code proto.MplGetSalesToken} */ - public static final class MplGetSalesToken extends - com.google.protobuf.GeneratedMessageLite< - MplGetSalesToken, MplGetSalesToken.Builder> implements + public static final class MplGetSalesToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetSalesToken) MplGetSalesTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetSalesToken.newBuilder() to construct. + private MplGetSalesToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetSalesToken() { description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetSalesToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetSalesToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + amount_ = input.readUInt64(); + break; + } + case 24: { + + toUserId_ = input.readUInt64(); + break; + } + case 32: { + + invoiceNumber_ = input.readUInt64(); + break; + } + case 40: { + + inquiry_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.class, net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int AMOUNT_FIELD_NUMBER = 2; private long amount_; /** - * optional uint64 amount = 2; + * uint64 amount = 2; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 2; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 2; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int TO_USER_ID_FIELD_NUMBER = 3; private long toUserId_; /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { return toUserId_; } - /** - * optional uint64 to_user_id = 3; - */ - private void setToUserId(long value) { - - toUserId_ = value; - } - /** - * optional uint64 to_user_id = 3; - */ - private void clearToUserId() { - - toUserId_ = 0L; - } public static final int INVOICE_NUMBER_FIELD_NUMBER = 4; private long invoiceNumber_; /** - * optional uint64 invoice_number = 4; + * uint64 invoice_number = 4; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { return invoiceNumber_; } - /** - * optional uint64 invoice_number = 4; - */ - private void setInvoiceNumber(long value) { - - invoiceNumber_ = value; - } - /** - * optional uint64 invoice_number = 4; - */ - private void clearInvoiceNumber() { - - invoiceNumber_ = 0L; - } public static final int INQUIRY_FIELD_NUMBER = 5; private boolean inquiry_; /** - * optional bool inquiry = 5; + * bool inquiry = 5; + * @return The inquiry. */ + @java.lang.Override public boolean getInquiry() { return inquiry_; } - /** - * optional bool inquiry = 5; - */ - private void setInquiry(boolean value) { - - inquiry_ = value; - } - /** - * optional bool inquiry = 5; - */ - private void clearInquiry() { - - inquiry_ = false; - } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 6; + * string description = 6; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 6; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 6; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 6; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -269,13 +323,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (inquiry_ != false) { output.writeBool(5, inquiry_); } - if (!description_.isEmpty()) { - output.writeString(6, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -299,453 +355,771 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, inquiry_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken other = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getAmount() + != other.getAmount()) return false; + if (getToUserId() + != other.getToUserId()) return false; + if (getInvoiceNumber() + != other.getInvoiceNumber()) return false; + if (getInquiry() + != other.getInquiry()) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + TO_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToUserId()); + hash = (37 * hash) + INVOICE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInvoiceNumber()); + hash = (37 * hash) + INQUIRY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInquiry()); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetSalesToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetSalesToken) net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.class, net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + amount_ = 0L; + + toUserId_ = 0L; + + invoiceNumber_ = 0L; + + inquiry_ = false; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken build() { + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken buildPartial() { + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken result = new net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.amount_ = amount_; + result.toUserId_ = toUserId_; + result.invoiceNumber_ = invoiceNumber_; + result.inquiry_ = inquiry_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken) { + return mergeFrom((net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken other) { + if (other == net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getToUserId() != 0L) { + setToUserId(other.getToUserId()); + } + if (other.getInvoiceNumber() != 0L) { + setInvoiceNumber(other.getInvoiceNumber()); + } + if (other.getInquiry() != false) { + setInquiry(other.getInquiry()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long amount_ ; /** - * optional uint64 amount = 2; + * uint64 amount = 2; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 2; + * uint64 amount = 2; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 2; + * uint64 amount = 2; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private long toUserId_ ; /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { - return instance.getToUserId(); + return toUserId_; } /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @param value The toUserId to set. + * @return This builder for chaining. */ public Builder setToUserId(long value) { - copyOnWrite(); - instance.setToUserId(value); + + toUserId_ = value; + onChanged(); return this; } /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return This builder for chaining. */ public Builder clearToUserId() { - copyOnWrite(); - instance.clearToUserId(); + + toUserId_ = 0L; + onChanged(); return this; } + private long invoiceNumber_ ; /** - * optional uint64 invoice_number = 4; + * uint64 invoice_number = 4; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { - return instance.getInvoiceNumber(); + return invoiceNumber_; } /** - * optional uint64 invoice_number = 4; + * uint64 invoice_number = 4; + * @param value The invoiceNumber to set. + * @return This builder for chaining. */ public Builder setInvoiceNumber(long value) { - copyOnWrite(); - instance.setInvoiceNumber(value); + + invoiceNumber_ = value; + onChanged(); return this; } /** - * optional uint64 invoice_number = 4; + * uint64 invoice_number = 4; + * @return This builder for chaining. */ public Builder clearInvoiceNumber() { - copyOnWrite(); - instance.clearInvoiceNumber(); + + invoiceNumber_ = 0L; + onChanged(); return this; } + private boolean inquiry_ ; /** - * optional bool inquiry = 5; + * bool inquiry = 5; + * @return The inquiry. */ + @java.lang.Override public boolean getInquiry() { - return instance.getInquiry(); + return inquiry_; } /** - * optional bool inquiry = 5; + * bool inquiry = 5; + * @param value The inquiry to set. + * @return This builder for chaining. */ public Builder setInquiry(boolean value) { - copyOnWrite(); - instance.setInquiry(value); + + inquiry_ = value; + onChanged(); return this; } /** - * optional bool inquiry = 5; + * bool inquiry = 5; + * @return This builder for chaining. */ public Builder clearInquiry() { - copyOnWrite(); - instance.clearInquiry(); + + inquiry_ = false; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 6; + * string description = 6; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 6; + * string description = 6; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 6; + * string description = 6; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 6; + * string description = 6; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetSalesToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken other = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - toUserId_ = visitor.visitLong(toUserId_ != 0L, toUserId_, - other.toUserId_ != 0L, other.toUserId_); - invoiceNumber_ = visitor.visitLong(invoiceNumber_ != 0L, invoiceNumber_, - other.invoiceNumber_ != 0L, other.invoiceNumber_); - inquiry_ = visitor.visitBoolean(inquiry_ != false, inquiry_, - other.inquiry_ != false, other.inquiry_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - amount_ = input.readUInt64(); - break; - } - case 24: { - - toUserId_ = input.readUInt64(); - break; - } - case 32: { - - invoiceNumber_ = input.readUInt64(); - break; - } - case 40: { - - inquiry_ = input.readBool(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetSalesToken) + } + // @@protoc_insertion_point(class_scope:proto.MplGetSalesToken) private static final net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetSalesToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken(); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetSalesToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetSalesToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplGetSalesTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetSalesTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ int getStatus(); /** - * optional string token = 3; + * string token = 3; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ int getExpireTime(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); @@ -753,205 +1127,253 @@ public interface MplGetSalesTokenResponseOrBuilder extends /** * Protobuf type {@code proto.MplGetSalesTokenResponse} */ - public static final class MplGetSalesTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - MplGetSalesTokenResponse, MplGetSalesTokenResponse.Builder> implements + public static final class MplGetSalesTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetSalesTokenResponse) MplGetSalesTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetSalesTokenResponse.newBuilder() to construct. + private MplGetSalesTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetSalesTokenResponse() { token_ = ""; message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetSalesTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetSalesTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 32: { + + expireTime_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.class, net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 status = 2; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int TOKEN_FIELD_NUMBER = 3; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 3; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 3; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 3; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private int expireTime_; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { return expireTime_; } - /** - * optional uint32 expire_time = 4; - */ - private void setExpireTime(int value) { - - expireTime_ = value; - } - /** - * optional uint32 expire_time = 4; - */ - private void clearExpireTime() { - - expireTime_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -960,19 +1382,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != 0) { output.writeUInt32(2, status_); } - if (!token_.isEmpty()) { - output.writeString(3, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); } if (expireTime_ != 0) { output.writeUInt32(4, expireTime_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -984,412 +1408,778 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, status_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); } if (expireTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, expireTime_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse other = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (getExpireTime() + != other.getExpireTime()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetSalesTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetSalesTokenResponse) net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.class, net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + token_ = ""; + + expireTime_ = 0; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetSalesToken.internal_static_proto_MplGetSalesTokenResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse build() { + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse buildPartial() { + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse result = new net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.token_ = token_; + result.expireTime_ = expireTime_; + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse other) { + if (other == net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getExpireTime() != 0) { + setExpireTime(other.getExpireTime()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ ; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private int expireTime_ ; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { - return instance.getExpireTime(); + return expireTime_; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @param value The expireTime to set. + * @return This builder for chaining. */ public Builder setExpireTime(int value) { - copyOnWrite(); - instance.setExpireTime(value); + + expireTime_ = value; + onChanged(); return this; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return This builder for chaining. */ public Builder clearExpireTime() { - copyOnWrite(); - instance.clearExpireTime(); + + expireTime_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetSalesTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse other = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - expireTime_ = visitor.visitInt(expireTime_ != 0, expireTime_, - other.expireTime_ != 0, other.expireTime_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - status_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 32: { - - expireTime_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetSalesTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.MplGetSalesTokenResponse) private static final net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetSalesTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse(); } public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetSalesTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetSalesTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetSalesToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetSalesToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetSalesTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetSalesTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026MplGetSalesToken.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"\225\001\n\020MplGetSalesTo" + + "ken\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\016\n\006" + + "amount\030\002 \001(\004\022\022\n\nto_user_id\030\003 \001(\004\022\026\n\016invo" + + "ice_number\030\004 \001(\004\022\017\n\007inquiry\030\005 \001(\010\022\023\n\013des" + + "cription\030\006 \001(\t\"\202\001\n\030MplGetSalesTokenRespo" + + "nse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\016" + + "\n\006status\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\023\n\013expire_" + + "time\030\004 \001(\r\022\017\n\007message\030\005 \001(\tB\'\n\016net.iGap." + + "protoB\025ProtoMplGetSalesTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_MplGetSalesToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplGetSalesToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetSalesToken_descriptor, + new java.lang.String[] { "Request", "Amount", "ToUserId", "InvoiceNumber", "Inquiry", "Description", }); + internal_static_proto_MplGetSalesTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplGetSalesTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetSalesTokenResponse_descriptor, + new java.lang.String[] { "Response", "Status", "Token", "ExpireTime", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplGetTopupToken.java b/src/main/java/net/iGap/proto/ProtoMplGetTopupToken.java index b8299b6..9a7bc09 100644 --- a/src/main/java/net/iGap/proto/ProtoMplGetTopupToken.java +++ b/src/main/java/net/iGap/proto/ProtoMplGetTopupToken.java @@ -8,53 +8,166 @@ private ProtoMplGetTopupToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplGetTopupTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetTopupToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 charge_mobile_number = 2; + * uint64 charge_mobile_number = 2; + * @return The chargeMobileNumber. */ long getChargeMobileNumber(); /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return The amount. */ long getAmount(); /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @return The type. */ net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type getType(); } /** * Protobuf type {@code proto.MplGetTopupToken} */ - public static final class MplGetTopupToken extends - com.google.protobuf.GeneratedMessageLite< - MplGetTopupToken, MplGetTopupToken.Builder> implements + public static final class MplGetTopupToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetTopupToken) MplGetTopupTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetTopupToken.newBuilder() to construct. + private MplGetTopupToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetTopupToken() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetTopupToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetTopupToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + chargeMobileNumber_ = input.readUInt64(); + break; + } + case 24: { + + amount_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.class, net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Builder.class); } + /** * Protobuf enum {@code proto.MplGetTopupToken.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * IRANCELL_PREPAID = 0; */ @@ -109,10 +222,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -120,6 +239,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return IRANCELL_PREPAID; @@ -144,6 +267,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -156,140 +310,82 @@ private Type(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CHARGE_MOBILE_NUMBER_FIELD_NUMBER = 2; private long chargeMobileNumber_; /** - * optional uint64 charge_mobile_number = 2; + * uint64 charge_mobile_number = 2; + * @return The chargeMobileNumber. */ + @java.lang.Override public long getChargeMobileNumber() { return chargeMobileNumber_; } - /** - * optional uint64 charge_mobile_number = 2; - */ - private void setChargeMobileNumber(long value) { - - chargeMobileNumber_ = value; - } - /** - * optional uint64 charge_mobile_number = 2; - */ - private void clearChargeMobileNumber() { - - chargeMobileNumber_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_; /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 3; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 3; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @return The type. */ - public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type getType() { - net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type result = net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type result = net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type.UNRECOGNIZED : result; } - /** - * optional .proto.MplGetTopupToken.Type type = 4; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.MplGetTopupToken.Type type = 4; - */ - private void setType(net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.MplGetTopupToken.Type type = 4; - */ - private void clearType() { - - type_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -304,10 +400,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type.IRANCELL_PREPAID.getNumber()) { output.writeEnum(4, type_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -327,385 +425,660 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken other = (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getChargeMobileNumber() + != other.getChargeMobileNumber()) return false; + if (getAmount() + != other.getAmount()) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CHARGE_MOBILE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getChargeMobileNumber()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetTopupToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetTopupToken) net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.class, net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + chargeMobileNumber_ = 0L; + + amount_ = 0L; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken build() { + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken buildPartial() { + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken result = new net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.chargeMobileNumber_ = chargeMobileNumber_; + result.amount_ = amount_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken) { + return mergeFrom((net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken other) { + if (other == net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getChargeMobileNumber() != 0L) { + setChargeMobileNumber(other.getChargeMobileNumber()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long chargeMobileNumber_ ; /** - * optional uint64 charge_mobile_number = 2; + * uint64 charge_mobile_number = 2; + * @return The chargeMobileNumber. */ + @java.lang.Override public long getChargeMobileNumber() { - return instance.getChargeMobileNumber(); + return chargeMobileNumber_; } /** - * optional uint64 charge_mobile_number = 2; + * uint64 charge_mobile_number = 2; + * @param value The chargeMobileNumber to set. + * @return This builder for chaining. */ public Builder setChargeMobileNumber(long value) { - copyOnWrite(); - instance.setChargeMobileNumber(value); + + chargeMobileNumber_ = value; + onChanged(); return this; } /** - * optional uint64 charge_mobile_number = 2; + * uint64 charge_mobile_number = 2; + * @return This builder for chaining. */ public Builder clearChargeMobileNumber() { - copyOnWrite(); - instance.clearChargeMobileNumber(); + + chargeMobileNumber_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 3; + * uint64 amount = 3; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type result = net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type.UNRECOGNIZED : result; } /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MplGetTopupToken.Type type = 4; + * .proto.MplGetTopupToken.Type type = 4; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetTopupToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken other = (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - chargeMobileNumber_ = visitor.visitLong(chargeMobileNumber_ != 0L, chargeMobileNumber_, - other.chargeMobileNumber_ != 0L, other.chargeMobileNumber_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - chargeMobileNumber_ = input.readUInt64(); - break; - } - case 24: { - - amount_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetTopupToken) + } + // @@protoc_insertion_point(class_scope:proto.MplGetTopupToken) private static final net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetTopupToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken(); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetTopupToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetTopupToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface MplGetTopupTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplGetTopupTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ int getStatus(); /** - * optional string token = 3; + * string token = 3; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ int getExpireTime(); /** - * optional string message = 5; + * string message = 5; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); @@ -713,205 +1086,253 @@ public interface MplGetTopupTokenResponseOrBuilder extends /** * Protobuf type {@code proto.MplGetTopupTokenResponse} */ - public static final class MplGetTopupTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - MplGetTopupTokenResponse, MplGetTopupTokenResponse.Builder> implements + public static final class MplGetTopupTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplGetTopupTokenResponse) MplGetTopupTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplGetTopupTokenResponse.newBuilder() to construct. + private MplGetTopupTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplGetTopupTokenResponse() { token_ = ""; message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplGetTopupTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplGetTopupTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 32: { + + expireTime_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.class, net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 status = 2; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int TOKEN_FIELD_NUMBER = 3; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 3; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 3; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 3; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private int expireTime_; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { return expireTime_; } - /** - * optional uint32 expire_time = 4; - */ - private void setExpireTime(int value) { - - expireTime_ = value; - } - /** - * optional uint32 expire_time = 4; - */ - private void clearExpireTime() { - - expireTime_ = 0; - } public static final int MESSAGE_FIELD_NUMBER = 5; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 5; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 5; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string message = 5; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -920,19 +1341,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != 0) { output.writeUInt32(2, status_); } - if (!token_.isEmpty()) { - output.writeString(3, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); } if (expireTime_ != 0) { output.writeUInt32(4, expireTime_); } - if (!message_.isEmpty()) { - output.writeString(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -944,412 +1367,781 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, status_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); } if (expireTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, expireTime_); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse other = (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (getExpireTime() + != other.getExpireTime()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplGetTopupTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplGetTopupTokenResponse) net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.class, net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + token_ = ""; + + expireTime_ = 0; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplGetTopupToken.internal_static_proto_MplGetTopupTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse build() { + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse buildPartial() { + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse result = new net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.token_ = token_; + result.expireTime_ = expireTime_; + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse other) { + if (other == net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getExpireTime() != 0) { + setExpireTime(other.getExpireTime()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ ; /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 2; + * uint32 status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 3; + * string token = 3; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 3; + * string token = 3; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 3; + * string token = 3; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private int expireTime_ ; /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { - return instance.getExpireTime(); + return expireTime_; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @param value The expireTime to set. + * @return This builder for chaining. */ public Builder setExpireTime(int value) { - copyOnWrite(); - instance.setExpireTime(value); + + expireTime_ = value; + onChanged(); return this; } /** - * optional uint32 expire_time = 4; + * uint32 expire_time = 4; + * @return This builder for chaining. */ public Builder clearExpireTime() { - copyOnWrite(); - instance.clearExpireTime(); + + expireTime_ = 0; + onChanged(); return this; } + private java.lang.Object message_ = ""; /** - * optional string message = 5; + * string message = 5; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 5; + * string message = 5; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 5; + * string message = 5; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplGetTopupTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse other = (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - expireTime_ = visitor.visitInt(expireTime_ != 0, expireTime_, - other.expireTime_ != 0, other.expireTime_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - status_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 32: { - - expireTime_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplGetTopupTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.MplGetTopupTokenResponse) private static final net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplGetTopupTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse(); } public static net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplGetTopupTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplGetTopupTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplGetTopupToken.MplGetTopupTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetTopupToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetTopupToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplGetTopupTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplGetTopupTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026MplGetTopupToken.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"\376\001\n\020MplGetTopupTo" + + "ken\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\034\n\024" + + "charge_mobile_number\030\002 \001(\004\022\016\n\006amount\030\003 \001" + + "(\004\022*\n\004type\030\004 \001(\0162\034.proto.MplGetTopupToke" + + "n.Type\"o\n\004Type\022\024\n\020IRANCELL_PREPAID\020\000\022\020\n\014" + + "IRANCELL_WOW\020\001\022\022\n\016IRANCELL_WIMAX\020\002\022\025\n\021IR" + + "ANCELL_POSTPAID\020\003\022\007\n\003MCI\020\004\022\013\n\007RIGHTEL\020\005\"" + + "\202\001\n\030MplGetTopupTokenResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\016\n\006status\030\002 \001(\r\022" + + "\r\n\005token\030\003 \001(\t\022\023\n\013expire_time\030\004 \001(\r\022\017\n\007m" + + "essage\030\005 \001(\tB\'\n\016net.iGap.protoB\025ProtoMpl" + + "GetTopupTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_MplGetTopupToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplGetTopupToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetTopupToken_descriptor, + new java.lang.String[] { "Request", "ChargeMobileNumber", "Amount", "Type", }); + internal_static_proto_MplGetTopupTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplGetTopupTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplGetTopupTokenResponse_descriptor, + new java.lang.String[] { "Response", "Status", "Token", "ExpireTime", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplSalesConfirm.java b/src/main/java/net/iGap/proto/ProtoMplSalesConfirm.java index e447c3e..bd41b8d 100644 --- a/src/main/java/net/iGap/proto/ProtoMplSalesConfirm.java +++ b/src/main/java/net/iGap/proto/ProtoMplSalesConfirm.java @@ -8,48 +8,155 @@ private ProtoMplSalesConfirm() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplSalesConfirmOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSalesConfirm) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 invoice_number = 2; + * uint64 invoice_number = 2; + * @return The invoiceNumber. */ long getInvoiceNumber(); /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @return The enum numeric value on the wire for confirm. */ int getConfirmValue(); /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @return The confirm. */ net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm getConfirm(); } /** * Protobuf type {@code proto.MplSalesConfirm} */ - public static final class MplSalesConfirm extends - com.google.protobuf.GeneratedMessageLite< - MplSalesConfirm, MplSalesConfirm.Builder> implements + public static final class MplSalesConfirm extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSalesConfirm) MplSalesConfirmOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSalesConfirm.newBuilder() to construct. + private MplSalesConfirm(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSalesConfirm() { + confirm_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSalesConfirm(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSalesConfirm( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + invoiceNumber_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + confirm_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirm_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.class, net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Builder.class); + } + /** * Protobuf enum {@code proto.MplSalesConfirm.Confirm} */ public enum Confirm - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * CONFIRM = 0; */ @@ -72,10 +179,16 @@ public enum Confirm public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -83,6 +196,10 @@ public static Confirm valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Confirm forNumber(int value) { switch (value) { case 0: return CONFIRM; @@ -103,6 +220,37 @@ public Confirm findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.getDescriptor().getEnumTypes().get(0); + } + + private static final Confirm[] VALUES = values(); + + public static Confirm valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Confirm(int value) { @@ -115,117 +263,71 @@ private Confirm(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int INVOICE_NUMBER_FIELD_NUMBER = 2; private long invoiceNumber_; /** - * optional uint64 invoice_number = 2; + * uint64 invoice_number = 2; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { return invoiceNumber_; } - /** - * optional uint64 invoice_number = 2; - */ - private void setInvoiceNumber(long value) { - - invoiceNumber_ = value; - } - /** - * optional uint64 invoice_number = 2; - */ - private void clearInvoiceNumber() { - - invoiceNumber_ = 0L; - } public static final int CONFIRM_FIELD_NUMBER = 3; private int confirm_; /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @return The enum numeric value on the wire for confirm. */ - public int getConfirmValue() { + @java.lang.Override public int getConfirmValue() { return confirm_; } /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @return The confirm. */ - public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm getConfirm() { - net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm result = net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm.forNumber(confirm_); + @java.lang.Override public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm getConfirm() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm result = net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm.valueOf(confirm_); return result == null ? net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm.UNRECOGNIZED : result; } - /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; - */ - private void setConfirmValue(int value) { - confirm_ = value; - } - /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; - */ - private void setConfirm(net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm value) { - if (value == null) { - throw new NullPointerException(); - } - - confirm_ = value.getNumber(); - } - /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; - */ - private void clearConfirm() { - - confirm_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -237,10 +339,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (confirm_ != net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm.CONFIRM.getNumber()) { output.writeEnum(3, confirm_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -256,452 +360,768 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, confirm_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm other = (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getInvoiceNumber() + != other.getInvoiceNumber()) return false; + if (confirm_ != other.confirm_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + INVOICE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInvoiceNumber()); + hash = (37 * hash) + CONFIRM_FIELD_NUMBER; + hash = (53 * hash) + confirm_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSalesConfirm} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSalesConfirm) net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirm_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.class, net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + invoiceNumber_ = 0L; + + confirm_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirm_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm build() { + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm buildPartial() { + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm result = new net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.invoiceNumber_ = invoiceNumber_; + result.confirm_ = confirm_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm) { + return mergeFrom((net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm other) { + if (other == net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getInvoiceNumber() != 0L) { + setInvoiceNumber(other.getInvoiceNumber()); + } + if (other.confirm_ != 0) { + setConfirmValue(other.getConfirmValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long invoiceNumber_ ; /** - * optional uint64 invoice_number = 2; + * uint64 invoice_number = 2; + * @return The invoiceNumber. */ + @java.lang.Override public long getInvoiceNumber() { - return instance.getInvoiceNumber(); + return invoiceNumber_; } /** - * optional uint64 invoice_number = 2; + * uint64 invoice_number = 2; + * @param value The invoiceNumber to set. + * @return This builder for chaining. */ public Builder setInvoiceNumber(long value) { - copyOnWrite(); - instance.setInvoiceNumber(value); + + invoiceNumber_ = value; + onChanged(); return this; } /** - * optional uint64 invoice_number = 2; + * uint64 invoice_number = 2; + * @return This builder for chaining. */ public Builder clearInvoiceNumber() { - copyOnWrite(); - instance.clearInvoiceNumber(); + + invoiceNumber_ = 0L; + onChanged(); return this; } + private int confirm_ = 0; /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @return The enum numeric value on the wire for confirm. */ - public int getConfirmValue() { - return instance.getConfirmValue(); + @java.lang.Override public int getConfirmValue() { + return confirm_; } /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @param value The enum numeric value on the wire for confirm to set. + * @return This builder for chaining. */ public Builder setConfirmValue(int value) { - copyOnWrite(); - instance.setConfirmValue(value); + + confirm_ = value; + onChanged(); return this; } /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @return The confirm. */ + @java.lang.Override public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm getConfirm() { - return instance.getConfirm(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm result = net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm.valueOf(confirm_); + return result == null ? net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm.UNRECOGNIZED : result; } /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @param value The confirm to set. + * @return This builder for chaining. */ public Builder setConfirm(net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.Confirm value) { - copyOnWrite(); - instance.setConfirm(value); + if (value == null) { + throw new NullPointerException(); + } + + confirm_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MplSalesConfirm.Confirm confirm = 3; + * .proto.MplSalesConfirm.Confirm confirm = 3; + * @return This builder for chaining. */ public Builder clearConfirm() { - copyOnWrite(); - instance.clearConfirm(); + + confirm_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplSalesConfirm) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm other = (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm) arg1; - request_ = visitor.visitMessage(request_, other.request_); - invoiceNumber_ = visitor.visitLong(invoiceNumber_ != 0L, invoiceNumber_, - other.invoiceNumber_ != 0L, other.invoiceNumber_); - confirm_ = visitor.visitInt(confirm_ != 0, confirm_, other.confirm_ != 0, other.confirm_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - invoiceNumber_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - confirm_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplSalesConfirm) + } + // @@protoc_insertion_point(class_scope:proto.MplSalesConfirm) private static final net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSalesConfirm(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm(); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSalesConfirm parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSalesConfirm(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirm getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplSalesConfirmResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSalesConfirmResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; + * @return Whether the sale field is set. */ boolean hasSale(); /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; + * @return The sale. */ net.iGap.proto.ProtoGlobal.MplSale getSale(); + /** + * .proto.MplSale sale = 2; + */ + net.iGap.proto.ProtoGlobal.MplSaleOrBuilder getSaleOrBuilder(); } /** * Protobuf type {@code proto.MplSalesConfirmResponse} */ - public static final class MplSalesConfirmResponse extends - com.google.protobuf.GeneratedMessageLite< - MplSalesConfirmResponse, MplSalesConfirmResponse.Builder> implements + public static final class MplSalesConfirmResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSalesConfirmResponse) MplSalesConfirmResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSalesConfirmResponse.newBuilder() to construct. + private MplSalesConfirmResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSalesConfirmResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSalesConfirmResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSalesConfirmResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.MplSale.Builder subBuilder = null; + if (sale_ != null) { + subBuilder = sale_.toBuilder(); + } + sale_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplSale.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sale_); + sale_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirmResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirmResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.class, net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SALE_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.MplSale sale_; /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; + * @return Whether the sale field is set. */ + @java.lang.Override public boolean hasSale() { return sale_ != null; } /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; + * @return The sale. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplSale getSale() { return sale_ == null ? net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance() : sale_; } /** - * optional .proto.MplSale sale = 2; - */ - private void setSale(net.iGap.proto.ProtoGlobal.MplSale value) { - if (value == null) { - throw new NullPointerException(); - } - sale_ = value; - - } - /** - * optional .proto.MplSale sale = 2; - */ - private void setSale( - net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - sale_ = builderForValue.build(); - - } - /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; */ - private void mergeSale(net.iGap.proto.ProtoGlobal.MplSale value) { - if (sale_ != null && - sale_ != net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance()) { - sale_ = - net.iGap.proto.ProtoGlobal.MplSale.newBuilder(sale_).mergeFrom(value).buildPartial(); - } else { - sale_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplSaleOrBuilder getSaleOrBuilder() { + return getSale(); } - /** - * optional .proto.MplSale sale = 2; - */ - private void clearSale() { sale_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -710,10 +1130,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sale_ != null) { output.writeMessage(2, getSale()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -725,303 +1147,656 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSale()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse other = (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasSale() != other.hasSale()) return false; + if (hasSale()) { + if (!getSale() + .equals(other.getSale())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasSale()) { + hash = (37 * hash) + SALE_FIELD_NUMBER; + hash = (53 * hash) + getSale().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSalesConfirmResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSalesConfirmResponse) net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirmResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirmResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.class, net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (saleBuilder_ == null) { + sale_ = null; + } else { + sale_ = null; + saleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSalesConfirm.internal_static_proto_MplSalesConfirmResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse build() { + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse buildPartial() { + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse result = new net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (saleBuilder_ == null) { + result.sale_ = sale_; + } else { + result.sale_ = saleBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse) { + return mergeFrom((net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse other) { + if (other == net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasSale()) { + mergeSale(other.getSale()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.MplSale sale_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplSale, net.iGap.proto.ProtoGlobal.MplSale.Builder, net.iGap.proto.ProtoGlobal.MplSaleOrBuilder> saleBuilder_; /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; + * @return Whether the sale field is set. */ public boolean hasSale() { - return instance.hasSale(); + return saleBuilder_ != null || sale_ != null; } /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; + * @return The sale. */ public net.iGap.proto.ProtoGlobal.MplSale getSale() { - return instance.getSale(); + if (saleBuilder_ == null) { + return sale_ == null ? net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance() : sale_; + } else { + return saleBuilder_.getMessage(); + } } /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; */ public Builder setSale(net.iGap.proto.ProtoGlobal.MplSale value) { - copyOnWrite(); - instance.setSale(value); - return this; + if (saleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sale_ = value; + onChanged(); + } else { + saleBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; */ public Builder setSale( net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - copyOnWrite(); - instance.setSale(builderForValue); + if (saleBuilder_ == null) { + sale_ = builderForValue.build(); + onChanged(); + } else { + saleBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; */ public Builder mergeSale(net.iGap.proto.ProtoGlobal.MplSale value) { - copyOnWrite(); - instance.mergeSale(value); + if (saleBuilder_ == null) { + if (sale_ != null) { + sale_ = + net.iGap.proto.ProtoGlobal.MplSale.newBuilder(sale_).mergeFrom(value).buildPartial(); + } else { + sale_ = value; + } + onChanged(); + } else { + saleBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.MplSale sale = 2; + * .proto.MplSale sale = 2; */ - public Builder clearSale() { copyOnWrite(); - instance.clearSale(); + public Builder clearSale() { + if (saleBuilder_ == null) { + sale_ = null; + onChanged(); + } else { + sale_ = null; + saleBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.MplSalesConfirmResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse other = (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - sale_ = visitor.visitMessage(sale_, other.sale_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.MplSale.Builder subBuilder = null; - if (sale_ != null) { - subBuilder = sale_.toBuilder(); - } - sale_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplSale.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sale_); - sale_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.MplSale sale = 2; + */ + public net.iGap.proto.ProtoGlobal.MplSale.Builder getSaleBuilder() { + + onChanged(); + return getSaleFieldBuilder().getBuilder(); + } + /** + * .proto.MplSale sale = 2; + */ + public net.iGap.proto.ProtoGlobal.MplSaleOrBuilder getSaleOrBuilder() { + if (saleBuilder_ != null) { + return saleBuilder_.getMessageOrBuilder(); + } else { + return sale_ == null ? + net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance() : sale_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.MplSale sale = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplSale, net.iGap.proto.ProtoGlobal.MplSale.Builder, net.iGap.proto.ProtoGlobal.MplSaleOrBuilder> + getSaleFieldBuilder() { + if (saleBuilder_ == null) { + saleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplSale, net.iGap.proto.ProtoGlobal.MplSale.Builder, net.iGap.proto.ProtoGlobal.MplSaleOrBuilder>( + getSale(), + getParentForChildren(), + isClean()); + sale_ = null; } + return saleBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.MplSalesConfirmResponse) + } // @@protoc_insertion_point(class_scope:proto.MplSalesConfirmResponse) private static final net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSalesConfirmResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse(); } public static net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSalesConfirmResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSalesConfirmResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesConfirm.MplSalesConfirmResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSalesConfirm_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSalesConfirm_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSalesConfirmResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSalesConfirmResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025MplSalesConfirm.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"\240\001\n\017" + + "MplSalesConfirm\022\037\n\007request\030\001 \001(\0132\016.proto" + + ".Request\022\026\n\016invoice_number\030\002 \001(\004\022/\n\007conf" + + "irm\030\003 \001(\0162\036.proto.MplSalesConfirm.Confir" + + "m\"#\n\007Confirm\022\013\n\007CONFIRM\020\000\022\013\n\007REVERSE\020\001\"Z" + + "\n\027MplSalesConfirmResponse\022!\n\010response\030\001 " + + "\001(\0132\017.proto.Response\022\034\n\004sale\030\002 \001(\0132\016.pro" + + "to.MplSaleB&\n\016net.iGap.protoB\024ProtoMplSa" + + "lesConfirmb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_MplSalesConfirm_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplSalesConfirm_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSalesConfirm_descriptor, + new java.lang.String[] { "Request", "InvoiceNumber", "Confirm", }); + internal_static_proto_MplSalesConfirmResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplSalesConfirmResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSalesConfirmResponse_descriptor, + new java.lang.String[] { "Response", "Sale", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplSalesList.java b/src/main/java/net/iGap/proto/ProtoMplSalesList.java index 1250193..23154af 100644 --- a/src/main/java/net/iGap/proto/ProtoMplSalesList.java +++ b/src/main/java/net/iGap/proto/ProtoMplSalesList.java @@ -8,190 +8,250 @@ private ProtoMplSalesList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplSalesListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSalesList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoGlobal.MplSale.Status getStatus(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 3; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.MplSalesList} */ - public static final class MplSalesList extends - com.google.protobuf.GeneratedMessageLite< - MplSalesList, MplSalesList.Builder> implements + public static final class MplSalesList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSalesList) MplSalesListOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSalesList.newBuilder() to construct. + private MplSalesList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSalesList() { + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSalesList(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSalesList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesList.MplSalesList.class, net.iGap.proto.ProtoMplSalesList.MplSalesList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoGlobal.MplSale.Status getStatus() { - net.iGap.proto.ProtoGlobal.MplSale.Status result = net.iGap.proto.ProtoGlobal.MplSale.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplSale.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplSale.Status result = net.iGap.proto.ProtoGlobal.MplSale.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoGlobal.MplSale.Status.UNRECOGNIZED : result; } - /** - * optional .proto.MplSale.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.MplSale.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoGlobal.MplSale.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.MplSale.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int PAGINATION_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 3; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 3; - */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - - } - /** - * optional .proto.Pagination pagination = 3; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -203,10 +263,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(3, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -222,357 +284,685 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSalesList.MplSalesList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSalesList.MplSalesList other = (net.iGap.proto.ProtoMplSalesList.MplSalesList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (status_ != other.status_) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSalesList.MplSalesList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSalesList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSalesList.MplSalesList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSalesList) net.iGap.proto.ProtoMplSalesList.MplSalesListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesList.MplSalesList.class, net.iGap.proto.ProtoMplSalesList.MplSalesList.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSalesList.MplSalesList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + status_ = 0; + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesList getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSalesList.MplSalesList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesList build() { + net.iGap.proto.ProtoMplSalesList.MplSalesList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesList buildPartial() { + net.iGap.proto.ProtoMplSalesList.MplSalesList result = new net.iGap.proto.ProtoMplSalesList.MplSalesList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.status_ = status_; + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSalesList.MplSalesList) { + return mergeFrom((net.iGap.proto.ProtoMplSalesList.MplSalesList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplSalesList.MplSalesList other) { + if (other == net.iGap.proto.ProtoMplSalesList.MplSalesList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSalesList.MplSalesList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSalesList.MplSalesList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int status_ = 0; /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplSale.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplSale.Status result = net.iGap.proto.ProtoGlobal.MplSale.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.MplSale.Status.UNRECOGNIZED : result; } /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoGlobal.MplSale.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MplSale.Status status = 2; + * .proto.MplSale.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.MplSalesList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSalesList.MplSalesList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSalesList.MplSalesList other = (net.iGap.proto.ProtoMplSalesList.MplSalesList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSalesList.MplSalesList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.MplSalesList) + } // @@protoc_insertion_point(class_scope:proto.MplSalesList) private static final net.iGap.proto.ProtoMplSalesList.MplSalesList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSalesList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSalesList.MplSalesList(); } public static net.iGap.proto.ProtoMplSalesList.MplSalesList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSalesList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSalesList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplSalesListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSalesListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.MplSale sale = 2; @@ -587,82 +977,160 @@ public interface MplSalesListResponseOrBuilder extends * repeated .proto.MplSale sale = 2; */ int getSaleCount(); + /** + * repeated .proto.MplSale sale = 2; + */ + java.util.List + getSaleOrBuilderList(); + /** + * repeated .proto.MplSale sale = 2; + */ + net.iGap.proto.ProtoGlobal.MplSaleOrBuilder getSaleOrBuilder( + int index); } /** * Protobuf type {@code proto.MplSalesListResponse} */ - public static final class MplSalesListResponse extends - com.google.protobuf.GeneratedMessageLite< - MplSalesListResponse, MplSalesListResponse.Builder> implements + public static final class MplSalesListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSalesListResponse) MplSalesListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSalesListResponse.newBuilder() to construct. + private MplSalesListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSalesListResponse() { - sale_ = emptyProtobufList(); + sale_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSalesListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSalesListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sale_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sale_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.MplSale.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sale_ = java.util.Collections.unmodifiableList(sale_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.class, net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.Builder.class); } - private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SALE_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList sale_; + private java.util.List sale_; /** * repeated .proto.MplSale sale = 2; */ + @java.lang.Override public java.util.List getSaleList() { return sale_; } /** * repeated .proto.MplSale sale = 2; */ + @java.lang.Override public java.util.List getSaleOrBuilderList() { return sale_; @@ -670,108 +1138,38 @@ public java.util.List getSaleList() { /** * repeated .proto.MplSale sale = 2; */ + @java.lang.Override public int getSaleCount() { return sale_.size(); } /** * repeated .proto.MplSale sale = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplSale getSale(int index) { return sale_.get(index); } /** * repeated .proto.MplSale sale = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplSaleOrBuilder getSaleOrBuilder( int index) { return sale_.get(index); } - private void ensureSaleIsMutable() { - if (!sale_.isModifiable()) { - sale_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(sale_); - } - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void setSale( - int index, net.iGap.proto.ProtoGlobal.MplSale value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSaleIsMutable(); - sale_.set(index, value); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void setSale( - int index, net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - ensureSaleIsMutable(); - sale_.set(index, builderForValue.build()); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void addSale(net.iGap.proto.ProtoGlobal.MplSale value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSaleIsMutable(); - sale_.add(value); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void addSale( - int index, net.iGap.proto.ProtoGlobal.MplSale value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSaleIsMutable(); - sale_.add(index, value); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void addSale( - net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - ensureSaleIsMutable(); - sale_.add(builderForValue.build()); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void addSale( - int index, net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - ensureSaleIsMutable(); - sale_.add(index, builderForValue.build()); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void addAllSale( - java.lang.Iterable values) { - ensureSaleIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, sale_); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void clearSale() { - sale_ = emptyProtobufList(); - } - /** - * repeated .proto.MplSale sale = 2; - */ - private void removeSale(int index) { - ensureSaleIsMutable(); - sale_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -780,10 +1178,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < sale_.size(); i++) { output.writeMessage(2, sale_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -795,162 +1195,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, sale_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSalesList.MplSalesListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSalesList.MplSalesListResponse other = (net.iGap.proto.ProtoMplSalesList.MplSalesListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getSaleList() + .equals(other.getSaleList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getSaleCount() > 0) { + hash = (37 * hash) + SALE_FIELD_NUMBER; + hash = (53 * hash) + getSaleList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSalesList.MplSalesListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSalesListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSalesList.MplSalesListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSalesListResponse) net.iGap.proto.ProtoMplSalesList.MplSalesListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.class, net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSaleFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (saleBuilder_ == null) { + sale_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + saleBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSalesList.internal_static_proto_MplSalesListResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesListResponse build() { + net.iGap.proto.ProtoMplSalesList.MplSalesListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesListResponse buildPartial() { + net.iGap.proto.ProtoMplSalesList.MplSalesListResponse result = new net.iGap.proto.ProtoMplSalesList.MplSalesListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (saleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sale_ = java.util.Collections.unmodifiableList(sale_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sale_ = sale_; + } else { + result.sale_ = saleBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSalesList.MplSalesListResponse) { + return mergeFrom((net.iGap.proto.ProtoMplSalesList.MplSalesListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplSalesList.MplSalesListResponse other) { + if (other == net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (saleBuilder_ == null) { + if (!other.sale_.isEmpty()) { + if (sale_.isEmpty()) { + sale_ = other.sale_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSaleIsMutable(); + sale_.addAll(other.sale_); + } + onChanged(); + } + } else { + if (!other.sale_.isEmpty()) { + if (saleBuilder_.isEmpty()) { + saleBuilder_.dispose(); + saleBuilder_ = null; + sale_ = other.sale_; + bitField0_ = (bitField0_ & ~0x00000001); + saleBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSaleFieldBuilder() : null; + } else { + saleBuilder_.addAllMessages(other.sale_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSalesList.MplSalesListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSalesList.MplSalesListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List sale_ = + java.util.Collections.emptyList(); + private void ensureSaleIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sale_ = new java.util.ArrayList(sale_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplSale, net.iGap.proto.ProtoGlobal.MplSale.Builder, net.iGap.proto.ProtoGlobal.MplSaleOrBuilder> saleBuilder_; /** * repeated .proto.MplSale sale = 2; */ public java.util.List getSaleList() { - return java.util.Collections.unmodifiableList( - instance.getSaleList()); + if (saleBuilder_ == null) { + return java.util.Collections.unmodifiableList(sale_); + } else { + return saleBuilder_.getMessageList(); + } } /** * repeated .proto.MplSale sale = 2; */ public int getSaleCount() { - return instance.getSaleCount(); - }/** + if (saleBuilder_ == null) { + return sale_.size(); + } else { + return saleBuilder_.getCount(); + } + } + /** * repeated .proto.MplSale sale = 2; */ public net.iGap.proto.ProtoGlobal.MplSale getSale(int index) { - return instance.getSale(index); + if (saleBuilder_ == null) { + return sale_.get(index); + } else { + return saleBuilder_.getMessage(index); + } } /** * repeated .proto.MplSale sale = 2; */ public Builder setSale( int index, net.iGap.proto.ProtoGlobal.MplSale value) { - copyOnWrite(); - instance.setSale(index, value); + if (saleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaleIsMutable(); + sale_.set(index, value); + onChanged(); + } else { + saleBuilder_.setMessage(index, value); + } return this; } /** @@ -958,16 +1713,29 @@ public Builder setSale( */ public Builder setSale( int index, net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - copyOnWrite(); - instance.setSale(index, builderForValue); + if (saleBuilder_ == null) { + ensureSaleIsMutable(); + sale_.set(index, builderForValue.build()); + onChanged(); + } else { + saleBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.MplSale sale = 2; */ public Builder addSale(net.iGap.proto.ProtoGlobal.MplSale value) { - copyOnWrite(); - instance.addSale(value); + if (saleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaleIsMutable(); + sale_.add(value); + onChanged(); + } else { + saleBuilder_.addMessage(value); + } return this; } /** @@ -975,8 +1743,16 @@ public Builder addSale(net.iGap.proto.ProtoGlobal.MplSale value) { */ public Builder addSale( int index, net.iGap.proto.ProtoGlobal.MplSale value) { - copyOnWrite(); - instance.addSale(index, value); + if (saleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaleIsMutable(); + sale_.add(index, value); + onChanged(); + } else { + saleBuilder_.addMessage(index, value); + } return this; } /** @@ -984,8 +1760,13 @@ public Builder addSale( */ public Builder addSale( net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - copyOnWrite(); - instance.addSale(builderForValue); + if (saleBuilder_ == null) { + ensureSaleIsMutable(); + sale_.add(builderForValue.build()); + onChanged(); + } else { + saleBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -993,8 +1774,13 @@ public Builder addSale( */ public Builder addSale( int index, net.iGap.proto.ProtoGlobal.MplSale.Builder builderForValue) { - copyOnWrite(); - instance.addSale(index, builderForValue); + if (saleBuilder_ == null) { + ensureSaleIsMutable(); + sale_.add(index, builderForValue.build()); + onChanged(); + } else { + saleBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1002,146 +1788,210 @@ public Builder addSale( */ public Builder addAllSale( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSale(values); + if (saleBuilder_ == null) { + ensureSaleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sale_); + onChanged(); + } else { + saleBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.MplSale sale = 2; */ public Builder clearSale() { - copyOnWrite(); - instance.clearSale(); + if (saleBuilder_ == null) { + sale_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + saleBuilder_.clear(); + } return this; } /** * repeated .proto.MplSale sale = 2; */ public Builder removeSale(int index) { - copyOnWrite(); - instance.removeSale(index); + if (saleBuilder_ == null) { + ensureSaleIsMutable(); + sale_.remove(index); + onChanged(); + } else { + saleBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.MplSalesListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSalesList.MplSalesListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - sale_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSalesList.MplSalesListResponse other = (net.iGap.proto.ProtoMplSalesList.MplSalesListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - sale_= visitor.visitList(sale_, other.sale_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!sale_.isModifiable()) { - sale_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(sale_); - } - sale_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.MplSale.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.MplSale sale = 2; + */ + public net.iGap.proto.ProtoGlobal.MplSale.Builder getSaleBuilder( + int index) { + return getSaleFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.MplSale sale = 2; + */ + public net.iGap.proto.ProtoGlobal.MplSaleOrBuilder getSaleOrBuilder( + int index) { + if (saleBuilder_ == null) { + return sale_.get(index); } else { + return saleBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.MplSale sale = 2; + */ + public java.util.List + getSaleOrBuilderList() { + if (saleBuilder_ != null) { + return saleBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sale_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSalesList.MplSalesListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.MplSale sale = 2; + */ + public net.iGap.proto.ProtoGlobal.MplSale.Builder addSaleBuilder() { + return getSaleFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance()); + } + /** + * repeated .proto.MplSale sale = 2; + */ + public net.iGap.proto.ProtoGlobal.MplSale.Builder addSaleBuilder( + int index) { + return getSaleFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.MplSale.getDefaultInstance()); + } + /** + * repeated .proto.MplSale sale = 2; + */ + public java.util.List + getSaleBuilderList() { + return getSaleFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplSale, net.iGap.proto.ProtoGlobal.MplSale.Builder, net.iGap.proto.ProtoGlobal.MplSaleOrBuilder> + getSaleFieldBuilder() { + if (saleBuilder_ == null) { + saleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplSale, net.iGap.proto.ProtoGlobal.MplSale.Builder, net.iGap.proto.ProtoGlobal.MplSaleOrBuilder>( + sale_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sale_ = null; } + return saleBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplSalesListResponse) + } + // @@protoc_insertion_point(class_scope:proto.MplSalesListResponse) private static final net.iGap.proto.ProtoMplSalesList.MplSalesListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSalesListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSalesList.MplSalesListResponse(); } public static net.iGap.proto.ProtoMplSalesList.MplSalesListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSalesListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSalesListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSalesList.MplSalesListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSalesList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSalesList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSalesListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSalesListResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022MplSalesList.proto\022\005proto\032\rRequest.pro" + + "to\032\016Response.proto\032\014Global.proto\"}\n\014MplS" + + "alesList\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022%\n\006status\030\002 \001(\0162\025.proto.MplSale.Status" + + "\022%\n\npagination\030\003 \001(\0132\021.proto.Pagination\"" + + "W\n\024MplSalesListResponse\022!\n\010response\030\001 \001(" + + "\0132\017.proto.Response\022\034\n\004sale\030\002 \003(\0132\016.proto" + + ".MplSaleB#\n\016net.iGap.protoB\021ProtoMplSale" + + "sListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_MplSalesList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplSalesList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSalesList_descriptor, + new java.lang.String[] { "Request", "Status", "Pagination", }); + internal_static_proto_MplSalesListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplSalesListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSalesListResponse_descriptor, + new java.lang.String[] { "Response", "Sale", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplSetCardToCardResult.java b/src/main/java/net/iGap/proto/ProtoMplSetCardToCardResult.java index 6b54828..991491c 100644 --- a/src/main/java/net/iGap/proto/ProtoMplSetCardToCardResult.java +++ b/src/main/java/net/iGap/proto/ProtoMplSetCardToCardResult.java @@ -8,181 +8,255 @@ private ProtoMplSetCardToCardResult() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplSetCardToCardResultOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSetCardToCardResult) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string data = 2; + * string data = 2; + * @return The data. */ java.lang.String getData(); /** - * optional string data = 2; + * string data = 2; + * @return The bytes for data. */ com.google.protobuf.ByteString getDataBytes(); /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return The toUserId. */ long getToUserId(); } /** * Protobuf type {@code proto.MplSetCardToCardResult} */ - public static final class MplSetCardToCardResult extends - com.google.protobuf.GeneratedMessageLite< - MplSetCardToCardResult, MplSetCardToCardResult.Builder> implements + public static final class MplSetCardToCardResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSetCardToCardResult) MplSetCardToCardResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSetCardToCardResult.newBuilder() to construct. + private MplSetCardToCardResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSetCardToCardResult() { data_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSetCardToCardResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSetCardToCardResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + data_ = s; + break; + } + case 24: { + + toUserId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.class, net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int DATA_FIELD_NUMBER = 2; - private java.lang.String data_; + private volatile java.lang.Object data_; /** - * optional string data = 2; + * string data = 2; + * @return The data. */ + @java.lang.Override public java.lang.String getData() { - return data_; + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } } /** - * optional string data = 2; + * string data = 2; + * @return The bytes for data. */ + @java.lang.Override public com.google.protobuf.ByteString getDataBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(data_); - } - /** - * optional string data = 2; - */ - private void setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - } - /** - * optional string data = 2; - */ - private void clearData() { - - data_ = getDefaultInstance().getData(); - } - /** - * optional string data = 2; - */ - private void setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - data_ = value.toStringUtf8(); + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TO_USER_ID_FIELD_NUMBER = 3; private long toUserId_; /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { return toUserId_; } - /** - * optional uint64 to_user_id = 3; - */ - private void setToUserId(long value) { - - toUserId_ = value; - } - /** - * optional uint64 to_user_id = 3; - */ - private void clearToUserId() { - - toUserId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!data_.isEmpty()) { - output.writeString(2, getData()); + if (!getDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); } if (toUserId_ != 0L) { output.writeUInt64(3, toUserId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,412 +264,756 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getData()); + if (!getDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); } if (toUserId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, toUserId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult other = (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getData() + .equals(other.getData())) return false; + if (getToUserId() + != other.getToUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + TO_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSetCardToCardResult} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSetCardToCardResult) net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.class, net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + data_ = ""; + + toUserId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResult_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult build() { + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult buildPartial() { + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult result = new net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.data_ = data_; + result.toUserId_ = toUserId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult) { + return mergeFrom((net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult other) { + if (other == net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getData().isEmpty()) { + data_ = other.data_; + onChanged(); + } + if (other.getToUserId() != 0L) { + setToUserId(other.getToUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object data_ = ""; /** - * optional string data = 2; + * string data = 2; + * @return The data. */ public java.lang.String getData() { - return instance.getData(); + java.lang.Object ref = data_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string data = 2; + * string data = 2; + * @return The bytes for data. */ public com.google.protobuf.ByteString getDataBytes() { - return instance.getDataBytes(); + java.lang.Object ref = data_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string data = 2; + * string data = 2; + * @param value The data to set. + * @return This builder for chaining. */ public Builder setData( java.lang.String value) { - copyOnWrite(); - instance.setData(value); + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); return this; } /** - * optional string data = 2; + * string data = 2; + * @return This builder for chaining. */ public Builder clearData() { - copyOnWrite(); - instance.clearData(); + + data_ = getDefaultInstance().getData(); + onChanged(); return this; } /** - * optional string data = 2; + * string data = 2; + * @param value The bytes for data to set. + * @return This builder for chaining. */ public Builder setDataBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDataBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + data_ = value; + onChanged(); return this; } + private long toUserId_ ; /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { - return instance.getToUserId(); + return toUserId_; } /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @param value The toUserId to set. + * @return This builder for chaining. */ public Builder setToUserId(long value) { - copyOnWrite(); - instance.setToUserId(value); + + toUserId_ = value; + onChanged(); return this; } /** - * optional uint64 to_user_id = 3; + * uint64 to_user_id = 3; + * @return This builder for chaining. */ public Builder clearToUserId() { - copyOnWrite(); - instance.clearToUserId(); + + toUserId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplSetCardToCardResult) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult other = (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult) arg1; - request_ = visitor.visitMessage(request_, other.request_); - data_ = visitor.visitString(!data_.isEmpty(), data_, - !other.data_.isEmpty(), other.data_); - toUserId_ = visitor.visitLong(toUserId_ != 0L, toUserId_, - other.toUserId_ != 0L, other.toUserId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - case 24: { - - toUserId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplSetCardToCardResult) + } + // @@protoc_insertion_point(class_scope:proto.MplSetCardToCardResult) private static final net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSetCardToCardResult(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult(); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSetCardToCardResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSetCardToCardResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplSetCardToCardResultResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSetCardToCardResultResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.MplSetCardToCardResultResponse} */ - public static final class MplSetCardToCardResultResponse extends - com.google.protobuf.GeneratedMessageLite< - MplSetCardToCardResultResponse, MplSetCardToCardResultResponse.Builder> implements + public static final class MplSetCardToCardResultResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSetCardToCardResultResponse) MplSetCardToCardResultResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSetCardToCardResultResponse.newBuilder() to construct. + private MplSetCardToCardResultResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSetCardToCardResultResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSetCardToCardResultResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSetCardToCardResultResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResultResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResultResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.class, net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -603,244 +1021,510 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse other = (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSetCardToCardResultResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSetCardToCardResultResponse) net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResultResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResultResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.class, net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSetCardToCardResult.internal_static_proto_MplSetCardToCardResultResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse build() { + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse buildPartial() { + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse result = new net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse) { + return mergeFrom((net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse other) { + if (other == net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.MplSetCardToCardResultResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse other = (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.MplSetCardToCardResultResponse) + } // @@protoc_insertion_point(class_scope:proto.MplSetCardToCardResultResponse) private static final net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSetCardToCardResultResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse(); } public static net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSetCardToCardResultResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSetCardToCardResultResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetCardToCardResult.MplSetCardToCardResultResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSetCardToCardResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSetCardToCardResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSetCardToCardResultResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSetCardToCardResultResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034MplSetCardToCardResult.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"[\n\026MplSetCa" + + "rdToCardResult\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\014\n\004data\030\002 \001(\t\022\022\n\nto_user_id\030\003 \001(" + + "\004\"C\n\036MplSetCardToCardResultResponse\022!\n\010r" + + "esponse\030\001 \001(\0132\017.proto.ResponseB-\n\016net.iG" + + "ap.protoB\033ProtoMplSetCardToCardResultb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_MplSetCardToCardResult_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplSetCardToCardResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSetCardToCardResult_descriptor, + new java.lang.String[] { "Request", "Data", "ToUserId", }); + internal_static_proto_MplSetCardToCardResultResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplSetCardToCardResultResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSetCardToCardResultResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplSetSalesResult.java b/src/main/java/net/iGap/proto/ProtoMplSetSalesResult.java index fce93ae..35dc59b 100644 --- a/src/main/java/net/iGap/proto/ProtoMplSetSalesResult.java +++ b/src/main/java/net/iGap/proto/ProtoMplSetSalesResult.java @@ -8,25 +8,39 @@ private ProtoMplSetSalesResult() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplSetSalesResultOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSetSalesResult) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string data = 2; + * string data = 2; + * @return The data. */ java.lang.String getData(); /** - * optional string data = 2; + * string data = 2; + * @return The bytes for data. */ com.google.protobuf.ByteString getDataBytes(); @@ -34,124 +48,190 @@ public interface MplSetSalesResultOrBuilder extends /** * Protobuf type {@code proto.MplSetSalesResult} */ - public static final class MplSetSalesResult extends - com.google.protobuf.GeneratedMessageLite< - MplSetSalesResult, MplSetSalesResult.Builder> implements + public static final class MplSetSalesResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSetSalesResult) MplSetSalesResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSetSalesResult.newBuilder() to construct. + private MplSetSalesResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSetSalesResult() { data_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSetSalesResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSetSalesResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + data_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.class, net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int DATA_FIELD_NUMBER = 2; - private java.lang.String data_; + private volatile java.lang.Object data_; /** - * optional string data = 2; + * string data = 2; + * @return The data. */ + @java.lang.Override public java.lang.String getData() { - return data_; + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } } /** - * optional string data = 2; + * string data = 2; + * @return The bytes for data. */ + @java.lang.Override public com.google.protobuf.ByteString getDataBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(data_); - } - /** - * optional string data = 2; - */ - private void setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - } - /** - * optional string data = 2; - */ - private void clearData() { - - data_ = getDefaultInstance().getData(); + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string data = 2; - */ - private void setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - data_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!data_.isEmpty()) { - output.writeString(2, getData()); + if (!getDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,378 +239,710 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getData()); + if (!getDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult other = (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getData() + .equals(other.getData())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSetSalesResult} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSetSalesResult) net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.class, net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + data_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResult_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult build() { + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult buildPartial() { + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult result = new net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.data_ = data_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult) { + return mergeFrom((net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult other) { + if (other == net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getData().isEmpty()) { + data_ = other.data_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object data_ = ""; /** - * optional string data = 2; + * string data = 2; + * @return The data. */ public java.lang.String getData() { - return instance.getData(); + java.lang.Object ref = data_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string data = 2; + * string data = 2; + * @return The bytes for data. */ public com.google.protobuf.ByteString getDataBytes() { - return instance.getDataBytes(); + java.lang.Object ref = data_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string data = 2; + * string data = 2; + * @param value The data to set. + * @return This builder for chaining. */ public Builder setData( java.lang.String value) { - copyOnWrite(); - instance.setData(value); + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); return this; } /** - * optional string data = 2; + * string data = 2; + * @return This builder for chaining. */ public Builder clearData() { - copyOnWrite(); - instance.clearData(); + + data_ = getDefaultInstance().getData(); + onChanged(); return this; } /** - * optional string data = 2; + * string data = 2; + * @param value The bytes for data to set. + * @return This builder for chaining. */ public Builder setDataBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDataBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + data_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplSetSalesResult) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult other = (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult) arg1; - request_ = visitor.visitMessage(request_, other.request_); - data_ = visitor.visitString(!data_.isEmpty(), data_, - !other.data_.isEmpty(), other.data_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplSetSalesResult) + } + // @@protoc_insertion_point(class_scope:proto.MplSetSalesResult) private static final net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSetSalesResult(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult(); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSetSalesResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSetSalesResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplSetSalesResultResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplSetSalesResultResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.MplSetSalesResultResponse} */ - public static final class MplSetSalesResultResponse extends - com.google.protobuf.GeneratedMessageLite< - MplSetSalesResultResponse, MplSetSalesResultResponse.Builder> implements + public static final class MplSetSalesResultResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplSetSalesResultResponse) MplSetSalesResultResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplSetSalesResultResponse.newBuilder() to construct. + private MplSetSalesResultResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplSetSalesResultResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplSetSalesResultResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplSetSalesResultResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResultResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResultResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.class, net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -538,244 +950,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse other = (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplSetSalesResultResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplSetSalesResultResponse) net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResultResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResultResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.class, net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplSetSalesResult.internal_static_proto_MplSetSalesResultResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse build() { + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse buildPartial() { + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse result = new net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse) { + return mergeFrom((net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse other) { + if (other == net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.MplSetSalesResultResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse other = (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.MplSetSalesResultResponse) + } // @@protoc_insertion_point(class_scope:proto.MplSetSalesResultResponse) private static final net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplSetSalesResultResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse(); } public static net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplSetSalesResultResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplSetSalesResultResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMplSetSalesResult.MplSetSalesResultResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSetSalesResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSetSalesResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplSetSalesResultResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplSetSalesResultResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027MplSetSalesResult.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"B\n\021MplSetSalesRe" + + "sult\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\014\n" + + "\004data\030\002 \001(\t\">\n\031MplSetSalesResultResponse" + + "\022!\n\010response\030\001 \001(\0132\017.proto.ResponseB(\n\016n" + + "et.iGap.protoB\026ProtoMplSetSalesResultb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_MplSetSalesResult_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplSetSalesResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSetSalesResult_descriptor, + new java.lang.String[] { "Request", "Data", }); + internal_static_proto_MplSetSalesResultResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplSetSalesResultResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplSetSalesResultResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplTransactionInfo.java b/src/main/java/net/iGap/proto/ProtoMplTransactionInfo.java index fa7415c..0e337c7 100644 --- a/src/main/java/net/iGap/proto/ProtoMplTransactionInfo.java +++ b/src/main/java/net/iGap/proto/ProtoMplTransactionInfo.java @@ -8,25 +8,39 @@ private ProtoMplTransactionInfo() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplTransactionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransactionInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -34,124 +48,190 @@ public interface MplTransactionInfoOrBuilder extends /** * Protobuf type {@code proto.MplTransactionInfo} */ - public static final class MplTransactionInfo extends - com.google.protobuf.GeneratedMessageLite< - MplTransactionInfo, MplTransactionInfo.Builder> implements + public static final class MplTransactionInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransactionInfo) MplTransactionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplTransactionInfo.newBuilder() to construct. + private MplTransactionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplTransactionInfo() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplTransactionInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplTransactionInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.class, net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,515 +239,832 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo other = (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransactionInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransactionInfo) net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.class, net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfo_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo build() { + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo buildPartial() { + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo result = new net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo) { + return mergeFrom((net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo other) { + if (other == net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplTransactionInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo other = (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplTransactionInfo) + } + // @@protoc_insertion_point(class_scope:proto.MplTransactionInfo) private static final net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplTransactionInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo(); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplTransactionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplTransactionInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplTransactionInfoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransactionInfoResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; + * @return Whether the transaction field is set. */ boolean hasTransaction(); /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; + * @return The transaction. */ net.iGap.proto.ProtoGlobal.MplTransaction getTransaction(); + /** + * .proto.MplTransaction transaction = 2; + */ + net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder getTransactionOrBuilder(); /** - * optional string message = 3; + * string message = 3; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional uint32 status = 4; + * uint32 status = 4; + * @return The status. */ int getStatus(); } /** * Protobuf type {@code proto.MplTransactionInfoResponse} */ - public static final class MplTransactionInfoResponse extends - com.google.protobuf.GeneratedMessageLite< - MplTransactionInfoResponse, MplTransactionInfoResponse.Builder> implements + public static final class MplTransactionInfoResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransactionInfoResponse) MplTransactionInfoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplTransactionInfoResponse.newBuilder() to construct. + private MplTransactionInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplTransactionInfoResponse() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplTransactionInfoResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplTransactionInfoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.MplTransaction.Builder subBuilder = null; + if (transaction_ != null) { + subBuilder = transaction_.toBuilder(); + } + transaction_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transaction_); + transaction_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 32: { + + status_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.class, net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TRANSACTION_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.MplTransaction transaction_; /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; + * @return Whether the transaction field is set. */ + @java.lang.Override public boolean hasTransaction() { return transaction_ != null; } /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; + * @return The transaction. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction getTransaction() { return transaction_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance() : transaction_; } /** - * optional .proto.MplTransaction transaction = 2; - */ - private void setTransaction(net.iGap.proto.ProtoGlobal.MplTransaction value) { - if (value == null) { - throw new NullPointerException(); - } - transaction_ = value; - - } - /** - * optional .proto.MplTransaction transaction = 2; - */ - private void setTransaction( - net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - transaction_ = builderForValue.build(); - - } - /** - * optional .proto.MplTransaction transaction = 2; - */ - private void mergeTransaction(net.iGap.proto.ProtoGlobal.MplTransaction value) { - if (transaction_ != null && - transaction_ != net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance()) { - transaction_ = - net.iGap.proto.ProtoGlobal.MplTransaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); - } else { - transaction_ = value; - } - - } - /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; */ - private void clearTransaction() { transaction_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder getTransactionOrBuilder() { + return getTransaction(); } public static final int MESSAGE_FIELD_NUMBER = 3; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 3; + * string message = 3; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 3; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 3; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 3; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** - * optional uint32 status = 4; + * uint32 status = 4; + * @return The status. */ + @java.lang.Override public int getStatus() { return status_; } - /** - * optional uint32 status = 4; - */ - private void setStatus(int value) { - - status_ = value; - } - /** - * optional uint32 status = 4; - */ - private void clearStatus() { - - status_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -676,16 +1073,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (transaction_ != null) { output.writeMessage(2, getTransaction()); } - if (!message_.isEmpty()) { - output.writeString(3, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (status_ != 0) { output.writeUInt32(4, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -697,389 +1096,790 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTransaction()); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (status_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse other = (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasTransaction() != other.hasTransaction()) return false; + if (hasTransaction()) { + if (!getTransaction() + .equals(other.getTransaction())) return false; + } + if (!getMessage() + .equals(other.getMessage())) return false; + if (getStatus() + != other.getStatus()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasTransaction()) { + hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; + hash = (53 * hash) + getTransaction().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransactionInfoResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransactionInfoResponse) net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.class, net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (transactionBuilder_ == null) { + transaction_ = null; + } else { + transaction_ = null; + transactionBuilder_ = null; + } + message_ = ""; + + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplTransactionInfo.internal_static_proto_MplTransactionInfoResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse build() { + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse buildPartial() { + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse result = new net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (transactionBuilder_ == null) { + result.transaction_ = transaction_; + } else { + result.transaction_ = transactionBuilder_.build(); + } + result.message_ = message_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse) { + return mergeFrom((net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse other) { + if (other == net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasTransaction()) { + mergeTransaction(other.getTransaction()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.MplTransaction transaction_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction, net.iGap.proto.ProtoGlobal.MplTransaction.Builder, net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder> transactionBuilder_; /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; + * @return Whether the transaction field is set. */ public boolean hasTransaction() { - return instance.hasTransaction(); + return transactionBuilder_ != null || transaction_ != null; } /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; + * @return The transaction. */ public net.iGap.proto.ProtoGlobal.MplTransaction getTransaction() { - return instance.getTransaction(); + if (transactionBuilder_ == null) { + return transaction_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance() : transaction_; + } else { + return transactionBuilder_.getMessage(); + } } /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; */ public Builder setTransaction(net.iGap.proto.ProtoGlobal.MplTransaction value) { - copyOnWrite(); - instance.setTransaction(value); - return this; + if (transactionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transaction_ = value; + onChanged(); + } else { + transactionBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; */ public Builder setTransaction( net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - copyOnWrite(); - instance.setTransaction(builderForValue); + if (transactionBuilder_ == null) { + transaction_ = builderForValue.build(); + onChanged(); + } else { + transactionBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; */ public Builder mergeTransaction(net.iGap.proto.ProtoGlobal.MplTransaction value) { - copyOnWrite(); - instance.mergeTransaction(value); + if (transactionBuilder_ == null) { + if (transaction_ != null) { + transaction_ = + net.iGap.proto.ProtoGlobal.MplTransaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); + } else { + transaction_ = value; + } + onChanged(); + } else { + transactionBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.MplTransaction transaction = 2; + * .proto.MplTransaction transaction = 2; */ - public Builder clearTransaction() { copyOnWrite(); - instance.clearTransaction(); + public Builder clearTransaction() { + if (transactionBuilder_ == null) { + transaction_ = null; + onChanged(); + } else { + transaction_ = null; + transactionBuilder_ = null; + } + return this; } + /** + * .proto.MplTransaction transaction = 2; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Builder getTransactionBuilder() { + + onChanged(); + return getTransactionFieldBuilder().getBuilder(); + } + /** + * .proto.MplTransaction transaction = 2; + */ + public net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder getTransactionOrBuilder() { + if (transactionBuilder_ != null) { + return transactionBuilder_.getMessageOrBuilder(); + } else { + return transaction_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance() : transaction_; + } + } + /** + * .proto.MplTransaction transaction = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction, net.iGap.proto.ProtoGlobal.MplTransaction.Builder, net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder> + getTransactionFieldBuilder() { + if (transactionBuilder_ == null) { + transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction, net.iGap.proto.ProtoGlobal.MplTransaction.Builder, net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder>( + getTransaction(), + getParentForChildren(), + isClean()); + transaction_ = null; + } + return transactionBuilder_; + } + private java.lang.Object message_ = ""; /** - * optional string message = 3; + * string message = 3; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 3; + * string message = 3; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 3; + * string message = 3; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 3; + * string message = 3; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 3; + * string message = 3; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private int status_ ; /** - * optional uint32 status = 4; + * uint32 status = 4; + * @return The status. */ + @java.lang.Override public int getStatus() { - return instance.getStatus(); + return status_; } /** - * optional uint32 status = 4; + * uint32 status = 4; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(int value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional uint32 status = 4; + * uint32 status = 4; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MplTransactionInfoResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse other = (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - transaction_ = visitor.visitMessage(transaction_, other.transaction_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - status_ = visitor.visitInt(status_ != 0, status_, - other.status_ != 0, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.MplTransaction.Builder subBuilder = null; - if (transaction_ != null) { - subBuilder = transaction_.toBuilder(); - } - transaction_ = input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transaction_); - transaction_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 32: { - - status_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplTransactionInfoResponse) + } + // @@protoc_insertion_point(class_scope:proto.MplTransactionInfoResponse) private static final net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplTransactionInfoResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse(); } public static net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplTransactionInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplTransactionInfoResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionInfo.MplTransactionInfoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransactionInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransactionInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransactionInfoResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransactionInfoResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030MplTransactionInfo.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"D" + + "\n\022MplTransactionInfo\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\r\n\005token\030\002 \001(\t\"\214\001\n\032MplTran" + + "sactionInfoResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022*\n\013transaction\030\002 \001(\0132\025.pr" + + "oto.MplTransaction\022\017\n\007message\030\003 \001(\t\022\016\n\006s" + + "tatus\030\004 \001(\rB)\n\016net.iGap.protoB\027ProtoMplT" + + "ransactionInfob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_MplTransactionInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplTransactionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransactionInfo_descriptor, + new java.lang.String[] { "Request", "Token", }); + internal_static_proto_MplTransactionInfoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplTransactionInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransactionInfoResponse_descriptor, + new java.lang.String[] { "Response", "Transaction", "Message", "Status", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMplTransactionList.java b/src/main/java/net/iGap/proto/ProtoMplTransactionList.java index 0f8a2b1..4651b81 100644 --- a/src/main/java/net/iGap/proto/ProtoMplTransactionList.java +++ b/src/main/java/net/iGap/proto/ProtoMplTransactionList.java @@ -8,190 +8,250 @@ private ProtoMplTransactionList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MplTransactionListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransactionList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @return The type. */ net.iGap.proto.ProtoGlobal.MplTransaction.Type getType(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 3; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.MplTransactionList} */ - public static final class MplTransactionList extends - com.google.protobuf.GeneratedMessageLite< - MplTransactionList, MplTransactionList.Builder> implements + public static final class MplTransactionList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransactionList) MplTransactionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplTransactionList.newBuilder() to construct. + private MplTransactionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplTransactionList() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplTransactionList(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplTransactionList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionList.MplTransactionList.class, net.iGap.proto.ProtoMplTransactionList.MplTransactionList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { - net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; } - /** - * optional .proto.MplTransaction.Type type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.MplTransaction.Type type = 2; - */ - private void setType(net.iGap.proto.ProtoGlobal.MplTransaction.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.MplTransaction.Type type = 2; - */ - private void clearType() { - - type_ = 0; - } public static final int PAGINATION_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 3; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 3; - */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - - } - /** - * optional .proto.Pagination pagination = 3; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -203,10 +263,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(3, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -222,357 +284,685 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplTransactionList.MplTransactionList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplTransactionList.MplTransactionList other = (net.iGap.proto.ProtoMplTransactionList.MplTransactionList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (type_ != other.type_) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplTransactionList.MplTransactionList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransactionList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplTransactionList.MplTransactionList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransactionList) net.iGap.proto.ProtoMplTransactionList.MplTransactionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionList.MplTransactionList.class, net.iGap.proto.ProtoMplTransactionList.MplTransactionList.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplTransactionList.MplTransactionList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + type_ = 0; + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionList getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplTransactionList.MplTransactionList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionList build() { + net.iGap.proto.ProtoMplTransactionList.MplTransactionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionList buildPartial() { + net.iGap.proto.ProtoMplTransactionList.MplTransactionList result = new net.iGap.proto.ProtoMplTransactionList.MplTransactionList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.type_ = type_; + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplTransactionList.MplTransactionList) { + return mergeFrom((net.iGap.proto.ProtoMplTransactionList.MplTransactionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplTransactionList.MplTransactionList other) { + if (other == net.iGap.proto.ProtoMplTransactionList.MplTransactionList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplTransactionList.MplTransactionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplTransactionList.MplTransactionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int type_ = 0; /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; } /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.MplTransaction.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.MplTransaction.Type type = 2; + * .proto.MplTransaction.Type type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.MplTransactionList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplTransactionList.MplTransactionList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplTransactionList.MplTransactionList other = (net.iGap.proto.ProtoMplTransactionList.MplTransactionList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplTransactionList.MplTransactionList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.MplTransactionList) + } // @@protoc_insertion_point(class_scope:proto.MplTransactionList) private static final net.iGap.proto.ProtoMplTransactionList.MplTransactionList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplTransactionList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplTransactionList.MplTransactionList(); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplTransactionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplTransactionList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface MplTransactionListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MplTransactionListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.MplTransaction transaction = 2; @@ -587,82 +977,160 @@ public interface MplTransactionListResponseOrBuilder extends * repeated .proto.MplTransaction transaction = 2; */ int getTransactionCount(); + /** + * repeated .proto.MplTransaction transaction = 2; + */ + java.util.List + getTransactionOrBuilderList(); + /** + * repeated .proto.MplTransaction transaction = 2; + */ + net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder getTransactionOrBuilder( + int index); } /** * Protobuf type {@code proto.MplTransactionListResponse} */ - public static final class MplTransactionListResponse extends - com.google.protobuf.GeneratedMessageLite< - MplTransactionListResponse, MplTransactionListResponse.Builder> implements + public static final class MplTransactionListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MplTransactionListResponse) MplTransactionListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MplTransactionListResponse.newBuilder() to construct. + private MplTransactionListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MplTransactionListResponse() { - transaction_ = emptyProtobufList(); + transaction_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MplTransactionListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MplTransactionListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + transaction_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + transaction_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + transaction_ = java.util.Collections.unmodifiableList(transaction_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.class, net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.Builder.class); } - private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TRANSACTION_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList transaction_; + private java.util.List transaction_; /** * repeated .proto.MplTransaction transaction = 2; */ + @java.lang.Override public java.util.List getTransactionList() { return transaction_; } /** * repeated .proto.MplTransaction transaction = 2; */ + @java.lang.Override public java.util.List getTransactionOrBuilderList() { return transaction_; @@ -670,108 +1138,38 @@ public java.util.List getTransactionL /** * repeated .proto.MplTransaction transaction = 2; */ + @java.lang.Override public int getTransactionCount() { return transaction_.size(); } /** * repeated .proto.MplTransaction transaction = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransaction getTransaction(int index) { return transaction_.get(index); } /** * repeated .proto.MplTransaction transaction = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder getTransactionOrBuilder( int index) { return transaction_.get(index); } - private void ensureTransactionIsMutable() { - if (!transaction_.isModifiable()) { - transaction_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(transaction_); - } - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void setTransaction( - int index, net.iGap.proto.ProtoGlobal.MplTransaction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionIsMutable(); - transaction_.set(index, value); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void setTransaction( - int index, net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - ensureTransactionIsMutable(); - transaction_.set(index, builderForValue.build()); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void addTransaction(net.iGap.proto.ProtoGlobal.MplTransaction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionIsMutable(); - transaction_.add(value); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void addTransaction( - int index, net.iGap.proto.ProtoGlobal.MplTransaction value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionIsMutable(); - transaction_.add(index, value); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void addTransaction( - net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - ensureTransactionIsMutable(); - transaction_.add(builderForValue.build()); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void addTransaction( - int index, net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - ensureTransactionIsMutable(); - transaction_.add(index, builderForValue.build()); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void addAllTransaction( - java.lang.Iterable values) { - ensureTransactionIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, transaction_); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void clearTransaction() { - transaction_ = emptyProtobufList(); - } - /** - * repeated .proto.MplTransaction transaction = 2; - */ - private void removeTransaction(int index) { - ensureTransactionIsMutable(); - transaction_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -780,10 +1178,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < transaction_.size(); i++) { output.writeMessage(2, transaction_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -795,162 +1195,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, transaction_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse other = (net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getTransactionList() + .equals(other.getTransactionList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getTransactionCount() > 0) { + hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; + hash = (53 * hash) + getTransactionList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MplTransactionListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MplTransactionListResponse) net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.class, net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTransactionFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (transactionBuilder_ == null) { + transaction_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + transactionBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMplTransactionList.internal_static_proto_MplTransactionListResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse build() { + net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse buildPartial() { + net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse result = new net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (transactionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + transaction_ = java.util.Collections.unmodifiableList(transaction_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.transaction_ = transaction_; + } else { + result.transaction_ = transactionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse) { + return mergeFrom((net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse other) { + if (other == net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (transactionBuilder_ == null) { + if (!other.transaction_.isEmpty()) { + if (transaction_.isEmpty()) { + transaction_ = other.transaction_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTransactionIsMutable(); + transaction_.addAll(other.transaction_); + } + onChanged(); + } + } else { + if (!other.transaction_.isEmpty()) { + if (transactionBuilder_.isEmpty()) { + transactionBuilder_.dispose(); + transactionBuilder_ = null; + transaction_ = other.transaction_; + bitField0_ = (bitField0_ & ~0x00000001); + transactionBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTransactionFieldBuilder() : null; + } else { + transactionBuilder_.addAllMessages(other.transaction_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List transaction_ = + java.util.Collections.emptyList(); + private void ensureTransactionIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + transaction_ = new java.util.ArrayList(transaction_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction, net.iGap.proto.ProtoGlobal.MplTransaction.Builder, net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder> transactionBuilder_; /** * repeated .proto.MplTransaction transaction = 2; */ public java.util.List getTransactionList() { - return java.util.Collections.unmodifiableList( - instance.getTransactionList()); + if (transactionBuilder_ == null) { + return java.util.Collections.unmodifiableList(transaction_); + } else { + return transactionBuilder_.getMessageList(); + } } /** * repeated .proto.MplTransaction transaction = 2; */ public int getTransactionCount() { - return instance.getTransactionCount(); - }/** + if (transactionBuilder_ == null) { + return transaction_.size(); + } else { + return transactionBuilder_.getCount(); + } + } + /** * repeated .proto.MplTransaction transaction = 2; */ public net.iGap.proto.ProtoGlobal.MplTransaction getTransaction(int index) { - return instance.getTransaction(index); + if (transactionBuilder_ == null) { + return transaction_.get(index); + } else { + return transactionBuilder_.getMessage(index); + } } /** * repeated .proto.MplTransaction transaction = 2; */ public Builder setTransaction( int index, net.iGap.proto.ProtoGlobal.MplTransaction value) { - copyOnWrite(); - instance.setTransaction(index, value); + if (transactionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransactionIsMutable(); + transaction_.set(index, value); + onChanged(); + } else { + transactionBuilder_.setMessage(index, value); + } return this; } /** @@ -958,16 +1713,29 @@ public Builder setTransaction( */ public Builder setTransaction( int index, net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - copyOnWrite(); - instance.setTransaction(index, builderForValue); + if (transactionBuilder_ == null) { + ensureTransactionIsMutable(); + transaction_.set(index, builderForValue.build()); + onChanged(); + } else { + transactionBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.MplTransaction transaction = 2; */ public Builder addTransaction(net.iGap.proto.ProtoGlobal.MplTransaction value) { - copyOnWrite(); - instance.addTransaction(value); + if (transactionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransactionIsMutable(); + transaction_.add(value); + onChanged(); + } else { + transactionBuilder_.addMessage(value); + } return this; } /** @@ -975,8 +1743,16 @@ public Builder addTransaction(net.iGap.proto.ProtoGlobal.MplTransaction value) { */ public Builder addTransaction( int index, net.iGap.proto.ProtoGlobal.MplTransaction value) { - copyOnWrite(); - instance.addTransaction(index, value); + if (transactionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransactionIsMutable(); + transaction_.add(index, value); + onChanged(); + } else { + transactionBuilder_.addMessage(index, value); + } return this; } /** @@ -984,8 +1760,13 @@ public Builder addTransaction( */ public Builder addTransaction( net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - copyOnWrite(); - instance.addTransaction(builderForValue); + if (transactionBuilder_ == null) { + ensureTransactionIsMutable(); + transaction_.add(builderForValue.build()); + onChanged(); + } else { + transactionBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -993,8 +1774,13 @@ public Builder addTransaction( */ public Builder addTransaction( int index, net.iGap.proto.ProtoGlobal.MplTransaction.Builder builderForValue) { - copyOnWrite(); - instance.addTransaction(index, builderForValue); + if (transactionBuilder_ == null) { + ensureTransactionIsMutable(); + transaction_.add(index, builderForValue.build()); + onChanged(); + } else { + transactionBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1002,146 +1788,211 @@ public Builder addTransaction( */ public Builder addAllTransaction( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllTransaction(values); + if (transactionBuilder_ == null) { + ensureTransactionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transaction_); + onChanged(); + } else { + transactionBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.MplTransaction transaction = 2; */ public Builder clearTransaction() { - copyOnWrite(); - instance.clearTransaction(); + if (transactionBuilder_ == null) { + transaction_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + transactionBuilder_.clear(); + } return this; } /** * repeated .proto.MplTransaction transaction = 2; */ public Builder removeTransaction(int index) { - copyOnWrite(); - instance.removeTransaction(index); + if (transactionBuilder_ == null) { + ensureTransactionIsMutable(); + transaction_.remove(index); + onChanged(); + } else { + transactionBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.MplTransactionListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - transaction_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse other = (net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - transaction_= visitor.visitList(transaction_, other.transaction_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!transaction_.isModifiable()) { - transaction_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(transaction_); - } - transaction_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.MplTransaction.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.MplTransaction transaction = 2; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Builder getTransactionBuilder( + int index) { + return getTransactionFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.MplTransaction transaction = 2; + */ + public net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder getTransactionOrBuilder( + int index) { + if (transactionBuilder_ == null) { + return transaction_.get(index); } else { + return transactionBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.MplTransaction transaction = 2; + */ + public java.util.List + getTransactionOrBuilderList() { + if (transactionBuilder_ != null) { + return transactionBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(transaction_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.MplTransaction transaction = 2; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Builder addTransactionBuilder() { + return getTransactionFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance()); + } + /** + * repeated .proto.MplTransaction transaction = 2; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Builder addTransactionBuilder( + int index) { + return getTransactionFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance()); + } + /** + * repeated .proto.MplTransaction transaction = 2; + */ + public java.util.List + getTransactionBuilderList() { + return getTransactionFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction, net.iGap.proto.ProtoGlobal.MplTransaction.Builder, net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder> + getTransactionFieldBuilder() { + if (transactionBuilder_ == null) { + transactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction, net.iGap.proto.ProtoGlobal.MplTransaction.Builder, net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder>( + transaction_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + transaction_ = null; } + return transactionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MplTransactionListResponse) + } + // @@protoc_insertion_point(class_scope:proto.MplTransactionListResponse) private static final net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new MplTransactionListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse(); } public static net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MplTransactionListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplTransactionListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoMplTransactionList.MplTransactionListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransactionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransactionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MplTransactionListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MplTransactionListResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030MplTransactionList.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"\206" + + "\001\n\022MplTransactionList\022\037\n\007request\030\001 \001(\0132\016" + + ".proto.Request\022(\n\004type\030\002 \001(\0162\032.proto.Mpl" + + "Transaction.Type\022%\n\npagination\030\003 \001(\0132\021.p" + + "roto.Pagination\"k\n\032MplTransactionListRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "\022*\n\013transaction\030\002 \003(\0132\025.proto.MplTransac" + + "tionB)\n\016net.iGap.protoB\027ProtoMplTransact" + + "ionListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_MplTransactionList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MplTransactionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransactionList_descriptor, + new java.lang.String[] { "Request", "Type", "Pagination", }); + internal_static_proto_MplTransactionListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MplTransactionListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MplTransactionListResponse_descriptor, + new java.lang.String[] { "Response", "Transaction", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMxbSearch.java b/src/main/java/net/iGap/proto/ProtoMxbSearch.java index 9cc7973..e492eb0 100644 --- a/src/main/java/net/iGap/proto/ProtoMxbSearch.java +++ b/src/main/java/net/iGap/proto/ProtoMxbSearch.java @@ -8,25 +8,39 @@ private ProtoMxbSearch() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MxbSearchOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MxbSearch) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. + */ + ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; */ - net.iGap.proto.ProtoRequest.Request getRequest(); + ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string phone = 2; + * string phone = 2; + * @return The phone. */ - java.lang.String getPhone(); + String getPhone(); /** - * optional string phone = 2; + * string phone = 2; + * @return The bytes for phone. */ com.google.protobuf.ByteString getPhoneBytes(); @@ -34,124 +48,190 @@ public interface MxbSearchOrBuilder extends /** * Protobuf type {@code proto.MxbSearch} */ - public static final class MxbSearch extends - com.google.protobuf.GeneratedMessageLite< - MxbSearch, MxbSearch.Builder> implements + public static final class MxbSearch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MxbSearch) MxbSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use MxbSearch.newBuilder() to construct. + private MxbSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MxbSearch() { phone_ = ""; } - public static final int REQUEST_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoRequest.Request request_; - /** - * optional .proto.Request request = 1; - */ - public boolean hasRequest() { - return request_ != null; + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new MxbSearch(); } - /** - * optional .proto.Request request = 1; - */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { + private MxbSearch( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { throw new NullPointerException(); } - request_ = value; - + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + phone_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbSearch.internal_static_proto_MxbSearch_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbSearch.internal_static_proto_MxbSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbSearch.class, Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @Override + public boolean hasRequest() { + return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @Override + public ProtoRequest.Request getRequest() { + return request_ == null ? ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @Override + public ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_FIELD_NUMBER = 2; - private java.lang.String phone_; + private volatile Object phone_; /** - * optional string phone = 2; + * string phone = 2; + * @return The phone. */ - public java.lang.String getPhone() { - return phone_; + @Override + public String getPhone() { + Object ref = phone_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + phone_ = s; + return s; + } } /** - * optional string phone = 2; + * string phone = 2; + * @return The bytes for phone. */ + @Override public com.google.protobuf.ByteString getPhoneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phone_); - } - /** - * optional string phone = 2; - */ - private void setPhone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phone_ = value; - } - /** - * optional string phone = 2; - */ - private void clearPhone() { - - phone_ = getDefaultInstance().getPhone(); + Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string phone = 2; - */ - private void setPhoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phone_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!phone_.isEmpty()) { - output.writeString(2, getPhone()); + if (!getPhoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phone_); } + unknownFields.writeTo(output); } + @Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,372 +239,747 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!phone_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPhone()); + if (!getPhoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phone_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof MxbSearch)) { + return super.equals(obj); + } + MxbSearch other = (MxbSearch) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPhone() + .equals(other.getPhone())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static MxbSearch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbSearch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + public static MxbSearch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom(byte[] data) + public static MxbSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + public static MxbSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom(java.io.InputStream input) + public static MxbSearch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + public static MxbSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseDelimitedFrom(java.io.InputStream input) + public static MxbSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseDelimitedFrom( + public static MxbSearch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + public static MxbSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + public static MxbSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(net.iGap.proto.ProtoMxbSearch.MxbSearch prototype) { + public static Builder newBuilder(MxbSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MxbSearch} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMxbSearch.MxbSearch, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MxbSearch) - net.iGap.proto.ProtoMxbSearch.MxbSearchOrBuilder { + MxbSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbSearch.internal_static_proto_MxbSearch_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbSearch.internal_static_proto_MxbSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbSearch.class, Builder.class); + } + // Construct using net.iGap.proto.ProtoMxbSearch.MxbSearch.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phone_ = ""; + + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ProtoMxbSearch.internal_static_proto_MxbSearch_descriptor; + } + + @Override + public MxbSearch getDefaultInstanceForType() { + return MxbSearch.getDefaultInstance(); + } + + @Override + public MxbSearch build() { + MxbSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public MxbSearch buildPartial() { + MxbSearch result = new MxbSearch(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phone_ = phone_; + onBuilt(); + return result; + } + + @Override + public Builder clone() { + return super.clone(); + } + @Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.setField(field, value); + } + @Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return super.setRepeatedField(field, index, value); + } + @Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.addRepeatedField(field, value); + } + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof MxbSearch) { + return mergeFrom((MxbSearch)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(MxbSearch other) { + if (other == MxbSearch.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + MxbSearch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (MxbSearch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + public ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + public Builder setRequest(ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + public Builder mergeRequest(ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private Object phone_ = ""; /** - * optional string phone = 2; + * string phone = 2; + * @return The phone. */ - public java.lang.String getPhone() { - return instance.getPhone(); + public String getPhone() { + Object ref = phone_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (String) ref; + } } /** - * optional string phone = 2; + * string phone = 2; + * @return The bytes for phone. */ public com.google.protobuf.ByteString getPhoneBytes() { - return instance.getPhoneBytes(); + Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone = 2; + * string phone = 2; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone( - java.lang.String value) { - copyOnWrite(); - instance.setPhone(value); + String value) { + if (value == null) { + throw new NullPointerException(); + } + + phone_ = value; + onChanged(); return this; } /** - * optional string phone = 2; + * string phone = 2; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = getDefaultInstance().getPhone(); + onChanged(); return this; } /** - * optional string phone = 2; + * string phone = 2; + * @param value The bytes for phone to set. + * @return This builder for chaining. */ public Builder setPhoneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phone_ = value; + onChanged(); return this; } + @Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MxbSearch) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMxbSearch.MxbSearch(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMxbSearch.MxbSearch other = (net.iGap.proto.ProtoMxbSearch.MxbSearch) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phone_ = visitor.visitString(!phone_.isEmpty(), phone_, - !other.phone_.isEmpty(), other.phone_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - phone_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMxbSearch.MxbSearch.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MxbSearch) + } + // @@protoc_insertion_point(class_scope:proto.MxbSearch) - private static final net.iGap.proto.ProtoMxbSearch.MxbSearch DEFAULT_INSTANCE; + private static final MxbSearch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new MxbSearch(); - DEFAULT_INSTANCE.makeImmutable(); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearch getDefaultInstance() { + public static MxbSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public MxbSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbSearch(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public MxbSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface MxbSearchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MxbSearchResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. + */ + ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; */ - net.iGap.proto.ProtoResponse.Response getResponse(); + ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - java.util.List + java.util.List getItemsList(); /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getItems(int index); + MxbSearchResponse.Item getItems(int index); /** * repeated .proto.MxbSearchResponse.Item items = 2; */ int getItemsCount(); + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + MxbSearchResponse.ItemOrBuilder getItemsOrBuilder( + int index); } /** * Protobuf type {@code proto.MxbSearchResponse} */ - public static final class MxbSearchResponse extends - com.google.protobuf.GeneratedMessageLite< - MxbSearchResponse, MxbSearchResponse.Builder> implements + public static final class MxbSearchResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MxbSearchResponse) MxbSearchResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MxbSearchResponse.newBuilder() to construct. + private MxbSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MxbSearchResponse() { - items_ = emptyProtobufList(); + items_ = java.util.Collections.emptyList(); + } + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new MxbSearchResponse(); + } + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MxbSearchResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add( + input.readMessage(Item.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbSearchResponse.class, Builder.class); } + public interface ItemOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MxbSearchResponse.Item) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1; + * uint64 mxb_user_id = 1; + * @return The mxbUserId. */ - long getId(); + long getMxbUserId(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ - java.lang.String getNickname(); + String getNickname(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ com.google.protobuf.ByteString getNicknameBytes(); /** - * optional string avatar = 3; + * string avatar = 3; + * @return The avatar. */ - java.lang.String getAvatar(); + String getAvatar(); /** - * optional string avatar = 3; + * string avatar = 3; + * @return The bytes for avatar. */ com.google.protobuf.ByteString getAvatarBytes(); /** - * optional uint32 messenger_id = 4; + * uint32 messenger_id = 4; + * @return The messengerId. */ int getMessengerId(); /** - * optional string phone = 5; + * string phone = 5; + * @return The phone. */ - java.lang.String getPhone(); + String getPhone(); /** - * optional string phone = 5; + * string phone = 5; + * @return The bytes for phone. */ com.google.protobuf.ByteString getPhoneBytes(); @@ -532,798 +987,1038 @@ public interface ItemOrBuilder extends /** * Protobuf type {@code proto.MxbSearchResponse.Item} */ - public static final class Item extends - com.google.protobuf.GeneratedMessageLite< - Item, Item.Builder> implements + public static final class Item extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MxbSearchResponse.Item) ItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use Item.newBuilder() to construct. + private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Item() { nickname_ = ""; avatar_ = ""; phone_ = ""; } - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional uint64 id = 1; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1; - */ - private void clearId() { - - id_ = 0L; - } - public static final int NICKNAME_FIELD_NUMBER = 2; - private java.lang.String nickname_; - /** - * optional string nickname = 2; - */ - public java.lang.String getNickname() { - return nickname_; - } - /** - * optional string nickname = 2; - */ - public com.google.protobuf.ByteString - getNicknameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nickname_); + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new Item(); } - /** - * optional string nickname = 2; - */ - private void setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - /** - * optional string nickname = 2; - */ - private void clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); + private Item( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + mxbUserId_ = input.readUInt64(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + nickname_ = s; + break; + } + case 26: { + String s = input.readStringRequireUtf8(); + + avatar_ = s; + break; + } + case 32: { + + messengerId_ = input.readUInt32(); + break; + } + case 42: { + String s = input.readStringRequireUtf8(); + + phone_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - /** - * optional string nickname = 2; - */ - private void setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value.toStringUtf8(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_descriptor; } - public static final int AVATAR_FIELD_NUMBER = 3; - private java.lang.String avatar_; + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Item.class, Builder.class); + } + + public static final int MXB_USER_ID_FIELD_NUMBER = 1; + private long mxbUserId_; /** - * optional string avatar = 3; + * uint64 mxb_user_id = 1; + * @return The mxbUserId. */ - public java.lang.String getAvatar() { - return avatar_; + @Override + public long getMxbUserId() { + return mxbUserId_; } + + public static final int NICKNAME_FIELD_NUMBER = 2; + private volatile Object nickname_; /** - * optional string avatar = 3; + * string nickname = 2; + * @return The nickname. */ - public com.google.protobuf.ByteString - getAvatarBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(avatar_); + @Override + public String getNickname() { + Object ref = nickname_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } } /** - * optional string avatar = 3; + * string nickname = 2; + * @return The bytes for nickname. */ - private void setAvatar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - avatar_ = value; + @Override + public com.google.protobuf.ByteString + getNicknameBytes() { + Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int AVATAR_FIELD_NUMBER = 3; + private volatile Object avatar_; /** - * optional string avatar = 3; + * string avatar = 3; + * @return The avatar. */ - private void clearAvatar() { - - avatar_ = getDefaultInstance().getAvatar(); + @Override + public String getAvatar() { + Object ref = avatar_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + avatar_ = s; + return s; + } } /** - * optional string avatar = 3; + * string avatar = 3; + * @return The bytes for avatar. */ - private void setAvatarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - avatar_ = value.toStringUtf8(); + @Override + public com.google.protobuf.ByteString + getAvatarBytes() { + Object ref = avatar_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + avatar_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MESSENGER_ID_FIELD_NUMBER = 4; private int messengerId_; /** - * optional uint32 messenger_id = 4; + * uint32 messenger_id = 4; + * @return The messengerId. */ + @Override public int getMessengerId() { return messengerId_; } - /** - * optional uint32 messenger_id = 4; - */ - private void setMessengerId(int value) { - - messengerId_ = value; - } - /** - * optional uint32 messenger_id = 4; - */ - private void clearMessengerId() { - - messengerId_ = 0; - } public static final int PHONE_FIELD_NUMBER = 5; - private java.lang.String phone_; + private volatile Object phone_; /** - * optional string phone = 5; + * string phone = 5; + * @return The phone. */ - public java.lang.String getPhone() { - return phone_; + @Override + public String getPhone() { + Object ref = phone_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + phone_ = s; + return s; + } } /** - * optional string phone = 5; + * string phone = 5; + * @return The bytes for phone. */ + @Override public com.google.protobuf.ByteString getPhoneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phone_); - } - /** - * optional string phone = 5; - */ - private void setPhone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phone_ = value; - } - /** - * optional string phone = 5; - */ - private void clearPhone() { - - phone_ = getDefaultInstance().getPhone(); + Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string phone = 5; - */ - private void setPhoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phone_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (id_ != 0L) { - output.writeUInt64(1, id_); + if (mxbUserId_ != 0L) { + output.writeUInt64(1, mxbUserId_); } - if (!nickname_.isEmpty()) { - output.writeString(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); } - if (!avatar_.isEmpty()) { - output.writeString(3, getAvatar()); + if (!getAvatarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, avatar_); } if (messengerId_ != 0) { output.writeUInt32(4, messengerId_); } - if (!phone_.isEmpty()) { - output.writeString(5, getPhone()); + if (!getPhoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, phone_); } + unknownFields.writeTo(output); } + @Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (id_ != 0L) { + if (mxbUserId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); + .computeUInt64Size(1, mxbUserId_); } - if (!nickname_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); } - if (!avatar_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getAvatar()); + if (!getAvatarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, avatar_); } if (messengerId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, messengerId_); } - if (!phone_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getPhone()); + if (!getPhoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, phone_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Item)) { + return super.equals(obj); + } + Item other = (Item) obj; + + if (getMxbUserId() + != other.getMxbUserId()) return false; + if (!getNickname() + .equals(other.getNickname())) return false; + if (!getAvatar() + .equals(other.getAvatar())) return false; + if (getMessengerId() + != other.getMessengerId()) return false; + if (!getPhone() + .equals(other.getPhone())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MXB_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMxbUserId()); + hash = (37 * hash) + NICKNAME_FIELD_NUMBER; + hash = (53 * hash) + getNickname().hashCode(); + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + hash = (37 * hash) + MESSENGER_ID_FIELD_NUMBER; + hash = (53 * hash) + getMessengerId(); + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Item parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Item parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Item parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + public static Item parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom(byte[] data) + public static Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + public static Item parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom(java.io.InputStream input) + public static Item parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + public static Item parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseDelimitedFrom(java.io.InputStream input) + public static Item parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseDelimitedFrom( + public static Item parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + public static Item parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + public static Item parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item prototype) { + public static Builder newBuilder(Item prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MxbSearchResponse.Item} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MxbSearchResponse.Item) - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder { + ItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Item.class, Builder.class); + } + // Construct using net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @Override + public Builder clear() { + super.clear(); + mxbUserId_ = 0L; + + nickname_ = ""; + + avatar_ = ""; + + messengerId_ = 0; + + phone_ = ""; + + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_descriptor; + } + + @Override + public Item getDefaultInstanceForType() { + return Item.getDefaultInstance(); + } + + @Override + public Item build() { + Item result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public Item buildPartial() { + Item result = new Item(this); + result.mxbUserId_ = mxbUserId_; + result.nickname_ = nickname_; + result.avatar_ = avatar_; + result.messengerId_ = messengerId_; + result.phone_ = phone_; + onBuilt(); + return result; + } + + @Override + public Builder clone() { + return super.clone(); + } + @Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.setField(field, value); + } + @Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return super.setRepeatedField(field, index, value); + } + @Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.addRepeatedField(field, value); + } + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Item) { + return mergeFrom((Item)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Item other) { + if (other == Item.getDefaultInstance()) return this; + if (other.getMxbUserId() != 0L) { + setMxbUserId(other.getMxbUserId()); + } + if (!other.getNickname().isEmpty()) { + nickname_ = other.nickname_; + onChanged(); + } + if (!other.getAvatar().isEmpty()) { + avatar_ = other.avatar_; + onChanged(); + } + if (other.getMessengerId() != 0) { + setMessengerId(other.getMessengerId()); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Item parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Item) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long mxbUserId_ ; /** - * optional uint64 id = 1; + * uint64 mxb_user_id = 1; + * @return The mxbUserId. */ - public long getId() { - return instance.getId(); + @Override + public long getMxbUserId() { + return mxbUserId_; } /** - * optional uint64 id = 1; + * uint64 mxb_user_id = 1; + * @param value The mxbUserId to set. + * @return This builder for chaining. */ - public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + public Builder setMxbUserId(long value) { + + mxbUserId_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1; + * uint64 mxb_user_id = 1; + * @return This builder for chaining. */ - public Builder clearId() { - copyOnWrite(); - instance.clearId(); + public Builder clearMxbUserId() { + + mxbUserId_ = 0L; + onChanged(); return this; } + private Object nickname_ = ""; /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ - public java.lang.String getNickname() { - return instance.getNickname(); + public String getNickname() { + Object ref = nickname_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } else { + return (String) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ public com.google.protobuf.ByteString getNicknameBytes() { - return instance.getNicknameBytes(); + Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The nickname to set. + * @return This builder for chaining. */ public Builder setNickname( - java.lang.String value) { - copyOnWrite(); - instance.setNickname(value); + String value) { + if (value == null) { + throw new NullPointerException(); + } + + nickname_ = value; + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @return This builder for chaining. */ public Builder clearNickname() { - copyOnWrite(); - instance.clearNickname(); + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The bytes for nickname to set. + * @return This builder for chaining. */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNicknameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nickname_ = value; + onChanged(); return this; } + private Object avatar_ = ""; /** - * optional string avatar = 3; + * string avatar = 3; + * @return The avatar. */ - public java.lang.String getAvatar() { - return instance.getAvatar(); + public String getAvatar() { + Object ref = avatar_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + avatar_ = s; + return s; + } else { + return (String) ref; + } } /** - * optional string avatar = 3; + * string avatar = 3; + * @return The bytes for avatar. */ public com.google.protobuf.ByteString getAvatarBytes() { - return instance.getAvatarBytes(); + Object ref = avatar_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + avatar_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string avatar = 3; + * string avatar = 3; + * @param value The avatar to set. + * @return This builder for chaining. */ public Builder setAvatar( - java.lang.String value) { - copyOnWrite(); - instance.setAvatar(value); + String value) { + if (value == null) { + throw new NullPointerException(); + } + + avatar_ = value; + onChanged(); return this; } /** - * optional string avatar = 3; + * string avatar = 3; + * @return This builder for chaining. */ public Builder clearAvatar() { - copyOnWrite(); - instance.clearAvatar(); + + avatar_ = getDefaultInstance().getAvatar(); + onChanged(); return this; } /** - * optional string avatar = 3; + * string avatar = 3; + * @param value The bytes for avatar to set. + * @return This builder for chaining. */ public Builder setAvatarBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAvatarBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + avatar_ = value; + onChanged(); return this; } + private int messengerId_ ; /** - * optional uint32 messenger_id = 4; + * uint32 messenger_id = 4; + * @return The messengerId. */ + @Override public int getMessengerId() { - return instance.getMessengerId(); + return messengerId_; } /** - * optional uint32 messenger_id = 4; + * uint32 messenger_id = 4; + * @param value The messengerId to set. + * @return This builder for chaining. */ public Builder setMessengerId(int value) { - copyOnWrite(); - instance.setMessengerId(value); + + messengerId_ = value; + onChanged(); return this; } /** - * optional uint32 messenger_id = 4; + * uint32 messenger_id = 4; + * @return This builder for chaining. */ public Builder clearMessengerId() { - copyOnWrite(); - instance.clearMessengerId(); + + messengerId_ = 0; + onChanged(); return this; } + private Object phone_ = ""; /** - * optional string phone = 5; + * string phone = 5; + * @return The phone. */ - public java.lang.String getPhone() { - return instance.getPhone(); + public String getPhone() { + Object ref = phone_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (String) ref; + } } /** - * optional string phone = 5; + * string phone = 5; + * @return The bytes for phone. */ public com.google.protobuf.ByteString getPhoneBytes() { - return instance.getPhoneBytes(); + Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone = 5; + * string phone = 5; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone( - java.lang.String value) { - copyOnWrite(); - instance.setPhone(value); + String value) { + if (value == null) { + throw new NullPointerException(); + } + + phone_ = value; + onChanged(); return this; } /** - * optional string phone = 5; + * string phone = 5; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = getDefaultInstance().getPhone(); + onChanged(); return this; } /** - * optional string phone = 5; + * string phone = 5; + * @param value The bytes for phone to set. + * @return This builder for chaining. */ public Builder setPhoneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phone_ = value; + onChanged(); return this; } + @Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MxbSearchResponse.Item) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item other = (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - nickname_ = visitor.visitString(!nickname_.isEmpty(), nickname_, - !other.nickname_.isEmpty(), other.nickname_); - avatar_ = visitor.visitString(!avatar_.isEmpty(), avatar_, - !other.avatar_.isEmpty(), other.avatar_); - messengerId_ = visitor.visitInt(messengerId_ != 0, messengerId_, - other.messengerId_ != 0, other.messengerId_); - phone_ = visitor.visitString(!phone_.isEmpty(), phone_, - !other.phone_.isEmpty(), other.phone_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - nickname_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - avatar_ = s; - break; - } - case 32: { - - messengerId_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - phone_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MxbSearchResponse.Item) + } + // @@protoc_insertion_point(class_scope:proto.MxbSearchResponse.Item) - private static final net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item DEFAULT_INSTANCE; + private static final Item DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Item(); - DEFAULT_INSTANCE.makeImmutable(); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getDefaultInstance() { + public static Item getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public Item parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Item(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public Item getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; + private ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + @Override + public ProtoResponse.Response getResponse() { + return response_ == null ? ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @Override + public ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ITEMS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList items_; + private java.util.List items_; /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - public java.util.List getItemsList() { + @Override + public java.util.List getItemsList() { return items_; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - public java.util.List + @Override + public java.util.List getItemsOrBuilderList() { return items_; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ + @Override public int getItemsCount() { return items_.size(); } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getItems(int index) { + @Override + public Item getItems(int index) { return items_.get(index); } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder getItemsOrBuilder( + @Override + public ItemOrBuilder getItemsOrBuilder( int index) { return items_.get(index); } - private void ensureItemsIsMutable() { - if (!items_.isModifiable()) { - items_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(items_); - } - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void setItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void setItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void addItems(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void addItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void addItems( - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void addItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void addAllItems( - java.lang.Iterable values) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, items_); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void clearItems() { - items_ = emptyProtobufList(); - } - /** - * repeated .proto.MxbSearchResponse.Item items = 2; - */ - private void removeItems(int index) { - ensureItemsIsMutable(); - items_.remove(index); + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1332,10 +2027,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.get(i)); } + unknownFields.writeTo(output); } + @Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1347,353 +2044,813 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, items_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof MxbSearchResponse)) { + return super.equals(obj); + } + MxbSearchResponse other = (MxbSearchResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static MxbSearchResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbSearchResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbSearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + public static MxbSearchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom(byte[] data) + public static MxbSearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + public static MxbSearchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom(java.io.InputStream input) + public static MxbSearchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + public static MxbSearchResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseDelimitedFrom(java.io.InputStream input) + public static MxbSearchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseDelimitedFrom( + public static MxbSearchResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + public static MxbSearchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + public static MxbSearchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse prototype) { + public static Builder newBuilder(MxbSearchResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MxbSearchResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MxbSearchResponse) - net.iGap.proto.ProtoMxbSearch.MxbSearchResponseOrBuilder { + MxbSearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbSearchResponse.class, Builder.class); + } + // Construct using net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + @Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ProtoMxbSearch.internal_static_proto_MxbSearchResponse_descriptor; + } + + @Override + public MxbSearchResponse getDefaultInstanceForType() { + return MxbSearchResponse.getDefaultInstance(); + } + + @Override + public MxbSearchResponse build() { + MxbSearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public MxbSearchResponse buildPartial() { + MxbSearchResponse result = new MxbSearchResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @Override + public Builder clone() { + return super.clone(); + } + @Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.setField(field, value); + } + @Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return super.setRepeatedField(field, index, value); + } + @Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.addRepeatedField(field, value); + } + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof MxbSearchResponse) { + return mergeFrom((MxbSearchResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(MxbSearchResponse other) { + if (other == MxbSearchResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + MxbSearchResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (MxbSearchResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + public ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + public Builder setResponse(ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + public Builder mergeResponse(ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + Item, Item.Builder, ItemOrBuilder> itemsBuilder_; /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - public java.util.List getItemsList() { - return java.util.Collections.unmodifiableList( - instance.getItemsList()); + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public int getItemsCount() { - return instance.getItemsCount(); - }/** + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getItems(int index) { - return instance.getItems(index); + public Item getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder setItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { - copyOnWrite(); - instance.setItems(index, value); + int index, Item value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder setItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { - copyOnWrite(); - instance.setItems(index, builderForValue); + int index, Item.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ - public Builder addItems(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { - copyOnWrite(); - instance.addItems(value); + public Builder addItems(Item value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder addItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { - copyOnWrite(); - instance.addItems(index, value); + int index, Item value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder addItems( - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { - copyOnWrite(); - instance.addItems(builderForValue); + Item.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder addItems( - int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { - copyOnWrite(); - instance.addItems(index, builderForValue); + int index, Item.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder addAllItems( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllItems(values); + Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder clearItems() { - copyOnWrite(); - instance.clearItems(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } return this; } /** * repeated .proto.MxbSearchResponse.Item items = 2; */ public Builder removeItems(int index) { - copyOnWrite(); - instance.removeItems(index); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.MxbSearchResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMxbSearch.MxbSearchResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - items_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMxbSearch.MxbSearchResponse other = (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - items_= visitor.visitList(items_, other.items_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!items_.isModifiable()) { - items_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(items_); - } - items_.add( - input.readMessage(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Item.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public ItemOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Item.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + Item.getDefaultInstance()); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Item.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, Item.getDefaultInstance()); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + Item, Item.Builder, ItemOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + Item, Item.Builder, ItemOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + items_ = null; } + return itemsBuilder_; + } + @Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.MxbSearchResponse) + } // @@protoc_insertion_point(class_scope:proto.MxbSearchResponse) - private static final net.iGap.proto.ProtoMxbSearch.MxbSearchResponse DEFAULT_INSTANCE; + private static final MxbSearchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new MxbSearchResponse(); - DEFAULT_INSTANCE.makeImmutable(); } - public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse getDefaultInstance() { + public static MxbSearchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public MxbSearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbSearchResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @Override + public MxbSearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbSearch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbSearch_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbSearchResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbSearchResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbSearchResponse_Item_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbSearchResponse_Item_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + String[] descriptorData = { + "\n\017MxbSearch.proto\022\005proto\032\rRequest.proto\032" + + "\016Response.proto\";\n\tMxbSearch\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\022\r\n\005phone\030\002 \001(\t\"\310\001\n" + + "\021MxbSearchResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.Response\022,\n\005items\030\002 \003(\0132\035.proto.Mxb" + + "SearchResponse.Item\032b\n\004Item\022\023\n\013mxb_user_" + + "id\030\001 \001(\004\022\020\n\010nickname\030\002 \001(\t\022\016\n\006avatar\030\003 \001" + + "(\t\022\024\n\014messenger_id\030\004 \001(\r\022\r\n\005phone\030\005 \001(\tB" + + " \n\016net.iGap.protoB\016ProtoMxbSearchb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + ProtoRequest.getDescriptor(), + ProtoResponse.getDescriptor(), + }); + internal_static_proto_MxbSearch_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MxbSearch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbSearch_descriptor, + new String[] { "Request", "Phone", }); + internal_static_proto_MxbSearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MxbSearchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbSearchResponse_descriptor, + new String[] { "Response", "Items", }); + internal_static_proto_MxbSearchResponse_Item_descriptor = + internal_static_proto_MxbSearchResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_MxbSearchResponse_Item_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbSearchResponse_Item_descriptor, + new String[] { "MxbUserId", "Nickname", "Avatar", "MessengerId", "Phone", }); + ProtoRequest.getDescriptor(); + ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoMxbUser.java b/src/main/java/net/iGap/proto/ProtoMxbUser.java deleted file mode 100644 index 4e8acf3..0000000 --- a/src/main/java/net/iGap/proto/ProtoMxbUser.java +++ /dev/null @@ -1,1000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MxbUser.proto - -package net.iGap.proto; - -public final class ProtoMxbUser { - private ProtoMxbUser() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - /** - * Protobuf enum {@code proto.StatusAction} - */ - public enum StatusAction - implements com.google.protobuf.Internal.EnumLite { - /** - * ACTIVATE = 0; - */ - ACTIVATE(0), - /** - * DEACTIVATE = 1; - */ - DEACTIVATE(1), - UNRECOGNIZED(-1), - ; - - /** - * ACTIVATE = 0; - */ - public static final int ACTIVATE_VALUE = 0; - /** - * DEACTIVATE = 1; - */ - public static final int DEACTIVATE_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static StatusAction valueOf(int value) { - return forNumber(value); - } - - public static StatusAction forNumber(int value) { - switch (value) { - case 0: return ACTIVATE; - case 1: return DEACTIVATE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - StatusAction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StatusAction findValueByNumber(int number) { - return StatusAction.forNumber(number); - } - }; - - private final int value; - - private StatusAction(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.StatusAction) - } - - public interface MxbUserOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.MxbUser) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .proto.Request request = 1; - */ - boolean hasRequest(); - /** - * optional .proto.Request request = 1; - */ - net.iGap.proto.ProtoRequest.Request getRequest(); - - /** - * optional int64 mxb_user_id = 2; - */ - long getMxbUserId(); - - /** - * optional .proto.StatusAction status_action = 3; - */ - int getStatusActionValue(); - /** - * optional .proto.StatusAction status_action = 3; - */ - net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction(); - } - /** - * Protobuf type {@code proto.MxbUser} - */ - public static final class MxbUser extends - com.google.protobuf.GeneratedMessageLite< - MxbUser, MxbUser.Builder> implements - // @@protoc_insertion_point(message_implements:proto.MxbUser) - MxbUserOrBuilder { - private MxbUser() { - } - public static final int REQUEST_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoRequest.Request request_; - /** - * optional .proto.Request request = 1; - */ - public boolean hasRequest() { - return request_ != null; - } - /** - * optional .proto.Request request = 1; - */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - - } - - public static final int MXB_USER_ID_FIELD_NUMBER = 2; - private long mxbUserId_; - /** - * optional int64 mxb_user_id = 2; - */ - public long getMxbUserId() { - return mxbUserId_; - } - /** - * optional int64 mxb_user_id = 2; - */ - private void setMxbUserId(long value) { - - mxbUserId_ = value; - } - /** - * optional int64 mxb_user_id = 2; - */ - private void clearMxbUserId() { - - mxbUserId_ = 0L; - } - - public static final int STATUS_ACTION_FIELD_NUMBER = 3; - private int statusAction_; - /** - * optional .proto.StatusAction status_action = 3; - */ - public int getStatusActionValue() { - return statusAction_; - } - /** - * optional .proto.StatusAction status_action = 3; - */ - public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { - net.iGap.proto.ProtoMxbUser.StatusAction result = net.iGap.proto.ProtoMxbUser.StatusAction.forNumber(statusAction_); - return result == null ? net.iGap.proto.ProtoMxbUser.StatusAction.UNRECOGNIZED : result; - } - /** - * optional .proto.StatusAction status_action = 3; - */ - private void setStatusActionValue(int value) { - statusAction_ = value; - } - /** - * optional .proto.StatusAction status_action = 3; - */ - private void setStatusAction(net.iGap.proto.ProtoMxbUser.StatusAction value) { - if (value == null) { - throw new NullPointerException(); - } - - statusAction_ = value.getNumber(); - } - /** - * optional .proto.StatusAction status_action = 3; - */ - private void clearStatusAction() { - - statusAction_ = 0; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (request_ != null) { - output.writeMessage(1, getRequest()); - } - if (mxbUserId_ != 0L) { - output.writeInt64(2, mxbUserId_); - } - if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { - output.writeEnum(3, statusAction_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (request_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRequest()); - } - if (mxbUserId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, mxbUserId_); - } - if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, statusAction_); - } - memoizedSerializedSize = size; - return size; - } - - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(net.iGap.proto.ProtoMxbUser.MxbUser prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - * Protobuf type {@code proto.MxbUser} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMxbUser.MxbUser, Builder> implements - // @@protoc_insertion_point(builder_implements:proto.MxbUser) - net.iGap.proto.ProtoMxbUser.MxbUserOrBuilder { - // Construct using net.iGap.proto.ProtoMxbUser.MxbUser.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional .proto.Request request = 1; - */ - public boolean hasRequest() { - return instance.hasRequest(); - } - /** - * optional .proto.Request request = 1; - */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); - } - /** - * optional .proto.Request request = 1; - */ - public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; - } - /** - * optional .proto.Request request = 1; - */ - public Builder setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); - return this; - } - /** - * optional .proto.Request request = 1; - */ - public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); - return this; - } - /** - * optional .proto.Request request = 1; - */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); - return this; - } - - /** - * optional int64 mxb_user_id = 2; - */ - public long getMxbUserId() { - return instance.getMxbUserId(); - } - /** - * optional int64 mxb_user_id = 2; - */ - public Builder setMxbUserId(long value) { - copyOnWrite(); - instance.setMxbUserId(value); - return this; - } - /** - * optional int64 mxb_user_id = 2; - */ - public Builder clearMxbUserId() { - copyOnWrite(); - instance.clearMxbUserId(); - return this; - } - - /** - * optional .proto.StatusAction status_action = 3; - */ - public int getStatusActionValue() { - return instance.getStatusActionValue(); - } - /** - * optional .proto.StatusAction status_action = 3; - */ - public Builder setStatusActionValue(int value) { - copyOnWrite(); - instance.setStatusActionValue(value); - return this; - } - /** - * optional .proto.StatusAction status_action = 3; - */ - public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { - return instance.getStatusAction(); - } - /** - * optional .proto.StatusAction status_action = 3; - */ - public Builder setStatusAction(net.iGap.proto.ProtoMxbUser.StatusAction value) { - copyOnWrite(); - instance.setStatusAction(value); - return this; - } - /** - * optional .proto.StatusAction status_action = 3; - */ - public Builder clearStatusAction() { - copyOnWrite(); - instance.clearStatusAction(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.MxbUser) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMxbUser.MxbUser(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMxbUser.MxbUser other = (net.iGap.proto.ProtoMxbUser.MxbUser) arg1; - request_ = visitor.visitMessage(request_, other.request_); - mxbUserId_ = visitor.visitLong(mxbUserId_ != 0L, mxbUserId_, - other.mxbUserId_ != 0L, other.mxbUserId_); - statusAction_ = visitor.visitInt(statusAction_ != 0, statusAction_, other.statusAction_ != 0, other.statusAction_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - mxbUserId_ = input.readInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - statusAction_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMxbUser.MxbUser.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:proto.MxbUser) - private static final net.iGap.proto.ProtoMxbUser.MxbUser DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new MxbUser(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static net.iGap.proto.ProtoMxbUser.MxbUser getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface MxbUserResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.MxbUserResponse) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .proto.Response response = 1; - */ - boolean hasResponse(); - /** - * optional .proto.Response response = 1; - */ - net.iGap.proto.ProtoResponse.Response getResponse(); - - /** - * optional .proto.StatusAction status_action = 2; - */ - int getStatusActionValue(); - /** - * optional .proto.StatusAction status_action = 2; - */ - net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction(); - } - /** - * Protobuf type {@code proto.MxbUserResponse} - */ - public static final class MxbUserResponse extends - com.google.protobuf.GeneratedMessageLite< - MxbUserResponse, MxbUserResponse.Builder> implements - // @@protoc_insertion_point(message_implements:proto.MxbUserResponse) - MxbUserResponseOrBuilder { - private MxbUserResponse() { - } - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - - } - - public static final int STATUS_ACTION_FIELD_NUMBER = 2; - private int statusAction_; - /** - * optional .proto.StatusAction status_action = 2; - */ - public int getStatusActionValue() { - return statusAction_; - } - /** - * optional .proto.StatusAction status_action = 2; - */ - public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { - net.iGap.proto.ProtoMxbUser.StatusAction result = net.iGap.proto.ProtoMxbUser.StatusAction.forNumber(statusAction_); - return result == null ? net.iGap.proto.ProtoMxbUser.StatusAction.UNRECOGNIZED : result; - } - /** - * optional .proto.StatusAction status_action = 2; - */ - private void setStatusActionValue(int value) { - statusAction_ = value; - } - /** - * optional .proto.StatusAction status_action = 2; - */ - private void setStatusAction(net.iGap.proto.ProtoMxbUser.StatusAction value) { - if (value == null) { - throw new NullPointerException(); - } - - statusAction_ = value.getNumber(); - } - /** - * optional .proto.StatusAction status_action = 2; - */ - private void clearStatusAction() { - - statusAction_ = 0; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (response_ != null) { - output.writeMessage(1, getResponse()); - } - if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { - output.writeEnum(2, statusAction_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (response_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResponse()); - } - if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, statusAction_); - } - memoizedSerializedSize = size; - return size; - } - - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(net.iGap.proto.ProtoMxbUser.MxbUserResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - * Protobuf type {@code proto.MxbUserResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMxbUser.MxbUserResponse, Builder> implements - // @@protoc_insertion_point(builder_implements:proto.MxbUserResponse) - net.iGap.proto.ProtoMxbUser.MxbUserResponseOrBuilder { - // Construct using net.iGap.proto.ProtoMxbUser.MxbUserResponse.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return instance.hasResponse(); - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); - } - /** - * optional .proto.Response response = 1; - */ - public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; - } - /** - * optional .proto.Response response = 1; - */ - public Builder setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); - return this; - } - /** - * optional .proto.Response response = 1; - */ - public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); - return this; - } - /** - * optional .proto.Response response = 1; - */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); - return this; - } - - /** - * optional .proto.StatusAction status_action = 2; - */ - public int getStatusActionValue() { - return instance.getStatusActionValue(); - } - /** - * optional .proto.StatusAction status_action = 2; - */ - public Builder setStatusActionValue(int value) { - copyOnWrite(); - instance.setStatusActionValue(value); - return this; - } - /** - * optional .proto.StatusAction status_action = 2; - */ - public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { - return instance.getStatusAction(); - } - /** - * optional .proto.StatusAction status_action = 2; - */ - public Builder setStatusAction(net.iGap.proto.ProtoMxbUser.StatusAction value) { - copyOnWrite(); - instance.setStatusAction(value); - return this; - } - /** - * optional .proto.StatusAction status_action = 2; - */ - public Builder clearStatusAction() { - copyOnWrite(); - instance.clearStatusAction(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.MxbUserResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMxbUser.MxbUserResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMxbUser.MxbUserResponse other = (net.iGap.proto.ProtoMxbUser.MxbUserResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - statusAction_ = visitor.visitInt(statusAction_ != 0, statusAction_, other.statusAction_ != 0, other.statusAction_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - statusAction_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMxbUser.MxbUserResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:proto.MxbUserResponse) - private static final net.iGap.proto.ProtoMxbUser.MxbUserResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new MxbUserResponse(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static net.iGap.proto.ProtoMxbUser.MxbUserResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - - static { - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/net/iGap/proto/ProtoMxbUserActivation.java b/src/main/java/net/iGap/proto/ProtoMxbUserActivation.java new file mode 100644 index 0000000..b2d1610 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoMxbUserActivation.java @@ -0,0 +1,1634 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MxbUserActivation.proto + +package net.iGap.proto; + +public final class ProtoMxbUserActivation { + private ProtoMxbUserActivation() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code proto.StatusAction} + */ + public enum StatusAction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ACTIVATE = 0; + */ + ACTIVATE(0), + /** + * DEACTIVATE = 1; + */ + DEACTIVATE(1), + UNRECOGNIZED(-1), + ; + + /** + * ACTIVATE = 0; + */ + public static final int ACTIVATE_VALUE = 0; + /** + * DEACTIVATE = 1; + */ + public static final int DEACTIVATE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @Deprecated + public static StatusAction valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static StatusAction forNumber(int value) { + switch (value) { + case 0: return ACTIVATE; + case 1: return DEACTIVATE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StatusAction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StatusAction findValueByNumber(int number) { + return StatusAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return ProtoMxbUserActivation.getDescriptor().getEnumTypes().get(0); + } + + private static final StatusAction[] VALUES = values(); + + public static StatusAction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StatusAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.StatusAction) + } + + public interface MxbUserActivationOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbUserActivation) + com.google.protobuf.MessageOrBuilder { + + /** + * .proto.Request request = 1; + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * .proto.Request request = 1; + * @return The request. + */ + ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * .proto.StatusAction status_action = 2; + * @return The enum numeric value on the wire for statusAction. + */ + int getStatusActionValue(); + /** + * .proto.StatusAction status_action = 2; + * @return The statusAction. + */ + StatusAction getStatusAction(); + } + /** + * Protobuf type {@code proto.MxbUserActivation} + */ + public static final class MxbUserActivation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbUserActivation) + MxbUserActivationOrBuilder { + private static final long serialVersionUID = 0L; + // Use MxbUserActivation.newBuilder() to construct. + private MxbUserActivation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbUserActivation() { + statusAction_ = 0; + } + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new MxbUserActivation(); + } + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MxbUserActivation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + statusAction_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivation_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserActivation.class, Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private ProtoRequest.Request request_; + /** + * .proto.Request request = 1; + * @return Whether the request field is set. + */ + @Override + public boolean hasRequest() { + return request_ != null; + } + /** + * .proto.Request request = 1; + * @return The request. + */ + @Override + public ProtoRequest.Request getRequest() { + return request_ == null ? ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * .proto.Request request = 1; + */ + @Override + public ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int STATUS_ACTION_FIELD_NUMBER = 2; + private int statusAction_; + /** + * .proto.StatusAction status_action = 2; + * @return The enum numeric value on the wire for statusAction. + */ + @Override public int getStatusActionValue() { + return statusAction_; + } + /** + * .proto.StatusAction status_action = 2; + * @return The statusAction. + */ + @Override public StatusAction getStatusAction() { + @SuppressWarnings("deprecation") + StatusAction result = StatusAction.valueOf(statusAction_); + return result == null ? StatusAction.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (statusAction_ != StatusAction.ACTIVATE.getNumber()) { + output.writeEnum(2, statusAction_); + } + unknownFields.writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (statusAction_ != StatusAction.ACTIVATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, statusAction_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof MxbUserActivation)) { + return super.equals(obj); + } + MxbUserActivation other = (MxbUserActivation) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (statusAction_ != other.statusAction_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + STATUS_ACTION_FIELD_NUMBER; + hash = (53 * hash) + statusAction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static MxbUserActivation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserActivation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserActivation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserActivation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserActivation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserActivation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserActivation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static MxbUserActivation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static MxbUserActivation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static MxbUserActivation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static MxbUserActivation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static MxbUserActivation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(MxbUserActivation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.MxbUserActivation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbUserActivation) + MxbUserActivationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivation_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserActivation.class, Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbUserActivation.MxbUserActivation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + statusAction_ = 0; + + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivation_descriptor; + } + + @Override + public MxbUserActivation getDefaultInstanceForType() { + return MxbUserActivation.getDefaultInstance(); + } + + @Override + public MxbUserActivation build() { + MxbUserActivation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public MxbUserActivation buildPartial() { + MxbUserActivation result = new MxbUserActivation(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.statusAction_ = statusAction_; + onBuilt(); + return result; + } + + @Override + public Builder clone() { + return super.clone(); + } + @Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.setField(field, value); + } + @Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return super.setRepeatedField(field, index, value); + } + @Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.addRepeatedField(field, value); + } + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof MxbUserActivation) { + return mergeFrom((MxbUserActivation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(MxbUserActivation other) { + if (other == MxbUserActivation.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.statusAction_ != 0) { + setStatusActionValue(other.getStatusActionValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + MxbUserActivation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (MxbUserActivation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * .proto.Request request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * .proto.Request request = 1; + * @return The request. + */ + public ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * .proto.Request request = 1; + */ + public Builder setRequest(ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder setRequest( + ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder mergeRequest(ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * .proto.Request request = 1; + */ + public ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private int statusAction_ = 0; + /** + * .proto.StatusAction status_action = 2; + * @return The enum numeric value on the wire for statusAction. + */ + @Override public int getStatusActionValue() { + return statusAction_; + } + /** + * .proto.StatusAction status_action = 2; + * @param value The enum numeric value on the wire for statusAction to set. + * @return This builder for chaining. + */ + public Builder setStatusActionValue(int value) { + + statusAction_ = value; + onChanged(); + return this; + } + /** + * .proto.StatusAction status_action = 2; + * @return The statusAction. + */ + @Override + public StatusAction getStatusAction() { + @SuppressWarnings("deprecation") + StatusAction result = StatusAction.valueOf(statusAction_); + return result == null ? StatusAction.UNRECOGNIZED : result; + } + /** + * .proto.StatusAction status_action = 2; + * @param value The statusAction to set. + * @return This builder for chaining. + */ + public Builder setStatusAction(StatusAction value) { + if (value == null) { + throw new NullPointerException(); + } + + statusAction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .proto.StatusAction status_action = 2; + * @return This builder for chaining. + */ + public Builder clearStatusAction() { + + statusAction_ = 0; + onChanged(); + return this; + } + @Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.MxbUserActivation) + } + + // @@protoc_insertion_point(class_scope:proto.MxbUserActivation) + private static final MxbUserActivation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new MxbUserActivation(); + } + + public static MxbUserActivation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public MxbUserActivation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUserActivation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public MxbUserActivation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MxbUserActivationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbUserActivationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .proto.Response response = 1; + * @return Whether the response field is set. + */ + boolean hasResponse(); + /** + * .proto.Response response = 1; + * @return The response. + */ + ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * .proto.StatusAction status_action = 2; + * @return The enum numeric value on the wire for statusAction. + */ + int getStatusActionValue(); + /** + * .proto.StatusAction status_action = 2; + * @return The statusAction. + */ + StatusAction getStatusAction(); + } + /** + * Protobuf type {@code proto.MxbUserActivationResponse} + */ + public static final class MxbUserActivationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbUserActivationResponse) + MxbUserActivationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MxbUserActivationResponse.newBuilder() to construct. + private MxbUserActivationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbUserActivationResponse() { + statusAction_ = 0; + } + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new MxbUserActivationResponse(); + } + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MxbUserActivationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + statusAction_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivationResponse_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserActivationResponse.class, Builder.class); + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private ProtoResponse.Response response_; + /** + * .proto.Response response = 1; + * @return Whether the response field is set. + */ + @Override + public boolean hasResponse() { + return response_ != null; + } + /** + * .proto.Response response = 1; + * @return The response. + */ + @Override + public ProtoResponse.Response getResponse() { + return response_ == null ? ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * .proto.Response response = 1; + */ + @Override + public ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int STATUS_ACTION_FIELD_NUMBER = 2; + private int statusAction_; + /** + * .proto.StatusAction status_action = 2; + * @return The enum numeric value on the wire for statusAction. + */ + @Override public int getStatusActionValue() { + return statusAction_; + } + /** + * .proto.StatusAction status_action = 2; + * @return The statusAction. + */ + @Override public StatusAction getStatusAction() { + @SuppressWarnings("deprecation") + StatusAction result = StatusAction.valueOf(statusAction_); + return result == null ? StatusAction.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (statusAction_ != StatusAction.ACTIVATE.getNumber()) { + output.writeEnum(2, statusAction_); + } + unknownFields.writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + if (statusAction_ != StatusAction.ACTIVATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, statusAction_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof MxbUserActivationResponse)) { + return super.equals(obj); + } + MxbUserActivationResponse other = (MxbUserActivationResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (statusAction_ != other.statusAction_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_ACTION_FIELD_NUMBER; + hash = (53 * hash) + statusAction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static MxbUserActivationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserActivationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserActivationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserActivationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserActivationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserActivationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserActivationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static MxbUserActivationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static MxbUserActivationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static MxbUserActivationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static MxbUserActivationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static MxbUserActivationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(MxbUserActivationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.MxbUserActivationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbUserActivationResponse) + MxbUserActivationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivationResponse_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserActivationResponse.class, Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbUserActivation.MxbUserActivationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + statusAction_ = 0; + + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ProtoMxbUserActivation.internal_static_proto_MxbUserActivationResponse_descriptor; + } + + @Override + public MxbUserActivationResponse getDefaultInstanceForType() { + return MxbUserActivationResponse.getDefaultInstance(); + } + + @Override + public MxbUserActivationResponse build() { + MxbUserActivationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public MxbUserActivationResponse buildPartial() { + MxbUserActivationResponse result = new MxbUserActivationResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.statusAction_ = statusAction_; + onBuilt(); + return result; + } + + @Override + public Builder clone() { + return super.clone(); + } + @Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.setField(field, value); + } + @Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return super.setRepeatedField(field, index, value); + } + @Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.addRepeatedField(field, value); + } + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof MxbUserActivationResponse) { + return mergeFrom((MxbUserActivationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(MxbUserActivationResponse other) { + if (other == MxbUserActivationResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.statusAction_ != 0) { + setStatusActionValue(other.getStatusActionValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + MxbUserActivationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (MxbUserActivationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * .proto.Response response = 1; + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * .proto.Response response = 1; + * @return The response. + */ + public ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * .proto.Response response = 1; + */ + public Builder setResponse(ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * .proto.Response response = 1; + */ + public Builder setResponse( + ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .proto.Response response = 1; + */ + public Builder mergeResponse(ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * .proto.Response response = 1; + */ + public ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private int statusAction_ = 0; + /** + * .proto.StatusAction status_action = 2; + * @return The enum numeric value on the wire for statusAction. + */ + @Override public int getStatusActionValue() { + return statusAction_; + } + /** + * .proto.StatusAction status_action = 2; + * @param value The enum numeric value on the wire for statusAction to set. + * @return This builder for chaining. + */ + public Builder setStatusActionValue(int value) { + + statusAction_ = value; + onChanged(); + return this; + } + /** + * .proto.StatusAction status_action = 2; + * @return The statusAction. + */ + @Override + public StatusAction getStatusAction() { + @SuppressWarnings("deprecation") + StatusAction result = StatusAction.valueOf(statusAction_); + return result == null ? StatusAction.UNRECOGNIZED : result; + } + /** + * .proto.StatusAction status_action = 2; + * @param value The statusAction to set. + * @return This builder for chaining. + */ + public Builder setStatusAction(StatusAction value) { + if (value == null) { + throw new NullPointerException(); + } + + statusAction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .proto.StatusAction status_action = 2; + * @return This builder for chaining. + */ + public Builder clearStatusAction() { + + statusAction_ = 0; + onChanged(); + return this; + } + @Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.MxbUserActivationResponse) + } + + // @@protoc_insertion_point(class_scope:proto.MxbUserActivationResponse) + private static final MxbUserActivationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new MxbUserActivationResponse(); + } + + public static MxbUserActivationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public MxbUserActivationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUserActivationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public MxbUserActivationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUserActivation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUserActivation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUserActivationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUserActivationResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\027MxbUserActivation.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"`\n\021MxbUserActiva" + + "tion\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022*\n" + + "\rstatus_action\030\002 \001(\0162\023.proto.StatusActio" + + "n\"j\n\031MxbUserActivationResponse\022!\n\010respon" + + "se\030\001 \001(\0132\017.proto.Response\022*\n\rstatus_acti" + + "on\030\002 \001(\0162\023.proto.StatusAction*,\n\014StatusA" + + "ction\022\014\n\010ACTIVATE\020\000\022\016\n\nDEACTIVATE\020\001B(\n\016n" + + "et.iGap.protoB\026ProtoMxbUserActivationb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + ProtoRequest.getDescriptor(), + ProtoResponse.getDescriptor(), + }); + internal_static_proto_MxbUserActivation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MxbUserActivation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUserActivation_descriptor, + new String[] { "Request", "StatusAction", }); + internal_static_proto_MxbUserActivationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MxbUserActivationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUserActivationResponse_descriptor, + new String[] { "Response", "StatusAction", }); + ProtoRequest.getDescriptor(); + ProtoResponse.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoMxbUserInsertion.java b/src/main/java/net/iGap/proto/ProtoMxbUserInsertion.java index 4b334d4..93c6499 100644 --- a/src/main/java/net/iGap/proto/ProtoMxbUserInsertion.java +++ b/src/main/java/net/iGap/proto/ProtoMxbUserInsertion.java @@ -8,181 +8,220 @@ private ProtoMxbUserInsertion() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface MxbUserInsertionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MxbUserInsertion) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ - net.iGap.proto.ProtoRequest.Request getRequest(); - + ProtoRequest.Request getRequest(); /** - * optional uint32 messenger_id = 2; + * .proto.Request request = 1; */ - int getMessengerId(); + ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string phone = 3; + * uint64 mxb_user_id = 2; + * @return The mxbUserId. */ - java.lang.String getPhone(); + long getMxbUserId(); + /** - * optional string phone = 3; + * uint32 messenger_id = 3; + * @return The messengerId. */ - com.google.protobuf.ByteString - getPhoneBytes(); + int getMessengerId(); } /** * Protobuf type {@code proto.MxbUserInsertion} */ - public static final class MxbUserInsertion extends - com.google.protobuf.GeneratedMessageLite< - MxbUserInsertion, MxbUserInsertion.Builder> implements + public static final class MxbUserInsertion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MxbUserInsertion) MxbUserInsertionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MxbUserInsertion.newBuilder() to construct. + private MxbUserInsertion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MxbUserInsertion() { - phone_ = ""; } - public static final int REQUEST_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoRequest.Request request_; - /** - * optional .proto.Request request = 1; - */ - public boolean hasRequest() { - return request_ != null; + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new MxbUserInsertion(); } - /** - * optional .proto.Request request = 1; - */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { + private MxbUserInsertion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { throw new NullPointerException(); } - request_ = value; - + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + mxbUserId_ = input.readUInt64(); + break; + } + case 24: { + + messengerId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_descriptor; } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserInsertion.class, Builder.class); } - public static final int MESSENGER_ID_FIELD_NUMBER = 2; - private int messengerId_; + public static final int REQUEST_FIELD_NUMBER = 1; + private ProtoRequest.Request request_; /** - * optional uint32 messenger_id = 2; + * .proto.Request request = 1; + * @return Whether the request field is set. */ - public int getMessengerId() { - return messengerId_; + @Override + public boolean hasRequest() { + return request_ != null; } /** - * optional uint32 messenger_id = 2; + * .proto.Request request = 1; + * @return The request. */ - private void setMessengerId(int value) { - - messengerId_ = value; + @Override + public ProtoRequest.Request getRequest() { + return request_ == null ? ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional uint32 messenger_id = 2; + * .proto.Request request = 1; */ - private void clearMessengerId() { - - messengerId_ = 0; + @Override + public ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - public static final int PHONE_FIELD_NUMBER = 3; - private java.lang.String phone_; - /** - * optional string phone = 3; - */ - public java.lang.String getPhone() { - return phone_; - } + public static final int MXB_USER_ID_FIELD_NUMBER = 2; + private long mxbUserId_; /** - * optional string phone = 3; + * uint64 mxb_user_id = 2; + * @return The mxbUserId. */ - public com.google.protobuf.ByteString - getPhoneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phone_); - } - /** - * optional string phone = 3; - */ - private void setPhone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phone_ = value; + @Override + public long getMxbUserId() { + return mxbUserId_; } + + public static final int MESSENGER_ID_FIELD_NUMBER = 3; + private int messengerId_; /** - * optional string phone = 3; + * uint32 messenger_id = 3; + * @return The messengerId. */ - private void clearPhone() { - - phone_ = getDefaultInstance().getPhone(); + @Override + public int getMessengerId() { + return messengerId_; } - /** - * optional string phone = 3; - */ - private void setPhoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phone_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (messengerId_ != 0) { - output.writeUInt32(2, messengerId_); + if (mxbUserId_ != 0L) { + output.writeUInt64(2, mxbUserId_); } - if (!phone_.isEmpty()) { - output.writeString(3, getPhone()); + if (messengerId_ != 0) { + output.writeUInt32(3, messengerId_); } + unknownFields.writeTo(output); } + @Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,412 +229,736 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (messengerId_ != 0) { + if (mxbUserId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, messengerId_); + .computeUInt64Size(2, mxbUserId_); } - if (!phone_.isEmpty()) { + if (messengerId_ != 0) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getPhone()); + .computeUInt32Size(3, messengerId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof MxbUserInsertion)) { + return super.equals(obj); + } + MxbUserInsertion other = (MxbUserInsertion) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getMxbUserId() + != other.getMxbUserId()) return false; + if (getMessengerId() + != other.getMessengerId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + MXB_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMxbUserId()); + hash = (37 * hash) + MESSENGER_ID_FIELD_NUMBER; + hash = (53 * hash) + getMessengerId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static MxbUserInsertion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserInsertion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserInsertion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + public static MxbUserInsertion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom(byte[] data) + public static MxbUserInsertion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + public static MxbUserInsertion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom(java.io.InputStream input) + public static MxbUserInsertion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + public static MxbUserInsertion parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseDelimitedFrom(java.io.InputStream input) + public static MxbUserInsertion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseDelimitedFrom( + public static MxbUserInsertion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + public static MxbUserInsertion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + public static MxbUserInsertion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion prototype) { + public static Builder newBuilder(MxbUserInsertion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MxbUserInsertion} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MxbUserInsertion) - net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionOrBuilder { + MxbUserInsertionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserInsertion.class, Builder.class); + } + // Construct using net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + mxbUserId_ = 0L; + + messengerId_ = 0; + + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_descriptor; + } + + @Override + public MxbUserInsertion getDefaultInstanceForType() { + return MxbUserInsertion.getDefaultInstance(); + } + @Override + public MxbUserInsertion build() { + MxbUserInsertion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public MxbUserInsertion buildPartial() { + MxbUserInsertion result = new MxbUserInsertion(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.mxbUserId_ = mxbUserId_; + result.messengerId_ = messengerId_; + onBuilt(); + return result; + } + + @Override + public Builder clone() { + return super.clone(); + } + @Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.setField(field, value); + } + @Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return super.setRepeatedField(field, index, value); + } + @Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.addRepeatedField(field, value); + } + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof MxbUserInsertion) { + return mergeFrom((MxbUserInsertion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(MxbUserInsertion other) { + if (other == MxbUserInsertion.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getMxbUserId() != 0L) { + setMxbUserId(other.getMxbUserId()); + } + if (other.getMessengerId() != 0) { + setMessengerId(other.getMessengerId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + MxbUserInsertion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (MxbUserInsertion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + public ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + public Builder setRequest(ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + public Builder mergeRequest(ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - /** - * optional uint32 messenger_id = 2; + * .proto.Request request = 1; */ - public int getMessengerId() { - return instance.getMessengerId(); + public ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); } /** - * optional uint32 messenger_id = 2; + * .proto.Request request = 1; */ - public Builder setMessengerId(int value) { - copyOnWrite(); - instance.setMessengerId(value); - return this; + public ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + ProtoRequest.Request.getDefaultInstance() : request_; + } } /** - * optional uint32 messenger_id = 2; + * .proto.Request request = 1; */ - public Builder clearMessengerId() { - copyOnWrite(); - instance.clearMessengerId(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ProtoRequest.Request, ProtoRequest.Request.Builder, ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; } + private long mxbUserId_ ; /** - * optional string phone = 3; + * uint64 mxb_user_id = 2; + * @return The mxbUserId. */ - public java.lang.String getPhone() { - return instance.getPhone(); + @Override + public long getMxbUserId() { + return mxbUserId_; } /** - * optional string phone = 3; + * uint64 mxb_user_id = 2; + * @param value The mxbUserId to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString - getPhoneBytes() { - return instance.getPhoneBytes(); + public Builder setMxbUserId(long value) { + + mxbUserId_ = value; + onChanged(); + return this; } /** - * optional string phone = 3; + * uint64 mxb_user_id = 2; + * @return This builder for chaining. */ - public Builder setPhone( - java.lang.String value) { - copyOnWrite(); - instance.setPhone(value); + public Builder clearMxbUserId() { + + mxbUserId_ = 0L; + onChanged(); return this; } + + private int messengerId_ ; + /** + * uint32 messenger_id = 3; + * @return The messengerId. + */ + @Override + public int getMessengerId() { + return messengerId_; + } /** - * optional string phone = 3; + * uint32 messenger_id = 3; + * @param value The messengerId to set. + * @return This builder for chaining. */ - public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + public Builder setMessengerId(int value) { + + messengerId_ = value; + onChanged(); return this; } /** - * optional string phone = 3; + * uint32 messenger_id = 3; + * @return This builder for chaining. */ - public Builder setPhoneBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneBytes(value); + public Builder clearMessengerId() { + + messengerId_ = 0; + onChanged(); return this; } + @Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.MxbUserInsertion) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion other = (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion) arg1; - request_ = visitor.visitMessage(request_, other.request_); - messengerId_ = visitor.visitInt(messengerId_ != 0, messengerId_, - other.messengerId_ != 0, other.messengerId_); - phone_ = visitor.visitString(!phone_.isEmpty(), phone_, - !other.phone_.isEmpty(), other.phone_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - messengerId_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - phone_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MxbUserInsertion) + } + // @@protoc_insertion_point(class_scope:proto.MxbUserInsertion) - private static final net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion DEFAULT_INSTANCE; + private static final MxbUserInsertion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new MxbUserInsertion(); - DEFAULT_INSTANCE.makeImmutable(); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion getDefaultInstance() { + public static MxbUserInsertion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public MxbUserInsertion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUserInsertion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public MxbUserInsertion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface MxbUserInsertionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.MxbUserInsertionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. + */ + ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * uint64 user_id = 2; + * @return The userId. */ - net.iGap.proto.ProtoResponse.Response getResponse(); + long getUserId(); } /** * Protobuf type {@code proto.MxbUserInsertionResponse} */ - public static final class MxbUserInsertionResponse extends - com.google.protobuf.GeneratedMessageLite< - MxbUserInsertionResponse, MxbUserInsertionResponse.Builder> implements + public static final class MxbUserInsertionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.MxbUserInsertionResponse) MxbUserInsertionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MxbUserInsertionResponse.newBuilder() to construct. + private MxbUserInsertionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private MxbUserInsertionResponse() { } + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new MxbUserInsertionResponse(); + } + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MxbUserInsertionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserInsertionResponse.class, Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; + private ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + @Override + public ProtoResponse.Response getResponse() { + return response_ == null ? ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @Override + public ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } + + public static final int USER_ID_FIELD_NUMBER = 2; + private long userId_; /** - * optional .proto.Response response = 1; + * uint64 user_id = 2; + * @return The userId. */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @Override + public long getUserId() { + return userId_; } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + if (userId_ != 0L) { + output.writeUInt64(2, userId_); + } + unknownFields.writeTo(output); } + @Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -603,244 +966,556 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + if (userId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, userId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof MxbUserInsertionResponse)) { + return super.equals(obj); + } + MxbUserInsertionResponse other = (MxbUserInsertionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static MxbUserInsertionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static MxbUserInsertionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static MxbUserInsertionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + public static MxbUserInsertionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom(byte[] data) + public static MxbUserInsertionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + public static MxbUserInsertionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom(java.io.InputStream input) + public static MxbUserInsertionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + public static MxbUserInsertionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseDelimitedFrom(java.io.InputStream input) + public static MxbUserInsertionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseDelimitedFrom( + public static MxbUserInsertionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + public static MxbUserInsertionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + public static MxbUserInsertionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse prototype) { + public static Builder newBuilder(MxbUserInsertionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.MxbUserInsertionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.MxbUserInsertionResponse) - net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponseOrBuilder { + MxbUserInsertionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + MxbUserInsertionResponse.class, Builder.class); + } + // Construct using net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + userId_ = 0L; + + return this; } + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_descriptor; + } + + @Override + public MxbUserInsertionResponse getDefaultInstanceForType() { + return MxbUserInsertionResponse.getDefaultInstance(); + } + @Override + public MxbUserInsertionResponse build() { + MxbUserInsertionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public MxbUserInsertionResponse buildPartial() { + MxbUserInsertionResponse result = new MxbUserInsertionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @Override + public Builder clone() { + return super.clone(); + } + @Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.setField(field, value); + } + @Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return super.setRepeatedField(field, index, value); + } + @Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return super.addRepeatedField(field, value); + } + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof MxbUserInsertionResponse) { + return mergeFrom((MxbUserInsertionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(MxbUserInsertionResponse other) { + if (other == MxbUserInsertionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + MxbUserInsertionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (MxbUserInsertionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + public ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + public Builder setResponse(ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + public Builder mergeResponse(ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.MxbUserInsertionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse other = (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ProtoResponse.Response, ProtoResponse.Response.Builder, ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + + private long userId_ ; + /** + * uint64 user_id = 2; + * @return The userId. + */ + @Override + public long getUserId() { + return userId_; + } + /** + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(long value) { + + userId_ = value; + onChanged(); + return this; + } + /** + * uint64 user_id = 2; + * @return This builder for chaining. + */ + public Builder clearUserId() { + + userId_ = 0L; + onChanged(); + return this; + } + @Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.MxbUserInsertionResponse) + } + // @@protoc_insertion_point(class_scope:proto.MxbUserInsertionResponse) - private static final net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse DEFAULT_INSTANCE; + private static final MxbUserInsertionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new MxbUserInsertionResponse(); - DEFAULT_INSTANCE.makeImmutable(); } - public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse getDefaultInstance() { + public static MxbUserInsertionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public MxbUserInsertionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUserInsertionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @Override + public MxbUserInsertionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUserInsertion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUserInsertion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUserInsertionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUserInsertionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + String[] descriptorData = { + "\n\026MxbUserInsertion.proto\022\005proto\032\016Respons" + + "e.proto\032\rRequest.proto\"^\n\020MxbUserInserti" + + "on\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\023\n\013m" + + "xb_user_id\030\002 \001(\004\022\024\n\014messenger_id\030\003 \001(\r\"N" + + "\n\030MxbUserInsertionResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\017\n\007user_id\030\002 \001(\004B\'" + + "\n\016net.iGap.protoB\025ProtoMxbUserInsertionb" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + ProtoResponse.getDescriptor(), + ProtoRequest.getDescriptor(), + }); + internal_static_proto_MxbUserInsertion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MxbUserInsertion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUserInsertion_descriptor, + new String[] { "Request", "MxbUserId", "MessengerId", }); + internal_static_proto_MxbUserInsertionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MxbUserInsertionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUserInsertionResponse_descriptor, + new String[] { "Response", "UserId", }); + ProtoResponse.getDescriptor(); + ProtoRequest.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoPinMessage.java b/src/main/java/net/iGap/proto/ProtoPinMessage.java index 1053ea4..c3e933a 100644 --- a/src/main/java/net/iGap/proto/ProtoPinMessage.java +++ b/src/main/java/net/iGap/proto/ProtoPinMessage.java @@ -8,165 +8,225 @@ private ProtoPinMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface PinMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PinMessage) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ long getDocumentId(); } /** * Protobuf type {@code proto.PinMessage} */ - public static final class PinMessage extends - com.google.protobuf.GeneratedMessageLite< - PinMessage, PinMessage.Builder> implements + public static final class PinMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PinMessage) PinMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use PinMessage.newBuilder() to construct. + private PinMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PinMessage() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PinMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PinMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + documentId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessage.class, net.iGap.proto.ProtoPinMessage.PinMessage.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; - } public static final int DOCUMENT_ID_FIELD_NUMBER = 4; private long documentId_; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { return documentId_; } - /** - * optional uint64 document_id = 4; - */ - private void setDocumentId(long value) { - - documentId_ = value; - } - /** - * optional uint64 document_id = 4; - */ - private void clearDocumentId() { - - documentId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -181,10 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(4, documentId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -204,496 +266,811 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, documentId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoPinMessage.PinMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPinMessage.PinMessage other = (net.iGap.proto.ProtoPinMessage.PinMessage) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (getDocumentId() + != other.getDocumentId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoPinMessage.PinMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PinMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoPinMessage.PinMessage, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PinMessage) net.iGap.proto.ProtoPinMessage.PinMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessage.class, net.iGap.proto.ProtoPinMessage.PinMessage.Builder.class); + } + // Construct using net.iGap.proto.ProtoPinMessage.PinMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoPinMessage.PinMessage.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessage build() { + net.iGap.proto.ProtoPinMessage.PinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessage buildPartial() { + net.iGap.proto.ProtoPinMessage.PinMessage result = new net.iGap.proto.ProtoPinMessage.PinMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoPinMessage.PinMessage) { + return mergeFrom((net.iGap.proto.ProtoPinMessage.PinMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoPinMessage.PinMessage other) { + if (other == net.iGap.proto.ProtoPinMessage.PinMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoPinMessage.PinMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPinMessage.PinMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + private long documentId_ ; /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return The documentId. */ + @java.lang.Override public long getDocumentId() { - return instance.getDocumentId(); + return documentId_; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @param value The documentId to set. + * @return This builder for chaining. */ public Builder setDocumentId(long value) { - copyOnWrite(); - instance.setDocumentId(value); + + documentId_ = value; + onChanged(); return this; } /** - * optional uint64 document_id = 4; + * uint64 document_id = 4; + * @return This builder for chaining. */ public Builder clearDocumentId() { - copyOnWrite(); - instance.clearDocumentId(); + + documentId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PinMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoPinMessage.PinMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoPinMessage.PinMessage other = (net.iGap.proto.ProtoPinMessage.PinMessage) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - documentId_ = visitor.visitLong(documentId_ != 0L, documentId_, - other.documentId_ != 0L, other.documentId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - case 32: { - - documentId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoPinMessage.PinMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.PinMessage) + } + // @@protoc_insertion_point(class_scope:proto.PinMessage) private static final net.iGap.proto.ProtoPinMessage.PinMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PinMessage(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPinMessage.PinMessage(); } public static net.iGap.proto.ProtoPinMessage.PinMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PinMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PinMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface PinMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PinMessageResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ boolean hasPinnedMessage(); /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage(); + /** + * .proto.RoomMessage pinned_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder(); } /** * Protobuf type {@code proto.PinMessageResponse} */ - public static final class PinMessageResponse extends - com.google.protobuf.GeneratedMessageLite< - PinMessageResponse, PinMessageResponse.Builder> implements + public static final class PinMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PinMessageResponse) PinMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PinMessageResponse.newBuilder() to construct. + private PinMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PinMessageResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PinMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PinMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (pinnedMessage_ != null) { + subBuilder = pinnedMessage_.toBuilder(); + } + pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pinnedMessage_); + pinnedMessage_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessageResponse.class, net.iGap.proto.ProtoPinMessage.PinMessageResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int PINNED_MESSAGE_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ + @java.lang.Override public boolean hasPinnedMessage() { return pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; } /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (value == null) { - throw new NullPointerException(); - } - pinnedMessage_ = value; - - } - /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void setPinnedMessage( - net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - pinnedMessage_ = builderForValue.build(); - - } - /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ - private void mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - if (pinnedMessage_ != null && - pinnedMessage_ != net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance()) { - pinnedMessage_ = - net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); - } else { - pinnedMessage_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + return getPinnedMessage(); } - /** - * optional .proto.RoomMessage pinned_message = 3; - */ - private void clearPinnedMessage() { pinnedMessage_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -705,10 +1082,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pinnedMessage_ != null) { output.writeMessage(3, getPinnedMessage()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -724,333 +1103,697 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPinnedMessage()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoPinMessage.PinMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPinMessage.PinMessageResponse other = (net.iGap.proto.ProtoPinMessage.PinMessageResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (hasPinnedMessage() != other.hasPinnedMessage()) return false; + if (hasPinnedMessage()) { + if (!getPinnedMessage() + .equals(other.getPinnedMessage())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasPinnedMessage()) { + hash = (37 * hash) + PINNED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getPinnedMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoPinMessage.PinMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PinMessageResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoPinMessage.PinMessageResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PinMessageResponse) net.iGap.proto.ProtoPinMessage.PinMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessageResponse.class, net.iGap.proto.ProtoPinMessage.PinMessageResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoPinMessage.PinMessageResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoPinMessage.PinMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessageResponse build() { + net.iGap.proto.ProtoPinMessage.PinMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessageResponse buildPartial() { + net.iGap.proto.ProtoPinMessage.PinMessageResponse result = new net.iGap.proto.ProtoPinMessage.PinMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (pinnedMessageBuilder_ == null) { + result.pinnedMessage_ = pinnedMessage_; + } else { + result.pinnedMessage_ = pinnedMessageBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoPinMessage.PinMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoPinMessage.PinMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoPinMessage.PinMessageResponse other) { + if (other == net.iGap.proto.ProtoPinMessage.PinMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasPinnedMessage()) { + mergePinnedMessage(other.getPinnedMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoPinMessage.PinMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPinMessage.PinMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> pinnedMessageBuilder_; /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return Whether the pinnedMessage field is set. */ public boolean hasPinnedMessage() { - return instance.hasPinnedMessage(); + return pinnedMessageBuilder_ != null || pinnedMessage_ != null; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; + * @return The pinnedMessage. */ public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { - return instance.getPinnedMessage(); + if (pinnedMessageBuilder_ == null) { + return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } else { + return pinnedMessageBuilder_.getMessage(); + } } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.setPinnedMessage(value); - return this; + if (pinnedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pinnedMessage_ = value; + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder setPinnedMessage( net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPinnedMessage(builderForValue); + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = builderForValue.build(); + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ public Builder mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { - copyOnWrite(); - instance.mergePinnedMessage(value); + if (pinnedMessageBuilder_ == null) { + if (pinnedMessage_ != null) { + pinnedMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); + } else { + pinnedMessage_ = value; + } + onChanged(); + } else { + pinnedMessageBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RoomMessage pinned_message = 3; + * .proto.RoomMessage pinned_message = 3; */ - public Builder clearPinnedMessage() { copyOnWrite(); - instance.clearPinnedMessage(); + public Builder clearPinnedMessage() { + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + onChanged(); + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.PinMessageResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoPinMessage.PinMessageResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoPinMessage.PinMessageResponse other = (net.iGap.proto.ProtoPinMessage.PinMessageResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - pinnedMessage_ = visitor.visitMessage(pinnedMessage_, other.pinnedMessage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; - if (pinnedMessage_ != null) { - subBuilder = pinnedMessage_.toBuilder(); - } - pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pinnedMessage_); - pinnedMessage_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getPinnedMessageBuilder() { + + onChanged(); + return getPinnedMessageFieldBuilder().getBuilder(); + } + /** + * .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + if (pinnedMessageBuilder_ != null) { + return pinnedMessageBuilder_.getMessageOrBuilder(); + } else { + return pinnedMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoPinMessage.PinMessageResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RoomMessage pinned_message = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getPinnedMessageFieldBuilder() { + if (pinnedMessageBuilder_ == null) { + pinnedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getPinnedMessage(), + getParentForChildren(), + isClean()); + pinnedMessage_ = null; } + return pinnedMessageBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.PinMessageResponse) + } // @@protoc_insertion_point(class_scope:proto.PinMessageResponse) private static final net.iGap.proto.ProtoPinMessage.PinMessageResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PinMessageResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPinMessage.PinMessageResponse(); } public static net.iGap.proto.ProtoPinMessage.PinMessageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PinMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PinMessageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoPinMessage.PinMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PinMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PinMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PinMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PinMessageResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020PinMessage.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\032\014Global.proto\"g\n\nPinMes" + + "sage\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\023\n\013do" + + "cument_id\030\004 \001(\004\"t\n\022PinMessageResponse\022!\n" + + "\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007room" + + "_id\030\002 \001(\004\022*\n\016pinned_message\030\003 \001(\0132\022.prot" + + "o.RoomMessageB!\n\016net.iGap.protoB\017ProtoPi" + + "nMessageb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_PinMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_PinMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PinMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_PinMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_PinMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PinMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "PinnedMessage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoPushLoginToken.java b/src/main/java/net/iGap/proto/ProtoPushLoginToken.java index 6f9a7c4..064a515 100644 --- a/src/main/java/net/iGap/proto/ProtoPushLoginToken.java +++ b/src/main/java/net/iGap/proto/ProtoPushLoginToken.java @@ -8,50 +8,69 @@ private ProtoPushLoginToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface PushLoginTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PushLoginTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ java.lang.String getAuthorHash(); /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ com.google.protobuf.ByteString getAuthorHashBytes(); /** - * optional string token = 5; + * string token = 5; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 5; + * string token = 5; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -59,250 +78,305 @@ public interface PushLoginTokenResponseOrBuilder extends /** * Protobuf type {@code proto.PushLoginTokenResponse} */ - public static final class PushLoginTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - PushLoginTokenResponse, PushLoginTokenResponse.Builder> implements + public static final class PushLoginTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PushLoginTokenResponse) PushLoginTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PushLoginTokenResponse.newBuilder() to construct. + private PushLoginTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PushLoginTokenResponse() { username_ = ""; authorHash_ = ""; token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PushLoginTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushLoginTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + authorHash_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushLoginToken.internal_static_proto_PushLoginTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushLoginToken.internal_static_proto_PushLoginTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.class, net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int AUTHOR_HASH_FIELD_NUMBER = 4; - private java.lang.String authorHash_; + private volatile java.lang.Object authorHash_; /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ + @java.lang.Override public java.lang.String getAuthorHash() { - return authorHash_; + java.lang.Object ref = authorHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorHash_ = s; + return s; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(authorHash_); - } - /** - * optional string author_hash = 4; - */ - private void setAuthorHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authorHash_ = value; - } - /** - * optional string author_hash = 4; - */ - private void clearAuthorHash() { - - authorHash_ = getDefaultInstance().getAuthorHash(); - } - /** - * optional string author_hash = 4; - */ - private void setAuthorHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authorHash_ = value.toStringUtf8(); + java.lang.Object ref = authorHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOKEN_FIELD_NUMBER = 5; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 5; + * string token = 5; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 5; + * string token = 5; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 5; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 5; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 5; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (userId_ != 0L) { output.writeUInt64(3, userId_); } - if (!authorHash_.isEmpty()) { - output.writeString(4, getAuthorHash()); + if (!getAuthorHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorHash_); } - if (!token_.isEmpty()) { - output.writeString(5, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -310,434 +384,811 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (userId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - if (!authorHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getAuthorHash()); + if (!getAuthorHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorHash_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse other = (net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getUserId() + != other.getUserId()) return false; + if (!getAuthorHash() + .equals(other.getAuthorHash())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + AUTHOR_HASH_FIELD_NUMBER; + hash = (53 * hash) + getAuthorHash().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PushLoginTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PushLoginTokenResponse) net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushLoginToken.internal_static_proto_PushLoginTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushLoginToken.internal_static_proto_PushLoginTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.class, net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + username_ = ""; + + userId_ = 0L; + + authorHash_ = ""; + + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPushLoginToken.internal_static_proto_PushLoginTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse build() { + net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse buildPartial() { + net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse result = new net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.username_ = username_; + result.userId_ = userId_; + result.authorHash_ = authorHash_; + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse other) { + if (other == net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (!other.getAuthorHash().isEmpty()) { + authorHash_ = other.authorHash_; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private java.lang.Object authorHash_ = ""; /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ public java.lang.String getAuthorHash() { - return instance.getAuthorHash(); + java.lang.Object ref = authorHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ public com.google.protobuf.ByteString getAuthorHashBytes() { - return instance.getAuthorHashBytes(); + java.lang.Object ref = authorHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @param value The authorHash to set. + * @return This builder for chaining. */ public Builder setAuthorHash( java.lang.String value) { - copyOnWrite(); - instance.setAuthorHash(value); + if (value == null) { + throw new NullPointerException(); + } + + authorHash_ = value; + onChanged(); return this; } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return This builder for chaining. */ public Builder clearAuthorHash() { - copyOnWrite(); - instance.clearAuthorHash(); + + authorHash_ = getDefaultInstance().getAuthorHash(); + onChanged(); return this; } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @param value The bytes for authorHash to set. + * @return This builder for chaining. */ public Builder setAuthorHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAuthorHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authorHash_ = value; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 5; + * string token = 5; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 5; + * string token = 5; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 5; + * string token = 5; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 5; + * string token = 5; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 5; + * string token = 5; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PushLoginTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse other = (net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - authorHash_ = visitor.visitString(!authorHash_.isEmpty(), authorHash_, - !other.authorHash_.isEmpty(), other.authorHash_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - authorHash_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.PushLoginTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.PushLoginTokenResponse) private static final net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PushLoginTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse(); } public static net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushLoginTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushLoginTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushLoginToken.PushLoginTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PushLoginTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PushLoginTokenResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024PushLoginToken.proto\022\005proto\032\016Response." + + "proto\"\202\001\n\026PushLoginTokenResponse\022!\n\010resp" + + "onse\030\001 \001(\0132\017.proto.Response\022\020\n\010username\030" + + "\002 \001(\t\022\017\n\007user_id\030\003 \001(\004\022\023\n\013author_hash\030\004 " + + "\001(\t\022\r\n\005token\030\005 \001(\tB%\n\016net.iGap.protoB\023Pr" + + "otoPushLoginTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_PushLoginTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_PushLoginTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PushLoginTokenResponse_descriptor, + new java.lang.String[] { "Response", "Username", "UserId", "AuthorHash", "Token", }); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoPushRateSignaling.java b/src/main/java/net/iGap/proto/ProtoPushRateSignaling.java index f5adc5c..b5edbf5 100644 --- a/src/main/java/net/iGap/proto/ProtoPushRateSignaling.java +++ b/src/main/java/net/iGap/proto/ProtoPushRateSignaling.java @@ -8,109 +8,181 @@ private ProtoPushRateSignaling() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface PushRateSignalingResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PushRateSignalingResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); } /** * Protobuf type {@code proto.PushRateSignalingResponse} */ - public static final class PushRateSignalingResponse extends - com.google.protobuf.GeneratedMessageLite< - PushRateSignalingResponse, PushRateSignalingResponse.Builder> implements + public static final class PushRateSignalingResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PushRateSignalingResponse) PushRateSignalingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PushRateSignalingResponse.newBuilder() to construct. + private PushRateSignalingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PushRateSignalingResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PushRateSignalingResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushRateSignalingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushRateSignaling.internal_static_proto_PushRateSignalingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushRateSignaling.internal_static_proto_PushRateSignalingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.class, net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (id_ != 0L) { output.writeUInt64(2, id_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,274 +208,536 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, id_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse other = (net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getId() + != other.getId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PushRateSignalingResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PushRateSignalingResponse) net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushRateSignaling.internal_static_proto_PushRateSignalingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushRateSignaling.internal_static_proto_PushRateSignalingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.class, net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + id_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPushRateSignaling.internal_static_proto_PushRateSignalingResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse build() { + net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse buildPartial() { + net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse result = new net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse) { + return mergeFrom((net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse other) { + if (other == net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PushRateSignalingResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse other = (net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.PushRateSignalingResponse) + } + // @@protoc_insertion_point(class_scope:proto.PushRateSignalingResponse) private static final net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PushRateSignalingResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse(); } public static net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushRateSignalingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushRateSignalingResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoPushRateSignaling.PushRateSignalingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PushRateSignalingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PushRateSignalingResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027PushRateSignaling.proto\022\005proto\032\016Respon" + + "se.proto\"J\n\031PushRateSignalingResponse\022!\n" + + "\010response\030\001 \001(\0132\017.proto.Response\022\n\n\002id\030\002" + + " \001(\004B(\n\016net.iGap.protoB\026ProtoPushRateSig" + + "nalingb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_PushRateSignalingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_PushRateSignalingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PushRateSignalingResponse_descriptor, + new java.lang.String[] { "Response", "Id", }); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoPushTwoStepVerification.java b/src/main/java/net/iGap/proto/ProtoPushTwoStepVerification.java index ea1b6eb..4327c3a 100644 --- a/src/main/java/net/iGap/proto/ProtoPushTwoStepVerification.java +++ b/src/main/java/net/iGap/proto/ProtoPushTwoStepVerification.java @@ -8,40 +8,57 @@ private ProtoPushTwoStepVerification() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface PushTwoStepVerificationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PushTwoStepVerificationResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ java.lang.String getAuthorHash(); /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ com.google.protobuf.ByteString getAuthorHashBytes(); @@ -49,200 +66,257 @@ public interface PushTwoStepVerificationResponseOrBuilder extends /** * Protobuf type {@code proto.PushTwoStepVerificationResponse} */ - public static final class PushTwoStepVerificationResponse extends - com.google.protobuf.GeneratedMessageLite< - PushTwoStepVerificationResponse, PushTwoStepVerificationResponse.Builder> implements + public static final class PushTwoStepVerificationResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PushTwoStepVerificationResponse) PushTwoStepVerificationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PushTwoStepVerificationResponse.newBuilder() to construct. + private PushTwoStepVerificationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PushTwoStepVerificationResponse() { username_ = ""; authorHash_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PushTwoStepVerificationResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushTwoStepVerificationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + authorHash_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushTwoStepVerification.internal_static_proto_PushTwoStepVerificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushTwoStepVerification.internal_static_proto_PushTwoStepVerificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.class, net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int AUTHOR_HASH_FIELD_NUMBER = 4; - private java.lang.String authorHash_; + private volatile java.lang.Object authorHash_; /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ + @java.lang.Override public java.lang.String getAuthorHash() { - return authorHash_; + java.lang.Object ref = authorHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorHash_ = s; + return s; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(authorHash_); - } - /** - * optional string author_hash = 4; - */ - private void setAuthorHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authorHash_ = value; - } - /** - * optional string author_hash = 4; - */ - private void clearAuthorHash() { - - authorHash_ = getDefaultInstance().getAuthorHash(); + java.lang.Object ref = authorHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string author_hash = 4; - */ - private void setAuthorHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authorHash_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (userId_ != 0L) { output.writeUInt64(3, userId_); } - if (!authorHash_.isEmpty()) { - output.writeString(4, getAuthorHash()); + if (!getAuthorHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorHash_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -250,382 +324,721 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (userId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - if (!authorHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getAuthorHash()); + if (!getAuthorHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorHash_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse other = (net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getUserId() + != other.getUserId()) return false; + if (!getAuthorHash() + .equals(other.getAuthorHash())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + AUTHOR_HASH_FIELD_NUMBER; + hash = (53 * hash) + getAuthorHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PushTwoStepVerificationResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PushTwoStepVerificationResponse) net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushTwoStepVerification.internal_static_proto_PushTwoStepVerificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushTwoStepVerification.internal_static_proto_PushTwoStepVerificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.class, net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + username_ = ""; + + userId_ = 0L; + + authorHash_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPushTwoStepVerification.internal_static_proto_PushTwoStepVerificationResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse build() { + net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse buildPartial() { + net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse result = new net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.username_ = username_; + result.userId_ = userId_; + result.authorHash_ = authorHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse) { + return mergeFrom((net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse other) { + if (other == net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (!other.getAuthorHash().isEmpty()) { + authorHash_ = other.authorHash_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private java.lang.Object authorHash_ = ""; /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ public java.lang.String getAuthorHash() { - return instance.getAuthorHash(); + java.lang.Object ref = authorHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ public com.google.protobuf.ByteString getAuthorHashBytes() { - return instance.getAuthorHashBytes(); + java.lang.Object ref = authorHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @param value The authorHash to set. + * @return This builder for chaining. */ public Builder setAuthorHash( java.lang.String value) { - copyOnWrite(); - instance.setAuthorHash(value); + if (value == null) { + throw new NullPointerException(); + } + + authorHash_ = value; + onChanged(); return this; } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return This builder for chaining. */ public Builder clearAuthorHash() { - copyOnWrite(); - instance.clearAuthorHash(); + + authorHash_ = getDefaultInstance().getAuthorHash(); + onChanged(); return this; } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @param value The bytes for authorHash to set. + * @return This builder for chaining. */ public Builder setAuthorHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAuthorHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authorHash_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PushTwoStepVerificationResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse other = (net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - authorHash_ = visitor.visitString(!authorHash_.isEmpty(), authorHash_, - !other.authorHash_.isEmpty(), other.authorHash_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - authorHash_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.PushTwoStepVerificationResponse) + } + // @@protoc_insertion_point(class_scope:proto.PushTwoStepVerificationResponse) private static final net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PushTwoStepVerificationResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse(); } public static net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushTwoStepVerificationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushTwoStepVerificationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushTwoStepVerification.PushTwoStepVerificationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PushTwoStepVerificationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PushTwoStepVerificationResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\035PushTwoStepVerification.proto\022\005proto\032\016" + + "Response.proto\"|\n\037PushTwoStepVerificatio" + + "nResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\020\n\010username\030\002 \001(\t\022\017\n\007user_id\030\003 \001(\004\022" + + "\023\n\013author_hash\030\004 \001(\tB.\n\016net.iGap.protoB\034" + + "ProtoPushTwoStepVerificationb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_PushTwoStepVerificationResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_PushTwoStepVerificationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PushTwoStepVerificationResponse_descriptor, + new java.lang.String[] { "Response", "Username", "UserId", "AuthorHash", }); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoPushUserInfoExpired.java b/src/main/java/net/iGap/proto/ProtoPushUserInfoExpired.java index bc99f35..98b1f80 100644 --- a/src/main/java/net/iGap/proto/ProtoPushUserInfoExpired.java +++ b/src/main/java/net/iGap/proto/ProtoPushUserInfoExpired.java @@ -8,109 +8,181 @@ private ProtoPushUserInfoExpired() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface PushUserInfoExpiredResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PushUserInfoExpiredResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.PushUserInfoExpiredResponse} */ - public static final class PushUserInfoExpiredResponse extends - com.google.protobuf.GeneratedMessageLite< - PushUserInfoExpiredResponse, PushUserInfoExpiredResponse.Builder> implements + public static final class PushUserInfoExpiredResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PushUserInfoExpiredResponse) PushUserInfoExpiredResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PushUserInfoExpiredResponse.newBuilder() to construct. + private PushUserInfoExpiredResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PushUserInfoExpiredResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PushUserInfoExpiredResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushUserInfoExpiredResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushUserInfoExpired.internal_static_proto_PushUserInfoExpiredResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushUserInfoExpired.internal_static_proto_PushUserInfoExpiredResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.class, net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,274 +208,536 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse other = (net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PushUserInfoExpiredResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PushUserInfoExpiredResponse) net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushUserInfoExpired.internal_static_proto_PushUserInfoExpiredResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushUserInfoExpired.internal_static_proto_PushUserInfoExpiredResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.class, net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + userId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPushUserInfoExpired.internal_static_proto_PushUserInfoExpiredResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse build() { + net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse buildPartial() { + net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse result = new net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse) { + return mergeFrom((net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse other) { + if (other == net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PushUserInfoExpiredResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse other = (net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.PushUserInfoExpiredResponse) + } + // @@protoc_insertion_point(class_scope:proto.PushUserInfoExpiredResponse) private static final net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PushUserInfoExpiredResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse(); } public static net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushUserInfoExpiredResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushUserInfoExpiredResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoPushUserInfoExpired.PushUserInfoExpiredResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PushUserInfoExpiredResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PushUserInfoExpiredResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031PushUserInfoExpired.proto\022\005proto\032\016Resp" + + "onse.proto\"Q\n\033PushUserInfoExpiredRespons" + + "e\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007" + + "user_id\030\002 \001(\004B*\n\016net.iGap.protoB\030ProtoPu" + + "shUserInfoExpiredb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_PushUserInfoExpiredResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_PushUserInfoExpiredResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PushUserInfoExpiredResponse_descriptor, + new java.lang.String[] { "Response", "UserId", }); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoPushWalletPaymentVerified.java b/src/main/java/net/iGap/proto/ProtoPushWalletPaymentVerified.java index 6646775..b6a606f 100644 --- a/src/main/java/net/iGap/proto/ProtoPushWalletPaymentVerified.java +++ b/src/main/java/net/iGap/proto/ProtoPushWalletPaymentVerified.java @@ -8,25 +8,39 @@ private ProtoPushWalletPaymentVerified() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface PushWalletPaymentVerifiedResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PushWalletPaymentVerifiedResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -34,124 +48,190 @@ public interface PushWalletPaymentVerifiedResponseOrBuilder extends /** * Protobuf type {@code proto.PushWalletPaymentVerifiedResponse} */ - public static final class PushWalletPaymentVerifiedResponse extends - com.google.protobuf.GeneratedMessageLite< - PushWalletPaymentVerifiedResponse, PushWalletPaymentVerifiedResponse.Builder> implements + public static final class PushWalletPaymentVerifiedResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PushWalletPaymentVerifiedResponse) PushWalletPaymentVerifiedResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PushWalletPaymentVerifiedResponse.newBuilder() to construct. + private PushWalletPaymentVerifiedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private PushWalletPaymentVerifiedResponse() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PushWalletPaymentVerifiedResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushWalletPaymentVerifiedResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushWalletPaymentVerified.internal_static_proto_PushWalletPaymentVerifiedResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushWalletPaymentVerified.internal_static_proto_PushWalletPaymentVerifiedResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.class, net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,296 +239,585 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse other = (net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.PushWalletPaymentVerifiedResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PushWalletPaymentVerifiedResponse) net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPushWalletPaymentVerified.internal_static_proto_PushWalletPaymentVerifiedResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPushWalletPaymentVerified.internal_static_proto_PushWalletPaymentVerifiedResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.class, net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPushWalletPaymentVerified.internal_static_proto_PushWalletPaymentVerifiedResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse build() { + net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse buildPartial() { + net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse result = new net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse) { + return mergeFrom((net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse other) { + if (other == net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.PushWalletPaymentVerifiedResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse other = (net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.PushWalletPaymentVerifiedResponse) + } + // @@protoc_insertion_point(class_scope:proto.PushWalletPaymentVerifiedResponse) private static final net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new PushWalletPaymentVerifiedResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse(); } public static net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushWalletPaymentVerifiedResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushWalletPaymentVerifiedResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoPushWalletPaymentVerified.PushWalletPaymentVerifiedResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PushWalletPaymentVerifiedResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PushWalletPaymentVerifiedResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\037PushWalletPaymentVerified.proto\022\005proto" + + "\032\016Response.proto\"U\n!PushWalletPaymentVer" + + "ifiedResponse\022!\n\010response\030\001 \001(\0132\017.proto." + + "Response\022\r\n\005token\030\002 \001(\tB0\n\016net.iGap.prot" + + "oB\036ProtoPushWalletPaymentVerifiedb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_PushWalletPaymentVerifiedResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_PushWalletPaymentVerifiedResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PushWalletPaymentVerifiedResponse_descriptor, + new java.lang.String[] { "Response", "Token", }); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoQrCodeAddContact.java b/src/main/java/net/iGap/proto/ProtoQrCodeAddContact.java index 1a50eb3..d3dc1e3 100644 --- a/src/main/java/net/iGap/proto/ProtoQrCodeAddContact.java +++ b/src/main/java/net/iGap/proto/ProtoQrCodeAddContact.java @@ -8,45 +8,63 @@ private ProtoQrCodeAddContact() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface QrCodeAddContactOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeAddContact) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string phone = 2; + * string phone = 2; + * @return The phone. */ java.lang.String getPhone(); /** - * optional string phone = 2; + * string phone = 2; + * @return The bytes for phone. */ com.google.protobuf.ByteString getPhoneBytes(); /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ java.lang.String getFirstName(); /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ com.google.protobuf.ByteString getFirstNameBytes(); /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ java.lang.String getLastName(); /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ com.google.protobuf.ByteString getLastNameBytes(); @@ -54,224 +72,286 @@ public interface QrCodeAddContactOrBuilder extends /** * Protobuf type {@code proto.QrCodeAddContact} */ - public static final class QrCodeAddContact extends - com.google.protobuf.GeneratedMessageLite< - QrCodeAddContact, QrCodeAddContact.Builder> implements + public static final class QrCodeAddContact extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeAddContact) QrCodeAddContactOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeAddContact.newBuilder() to construct. + private QrCodeAddContact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeAddContact() { phone_ = ""; firstName_ = ""; lastName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeAddContact(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeAddContact( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + phone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + firstName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + lastName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.class, net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_FIELD_NUMBER = 2; - private java.lang.String phone_; + private volatile java.lang.Object phone_; /** - * optional string phone = 2; + * string phone = 2; + * @return The phone. */ + @java.lang.Override public java.lang.String getPhone() { - return phone_; + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } } /** - * optional string phone = 2; + * string phone = 2; + * @return The bytes for phone. */ + @java.lang.Override public com.google.protobuf.ByteString getPhoneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phone_); - } - /** - * optional string phone = 2; - */ - private void setPhone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phone_ = value; - } - /** - * optional string phone = 2; - */ - private void clearPhone() { - - phone_ = getDefaultInstance().getPhone(); - } - /** - * optional string phone = 2; - */ - private void setPhoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phone_ = value.toStringUtf8(); + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FIRST_NAME_FIELD_NUMBER = 3; - private java.lang.String firstName_; + private volatile java.lang.Object firstName_; /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ + @java.lang.Override public java.lang.String getFirstName() { - return firstName_; + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(firstName_); - } - /** - * optional string first_name = 3; - */ - private void setFirstName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firstName_ = value; - } - /** - * optional string first_name = 3; - */ - private void clearFirstName() { - - firstName_ = getDefaultInstance().getFirstName(); - } - /** - * optional string first_name = 3; - */ - private void setFirstNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firstName_ = value.toStringUtf8(); + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LAST_NAME_FIELD_NUMBER = 4; - private java.lang.String lastName_; + private volatile java.lang.Object lastName_; /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ + @java.lang.Override public java.lang.String getLastName() { - return lastName_; + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ + @java.lang.Override public com.google.protobuf.ByteString getLastNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(lastName_); - } - /** - * optional string last_name = 4; - */ - private void setLastName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastName_ = value; - } - /** - * optional string last_name = 4; - */ - private void clearLastName() { - - lastName_ = getDefaultInstance().getLastName(); + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string last_name = 4; - */ - private void setLastNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastName_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!phone_.isEmpty()) { - output.writeString(2, getPhone()); + if (!getPhoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phone_); } - if (!firstName_.isEmpty()) { - output.writeString(3, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firstName_); } - if (!lastName_.isEmpty()) { - output.writeString(4, getLastName()); + if (!getLastNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastName_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -279,505 +359,902 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!phone_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPhone()); + if (!getPhoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phone_); } - if (!firstName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstName_); } - if (!lastName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getLastName()); + if (!getLastNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastName_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact other = (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPhone() + .equals(other.getPhone())) return false; + if (!getFirstName() + .equals(other.getFirstName())) return false; + if (!getLastName() + .equals(other.getLastName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + hash = (37 * hash) + FIRST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFirstName().hashCode(); + hash = (37 * hash) + LAST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLastName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeAddContact} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeAddContact) net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.class, net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phone_ = ""; + + firstName_ = ""; + + lastName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContact_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact build() { + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact buildPartial() { + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact result = new net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phone_ = phone_; + result.firstName_ = firstName_; + result.lastName_ = lastName_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact) { + return mergeFrom((net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact other) { + if (other == net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + onChanged(); + } + if (!other.getFirstName().isEmpty()) { + firstName_ = other.firstName_; + onChanged(); + } + if (!other.getLastName().isEmpty()) { + lastName_ = other.lastName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object phone_ = ""; /** - * optional string phone = 2; + * string phone = 2; + * @return The phone. */ public java.lang.String getPhone() { - return instance.getPhone(); + java.lang.Object ref = phone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string phone = 2; + * string phone = 2; + * @return The bytes for phone. */ public com.google.protobuf.ByteString getPhoneBytes() { - return instance.getPhoneBytes(); + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone = 2; + * string phone = 2; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone( java.lang.String value) { - copyOnWrite(); - instance.setPhone(value); + if (value == null) { + throw new NullPointerException(); + } + + phone_ = value; + onChanged(); return this; } /** - * optional string phone = 2; + * string phone = 2; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = getDefaultInstance().getPhone(); + onChanged(); return this; } /** - * optional string phone = 2; + * string phone = 2; + * @param value The bytes for phone to set. + * @return This builder for chaining. */ public Builder setPhoneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phone_ = value; + onChanged(); return this; } + private java.lang.Object firstName_ = ""; /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ public java.lang.String getFirstName() { - return instance.getFirstName(); + java.lang.Object ref = firstName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ public com.google.protobuf.ByteString getFirstNameBytes() { - return instance.getFirstNameBytes(); + java.lang.Object ref = firstName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @param value The firstName to set. + * @return This builder for chaining. */ public Builder setFirstName( java.lang.String value) { - copyOnWrite(); - instance.setFirstName(value); + if (value == null) { + throw new NullPointerException(); + } + + firstName_ = value; + onChanged(); return this; } /** - * optional string first_name = 3; + * string first_name = 3; + * @return This builder for chaining. */ public Builder clearFirstName() { - copyOnWrite(); - instance.clearFirstName(); + + firstName_ = getDefaultInstance().getFirstName(); + onChanged(); return this; } /** - * optional string first_name = 3; + * string first_name = 3; + * @param value The bytes for firstName to set. + * @return This builder for chaining. */ public Builder setFirstNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFirstNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + firstName_ = value; + onChanged(); return this; } + private java.lang.Object lastName_ = ""; /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ public java.lang.String getLastName() { - return instance.getLastName(); + java.lang.Object ref = lastName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ public com.google.protobuf.ByteString getLastNameBytes() { - return instance.getLastNameBytes(); + java.lang.Object ref = lastName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @param value The lastName to set. + * @return This builder for chaining. */ public Builder setLastName( java.lang.String value) { - copyOnWrite(); - instance.setLastName(value); + if (value == null) { + throw new NullPointerException(); + } + + lastName_ = value; + onChanged(); return this; } /** - * optional string last_name = 4; + * string last_name = 4; + * @return This builder for chaining. */ public Builder clearLastName() { - copyOnWrite(); - instance.clearLastName(); + + lastName_ = getDefaultInstance().getLastName(); + onChanged(); return this; } /** - * optional string last_name = 4; + * string last_name = 4; + * @param value The bytes for lastName to set. + * @return This builder for chaining. */ public Builder setLastNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLastNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastName_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeAddContact) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact other = (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phone_ = visitor.visitString(!phone_.isEmpty(), phone_, - !other.phone_.isEmpty(), other.phone_); - firstName_ = visitor.visitString(!firstName_.isEmpty(), firstName_, - !other.firstName_.isEmpty(), other.firstName_); - lastName_ = visitor.visitString(!lastName_.isEmpty(), lastName_, - !other.lastName_.isEmpty(), other.lastName_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - phone_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - firstName_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - lastName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeAddContact) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeAddContact) private static final net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeAddContact(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact(); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeAddContact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeAddContact(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface QrCodeAddContactResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeAddContactResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ com.google.protobuf.ByteString getQrCodeImage(); } /** * Protobuf type {@code proto.QrCodeAddContactResponse} */ - public static final class QrCodeAddContactResponse extends - com.google.protobuf.GeneratedMessageLite< - QrCodeAddContactResponse, QrCodeAddContactResponse.Builder> implements + public static final class QrCodeAddContactResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeAddContactResponse) QrCodeAddContactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeAddContactResponse.newBuilder() to construct. + private QrCodeAddContactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeAddContactResponse() { qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeAddContactResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeAddContactResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + qrCodeImage_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.class, net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int QR_CODE_IMAGE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString qrCodeImage_; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { return qrCodeImage_; } - /** - * optional bytes qr_code_image = 2; - */ - private void setQrCodeImage(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - qrCodeImage_ = value; - } - /** - * optional bytes qr_code_image = 2; - */ - private void clearQrCodeImage() { - - qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -786,10 +1263,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!qrCodeImage_.isEmpty()) { output.writeBytes(2, qrCodeImage_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -801,274 +1280,554 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, qrCodeImage_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse other = (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getQrCodeImage() + .equals(other.getQrCodeImage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + QR_CODE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getQrCodeImage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeAddContactResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeAddContactResponse) net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.class, net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeAddContact.internal_static_proto_QrCodeAddContactResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse build() { + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse buildPartial() { + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse result = new net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.qrCodeImage_ = qrCodeImage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse) { + return mergeFrom((net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse other) { + if (other == net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getQrCodeImage() != com.google.protobuf.ByteString.EMPTY) { + setQrCodeImage(other.getQrCodeImage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private com.google.protobuf.ByteString qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { - return instance.getQrCodeImage(); + return qrCodeImage_; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @param value The qrCodeImage to set. + * @return This builder for chaining. */ public Builder setQrCodeImage(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQrCodeImage(value); + if (value == null) { + throw new NullPointerException(); + } + + qrCodeImage_ = value; + onChanged(); return this; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return This builder for chaining. */ public Builder clearQrCodeImage() { - copyOnWrite(); - instance.clearQrCodeImage(); + + qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeAddContactResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse other = (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - qrCodeImage_ = visitor.visitByteString(qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, qrCodeImage_, - other.qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, other.qrCodeImage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - qrCodeImage_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeAddContactResponse) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeAddContactResponse) private static final net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeAddContactResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse(); } public static net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeAddContactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeAddContactResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddContact.QrCodeAddContactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeAddContact_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeAddContact_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeAddContactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeAddContactResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026QrCodeAddContact.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"i\n\020QrCodeAddConta" + + "ct\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\r\n\005p" + + "hone\030\002 \001(\t\022\022\n\nfirst_name\030\003 \001(\t\022\021\n\tlast_n" + + "ame\030\004 \001(\t\"T\n\030QrCodeAddContactResponse\022!\n" + + "\010response\030\001 \001(\0132\017.proto.Response\022\025\n\rqr_c" + + "ode_image\030\002 \001(\014B\'\n\016net.iGap.protoB\025Proto" + + "QrCodeAddContactb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_QrCodeAddContact_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_QrCodeAddContact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeAddContact_descriptor, + new java.lang.String[] { "Request", "Phone", "FirstName", "LastName", }); + internal_static_proto_QrCodeAddContactResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_QrCodeAddContactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeAddContactResponse_descriptor, + new java.lang.String[] { "Response", "QrCodeImage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoQrCodeAddMe.java b/src/main/java/net/iGap/proto/ProtoQrCodeAddMe.java index 0b3855f..64caf00 100644 --- a/src/main/java/net/iGap/proto/ProtoQrCodeAddMe.java +++ b/src/main/java/net/iGap/proto/ProtoQrCodeAddMe.java @@ -8,90 +8,170 @@ private ProtoQrCodeAddMe() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface QrCodeAddMeOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeAddMe) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.QrCodeAddMe} */ - public static final class QrCodeAddMe extends - com.google.protobuf.GeneratedMessageLite< - QrCodeAddMe, QrCodeAddMe.Builder> implements + public static final class QrCodeAddMe extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeAddMe) QrCodeAddMeOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeAddMe.newBuilder() to construct. + private QrCodeAddMe(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeAddMe() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeAddMe(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeAddMe( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.class, net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,349 +179,632 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe other = (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeAddMe} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeAddMe) net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.class, net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMe_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe build() { + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe buildPartial() { + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe result = new net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe) { + return mergeFrom((net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe other) { + if (other == net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.QrCodeAddMe) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe other = (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.QrCodeAddMe) + } // @@protoc_insertion_point(class_scope:proto.QrCodeAddMe) private static final net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeAddMe(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe(); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeAddMe parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeAddMe(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMe getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface QrCodeAddMeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeAddMeResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ com.google.protobuf.ByteString getQrCodeImage(); } /** * Protobuf type {@code proto.QrCodeAddMeResponse} */ - public static final class QrCodeAddMeResponse extends - com.google.protobuf.GeneratedMessageLite< - QrCodeAddMeResponse, QrCodeAddMeResponse.Builder> implements + public static final class QrCodeAddMeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeAddMeResponse) QrCodeAddMeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeAddMeResponse.newBuilder() to construct. + private QrCodeAddMeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeAddMeResponse() { qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeAddMeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeAddMeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + qrCodeImage_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.class, net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int QR_CODE_IMAGE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString qrCodeImage_; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { return qrCodeImage_; } - /** - * optional bytes qr_code_image = 2; - */ - private void setQrCodeImage(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - qrCodeImage_ = value; - } - /** - * optional bytes qr_code_image = 2; - */ - private void clearQrCodeImage() { - - qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -450,10 +813,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!qrCodeImage_.isEmpty()) { output.writeBytes(2, qrCodeImage_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -465,274 +830,552 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, qrCodeImage_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse other = (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getQrCodeImage() + .equals(other.getQrCodeImage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + QR_CODE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getQrCodeImage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeAddMeResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeAddMeResponse) net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.class, net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeAddMe.internal_static_proto_QrCodeAddMeResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse build() { + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse buildPartial() { + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse result = new net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.qrCodeImage_ = qrCodeImage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse) { + return mergeFrom((net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse other) { + if (other == net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getQrCodeImage() != com.google.protobuf.ByteString.EMPTY) { + setQrCodeImage(other.getQrCodeImage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private com.google.protobuf.ByteString qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { - return instance.getQrCodeImage(); + return qrCodeImage_; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @param value The qrCodeImage to set. + * @return This builder for chaining. */ public Builder setQrCodeImage(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQrCodeImage(value); + if (value == null) { + throw new NullPointerException(); + } + + qrCodeImage_ = value; + onChanged(); return this; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return This builder for chaining. */ public Builder clearQrCodeImage() { - copyOnWrite(); - instance.clearQrCodeImage(); + + qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeAddMeResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse other = (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - qrCodeImage_ = visitor.visitByteString(qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, qrCodeImage_, - other.qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, other.qrCodeImage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - qrCodeImage_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeAddMeResponse) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeAddMeResponse) private static final net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeAddMeResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse(); } public static net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeAddMeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeAddMeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeAddMe.QrCodeAddMeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeAddMe_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeAddMe_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeAddMeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeAddMeResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\021QrCodeAddMe.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\".\n\013QrCodeAddMe\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\"O\n\023QrCodeAddMe" + + "Response\022!\n\010response\030\001 \001(\0132\017.proto.Respo" + + "nse\022\025\n\rqr_code_image\030\002 \001(\014B\"\n\016net.iGap.p" + + "rotoB\020ProtoQrCodeAddMeb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_QrCodeAddMe_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_QrCodeAddMe_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeAddMe_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_QrCodeAddMeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_QrCodeAddMeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeAddMeResponse_descriptor, + new java.lang.String[] { "Response", "QrCodeImage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoQrCodeJoin.java b/src/main/java/net/iGap/proto/ProtoQrCodeJoin.java index fbdfb0e..94e0882 100644 --- a/src/main/java/net/iGap/proto/ProtoQrCodeJoin.java +++ b/src/main/java/net/iGap/proto/ProtoQrCodeJoin.java @@ -8,25 +8,39 @@ private ProtoQrCodeJoin() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface QrCodeJoinOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeJoin) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ java.lang.String getInviteToken(); /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ com.google.protobuf.ByteString getInviteTokenBytes(); @@ -34,124 +48,190 @@ public interface QrCodeJoinOrBuilder extends /** * Protobuf type {@code proto.QrCodeJoin} */ - public static final class QrCodeJoin extends - com.google.protobuf.GeneratedMessageLite< - QrCodeJoin, QrCodeJoin.Builder> implements + public static final class QrCodeJoin extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeJoin) QrCodeJoinOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeJoin.newBuilder() to construct. + private QrCodeJoin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeJoin() { inviteToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeJoin(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeJoin( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inviteToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.class, net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int INVITE_TOKEN_FIELD_NUMBER = 2; - private java.lang.String inviteToken_; + private volatile java.lang.Object inviteToken_; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ + @java.lang.Override public java.lang.String getInviteToken() { - return inviteToken_; + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ + @java.lang.Override public com.google.protobuf.ByteString getInviteTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(inviteToken_); - } - /** - * optional string invite_token = 2; - */ - private void setInviteToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inviteToken_ = value; - } - /** - * optional string invite_token = 2; - */ - private void clearInviteToken() { - - inviteToken_ = getDefaultInstance().getInviteToken(); + java.lang.Object ref = inviteToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string invite_token = 2; - */ - private void setInviteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inviteToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!inviteToken_.isEmpty()) { - output.writeString(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inviteToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,401 +239,722 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!inviteToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getInviteToken()); + if (!getInviteTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inviteToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin other = (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getInviteToken() + .equals(other.getInviteToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + INVITE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getInviteToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeJoin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeJoin) net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.class, net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + inviteToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoin_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin build() { + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin buildPartial() { + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin result = new net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.inviteToken_ = inviteToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin) { + return mergeFrom((net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin other) { + if (other == net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getInviteToken().isEmpty()) { + inviteToken_ = other.inviteToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object inviteToken_ = ""; /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The inviteToken. */ public java.lang.String getInviteToken() { - return instance.getInviteToken(); + java.lang.Object ref = inviteToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inviteToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return The bytes for inviteToken. */ public com.google.protobuf.ByteString getInviteTokenBytes() { - return instance.getInviteTokenBytes(); + java.lang.Object ref = inviteToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inviteToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteToken( java.lang.String value) { - copyOnWrite(); - instance.setInviteToken(value); + if (value == null) { + throw new NullPointerException(); + } + + inviteToken_ = value; + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @return This builder for chaining. */ public Builder clearInviteToken() { - copyOnWrite(); - instance.clearInviteToken(); + + inviteToken_ = getDefaultInstance().getInviteToken(); + onChanged(); return this; } /** - * optional string invite_token = 2; + * string invite_token = 2; + * @param value The bytes for inviteToken to set. + * @return This builder for chaining. */ public Builder setInviteTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInviteTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inviteToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeJoin) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin other = (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin) arg1; - request_ = visitor.visitMessage(request_, other.request_); - inviteToken_ = visitor.visitString(!inviteToken_.isEmpty(), inviteToken_, - !other.inviteToken_.isEmpty(), other.inviteToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - inviteToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeJoin) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeJoin) private static final net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeJoin(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin(); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeJoin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeJoin(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface QrCodeJoinResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeJoinResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ com.google.protobuf.ByteString getQrCodeImage(); } /** * Protobuf type {@code proto.QrCodeJoinResponse} */ - public static final class QrCodeJoinResponse extends - com.google.protobuf.GeneratedMessageLite< - QrCodeJoinResponse, QrCodeJoinResponse.Builder> implements + public static final class QrCodeJoinResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeJoinResponse) QrCodeJoinResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeJoinResponse.newBuilder() to construct. + private QrCodeJoinResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeJoinResponse() { qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeJoinResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeJoinResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + qrCodeImage_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoinResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoinResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.class, net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int QR_CODE_IMAGE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString qrCodeImage_; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { return qrCodeImage_; } - /** - * optional bytes qr_code_image = 2; - */ - private void setQrCodeImage(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - qrCodeImage_ = value; - } - /** - * optional bytes qr_code_image = 2; - */ - private void clearQrCodeImage() { - - qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -562,10 +963,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!qrCodeImage_.isEmpty()) { output.writeBytes(2, qrCodeImage_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -577,274 +980,553 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, qrCodeImage_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse other = (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getQrCodeImage() + .equals(other.getQrCodeImage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + QR_CODE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getQrCodeImage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeJoinResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeJoinResponse) net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoinResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoinResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.class, net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeJoin.internal_static_proto_QrCodeJoinResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse build() { + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse buildPartial() { + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse result = new net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.qrCodeImage_ = qrCodeImage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse) { + return mergeFrom((net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse other) { + if (other == net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getQrCodeImage() != com.google.protobuf.ByteString.EMPTY) { + setQrCodeImage(other.getQrCodeImage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private com.google.protobuf.ByteString qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { - return instance.getQrCodeImage(); + return qrCodeImage_; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @param value The qrCodeImage to set. + * @return This builder for chaining. */ public Builder setQrCodeImage(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQrCodeImage(value); + if (value == null) { + throw new NullPointerException(); + } + + qrCodeImage_ = value; + onChanged(); return this; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return This builder for chaining. */ public Builder clearQrCodeImage() { - copyOnWrite(); - instance.clearQrCodeImage(); + + qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeJoinResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse other = (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - qrCodeImage_ = visitor.visitByteString(qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, qrCodeImage_, - other.qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, other.qrCodeImage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - qrCodeImage_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeJoinResponse) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeJoinResponse) private static final net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeJoinResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse(); } public static net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeJoinResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeJoinResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeJoin.QrCodeJoinResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeJoin_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeJoin_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeJoinResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeJoinResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020QrCodeJoin.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"C\n\nQrCodeJoin\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\022\024\n\014invite_token\030" + + "\002 \001(\t\"N\n\022QrCodeJoinResponse\022!\n\010response\030" + + "\001 \001(\0132\017.proto.Response\022\025\n\rqr_code_image\030" + + "\002 \001(\014B!\n\016net.iGap.protoB\017ProtoQrCodeJoin" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_QrCodeJoin_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_QrCodeJoin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeJoin_descriptor, + new java.lang.String[] { "Request", "InviteToken", }); + internal_static_proto_QrCodeJoinResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_QrCodeJoinResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeJoinResponse_descriptor, + new java.lang.String[] { "Response", "QrCodeImage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoQrCodeNewDevice.java b/src/main/java/net/iGap/proto/ProtoQrCodeNewDevice.java index 5527665..5e988a3 100644 --- a/src/main/java/net/iGap/proto/ProtoQrCodeNewDevice.java +++ b/src/main/java/net/iGap/proto/ProtoQrCodeNewDevice.java @@ -8,83 +8,109 @@ private ProtoQrCodeNewDevice() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface QrCodeNewDeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeNewDevice) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ java.lang.String getAppName(); /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ com.google.protobuf.ByteString getAppNameBytes(); /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ int getAppId(); /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ int getAppBuildVersion(); /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ java.lang.String getAppVersion(); /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ com.google.protobuf.ByteString getAppVersionBytes(); /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ int getPlatformValue(); /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ net.iGap.proto.ProtoGlobal.Platform getPlatform(); /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ java.lang.String getPlatformVersion(); /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ com.google.protobuf.ByteString getPlatformVersionBytes(); /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ int getDeviceValue(); /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ net.iGap.proto.ProtoGlobal.Device getDevice(); /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ java.lang.String getDeviceName(); /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); @@ -92,384 +118,402 @@ public interface QrCodeNewDeviceOrBuilder extends /** * Protobuf type {@code proto.QrCodeNewDevice} */ - public static final class QrCodeNewDevice extends - com.google.protobuf.GeneratedMessageLite< - QrCodeNewDevice, QrCodeNewDevice.Builder> implements + public static final class QrCodeNewDevice extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeNewDevice) QrCodeNewDeviceOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeNewDevice.newBuilder() to construct. + private QrCodeNewDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeNewDevice() { appName_ = ""; appVersion_ = ""; + platform_ = 0; platformVersion_ = ""; + device_ = 0; deviceName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeNewDevice(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeNewDevice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + appName_ = s; + break; + } + case 24: { + + appId_ = input.readUInt32(); + break; + } + case 32: { + + appBuildVersion_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + appVersion_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + platform_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + platformVersion_ = s; + break; + } + case 64: { + int rawValue = input.readEnum(); + + device_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + deviceName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.class, net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int APP_NAME_FIELD_NUMBER = 2; - private java.lang.String appName_; + private volatile java.lang.Object appName_; /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ + @java.lang.Override public java.lang.String getAppName() { - return appName_; + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ + @java.lang.Override public com.google.protobuf.ByteString getAppNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appName_); - } - /** - * optional string app_name = 2; - */ - private void setAppName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appName_ = value; - } - /** - * optional string app_name = 2; - */ - private void clearAppName() { - - appName_ = getDefaultInstance().getAppName(); - } - /** - * optional string app_name = 2; - */ - private void setAppNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appName_ = value.toStringUtf8(); + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int APP_ID_FIELD_NUMBER = 3; private int appId_; /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 3; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 3; - */ - private void clearAppId() { - - appId_ = 0; - } public static final int APP_BUILD_VERSION_FIELD_NUMBER = 4; private int appBuildVersion_; /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { return appBuildVersion_; } - /** - * optional uint32 app_build_version = 4; - */ - private void setAppBuildVersion(int value) { - - appBuildVersion_ = value; - } - /** - * optional uint32 app_build_version = 4; - */ - private void clearAppBuildVersion() { - - appBuildVersion_ = 0; - } public static final int APP_VERSION_FIELD_NUMBER = 5; - private java.lang.String appVersion_; + private volatile java.lang.Object appVersion_; /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ + @java.lang.Override public java.lang.String getAppVersion() { - return appVersion_; + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getAppVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appVersion_); - } - /** - * optional string app_version = 5; - */ - private void setAppVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appVersion_ = value; - } - /** - * optional string app_version = 5; - */ - private void clearAppVersion() { - - appVersion_ = getDefaultInstance().getAppVersion(); - } - /** - * optional string app_version = 5; - */ - private void setAppVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appVersion_ = value.toStringUtf8(); + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PLATFORM_FIELD_NUMBER = 6; private int platform_; /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { + @java.lang.Override public int getPlatformValue() { return platform_; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ - public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.forNumber(platform_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } - /** - * optional .proto.Platform platform = 6; - */ - private void setPlatformValue(int value) { - platform_ = value; - } - /** - * optional .proto.Platform platform = 6; - */ - private void setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - if (value == null) { - throw new NullPointerException(); - } - - platform_ = value.getNumber(); - } - /** - * optional .proto.Platform platform = 6; - */ - private void clearPlatform() { - - platform_ = 0; - } public static final int PLATFORM_VERSION_FIELD_NUMBER = 7; - private java.lang.String platformVersion_; + private volatile java.lang.Object platformVersion_; /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ + @java.lang.Override public java.lang.String getPlatformVersion() { - return platformVersion_; + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getPlatformVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(platformVersion_); - } - /** - * optional string platform_version = 7; - */ - private void setPlatformVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - platformVersion_ = value; - } - /** - * optional string platform_version = 7; - */ - private void clearPlatformVersion() { - - platformVersion_ = getDefaultInstance().getPlatformVersion(); - } - /** - * optional string platform_version = 7; - */ - private void setPlatformVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - platformVersion_ = value.toStringUtf8(); + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DEVICE_FIELD_NUMBER = 8; private int device_; /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { + @java.lang.Override public int getDeviceValue() { return device_; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ - public net.iGap.proto.ProtoGlobal.Device getDevice() { - net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.forNumber(device_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } - /** - * optional .proto.Device device = 8; - */ - private void setDeviceValue(int value) { - device_ = value; - } - /** - * optional .proto.Device device = 8; - */ - private void setDevice(net.iGap.proto.ProtoGlobal.Device value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value.getNumber(); - } - /** - * optional .proto.Device device = 8; - */ - private void clearDevice() { - - device_ = 0; - } public static final int DEVICE_NAME_FIELD_NUMBER = 9; - private java.lang.String deviceName_; + private volatile java.lang.Object deviceName_; /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ + @java.lang.Override public java.lang.String getDeviceName() { - return deviceName_; + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(deviceName_); - } - /** - * optional string device_name = 9; - */ - private void setDeviceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceName_ = value; - } - /** - * optional string device_name = 9; - */ - private void clearDeviceName() { - - deviceName_ = getDefaultInstance().getDeviceName(); + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string device_name = 9; - */ - private void setDeviceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceName_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!appName_.isEmpty()) { - output.writeString(2, getAppName()); + if (!getAppNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appName_); } if (appId_ != 0) { output.writeUInt32(3, appId_); @@ -477,25 +521,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (appBuildVersion_ != 0) { output.writeUInt32(4, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - output.writeString(5, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { output.writeEnum(6, platform_); } - if (!platformVersion_.isEmpty()) { - output.writeString(7, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { output.writeEnum(8, device_); } - if (!deviceName_.isEmpty()) { - output.writeString(9, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, deviceName_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -503,9 +549,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!appName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAppName()); + if (!getAppNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appName_); } if (appId_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -515,737 +560,1227 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, platform_); } - if (!platformVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, device_); } - if (!deviceName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, deviceName_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice other = (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getAppName() + .equals(other.getAppName())) return false; + if (getAppId() + != other.getAppId()) return false; + if (getAppBuildVersion() + != other.getAppBuildVersion()) return false; + if (!getAppVersion() + .equals(other.getAppVersion())) return false; + if (platform_ != other.platform_) return false; + if (!getPlatformVersion() + .equals(other.getPlatformVersion())) return false; + if (device_ != other.device_) return false; + if (!getDeviceName() + .equals(other.getDeviceName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + APP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAppName().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + hash = (37 * hash) + APP_BUILD_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppBuildVersion(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + platform_; + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + device_; + hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeNewDevice} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeNewDevice) net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.class, net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + appName_ = ""; + + appId_ = 0; + + appBuildVersion_ = 0; + + appVersion_ = ""; + platform_ = 0; + platformVersion_ = ""; + + device_ = 0; + + deviceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDevice_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice build() { + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice buildPartial() { + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice result = new net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.appName_ = appName_; + result.appId_ = appId_; + result.appBuildVersion_ = appBuildVersion_; + result.appVersion_ = appVersion_; + result.platform_ = platform_; + result.platformVersion_ = platformVersion_; + result.device_ = device_; + result.deviceName_ = deviceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice) { + return mergeFrom((net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice other) { + if (other == net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getAppName().isEmpty()) { + appName_ = other.appName_; + onChanged(); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + if (other.getAppBuildVersion() != 0) { + setAppBuildVersion(other.getAppBuildVersion()); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + onChanged(); + } + if (other.platform_ != 0) { + setPlatformValue(other.getPlatformValue()); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + onChanged(); + } + if (other.device_ != 0) { + setDeviceValue(other.getDeviceValue()); + } + if (!other.getDeviceName().isEmpty()) { + deviceName_ = other.deviceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object appName_ = ""; /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ public java.lang.String getAppName() { - return instance.getAppName(); + java.lang.Object ref = appName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ public com.google.protobuf.ByteString getAppNameBytes() { - return instance.getAppNameBytes(); + java.lang.Object ref = appName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @param value The appName to set. + * @return This builder for chaining. */ public Builder setAppName( java.lang.String value) { - copyOnWrite(); - instance.setAppName(value); + if (value == null) { + throw new NullPointerException(); + } + + appName_ = value; + onChanged(); return this; } /** - * optional string app_name = 2; + * string app_name = 2; + * @return This builder for chaining. */ public Builder clearAppName() { - copyOnWrite(); - instance.clearAppName(); + + appName_ = getDefaultInstance().getAppName(); + onChanged(); return this; } /** - * optional string app_name = 2; + * string app_name = 2; + * @param value The bytes for appName to set. + * @return This builder for chaining. */ public Builder setAppNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appName_ = value; + onChanged(); return this; } + private int appId_ ; /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + private int appBuildVersion_ ; /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { - return instance.getAppBuildVersion(); + return appBuildVersion_; } /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @param value The appBuildVersion to set. + * @return This builder for chaining. */ public Builder setAppBuildVersion(int value) { - copyOnWrite(); - instance.setAppBuildVersion(value); + + appBuildVersion_ = value; + onChanged(); return this; } /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return This builder for chaining. */ public Builder clearAppBuildVersion() { - copyOnWrite(); - instance.clearAppBuildVersion(); + + appBuildVersion_ = 0; + onChanged(); return this; } + private java.lang.Object appVersion_ = ""; /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ public java.lang.String getAppVersion() { - return instance.getAppVersion(); + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ public com.google.protobuf.ByteString getAppVersionBytes() { - return instance.getAppVersionBytes(); + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @param value The appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersion( java.lang.String value) { - copyOnWrite(); - instance.setAppVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + appVersion_ = value; + onChanged(); return this; } /** - * optional string app_version = 5; + * string app_version = 5; + * @return This builder for chaining. */ public Builder clearAppVersion() { - copyOnWrite(); - instance.clearAppVersion(); + + appVersion_ = getDefaultInstance().getAppVersion(); + onChanged(); return this; } /** - * optional string app_version = 5; + * string app_version = 5; + * @param value The bytes for appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appVersion_ = value; + onChanged(); return this; } + private int platform_ = 0; /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { - return instance.getPlatformValue(); + @java.lang.Override public int getPlatformValue() { + return platform_; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @param value The enum numeric value on the wire for platform to set. + * @return This builder for chaining. */ public Builder setPlatformValue(int value) { - copyOnWrite(); - instance.setPlatformValue(value); + + platform_ = value; + onChanged(); return this; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - return instance.getPlatform(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); + return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @param value The platform to set. + * @return This builder for chaining. */ public Builder setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - copyOnWrite(); - instance.setPlatform(value); + if (value == null) { + throw new NullPointerException(); + } + + platform_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return This builder for chaining. */ public Builder clearPlatform() { - copyOnWrite(); - instance.clearPlatform(); + + platform_ = 0; + onChanged(); return this; } + private java.lang.Object platformVersion_ = ""; /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ public java.lang.String getPlatformVersion() { - return instance.getPlatformVersion(); + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ public com.google.protobuf.ByteString getPlatformVersionBytes() { - return instance.getPlatformVersionBytes(); + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @param value The platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersion( java.lang.String value) { - copyOnWrite(); - instance.setPlatformVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); return this; } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return This builder for chaining. */ public Builder clearPlatformVersion() { - copyOnWrite(); - instance.clearPlatformVersion(); + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); return this; } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPlatformVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); return this; } + private int device_ = 0; /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { - return instance.getDeviceValue(); + @java.lang.Override public int getDeviceValue() { + return device_; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @param value The enum numeric value on the wire for device to set. + * @return This builder for chaining. */ public Builder setDeviceValue(int value) { - copyOnWrite(); - instance.setDeviceValue(value); + + device_ = value; + onChanged(); return this; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { - return instance.getDevice(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); + return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @param value The device to set. + * @return This builder for chaining. */ public Builder setDevice(net.iGap.proto.ProtoGlobal.Device value) { - copyOnWrite(); - instance.setDevice(value); + if (value == null) { + throw new NullPointerException(); + } + + device_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return This builder for chaining. */ public Builder clearDevice() { - copyOnWrite(); - instance.clearDevice(); + + device_ = 0; + onChanged(); return this; } + private java.lang.Object deviceName_ = ""; /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ public java.lang.String getDeviceName() { - return instance.getDeviceName(); + java.lang.Object ref = deviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { - return instance.getDeviceNameBytes(); + java.lang.Object ref = deviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @param value The deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { - copyOnWrite(); - instance.setDeviceName(value); + if (value == null) { + throw new NullPointerException(); + } + + deviceName_ = value; + onChanged(); return this; } /** - * optional string device_name = 9; + * string device_name = 9; + * @return This builder for chaining. */ public Builder clearDeviceName() { - copyOnWrite(); - instance.clearDeviceName(); + + deviceName_ = getDefaultInstance().getDeviceName(); + onChanged(); return this; } /** - * optional string device_name = 9; + * string device_name = 9; + * @param value The bytes for deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDeviceNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceName_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeNewDevice) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice other = (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice) arg1; - request_ = visitor.visitMessage(request_, other.request_); - appName_ = visitor.visitString(!appName_.isEmpty(), appName_, - !other.appName_.isEmpty(), other.appName_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - appBuildVersion_ = visitor.visitInt(appBuildVersion_ != 0, appBuildVersion_, - other.appBuildVersion_ != 0, other.appBuildVersion_); - appVersion_ = visitor.visitString(!appVersion_.isEmpty(), appVersion_, - !other.appVersion_.isEmpty(), other.appVersion_); - platform_ = visitor.visitInt(platform_ != 0, platform_, other.platform_ != 0, other.platform_); - platformVersion_ = visitor.visitString(!platformVersion_.isEmpty(), platformVersion_, - !other.platformVersion_.isEmpty(), other.platformVersion_); - device_ = visitor.visitInt(device_ != 0, device_, other.device_ != 0, other.device_); - deviceName_ = visitor.visitString(!deviceName_.isEmpty(), deviceName_, - !other.deviceName_.isEmpty(), other.deviceName_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - appName_ = s; - break; - } - case 24: { - - appId_ = input.readUInt32(); - break; - } - case 32: { - - appBuildVersion_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - appVersion_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - - platform_ = rawValue; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - platformVersion_ = s; - break; - } - case 64: { - int rawValue = input.readEnum(); - - device_ = rawValue; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - deviceName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeNewDevice) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeNewDevice) private static final net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeNewDevice(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice(); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeNewDevice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeNewDevice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDevice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface QrCodeNewDeviceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeNewDeviceResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ com.google.protobuf.ByteString getQrCodeImage(); /** - * optional uint32 expire_time = 3; + * uint32 expire_time = 3; + * @return The expireTime. */ int getExpireTime(); } /** * Protobuf type {@code proto.QrCodeNewDeviceResponse} */ - public static final class QrCodeNewDeviceResponse extends - com.google.protobuf.GeneratedMessageLite< - QrCodeNewDeviceResponse, QrCodeNewDeviceResponse.Builder> implements + public static final class QrCodeNewDeviceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeNewDeviceResponse) QrCodeNewDeviceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeNewDeviceResponse.newBuilder() to construct. + private QrCodeNewDeviceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeNewDeviceResponse() { qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeNewDeviceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeNewDeviceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + qrCodeImage_ = input.readBytes(); + break; + } + case 24: { + + expireTime_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.class, net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int QR_CODE_IMAGE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString qrCodeImage_; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { return qrCodeImage_; } - /** - * optional bytes qr_code_image = 2; - */ - private void setQrCodeImage(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - qrCodeImage_ = value; - } - /** - * optional bytes qr_code_image = 2; - */ - private void clearQrCodeImage() { - - qrCodeImage_ = getDefaultInstance().getQrCodeImage(); - } public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private int expireTime_; /** - * optional uint32 expire_time = 3; + * uint32 expire_time = 3; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { return expireTime_; } - /** - * optional uint32 expire_time = 3; - */ - private void setExpireTime(int value) { - - expireTime_ = value; - } - /** - * optional uint32 expire_time = 3; - */ - private void clearExpireTime() { - - expireTime_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1257,10 +1792,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != 0) { output.writeUInt32(3, expireTime_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1276,304 +1813,601 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, expireTime_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse other = (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getQrCodeImage() + .equals(other.getQrCodeImage())) return false; + if (getExpireTime() + != other.getExpireTime()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + QR_CODE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getQrCodeImage().hashCode(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeNewDeviceResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeNewDeviceResponse) net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.class, net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; + + expireTime_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeNewDevice.internal_static_proto_QrCodeNewDeviceResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse build() { + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse buildPartial() { + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse result = new net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.qrCodeImage_ = qrCodeImage_; + result.expireTime_ = expireTime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse) { + return mergeFrom((net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse other) { + if (other == net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getQrCodeImage() != com.google.protobuf.ByteString.EMPTY) { + setQrCodeImage(other.getQrCodeImage()); + } + if (other.getExpireTime() != 0) { + setExpireTime(other.getExpireTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private com.google.protobuf.ByteString qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { - return instance.getQrCodeImage(); + return qrCodeImage_; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @param value The qrCodeImage to set. + * @return This builder for chaining. */ public Builder setQrCodeImage(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQrCodeImage(value); + if (value == null) { + throw new NullPointerException(); + } + + qrCodeImage_ = value; + onChanged(); return this; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return This builder for chaining. */ public Builder clearQrCodeImage() { - copyOnWrite(); - instance.clearQrCodeImage(); + + qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + onChanged(); return this; } + private int expireTime_ ; /** - * optional uint32 expire_time = 3; + * uint32 expire_time = 3; + * @return The expireTime. */ + @java.lang.Override public int getExpireTime() { - return instance.getExpireTime(); + return expireTime_; } /** - * optional uint32 expire_time = 3; + * uint32 expire_time = 3; + * @param value The expireTime to set. + * @return This builder for chaining. */ public Builder setExpireTime(int value) { - copyOnWrite(); - instance.setExpireTime(value); + + expireTime_ = value; + onChanged(); return this; } /** - * optional uint32 expire_time = 3; + * uint32 expire_time = 3; + * @return This builder for chaining. */ public Builder clearExpireTime() { - copyOnWrite(); - instance.clearExpireTime(); + + expireTime_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeNewDeviceResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse other = (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - qrCodeImage_ = visitor.visitByteString(qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, qrCodeImage_, - other.qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, other.qrCodeImage_); - expireTime_ = visitor.visitInt(expireTime_ != 0, expireTime_, - other.expireTime_ != 0, other.expireTime_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - qrCodeImage_ = input.readBytes(); - break; - } - case 24: { - - expireTime_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeNewDeviceResponse) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeNewDeviceResponse) private static final net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeNewDeviceResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse(); } public static net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeNewDeviceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeNewDeviceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeNewDevice.QrCodeNewDeviceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeNewDevice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeNewDevice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeNewDeviceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeNewDeviceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025QrCodeNewDevice.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"\365\001\n\017" + + "QrCodeNewDevice\022\037\n\007request\030\001 \001(\0132\016.proto" + + ".Request\022\020\n\010app_name\030\002 \001(\t\022\016\n\006app_id\030\003 \001" + + "(\r\022\031\n\021app_build_version\030\004 \001(\r\022\023\n\013app_ver" + + "sion\030\005 \001(\t\022!\n\010platform\030\006 \001(\0162\017.proto.Pla" + + "tform\022\030\n\020platform_version\030\007 \001(\t\022\035\n\006devic" + + "e\030\010 \001(\0162\r.proto.Device\022\023\n\013device_name\030\t " + + "\001(\t\"h\n\027QrCodeNewDeviceResponse\022!\n\010respon" + + "se\030\001 \001(\0132\017.proto.Response\022\025\n\rqr_code_ima" + + "ge\030\002 \001(\014\022\023\n\013expire_time\030\003 \001(\rB&\n\016net.iGa" + + "p.protoB\024ProtoQrCodeNewDeviceb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_QrCodeNewDevice_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_QrCodeNewDevice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeNewDevice_descriptor, + new java.lang.String[] { "Request", "AppName", "AppId", "AppBuildVersion", "AppVersion", "Platform", "PlatformVersion", "Device", "DeviceName", }); + internal_static_proto_QrCodeNewDeviceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_QrCodeNewDeviceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeNewDeviceResponse_descriptor, + new java.lang.String[] { "Response", "QrCodeImage", "ExpireTime", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoQrCodeResolve.java b/src/main/java/net/iGap/proto/ProtoQrCodeResolve.java index abc9f15..71b46b0 100644 --- a/src/main/java/net/iGap/proto/ProtoQrCodeResolve.java +++ b/src/main/java/net/iGap/proto/ProtoQrCodeResolve.java @@ -8,181 +8,255 @@ private ProtoQrCodeResolve() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface QrCodeResolveOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeResolve) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ long getMessageId(); } /** * Protobuf type {@code proto.QrCodeResolve} */ - public static final class QrCodeResolve extends - com.google.protobuf.GeneratedMessageLite< - QrCodeResolve, QrCodeResolve.Builder> implements + public static final class QrCodeResolve extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeResolve) QrCodeResolveOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeResolve.newBuilder() to construct. + private QrCodeResolve(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeResolve() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeResolve(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeResolve( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolve_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolve_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.class, net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MESSAGE_ID_FIELD_NUMBER = 3; private long messageId_; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { return messageId_; } - /** - * optional uint64 message_id = 3; - */ - private void setMessageId(long value) { - - messageId_ = value; - } - /** - * optional uint64 message_id = 3; - */ - private void clearMessageId() { - - messageId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (messageId_ != 0L) { output.writeUInt64(3, messageId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,435 +264,768 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (messageId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, messageId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve other = (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getMessageId() + != other.getMessageId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeResolve} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeResolve) net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolve_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolve_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.class, net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + messageId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolve_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve build() { + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve buildPartial() { + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve result = new net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + result.messageId_ = messageId_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve) { + return mergeFrom((net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve other) { + if (other == net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long messageId_ ; /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return The messageId. */ + @java.lang.Override public long getMessageId() { - return instance.getMessageId(); + return messageId_; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(long value) { - copyOnWrite(); - instance.setMessageId(value); + + messageId_ = value; + onChanged(); return this; } /** - * optional uint64 message_id = 3; + * uint64 message_id = 3; + * @return This builder for chaining. */ public Builder clearMessageId() { - copyOnWrite(); - instance.clearMessageId(); + + messageId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeResolve) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve other = (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - messageId_ = visitor.visitLong(messageId_ != 0L, messageId_, - other.messageId_ != 0L, other.messageId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - messageId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeResolve) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeResolve) private static final net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeResolve(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve(); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeResolve parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeResolve(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolve getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface QrCodeResolveResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.QrCodeResolveResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ com.google.protobuf.ByteString getQrCodeImage(); } /** * Protobuf type {@code proto.QrCodeResolveResponse} */ - public static final class QrCodeResolveResponse extends - com.google.protobuf.GeneratedMessageLite< - QrCodeResolveResponse, QrCodeResolveResponse.Builder> implements + public static final class QrCodeResolveResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.QrCodeResolveResponse) QrCodeResolveResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QrCodeResolveResponse.newBuilder() to construct. + private QrCodeResolveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private QrCodeResolveResponse() { qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QrCodeResolveResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QrCodeResolveResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + qrCodeImage_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.class, net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int QR_CODE_IMAGE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString qrCodeImage_; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { return qrCodeImage_; } - /** - * optional bytes qr_code_image = 2; - */ - private void setQrCodeImage(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - qrCodeImage_ = value; - } - /** - * optional bytes qr_code_image = 2; - */ - private void clearQrCodeImage() { - - qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -627,10 +1034,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!qrCodeImage_.isEmpty()) { output.writeBytes(2, qrCodeImage_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -642,274 +1051,553 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, qrCodeImage_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse other = (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getQrCodeImage() + .equals(other.getQrCodeImage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + QR_CODE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getQrCodeImage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.QrCodeResolveResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.QrCodeResolveResponse) net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.class, net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoQrCodeResolve.internal_static_proto_QrCodeResolveResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse build() { + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse buildPartial() { + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse result = new net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.qrCodeImage_ = qrCodeImage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse) { + return mergeFrom((net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse other) { + if (other == net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getQrCodeImage() != com.google.protobuf.ByteString.EMPTY) { + setQrCodeImage(other.getQrCodeImage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private com.google.protobuf.ByteString qrCodeImage_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return The qrCodeImage. */ + @java.lang.Override public com.google.protobuf.ByteString getQrCodeImage() { - return instance.getQrCodeImage(); + return qrCodeImage_; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @param value The qrCodeImage to set. + * @return This builder for chaining. */ public Builder setQrCodeImage(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQrCodeImage(value); + if (value == null) { + throw new NullPointerException(); + } + + qrCodeImage_ = value; + onChanged(); return this; } /** - * optional bytes qr_code_image = 2; + * bytes qr_code_image = 2; + * @return This builder for chaining. */ public Builder clearQrCodeImage() { - copyOnWrite(); - instance.clearQrCodeImage(); + + qrCodeImage_ = getDefaultInstance().getQrCodeImage(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.QrCodeResolveResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse other = (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - qrCodeImage_ = visitor.visitByteString(qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, qrCodeImage_, - other.qrCodeImage_ != com.google.protobuf.ByteString.EMPTY, other.qrCodeImage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - qrCodeImage_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.QrCodeResolveResponse) + } + // @@protoc_insertion_point(class_scope:proto.QrCodeResolveResponse) private static final net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new QrCodeResolveResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse(); } public static net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QrCodeResolveResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QrCodeResolveResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoQrCodeResolve.QrCodeResolveResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeResolve_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeResolve_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_QrCodeResolveResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_QrCodeResolveResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023QrCodeResolve.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\"V\n\rQrCodeResolve\022\037\n\007" + + "request\030\001 \001(\0132\016.proto.Request\022\020\n\010usernam" + + "e\030\002 \001(\t\022\022\n\nmessage_id\030\003 \001(\004\"Q\n\025QrCodeRes" + + "olveResponse\022!\n\010response\030\001 \001(\0132\017.proto.R" + + "esponse\022\025\n\rqr_code_image\030\002 \001(\014B$\n\016net.iG" + + "ap.protoB\022ProtoQrCodeResolveb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_QrCodeResolve_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_QrCodeResolve_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeResolve_descriptor, + new java.lang.String[] { "Request", "Username", "MessageId", }); + internal_static_proto_QrCodeResolveResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_QrCodeResolveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_QrCodeResolveResponse_descriptor, + new java.lang.String[] { "Response", "QrCodeImage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoRequest.java b/src/main/java/net/iGap/proto/ProtoRequest.java index 4d8c995..6322ca1 100644 --- a/src/main/java/net/iGap/proto/ProtoRequest.java +++ b/src/main/java/net/iGap/proto/ProtoRequest.java @@ -8,26 +8,36 @@ private ProtoRequest() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Request) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string id = 1; + * string id = 1; + * @return The id. */ java.lang.String getId(); /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -35,405 +45,721 @@ public interface RequestOrBuilder extends /** * Protobuf type {@code proto.Request} */ - public static final class Request extends - com.google.protobuf.GeneratedMessageLite< - Request, Request.Builder> implements + public static final class Request extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Request) RequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use Request.newBuilder() to construct. + private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Request() { id_ = ""; token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Request(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Request( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoRequest.internal_static_proto_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoRequest.internal_static_proto_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoRequest.Request.class, net.iGap.proto.ProtoRequest.Request.Builder.class); + } + public static final int ID_FIELD_NUMBER = 1; - private java.lang.String id_; + private volatile java.lang.Object id_; /** - * optional string id = 1; + * string id = 1; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { - return id_; + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(id_); - } - /** - * optional string id = 1; - */ - private void setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - } - /** - * optional string id = 1; - */ - private void clearId() { - - id_ = getDefaultInstance().getId(); - } - /** - * optional string id = 1; - */ - private void setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value.toStringUtf8(); + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!id_.isEmpty()) { - output.writeString(1, getId()); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!id_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getId()); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoRequest.Request)) { + return super.equals(obj); + } + net.iGap.proto.ProtoRequest.Request other = (net.iGap.proto.ProtoRequest.Request) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoRequest.Request parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoRequest.Request parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoRequest.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoRequest.Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoRequest.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoRequest.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoRequest.Request parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoRequest.Request parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoRequest.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoRequest.Request parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoRequest.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoRequest.Request parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoRequest.Request prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Request} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoRequest.Request, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Request) net.iGap.proto.ProtoRequest.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoRequest.internal_static_proto_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoRequest.internal_static_proto_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoRequest.Request.class, net.iGap.proto.ProtoRequest.Request.Builder.class); + } + // Construct using net.iGap.proto.ProtoRequest.Request.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoRequest.internal_static_proto_Request_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoRequest.Request getDefaultInstanceForType() { + return net.iGap.proto.ProtoRequest.Request.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoRequest.Request build() { + net.iGap.proto.ProtoRequest.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoRequest.Request buildPartial() { + net.iGap.proto.ProtoRequest.Request result = new net.iGap.proto.ProtoRequest.Request(this); + result.id_ = id_; + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoRequest.Request) { + return mergeFrom((net.iGap.proto.ProtoRequest.Request)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoRequest.Request other) { + if (other == net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoRequest.Request parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoRequest.Request) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; /** - * optional string id = 1; + * string id = 1; + * @return The id. */ public java.lang.String getId() { - return instance.getId(); + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { - return instance.getIdBytes(); + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string id = 1; + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - copyOnWrite(); - instance.setId(value); + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); return this; } /** - * optional string id = 1; + * string id = 1; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = getDefaultInstance().getId(); + onChanged(); return this; } /** - * optional string id = 1; + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); return this; } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Request) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoRequest.Request(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoRequest.Request other = (net.iGap.proto.ProtoRequest.Request) arg1; - id_ = visitor.visitString(!id_.isEmpty(), id_, - !other.id_.isEmpty(), other.id_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoRequest.Request.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.Request) + } + // @@protoc_insertion_point(class_scope:proto.Request) private static final net.iGap.proto.ProtoRequest.Request DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Request(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoRequest.Request(); } public static net.iGap.proto.ProtoRequest.Request getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Request parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Request(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoRequest.Request getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Request_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Request_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\rRequest.proto\022\005proto\"$\n\007Request\022\n\n\002id\030" + + "\001 \001(\t\022\r\n\005token\030\002 \001(\tB\036\n\016net.iGap.protoB\014" + + "ProtoRequestb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_proto_Request_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_Request_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Request_descriptor, + new java.lang.String[] { "Id", "Token", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoResponse.java b/src/main/java/net/iGap/proto/ProtoResponse.java index b5e8ea8..6b7cd8e 100644 --- a/src/main/java/net/iGap/proto/ProtoResponse.java +++ b/src/main/java/net/iGap/proto/ProtoResponse.java @@ -8,385 +8,678 @@ private ProtoResponse() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Response) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string id = 1; + * string id = 1; + * @return The id. */ java.lang.String getId(); /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return The timestamp. */ int getTimestamp(); } /** * Protobuf type {@code proto.Response} */ - public static final class Response extends - com.google.protobuf.GeneratedMessageLite< - Response, Response.Builder> implements + public static final class Response extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Response) ResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Response() { id_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Response(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Response( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 16: { + + timestamp_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoResponse.internal_static_proto_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoResponse.internal_static_proto_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoResponse.Response.class, net.iGap.proto.ProtoResponse.Response.Builder.class); + } + public static final int ID_FIELD_NUMBER = 1; - private java.lang.String id_; + private volatile java.lang.Object id_; /** - * optional string id = 1; + * string id = 1; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { - return id_; + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(id_); - } - /** - * optional string id = 1; - */ - private void setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - } - /** - * optional string id = 1; - */ - private void clearId() { - - id_ = getDefaultInstance().getId(); - } - /** - * optional string id = 1; - */ - private void setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value.toStringUtf8(); + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TIMESTAMP_FIELD_NUMBER = 2; private int timestamp_; /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return The timestamp. */ + @java.lang.Override public int getTimestamp() { return timestamp_; } - /** - * optional uint32 timestamp = 2; - */ - private void setTimestamp(int value) { - - timestamp_ = value; - } - /** - * optional uint32 timestamp = 2; - */ - private void clearTimestamp() { - - timestamp_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!id_.isEmpty()) { - output.writeString(1, getId()); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (timestamp_ != 0) { output.writeUInt32(2, timestamp_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!id_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getId()); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (timestamp_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, timestamp_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoResponse.Response)) { + return super.equals(obj); + } + net.iGap.proto.ProtoResponse.Response other = (net.iGap.proto.ProtoResponse.Response) obj; + + if (!getId() + .equals(other.getId())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoResponse.Response parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoResponse.Response parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoResponse.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoResponse.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoResponse.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoResponse.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoResponse.Response parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoResponse.Response parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoResponse.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoResponse.Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoResponse.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoResponse.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoResponse.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.Response} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoResponse.Response, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Response) net.iGap.proto.ProtoResponse.ResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoResponse.internal_static_proto_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoResponse.internal_static_proto_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoResponse.Response.class, net.iGap.proto.ProtoResponse.Response.Builder.class); + } + // Construct using net.iGap.proto.ProtoResponse.Response.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + timestamp_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoResponse.internal_static_proto_Response_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getDefaultInstanceForType() { + return net.iGap.proto.ProtoResponse.Response.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response build() { + net.iGap.proto.ProtoResponse.Response result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response buildPartial() { + net.iGap.proto.ProtoResponse.Response result = new net.iGap.proto.ProtoResponse.Response(this); + result.id_ = id_; + result.timestamp_ = timestamp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoResponse.Response) { + return mergeFrom((net.iGap.proto.ProtoResponse.Response)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoResponse.Response other) { + if (other == net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.getTimestamp() != 0) { + setTimestamp(other.getTimestamp()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoResponse.Response parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoResponse.Response) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; /** - * optional string id = 1; + * string id = 1; + * @return The id. */ public java.lang.String getId() { - return instance.getId(); + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string id = 1; + * string id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { - return instance.getIdBytes(); + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string id = 1; + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - copyOnWrite(); - instance.setId(value); + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); return this; } /** - * optional string id = 1; + * string id = 1; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = getDefaultInstance().getId(); + onChanged(); return this; } /** - * optional string id = 1; + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); return this; } + private int timestamp_ ; /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return The timestamp. */ + @java.lang.Override public int getTimestamp() { - return instance.getTimestamp(); + return timestamp_; } /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @param value The timestamp to set. + * @return This builder for chaining. */ public Builder setTimestamp(int value) { - copyOnWrite(); - instance.setTimestamp(value); + + timestamp_ = value; + onChanged(); return this; } /** - * optional uint32 timestamp = 2; + * uint32 timestamp = 2; + * @return This builder for chaining. */ public Builder clearTimestamp() { - copyOnWrite(); - instance.clearTimestamp(); + + timestamp_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.Response) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoResponse.Response(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoResponse.Response other = (net.iGap.proto.ProtoResponse.Response) arg1; - id_ = visitor.visitString(!id_.isEmpty(), id_, - !other.id_.isEmpty(), other.id_); - timestamp_ = visitor.visitInt(timestamp_ != 0, timestamp_, - other.timestamp_ != 0, other.timestamp_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 16: { - - timestamp_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoResponse.Response.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.Response) + } + // @@protoc_insertion_point(class_scope:proto.Response) private static final net.iGap.proto.ProtoResponse.Response DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Response(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoResponse.Response(); } public static net.iGap.proto.ProtoResponse.Response getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Response(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Response_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Response_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\016Response.proto\022\005proto\")\n\010Response\022\n\n\002i" + + "d\030\001 \001(\t\022\021\n\ttimestamp\030\002 \001(\rB\037\n\016net.iGap.p" + + "rotoB\rProtoResponseb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_proto_Response_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_Response_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Response_descriptor, + new java.lang.String[] { "Id", "Timestamp", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingAccept.java b/src/main/java/net/iGap/proto/ProtoSignalingAccept.java index d835614..4ce2629 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingAccept.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingAccept.java @@ -8,25 +8,39 @@ private ProtoSignalingAccept() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingAcceptOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingAccept) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The calledSdp. */ java.lang.String getCalledSdp(); /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The bytes for calledSdp. */ com.google.protobuf.ByteString getCalledSdpBytes(); @@ -34,124 +48,190 @@ public interface SignalingAcceptOrBuilder extends /** * Protobuf type {@code proto.SignalingAccept} */ - public static final class SignalingAccept extends - com.google.protobuf.GeneratedMessageLite< - SignalingAccept, SignalingAccept.Builder> implements + public static final class SignalingAccept extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingAccept) SignalingAcceptOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingAccept.newBuilder() to construct. + private SignalingAccept(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingAccept() { calledSdp_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingAccept(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingAccept( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + calledSdp_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAccept_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAccept_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingAccept.SignalingAccept.class, net.iGap.proto.ProtoSignalingAccept.SignalingAccept.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CALLED_SDP_FIELD_NUMBER = 2; - private java.lang.String calledSdp_; + private volatile java.lang.Object calledSdp_; /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The calledSdp. */ + @java.lang.Override public java.lang.String getCalledSdp() { - return calledSdp_; + java.lang.Object ref = calledSdp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + calledSdp_ = s; + return s; + } } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The bytes for calledSdp. */ + @java.lang.Override public com.google.protobuf.ByteString getCalledSdpBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(calledSdp_); - } - /** - * optional string called_sdp = 2; - */ - private void setCalledSdp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - calledSdp_ = value; - } - /** - * optional string called_sdp = 2; - */ - private void clearCalledSdp() { - - calledSdp_ = getDefaultInstance().getCalledSdp(); + java.lang.Object ref = calledSdp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + calledSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string called_sdp = 2; - */ - private void setCalledSdpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - calledSdp_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!calledSdp_.isEmpty()) { - output.writeString(2, getCalledSdp()); + if (!getCalledSdpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, calledSdp_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!calledSdp_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCalledSdp()); + if (!getCalledSdpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, calledSdp_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingAccept.SignalingAccept)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingAccept.SignalingAccept other = (net.iGap.proto.ProtoSignalingAccept.SignalingAccept) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getCalledSdp() + .equals(other.getCalledSdp())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CALLED_SDP_FIELD_NUMBER; + hash = (53 * hash) + getCalledSdp().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingAccept.SignalingAccept prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingAccept} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingAccept.SignalingAccept, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingAccept) net.iGap.proto.ProtoSignalingAccept.SignalingAcceptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAccept_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAccept_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingAccept.SignalingAccept.class, net.iGap.proto.ProtoSignalingAccept.SignalingAccept.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingAccept.SignalingAccept.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + calledSdp_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAccept_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAccept getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingAccept.SignalingAccept.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAccept build() { + net.iGap.proto.ProtoSignalingAccept.SignalingAccept result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAccept buildPartial() { + net.iGap.proto.ProtoSignalingAccept.SignalingAccept result = new net.iGap.proto.ProtoSignalingAccept.SignalingAccept(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.calledSdp_ = calledSdp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingAccept.SignalingAccept) { + return mergeFrom((net.iGap.proto.ProtoSignalingAccept.SignalingAccept)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoSignalingAccept.SignalingAccept other) { + if (other == net.iGap.proto.ProtoSignalingAccept.SignalingAccept.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getCalledSdp().isEmpty()) { + calledSdp_ = other.calledSdp_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingAccept.SignalingAccept parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingAccept.SignalingAccept) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object calledSdp_ = ""; /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The calledSdp. */ public java.lang.String getCalledSdp() { - return instance.getCalledSdp(); + java.lang.Object ref = calledSdp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + calledSdp_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The bytes for calledSdp. */ public com.google.protobuf.ByteString getCalledSdpBytes() { - return instance.getCalledSdpBytes(); + java.lang.Object ref = calledSdp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + calledSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @param value The calledSdp to set. + * @return This builder for chaining. */ public Builder setCalledSdp( java.lang.String value) { - copyOnWrite(); - instance.setCalledSdp(value); + if (value == null) { + throw new NullPointerException(); + } + + calledSdp_ = value; + onChanged(); return this; } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return This builder for chaining. */ public Builder clearCalledSdp() { - copyOnWrite(); - instance.clearCalledSdp(); + + calledSdp_ = getDefaultInstance().getCalledSdp(); + onChanged(); return this; } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @param value The bytes for calledSdp to set. + * @return This builder for chaining. */ public Builder setCalledSdpBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCalledSdpBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + calledSdp_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingAccept) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingAccept.SignalingAccept(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingAccept.SignalingAccept other = (net.iGap.proto.ProtoSignalingAccept.SignalingAccept) arg1; - request_ = visitor.visitMessage(request_, other.request_); - calledSdp_ = visitor.visitString(!calledSdp_.isEmpty(), calledSdp_, - !other.calledSdp_.isEmpty(), other.calledSdp_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - calledSdp_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingAccept.SignalingAccept.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingAccept) + } + // @@protoc_insertion_point(class_scope:proto.SignalingAccept) private static final net.iGap.proto.ProtoSignalingAccept.SignalingAccept DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingAccept(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingAccept.SignalingAccept(); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAccept getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingAccept parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingAccept(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAccept getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface SignalingAcceptResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingAcceptResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The calledSdp. */ java.lang.String getCalledSdp(); /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The bytes for calledSdp. */ com.google.protobuf.ByteString getCalledSdpBytes(); @@ -473,124 +819,190 @@ public interface SignalingAcceptResponseOrBuilder extends /** * Protobuf type {@code proto.SignalingAcceptResponse} */ - public static final class SignalingAcceptResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingAcceptResponse, SignalingAcceptResponse.Builder> implements + public static final class SignalingAcceptResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingAcceptResponse) SignalingAcceptResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingAcceptResponse.newBuilder() to construct. + private SignalingAcceptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingAcceptResponse() { calledSdp_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingAcceptResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingAcceptResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + calledSdp_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAcceptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAcceptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.class, net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int CALLED_SDP_FIELD_NUMBER = 2; - private java.lang.String calledSdp_; + private volatile java.lang.Object calledSdp_; /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The calledSdp. */ + @java.lang.Override public java.lang.String getCalledSdp() { - return calledSdp_; + java.lang.Object ref = calledSdp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + calledSdp_ = s; + return s; + } } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The bytes for calledSdp. */ + @java.lang.Override public com.google.protobuf.ByteString getCalledSdpBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(calledSdp_); - } - /** - * optional string called_sdp = 2; - */ - private void setCalledSdp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - calledSdp_ = value; - } - /** - * optional string called_sdp = 2; - */ - private void clearCalledSdp() { - - calledSdp_ = getDefaultInstance().getCalledSdp(); + java.lang.Object ref = calledSdp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + calledSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string called_sdp = 2; - */ - private void setCalledSdpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - calledSdp_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!calledSdp_.isEmpty()) { - output.writeString(2, getCalledSdp()); + if (!getCalledSdpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, calledSdp_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!calledSdp_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCalledSdp()); + if (!getCalledSdpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, calledSdp_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse other = (net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getCalledSdp() + .equals(other.getCalledSdp())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CALLED_SDP_FIELD_NUMBER; + hash = (53 * hash) + getCalledSdp().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingAcceptResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingAcceptResponse) net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAcceptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAcceptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.class, net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + calledSdp_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingAccept.internal_static_proto_SignalingAcceptResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse build() { + net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse buildPartial() { + net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse result = new net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.calledSdp_ = calledSdp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse other) { + if (other == net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getCalledSdp().isEmpty()) { + calledSdp_ = other.calledSdp_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object calledSdp_ = ""; /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The calledSdp. */ public java.lang.String getCalledSdp() { - return instance.getCalledSdp(); + java.lang.Object ref = calledSdp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + calledSdp_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return The bytes for calledSdp. */ public com.google.protobuf.ByteString getCalledSdpBytes() { - return instance.getCalledSdpBytes(); + java.lang.Object ref = calledSdp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + calledSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @param value The calledSdp to set. + * @return This builder for chaining. */ public Builder setCalledSdp( java.lang.String value) { - copyOnWrite(); - instance.setCalledSdp(value); + if (value == null) { + throw new NullPointerException(); + } + + calledSdp_ = value; + onChanged(); return this; } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @return This builder for chaining. */ public Builder clearCalledSdp() { - copyOnWrite(); - instance.clearCalledSdp(); + + calledSdp_ = getDefaultInstance().getCalledSdp(); + onChanged(); return this; } /** - * optional string called_sdp = 2; + * string called_sdp = 2; + * @param value The bytes for calledSdp to set. + * @return This builder for chaining. */ public Builder setCalledSdpBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCalledSdpBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + calledSdp_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingAcceptResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse other = (net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - calledSdp_ = visitor.visitString(!calledSdp_.isEmpty(), calledSdp_, - !other.calledSdp_.isEmpty(), other.calledSdp_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - calledSdp_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingAcceptResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingAcceptResponse) private static final net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingAcceptResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse(); } public static net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingAcceptResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingAcceptResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingAccept.SignalingAcceptResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingAccept_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingAccept_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingAcceptResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingAcceptResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025SignalingAccept.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\"F\n\017SignalingAccept" + + "\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\022\n\ncal" + + "led_sdp\030\002 \001(\t\"P\n\027SignalingAcceptResponse" + + "\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\022\n\nc" + + "alled_sdp\030\002 \001(\tB&\n\016net.iGap.protoB\024Proto" + + "SignalingAcceptb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingAccept_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingAccept_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingAccept_descriptor, + new java.lang.String[] { "Request", "CalledSdp", }); + internal_static_proto_SignalingAcceptResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingAcceptResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingAcceptResponse_descriptor, + new java.lang.String[] { "Response", "CalledSdp", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingCandidate.java b/src/main/java/net/iGap/proto/ProtoSignalingCandidate.java index ec46f57..75b9d9c 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingCandidate.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingCandidate.java @@ -8,241 +8,315 @@ private ProtoSignalingCandidate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingCandidateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingCandidate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string candidate = 2; + * string candidate = 2; + * @return The candidate. */ java.lang.String getCandidate(); /** - * optional string candidate = 2; + * string candidate = 2; + * @return The bytes for candidate. */ com.google.protobuf.ByteString getCandidateBytes(); /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @return The sdpMId. */ java.lang.String getSdpMId(); /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @return The bytes for sdpMId. */ com.google.protobuf.ByteString getSdpMIdBytes(); /** - * optional uint32 sdp_m_line_index = 4; + * uint32 sdp_m_line_index = 4; + * @return The sdpMLineIndex. */ int getSdpMLineIndex(); } /** * Protobuf type {@code proto.SignalingCandidate} */ - public static final class SignalingCandidate extends - com.google.protobuf.GeneratedMessageLite< - SignalingCandidate, SignalingCandidate.Builder> implements + public static final class SignalingCandidate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingCandidate) SignalingCandidateOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingCandidate.newBuilder() to construct. + private SignalingCandidate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingCandidate() { candidate_ = ""; sdpMId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingCandidate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingCandidate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + candidate_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + sdpMId_ = s; + break; + } + case 32: { + + sdpMLineIndex_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.class, net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CANDIDATE_FIELD_NUMBER = 2; - private java.lang.String candidate_; + private volatile java.lang.Object candidate_; /** - * optional string candidate = 2; + * string candidate = 2; + * @return The candidate. */ + @java.lang.Override public java.lang.String getCandidate() { - return candidate_; + java.lang.Object ref = candidate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidate_ = s; + return s; + } } /** - * optional string candidate = 2; + * string candidate = 2; + * @return The bytes for candidate. */ + @java.lang.Override public com.google.protobuf.ByteString getCandidateBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(candidate_); - } - /** - * optional string candidate = 2; - */ - private void setCandidate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - candidate_ = value; - } - /** - * optional string candidate = 2; - */ - private void clearCandidate() { - - candidate_ = getDefaultInstance().getCandidate(); - } - /** - * optional string candidate = 2; - */ - private void setCandidateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - candidate_ = value.toStringUtf8(); + java.lang.Object ref = candidate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + candidate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SDP_M_ID_FIELD_NUMBER = 3; - private java.lang.String sdpMId_; + private volatile java.lang.Object sdpMId_; /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @return The sdpMId. */ + @java.lang.Override public java.lang.String getSdpMId() { - return sdpMId_; + java.lang.Object ref = sdpMId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sdpMId_ = s; + return s; + } } /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @return The bytes for sdpMId. */ + @java.lang.Override public com.google.protobuf.ByteString getSdpMIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(sdpMId_); - } - /** - * optional string sdp_m_id = 3; - */ - private void setSdpMId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sdpMId_ = value; - } - /** - * optional string sdp_m_id = 3; - */ - private void clearSdpMId() { - - sdpMId_ = getDefaultInstance().getSdpMId(); - } - /** - * optional string sdp_m_id = 3; - */ - private void setSdpMIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sdpMId_ = value.toStringUtf8(); + java.lang.Object ref = sdpMId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sdpMId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SDP_M_LINE_INDEX_FIELD_NUMBER = 4; private int sdpMLineIndex_; /** - * optional uint32 sdp_m_line_index = 4; + * uint32 sdp_m_line_index = 4; + * @return The sdpMLineIndex. */ + @java.lang.Override public int getSdpMLineIndex() { return sdpMLineIndex_; } - /** - * optional uint32 sdp_m_line_index = 4; - */ - private void setSdpMLineIndex(int value) { - - sdpMLineIndex_ = value; - } - /** - * optional uint32 sdp_m_line_index = 4; - */ - private void clearSdpMLineIndex() { - - sdpMLineIndex_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!candidate_.isEmpty()) { - output.writeString(2, getCandidate()); + if (!getCandidateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, candidate_); } - if (!sdpMId_.isEmpty()) { - output.writeString(3, getSdpMId()); + if (!getSdpMIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sdpMId_); } if (sdpMLineIndex_ != 0) { output.writeUInt32(4, sdpMLineIndex_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -250,615 +324,990 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!candidate_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCandidate()); + if (!getCandidateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, candidate_); } - if (!sdpMId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getSdpMId()); + if (!getSdpMIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sdpMId_); } if (sdpMLineIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, sdpMLineIndex_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate other = (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getCandidate() + .equals(other.getCandidate())) return false; + if (!getSdpMId() + .equals(other.getSdpMId())) return false; + if (getSdpMLineIndex() + != other.getSdpMLineIndex()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CANDIDATE_FIELD_NUMBER; + hash = (53 * hash) + getCandidate().hashCode(); + hash = (37 * hash) + SDP_M_ID_FIELD_NUMBER; + hash = (53 * hash) + getSdpMId().hashCode(); + hash = (37 * hash) + SDP_M_LINE_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getSdpMLineIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingCandidate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingCandidate) net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.class, net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + candidate_ = ""; + + sdpMId_ = ""; + sdpMLineIndex_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate build() { + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate buildPartial() { + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate result = new net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.candidate_ = candidate_; + result.sdpMId_ = sdpMId_; + result.sdpMLineIndex_ = sdpMLineIndex_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate) { + return mergeFrom((net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate other) { + if (other == net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getCandidate().isEmpty()) { + candidate_ = other.candidate_; + onChanged(); + } + if (!other.getSdpMId().isEmpty()) { + sdpMId_ = other.sdpMId_; + onChanged(); + } + if (other.getSdpMLineIndex() != 0) { + setSdpMLineIndex(other.getSdpMLineIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object candidate_ = ""; /** - * optional string candidate = 2; + * string candidate = 2; + * @return The candidate. */ public java.lang.String getCandidate() { - return instance.getCandidate(); + java.lang.Object ref = candidate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidate_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string candidate = 2; + * string candidate = 2; + * @return The bytes for candidate. */ public com.google.protobuf.ByteString getCandidateBytes() { - return instance.getCandidateBytes(); + java.lang.Object ref = candidate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + candidate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string candidate = 2; + * string candidate = 2; + * @param value The candidate to set. + * @return This builder for chaining. */ public Builder setCandidate( java.lang.String value) { - copyOnWrite(); - instance.setCandidate(value); + if (value == null) { + throw new NullPointerException(); + } + + candidate_ = value; + onChanged(); return this; } /** - * optional string candidate = 2; + * string candidate = 2; + * @return This builder for chaining. */ public Builder clearCandidate() { - copyOnWrite(); - instance.clearCandidate(); + + candidate_ = getDefaultInstance().getCandidate(); + onChanged(); return this; } /** - * optional string candidate = 2; + * string candidate = 2; + * @param value The bytes for candidate to set. + * @return This builder for chaining. */ public Builder setCandidateBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCandidateBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + candidate_ = value; + onChanged(); return this; } + private java.lang.Object sdpMId_ = ""; /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @return The sdpMId. */ public java.lang.String getSdpMId() { - return instance.getSdpMId(); + java.lang.Object ref = sdpMId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sdpMId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @return The bytes for sdpMId. */ public com.google.protobuf.ByteString getSdpMIdBytes() { - return instance.getSdpMIdBytes(); + java.lang.Object ref = sdpMId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sdpMId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @param value The sdpMId to set. + * @return This builder for chaining. */ public Builder setSdpMId( java.lang.String value) { - copyOnWrite(); - instance.setSdpMId(value); + if (value == null) { + throw new NullPointerException(); + } + + sdpMId_ = value; + onChanged(); return this; } /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @return This builder for chaining. */ public Builder clearSdpMId() { - copyOnWrite(); - instance.clearSdpMId(); + + sdpMId_ = getDefaultInstance().getSdpMId(); + onChanged(); return this; } /** - * optional string sdp_m_id = 3; + * string sdp_m_id = 3; + * @param value The bytes for sdpMId to set. + * @return This builder for chaining. */ public Builder setSdpMIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSdpMIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sdpMId_ = value; + onChanged(); return this; } + private int sdpMLineIndex_ ; /** - * optional uint32 sdp_m_line_index = 4; + * uint32 sdp_m_line_index = 4; + * @return The sdpMLineIndex. */ + @java.lang.Override public int getSdpMLineIndex() { - return instance.getSdpMLineIndex(); + return sdpMLineIndex_; } /** - * optional uint32 sdp_m_line_index = 4; + * uint32 sdp_m_line_index = 4; + * @param value The sdpMLineIndex to set. + * @return This builder for chaining. */ public Builder setSdpMLineIndex(int value) { - copyOnWrite(); - instance.setSdpMLineIndex(value); + + sdpMLineIndex_ = value; + onChanged(); return this; } /** - * optional uint32 sdp_m_line_index = 4; + * uint32 sdp_m_line_index = 4; + * @return This builder for chaining. */ public Builder clearSdpMLineIndex() { - copyOnWrite(); - instance.clearSdpMLineIndex(); + + sdpMLineIndex_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingCandidate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate other = (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate) arg1; - request_ = visitor.visitMessage(request_, other.request_); - candidate_ = visitor.visitString(!candidate_.isEmpty(), candidate_, - !other.candidate_.isEmpty(), other.candidate_); - sdpMId_ = visitor.visitString(!sdpMId_.isEmpty(), sdpMId_, - !other.sdpMId_.isEmpty(), other.sdpMId_); - sdpMLineIndex_ = visitor.visitInt(sdpMLineIndex_ != 0, sdpMLineIndex_, - other.sdpMLineIndex_ != 0, other.sdpMLineIndex_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - candidate_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - sdpMId_ = s; - break; - } - case 32: { - - sdpMLineIndex_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingCandidate) + } + // @@protoc_insertion_point(class_scope:proto.SignalingCandidate) private static final net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingCandidate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate(); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingCandidate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingCandidate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface SignalingCandidateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingCandidateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @return The peerCandidate. */ java.lang.String getPeerCandidate(); /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @return The bytes for peerCandidate. */ com.google.protobuf.ByteString getPeerCandidateBytes(); /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @return The peerSdpMId. */ java.lang.String getPeerSdpMId(); /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @return The bytes for peerSdpMId. */ com.google.protobuf.ByteString getPeerSdpMIdBytes(); /** - * optional uint32 peer_sdp_m_line_index = 4; + * uint32 peer_sdp_m_line_index = 4; + * @return The peerSdpMLineIndex. */ int getPeerSdpMLineIndex(); } /** * Protobuf type {@code proto.SignalingCandidateResponse} */ - public static final class SignalingCandidateResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingCandidateResponse, SignalingCandidateResponse.Builder> implements + public static final class SignalingCandidateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingCandidateResponse) SignalingCandidateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingCandidateResponse.newBuilder() to construct. + private SignalingCandidateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingCandidateResponse() { peerCandidate_ = ""; peerSdpMId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingCandidateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingCandidateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + peerCandidate_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + peerSdpMId_ = s; + break; + } + case 32: { + + peerSdpMLineIndex_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.class, net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PEER_CANDIDATE_FIELD_NUMBER = 2; - private java.lang.String peerCandidate_; + private volatile java.lang.Object peerCandidate_; /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @return The peerCandidate. */ + @java.lang.Override public java.lang.String getPeerCandidate() { - return peerCandidate_; + java.lang.Object ref = peerCandidate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerCandidate_ = s; + return s; + } } /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @return The bytes for peerCandidate. */ + @java.lang.Override public com.google.protobuf.ByteString getPeerCandidateBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(peerCandidate_); - } - /** - * optional string peer_candidate = 2; - */ - private void setPeerCandidate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - peerCandidate_ = value; - } - /** - * optional string peer_candidate = 2; - */ - private void clearPeerCandidate() { - - peerCandidate_ = getDefaultInstance().getPeerCandidate(); - } - /** - * optional string peer_candidate = 2; - */ - private void setPeerCandidateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - peerCandidate_ = value.toStringUtf8(); + java.lang.Object ref = peerCandidate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + peerCandidate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PEER_SDP_M_ID_FIELD_NUMBER = 3; - private java.lang.String peerSdpMId_; + private volatile java.lang.Object peerSdpMId_; /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @return The peerSdpMId. */ + @java.lang.Override public java.lang.String getPeerSdpMId() { - return peerSdpMId_; + java.lang.Object ref = peerSdpMId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerSdpMId_ = s; + return s; + } } /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @return The bytes for peerSdpMId. */ + @java.lang.Override public com.google.protobuf.ByteString getPeerSdpMIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(peerSdpMId_); - } - /** - * optional string peer_sdp_m_id = 3; - */ - private void setPeerSdpMId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - peerSdpMId_ = value; - } - /** - * optional string peer_sdp_m_id = 3; - */ - private void clearPeerSdpMId() { - - peerSdpMId_ = getDefaultInstance().getPeerSdpMId(); - } - /** - * optional string peer_sdp_m_id = 3; - */ - private void setPeerSdpMIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - peerSdpMId_ = value.toStringUtf8(); + java.lang.Object ref = peerSdpMId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + peerSdpMId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PEER_SDP_M_LINE_INDEX_FIELD_NUMBER = 4; private int peerSdpMLineIndex_; /** - * optional uint32 peer_sdp_m_line_index = 4; + * uint32 peer_sdp_m_line_index = 4; + * @return The peerSdpMLineIndex. */ + @java.lang.Override public int getPeerSdpMLineIndex() { return peerSdpMLineIndex_; } - /** - * optional uint32 peer_sdp_m_line_index = 4; - */ - private void setPeerSdpMLineIndex(int value) { - - peerSdpMLineIndex_ = value; - } - /** - * optional uint32 peer_sdp_m_line_index = 4; - */ - private void clearPeerSdpMLineIndex() { - - peerSdpMLineIndex_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!peerCandidate_.isEmpty()) { - output.writeString(2, getPeerCandidate()); + if (!getPeerCandidateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peerCandidate_); } - if (!peerSdpMId_.isEmpty()) { - output.writeString(3, getPeerSdpMId()); + if (!getPeerSdpMIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peerSdpMId_); } if (peerSdpMLineIndex_ != 0) { output.writeUInt32(4, peerSdpMLineIndex_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -866,382 +1315,737 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!peerCandidate_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPeerCandidate()); + if (!getPeerCandidateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerCandidate_); } - if (!peerSdpMId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getPeerSdpMId()); + if (!getPeerSdpMIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, peerSdpMId_); } if (peerSdpMLineIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, peerSdpMLineIndex_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse other = (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getPeerCandidate() + .equals(other.getPeerCandidate())) return false; + if (!getPeerSdpMId() + .equals(other.getPeerSdpMId())) return false; + if (getPeerSdpMLineIndex() + != other.getPeerSdpMLineIndex()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PEER_CANDIDATE_FIELD_NUMBER; + hash = (53 * hash) + getPeerCandidate().hashCode(); + hash = (37 * hash) + PEER_SDP_M_ID_FIELD_NUMBER; + hash = (53 * hash) + getPeerSdpMId().hashCode(); + hash = (37 * hash) + PEER_SDP_M_LINE_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getPeerSdpMLineIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingCandidateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingCandidateResponse) net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.class, net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + peerCandidate_ = ""; + + peerSdpMId_ = ""; + + peerSdpMLineIndex_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingCandidate.internal_static_proto_SignalingCandidateResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse build() { + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse buildPartial() { + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse result = new net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.peerCandidate_ = peerCandidate_; + result.peerSdpMId_ = peerSdpMId_; + result.peerSdpMLineIndex_ = peerSdpMLineIndex_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse other) { + if (other == net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getPeerCandidate().isEmpty()) { + peerCandidate_ = other.peerCandidate_; + onChanged(); + } + if (!other.getPeerSdpMId().isEmpty()) { + peerSdpMId_ = other.peerSdpMId_; + onChanged(); + } + if (other.getPeerSdpMLineIndex() != 0) { + setPeerSdpMLineIndex(other.getPeerSdpMLineIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object peerCandidate_ = ""; /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @return The peerCandidate. */ public java.lang.String getPeerCandidate() { - return instance.getPeerCandidate(); + java.lang.Object ref = peerCandidate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerCandidate_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @return The bytes for peerCandidate. */ public com.google.protobuf.ByteString getPeerCandidateBytes() { - return instance.getPeerCandidateBytes(); + java.lang.Object ref = peerCandidate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + peerCandidate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @param value The peerCandidate to set. + * @return This builder for chaining. */ public Builder setPeerCandidate( java.lang.String value) { - copyOnWrite(); - instance.setPeerCandidate(value); + if (value == null) { + throw new NullPointerException(); + } + + peerCandidate_ = value; + onChanged(); return this; } /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @return This builder for chaining. */ public Builder clearPeerCandidate() { - copyOnWrite(); - instance.clearPeerCandidate(); + + peerCandidate_ = getDefaultInstance().getPeerCandidate(); + onChanged(); return this; } /** - * optional string peer_candidate = 2; + * string peer_candidate = 2; + * @param value The bytes for peerCandidate to set. + * @return This builder for chaining. */ public Builder setPeerCandidateBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPeerCandidateBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + peerCandidate_ = value; + onChanged(); return this; } + private java.lang.Object peerSdpMId_ = ""; /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @return The peerSdpMId. */ public java.lang.String getPeerSdpMId() { - return instance.getPeerSdpMId(); + java.lang.Object ref = peerSdpMId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerSdpMId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @return The bytes for peerSdpMId. */ public com.google.protobuf.ByteString getPeerSdpMIdBytes() { - return instance.getPeerSdpMIdBytes(); + java.lang.Object ref = peerSdpMId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + peerSdpMId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @param value The peerSdpMId to set. + * @return This builder for chaining. */ public Builder setPeerSdpMId( java.lang.String value) { - copyOnWrite(); - instance.setPeerSdpMId(value); + if (value == null) { + throw new NullPointerException(); + } + + peerSdpMId_ = value; + onChanged(); return this; } /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @return This builder for chaining. */ public Builder clearPeerSdpMId() { - copyOnWrite(); - instance.clearPeerSdpMId(); + + peerSdpMId_ = getDefaultInstance().getPeerSdpMId(); + onChanged(); return this; } /** - * optional string peer_sdp_m_id = 3; + * string peer_sdp_m_id = 3; + * @param value The bytes for peerSdpMId to set. + * @return This builder for chaining. */ public Builder setPeerSdpMIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPeerSdpMIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + peerSdpMId_ = value; + onChanged(); return this; } + private int peerSdpMLineIndex_ ; /** - * optional uint32 peer_sdp_m_line_index = 4; + * uint32 peer_sdp_m_line_index = 4; + * @return The peerSdpMLineIndex. */ + @java.lang.Override public int getPeerSdpMLineIndex() { - return instance.getPeerSdpMLineIndex(); + return peerSdpMLineIndex_; } /** - * optional uint32 peer_sdp_m_line_index = 4; + * uint32 peer_sdp_m_line_index = 4; + * @param value The peerSdpMLineIndex to set. + * @return This builder for chaining. */ public Builder setPeerSdpMLineIndex(int value) { - copyOnWrite(); - instance.setPeerSdpMLineIndex(value); + + peerSdpMLineIndex_ = value; + onChanged(); return this; } /** - * optional uint32 peer_sdp_m_line_index = 4; + * uint32 peer_sdp_m_line_index = 4; + * @return This builder for chaining. */ public Builder clearPeerSdpMLineIndex() { - copyOnWrite(); - instance.clearPeerSdpMLineIndex(); + + peerSdpMLineIndex_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingCandidateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse other = (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - peerCandidate_ = visitor.visitString(!peerCandidate_.isEmpty(), peerCandidate_, - !other.peerCandidate_.isEmpty(), other.peerCandidate_); - peerSdpMId_ = visitor.visitString(!peerSdpMId_.isEmpty(), peerSdpMId_, - !other.peerSdpMId_.isEmpty(), other.peerSdpMId_); - peerSdpMLineIndex_ = visitor.visitInt(peerSdpMLineIndex_ != 0, peerSdpMLineIndex_, - other.peerSdpMLineIndex_ != 0, other.peerSdpMLineIndex_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - peerCandidate_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - peerSdpMId_ = s; - break; - } - case 32: { - - peerSdpMLineIndex_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingCandidateResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingCandidateResponse) private static final net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingCandidateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse(); } public static net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingCandidateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingCandidateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingCandidate.SignalingCandidateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingCandidate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingCandidate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingCandidateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingCandidateResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030SignalingCandidate.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"t\n\022SignalingCan" + + "didate\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\021\n\tcandidate\030\002 \001(\t\022\020\n\010sdp_m_id\030\003 \001(\t\022\030\n\020" + + "sdp_m_line_index\030\004 \001(\r\"\215\001\n\032SignalingCand" + + "idateResponse\022!\n\010response\030\001 \001(\0132\017.proto." + + "Response\022\026\n\016peer_candidate\030\002 \001(\t\022\025\n\rpeer" + + "_sdp_m_id\030\003 \001(\t\022\035\n\025peer_sdp_m_line_index" + + "\030\004 \001(\rB)\n\016net.iGap.protoB\027ProtoSignaling" + + "Candidateb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingCandidate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingCandidate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingCandidate_descriptor, + new java.lang.String[] { "Request", "Candidate", "SdpMId", "SdpMLineIndex", }); + internal_static_proto_SignalingCandidateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingCandidateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingCandidateResponse_descriptor, + new java.lang.String[] { "Response", "PeerCandidate", "PeerSdpMId", "PeerSdpMLineIndex", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingClearLog.java b/src/main/java/net/iGap/proto/ProtoSignalingClearLog.java index 194b6a2..db0168d 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingClearLog.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingClearLog.java @@ -8,182 +8,252 @@ private ProtoSignalingClearLog() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingClearLogOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingClearLog) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return The clearId. */ long getClearId(); /** * repeated uint64 log_id = 3; + * @return A list containing the logId. */ java.util.List getLogIdList(); /** * repeated uint64 log_id = 3; + * @return The count of logId. */ int getLogIdCount(); /** * repeated uint64 log_id = 3; + * @param index The index of the element to return. + * @return The logId at the given index. */ long getLogId(int index); } /** * Protobuf type {@code proto.SignalingClearLog} */ - public static final class SignalingClearLog extends - com.google.protobuf.GeneratedMessageLite< - SignalingClearLog, SignalingClearLog.Builder> implements + public static final class SignalingClearLog extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingClearLog) SignalingClearLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingClearLog.newBuilder() to construct. + private SignalingClearLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingClearLog() { logId_ = emptyLongList(); } - private int bitField0_; + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingClearLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingClearLog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + clearId_ = input.readUInt64(); + break; + } + case 24: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logId_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + logId_.addLong(input.readUInt64()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + logId_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + logId_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + logId_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.class, net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CLEAR_ID_FIELD_NUMBER = 2; private long clearId_; /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return The clearId. */ + @java.lang.Override public long getClearId() { return clearId_; } - /** - * optional uint64 clear_id = 2; - */ - private void setClearId(long value) { - - clearId_ = value; - } - /** - * optional uint64 clear_id = 2; - */ - private void clearClearId() { - - clearId_ = 0L; - } public static final int LOG_ID_FIELD_NUMBER = 3; private com.google.protobuf.Internal.LongList logId_; /** * repeated uint64 log_id = 3; + * @return A list containing the logId. */ + @java.lang.Override public java.util.List getLogIdList() { return logId_; } /** * repeated uint64 log_id = 3; + * @return The count of logId. */ public int getLogIdCount() { return logId_.size(); } /** * repeated uint64 log_id = 3; + * @param index The index of the element to return. + * @return The logId at the given index. */ public long getLogId(int index) { return logId_.getLong(index); } - private void ensureLogIdIsMutable() { - if (!logId_.isModifiable()) { - logId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(logId_); - } - } - /** - * repeated uint64 log_id = 3; - */ - private void setLogId( - int index, long value) { - ensureLogIdIsMutable(); - logId_.setLong(index, value); - } - /** - * repeated uint64 log_id = 3; - */ - private void addLogId(long value) { - ensureLogIdIsMutable(); - logId_.addLong(value); - } - /** - * repeated uint64 log_id = 3; - */ - private void addAllLogId( - java.lang.Iterable values) { - ensureLogIdIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, logId_); - } - /** - * repeated uint64 log_id = 3; - */ - private void clearLogId() { - logId_ = emptyLongList(); + private int logIdMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -193,13 +263,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (clearId_ != 0L) { output.writeUInt64(2, clearId_); } + if (getLogIdList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(logIdMemoizedSerializedSize); + } for (int i = 0; i < logId_.size(); i++) { - output.writeUInt64(3, logId_.getLong(i)); + output.writeUInt64NoTag(logId_.getLong(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -218,529 +294,855 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(logId_.getLong(i)); } size += dataSize; - size += 1 * getLogIdList().size(); + if (!getLogIdList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + logIdMemoizedSerializedSize = dataSize; } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog other = (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getClearId() + != other.getClearId()) return false; + if (!getLogIdList() + .equals(other.getLogIdList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CLEAR_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearId()); + if (getLogIdCount() > 0) { + hash = (37 * hash) + LOG_ID_FIELD_NUMBER; + hash = (53 * hash) + getLogIdList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingClearLog} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingClearLog) net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.class, net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + clearId_ = 0L; + + logId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLog_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog build() { + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog buildPartial() { + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog result = new net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.clearId_ = clearId_; + if (((bitField0_ & 0x00000001) != 0)) { + logId_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logId_ = logId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog) { + return mergeFrom((net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog other) { + if (other == net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getClearId() != 0L) { + setClearId(other.getClearId()); + } + if (!other.logId_.isEmpty()) { + if (logId_.isEmpty()) { + logId_ = other.logId_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogIdIsMutable(); + logId_.addAll(other.logId_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long clearId_ ; /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return The clearId. */ + @java.lang.Override public long getClearId() { - return instance.getClearId(); + return clearId_; } /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @param value The clearId to set. + * @return This builder for chaining. */ public Builder setClearId(long value) { - copyOnWrite(); - instance.setClearId(value); + + clearId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return This builder for chaining. */ public Builder clearClearId() { - copyOnWrite(); - instance.clearClearId(); + + clearId_ = 0L; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList logId_ = emptyLongList(); + private void ensureLogIdIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + logId_ = mutableCopy(logId_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 log_id = 3; + * @return A list containing the logId. */ public java.util.List getLogIdList() { - return java.util.Collections.unmodifiableList( - instance.getLogIdList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(logId_) : logId_; } /** * repeated uint64 log_id = 3; + * @return The count of logId. */ public int getLogIdCount() { - return instance.getLogIdCount(); + return logId_.size(); } /** * repeated uint64 log_id = 3; + * @param index The index of the element to return. + * @return The logId at the given index. */ public long getLogId(int index) { - return instance.getLogId(index); + return logId_.getLong(index); } /** * repeated uint64 log_id = 3; + * @param index The index to set the value at. + * @param value The logId to set. + * @return This builder for chaining. */ public Builder setLogId( int index, long value) { - copyOnWrite(); - instance.setLogId(index, value); + ensureLogIdIsMutable(); + logId_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 log_id = 3; + * @param value The logId to add. + * @return This builder for chaining. */ public Builder addLogId(long value) { - copyOnWrite(); - instance.addLogId(value); + ensureLogIdIsMutable(); + logId_.addLong(value); + onChanged(); return this; } /** * repeated uint64 log_id = 3; + * @param values The logId to add. + * @return This builder for chaining. */ public Builder addAllLogId( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllLogId(values); + ensureLogIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logId_); + onChanged(); return this; } /** * repeated uint64 log_id = 3; + * @return This builder for chaining. */ public Builder clearLogId() { - copyOnWrite(); - instance.clearLogId(); + logId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingClearLog) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - logId_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog other = (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog) arg1; - request_ = visitor.visitMessage(request_, other.request_); - clearId_ = visitor.visitLong(clearId_ != 0L, clearId_, - other.clearId_ != 0L, other.clearId_); - logId_= visitor.visitLongList(logId_, other.logId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - clearId_ = input.readUInt64(); - break; - } - case 24: { - if (!logId_.isModifiable()) { - logId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(logId_); - } - logId_.addLong(input.readUInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!logId_.isModifiable() && input.getBytesUntilLimit() > 0) { - logId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(logId_); - } - while (input.getBytesUntilLimit() > 0) { - logId_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingClearLog) + } + // @@protoc_insertion_point(class_scope:proto.SignalingClearLog) private static final net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingClearLog(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog(); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingClearLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingClearLog(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface SignalingClearLogResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingClearLogResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return The clearId. */ long getClearId(); /** * repeated uint64 log_id = 3; + * @return A list containing the logId. */ java.util.List getLogIdList(); /** * repeated uint64 log_id = 3; + * @return The count of logId. */ int getLogIdCount(); /** * repeated uint64 log_id = 3; + * @param index The index of the element to return. + * @return The logId at the given index. */ long getLogId(int index); } /** * Protobuf type {@code proto.SignalingClearLogResponse} */ - public static final class SignalingClearLogResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingClearLogResponse, SignalingClearLogResponse.Builder> implements + public static final class SignalingClearLogResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingClearLogResponse) SignalingClearLogResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingClearLogResponse.newBuilder() to construct. + private SignalingClearLogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingClearLogResponse() { logId_ = emptyLongList(); } - private int bitField0_; + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingClearLogResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingClearLogResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + clearId_ = input.readUInt64(); + break; + } + case 24: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logId_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + logId_.addLong(input.readUInt64()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + logId_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + logId_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + logId_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLogResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.class, net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int CLEAR_ID_FIELD_NUMBER = 2; private long clearId_; /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return The clearId. */ + @java.lang.Override public long getClearId() { return clearId_; } - /** - * optional uint64 clear_id = 2; - */ - private void setClearId(long value) { - - clearId_ = value; - } - /** - * optional uint64 clear_id = 2; - */ - private void clearClearId() { - - clearId_ = 0L; - } public static final int LOG_ID_FIELD_NUMBER = 3; private com.google.protobuf.Internal.LongList logId_; /** * repeated uint64 log_id = 3; + * @return A list containing the logId. */ + @java.lang.Override public java.util.List getLogIdList() { return logId_; } /** * repeated uint64 log_id = 3; + * @return The count of logId. */ public int getLogIdCount() { return logId_.size(); } /** * repeated uint64 log_id = 3; + * @param index The index of the element to return. + * @return The logId at the given index. */ public long getLogId(int index) { return logId_.getLong(index); } - private void ensureLogIdIsMutable() { - if (!logId_.isModifiable()) { - logId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(logId_); - } - } - /** - * repeated uint64 log_id = 3; - */ - private void setLogId( - int index, long value) { - ensureLogIdIsMutable(); - logId_.setLong(index, value); - } - /** - * repeated uint64 log_id = 3; - */ - private void addLogId(long value) { - ensureLogIdIsMutable(); - logId_.addLong(value); - } - /** - * repeated uint64 log_id = 3; - */ - private void addAllLogId( - java.lang.Iterable values) { - ensureLogIdIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, logId_); - } - /** - * repeated uint64 log_id = 3; - */ - private void clearLogId() { - logId_ = emptyLongList(); + private int logIdMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -750,13 +1152,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (clearId_ != 0L) { output.writeUInt64(2, clearId_); } + if (getLogIdList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(logIdMemoizedSerializedSize); + } for (int i = 0; i < logId_.size(); i++) { - output.writeUInt64(3, logId_.getLong(i)); + output.writeUInt64NoTag(logId_.getLong(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -775,355 +1183,663 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(logId_.getLong(i)); } size += dataSize; - size += 1 * getLogIdList().size(); + if (!getLogIdList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + logIdMemoizedSerializedSize = dataSize; } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse other = (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getClearId() + != other.getClearId()) return false; + if (!getLogIdList() + .equals(other.getLogIdList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CLEAR_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearId()); + if (getLogIdCount() > 0) { + hash = (37 * hash) + LOG_ID_FIELD_NUMBER; + hash = (53 * hash) + getLogIdList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingClearLogResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingClearLogResponse) net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLogResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.class, net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + clearId_ = 0L; + logId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingClearLog.internal_static_proto_SignalingClearLogResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse build() { + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse buildPartial() { + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse result = new net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.clearId_ = clearId_; + if (((bitField0_ & 0x00000001) != 0)) { + logId_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logId_ = logId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse other) { + if (other == net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getClearId() != 0L) { + setClearId(other.getClearId()); + } + if (!other.logId_.isEmpty()) { + if (logId_.isEmpty()) { + logId_ = other.logId_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogIdIsMutable(); + logId_.addAll(other.logId_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long clearId_ ; /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return The clearId. */ + @java.lang.Override public long getClearId() { - return instance.getClearId(); + return clearId_; } /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @param value The clearId to set. + * @return This builder for chaining. */ public Builder setClearId(long value) { - copyOnWrite(); - instance.setClearId(value); + + clearId_ = value; + onChanged(); return this; } /** - * optional uint64 clear_id = 2; + * uint64 clear_id = 2; + * @return This builder for chaining. */ public Builder clearClearId() { - copyOnWrite(); - instance.clearClearId(); + + clearId_ = 0L; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList logId_ = emptyLongList(); + private void ensureLogIdIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + logId_ = mutableCopy(logId_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 log_id = 3; + * @return A list containing the logId. */ public java.util.List getLogIdList() { - return java.util.Collections.unmodifiableList( - instance.getLogIdList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(logId_) : logId_; } /** * repeated uint64 log_id = 3; + * @return The count of logId. */ public int getLogIdCount() { - return instance.getLogIdCount(); + return logId_.size(); } /** * repeated uint64 log_id = 3; + * @param index The index of the element to return. + * @return The logId at the given index. */ public long getLogId(int index) { - return instance.getLogId(index); + return logId_.getLong(index); } /** * repeated uint64 log_id = 3; + * @param index The index to set the value at. + * @param value The logId to set. + * @return This builder for chaining. */ public Builder setLogId( int index, long value) { - copyOnWrite(); - instance.setLogId(index, value); + ensureLogIdIsMutable(); + logId_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 log_id = 3; + * @param value The logId to add. + * @return This builder for chaining. */ public Builder addLogId(long value) { - copyOnWrite(); - instance.addLogId(value); + ensureLogIdIsMutable(); + logId_.addLong(value); + onChanged(); return this; } /** * repeated uint64 log_id = 3; + * @param values The logId to add. + * @return This builder for chaining. */ public Builder addAllLogId( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllLogId(values); + ensureLogIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logId_); + onChanged(); return this; } /** * repeated uint64 log_id = 3; + * @return This builder for chaining. */ public Builder clearLogId() { - copyOnWrite(); - instance.clearLogId(); + logId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingClearLogResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - logId_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse other = (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - clearId_ = visitor.visitLong(clearId_ != 0L, clearId_, - other.clearId_ != 0L, other.clearId_); - logId_= visitor.visitLongList(logId_, other.logId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - clearId_ = input.readUInt64(); - break; - } - case 24: { - if (!logId_.isModifiable()) { - logId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(logId_); - } - logId_.addLong(input.readUInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!logId_.isModifiable() && input.getBytesUntilLimit() > 0) { - logId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(logId_); - } - while (input.getBytesUntilLimit() > 0) { - logId_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingClearLogResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingClearLogResponse) private static final net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingClearLogResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse(); } public static net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingClearLogResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingClearLogResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingClearLog.SignalingClearLogResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingClearLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingClearLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingClearLogResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingClearLogResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027SignalingClearLog.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"V\n\021SignalingClea" + + "rLog\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\020\n" + + "\010clear_id\030\002 \001(\004\022\016\n\006log_id\030\003 \003(\004\"`\n\031Signa" + + "lingClearLogResponse\022!\n\010response\030\001 \001(\0132\017" + + ".proto.Response\022\020\n\010clear_id\030\002 \001(\004\022\016\n\006log" + + "_id\030\003 \003(\004B(\n\016net.iGap.protoB\026ProtoSignal" + + "ingClearLogb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingClearLog_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingClearLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingClearLog_descriptor, + new java.lang.String[] { "Request", "ClearId", "LogId", }); + internal_static_proto_SignalingClearLogResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingClearLogResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingClearLogResponse_descriptor, + new java.lang.String[] { "Response", "ClearId", "LogId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingGetConfiguration.java b/src/main/java/net/iGap/proto/ProtoSignalingGetConfiguration.java index 69f0450..0ca8a0e 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingGetConfiguration.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingGetConfiguration.java @@ -8,90 +8,170 @@ private ProtoSignalingGetConfiguration() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingGetConfigurationOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingGetConfiguration) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.SignalingGetConfiguration} */ - public static final class SignalingGetConfiguration extends - com.google.protobuf.GeneratedMessageLite< - SignalingGetConfiguration, SignalingGetConfiguration.Builder> implements + public static final class SignalingGetConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingGetConfiguration) SignalingGetConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingGetConfiguration.newBuilder() to construct. + private SignalingGetConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingGetConfiguration() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingGetConfiguration(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingGetConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.class, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,254 +179,480 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration other = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingGetConfiguration} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingGetConfiguration) net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.class, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfiguration_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration build() { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration buildPartial() { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration result = new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration) { + return mergeFrom((net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration other) { + if (other == net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.SignalingGetConfiguration) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration other = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.SignalingGetConfiguration) + } // @@protoc_insertion_point(class_scope:proto.SignalingGetConfiguration) private static final net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingGetConfiguration(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration(); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingGetConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingGetConfiguration(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface SignalingGetConfigurationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingGetConfigurationResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; @@ -361,68 +667,201 @@ public interface SignalingGetConfigurationResponseOrBuilder extends * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ int getIceServerCount(); + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + java.util.List + getIceServerOrBuilderList(); + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServerOrBuilder getIceServerOrBuilder( + int index); /** - * optional bool voice_calling = 3; + * bool voice_calling = 3; + * @return The voiceCalling. */ boolean getVoiceCalling(); /** - * optional bool video_calling = 4; + * bool video_calling = 4; + * @return The videoCalling. */ boolean getVideoCalling(); /** - * optional bool screen_sharing = 5; + * bool screen_sharing = 5; + * @return The screenSharing. */ boolean getScreenSharing(); /** - * optional bool secret_chat = 6; + * bool secret_chat = 6; + * @return The secretChat. */ boolean getSecretChat(); } /** * Protobuf type {@code proto.SignalingGetConfigurationResponse} */ - public static final class SignalingGetConfigurationResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingGetConfigurationResponse, SignalingGetConfigurationResponse.Builder> implements + public static final class SignalingGetConfigurationResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingGetConfigurationResponse) SignalingGetConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingGetConfigurationResponse.newBuilder() to construct. + private SignalingGetConfigurationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingGetConfigurationResponse() { - iceServer_ = emptyProtobufList(); + iceServer_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingGetConfigurationResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } + private SignalingGetConfigurationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + iceServer_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + iceServer_.add( + input.readMessage(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.parser(), extensionRegistry)); + break; + } + case 24: { + + voiceCalling_ = input.readBool(); + break; + } + case 32: { + + videoCalling_ = input.readBool(); + break; + } + case 40: { + + screenSharing_ = input.readBool(); + break; + } + case 48: { + + secretChat_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + iceServer_ = java.util.Collections.unmodifiableList(iceServer_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.class, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.Builder.class); + } + public interface IceServerOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingGetConfigurationResponse.IceServer) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string url = 1; + * string url = 1; + * @return The url. */ java.lang.String getUrl(); /** - * optional string url = 1; + * string url = 1; + * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); /** - * optional string credential = 2; + * string credential = 2; + * @return The credential. */ java.lang.String getCredential(); /** - * optional string credential = 2; + * string credential = 2; + * @return The bytes for credential. */ com.google.protobuf.ByteString getCredentialBytes(); /** - * optional string username = 3; + * string username = 3; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 3; + * string username = 3; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -430,569 +869,870 @@ public interface IceServerOrBuilder extends /** * Protobuf type {@code proto.SignalingGetConfigurationResponse.IceServer} */ - public static final class IceServer extends - com.google.protobuf.GeneratedMessageLite< - IceServer, IceServer.Builder> implements + public static final class IceServer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingGetConfigurationResponse.IceServer) IceServerOrBuilder { + private static final long serialVersionUID = 0L; + // Use IceServer.newBuilder() to construct. + private IceServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private IceServer() { url_ = ""; credential_ = ""; username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IceServer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IceServer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + url_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + credential_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_IceServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_IceServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.class, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder.class); + } + public static final int URL_FIELD_NUMBER = 1; - private java.lang.String url_; + private volatile java.lang.Object url_; /** - * optional string url = 1; + * string url = 1; + * @return The url. */ + @java.lang.Override public java.lang.String getUrl() { - return url_; + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } } /** - * optional string url = 1; + * string url = 1; + * @return The bytes for url. */ + @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(url_); - } - /** - * optional string url = 1; - */ - private void setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - } - /** - * optional string url = 1; - */ - private void clearUrl() { - - url_ = getDefaultInstance().getUrl(); - } - /** - * optional string url = 1; - */ - private void setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value.toStringUtf8(); + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CREDENTIAL_FIELD_NUMBER = 2; - private java.lang.String credential_; + private volatile java.lang.Object credential_; /** - * optional string credential = 2; + * string credential = 2; + * @return The credential. */ + @java.lang.Override public java.lang.String getCredential() { - return credential_; + java.lang.Object ref = credential_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + credential_ = s; + return s; + } } /** - * optional string credential = 2; + * string credential = 2; + * @return The bytes for credential. */ + @java.lang.Override public com.google.protobuf.ByteString getCredentialBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(credential_); - } - /** - * optional string credential = 2; - */ - private void setCredential( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - credential_ = value; - } - /** - * optional string credential = 2; - */ - private void clearCredential() { - - credential_ = getDefaultInstance().getCredential(); - } - /** - * optional string credential = 2; - */ - private void setCredentialBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - credential_ = value.toStringUtf8(); + java.lang.Object ref = credential_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + credential_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int USERNAME_FIELD_NUMBER = 3; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 3; + * string username = 3; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 3; + * string username = 3; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 3; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 3; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 3; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!url_.isEmpty()) { - output.writeString(1, getUrl()); + if (!getUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } - if (!credential_.isEmpty()) { - output.writeString(2, getCredential()); + if (!getCredentialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, credential_); } - if (!username_.isEmpty()) { - output.writeString(3, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!url_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getUrl()); + if (!getUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } - if (!credential_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCredential()); + if (!getCredentialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, credential_); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer other = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer) obj; + + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getCredential() + .equals(other.getCredential())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getCredential().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingGetConfigurationResponse.IceServer} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingGetConfigurationResponse.IceServer) net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_IceServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_IceServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.class, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + url_ = ""; + + credential_ = ""; + username_ = ""; + + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_IceServer_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer build() { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer buildPartial() { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer result = new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer(this); + result.url_ = url_; + result.credential_ = credential_; + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer) { + return mergeFrom((net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer other) { + if (other == net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (!other.getCredential().isEmpty()) { + credential_ = other.credential_; + onChanged(); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object url_ = ""; /** - * optional string url = 1; + * string url = 1; + * @return The url. */ public java.lang.String getUrl() { - return instance.getUrl(); + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string url = 1; + * string url = 1; + * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { - return instance.getUrlBytes(); + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string url = 1; + * string url = 1; + * @param value The url to set. + * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { - copyOnWrite(); - instance.setUrl(value); + if (value == null) { + throw new NullPointerException(); + } + + url_ = value; + onChanged(); return this; } /** - * optional string url = 1; + * string url = 1; + * @return This builder for chaining. */ public Builder clearUrl() { - copyOnWrite(); - instance.clearUrl(); + + url_ = getDefaultInstance().getUrl(); + onChanged(); return this; } /** - * optional string url = 1; + * string url = 1; + * @param value The bytes for url to set. + * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUrlBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); return this; } + private java.lang.Object credential_ = ""; /** - * optional string credential = 2; + * string credential = 2; + * @return The credential. */ public java.lang.String getCredential() { - return instance.getCredential(); + java.lang.Object ref = credential_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + credential_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string credential = 2; + * string credential = 2; + * @return The bytes for credential. */ public com.google.protobuf.ByteString getCredentialBytes() { - return instance.getCredentialBytes(); + java.lang.Object ref = credential_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + credential_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string credential = 2; + * string credential = 2; + * @param value The credential to set. + * @return This builder for chaining. */ public Builder setCredential( java.lang.String value) { - copyOnWrite(); - instance.setCredential(value); + if (value == null) { + throw new NullPointerException(); + } + + credential_ = value; + onChanged(); return this; } /** - * optional string credential = 2; + * string credential = 2; + * @return This builder for chaining. */ public Builder clearCredential() { - copyOnWrite(); - instance.clearCredential(); + + credential_ = getDefaultInstance().getCredential(); + onChanged(); return this; } /** - * optional string credential = 2; + * string credential = 2; + * @param value The bytes for credential to set. + * @return This builder for chaining. */ public Builder setCredentialBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCredentialBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + credential_ = value; + onChanged(); return this; } + private java.lang.Object username_ = ""; /** - * optional string username = 3; + * string username = 3; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 3; + * string username = 3; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 3; + * string username = 3; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 3; + * string username = 3; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 3; + * string username = 3; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingGetConfigurationResponse.IceServer) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer other = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer) arg1; - url_ = visitor.visitString(!url_.isEmpty(), url_, - !other.url_.isEmpty(), other.url_); - credential_ = visitor.visitString(!credential_.isEmpty(), credential_, - !other.credential_.isEmpty(), other.credential_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - credential_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingGetConfigurationResponse.IceServer) + } + // @@protoc_insertion_point(class_scope:proto.SignalingGetConfigurationResponse.IceServer) private static final net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new IceServer(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer(); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IceServer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IceServer(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ICE_SERVER_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList iceServer_; + private java.util.List iceServer_; /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ + @java.lang.Override public java.util.List getIceServerList() { return iceServer_; } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ + @java.lang.Override public java.util.List getIceServerOrBuilderList() { return iceServer_; @@ -1000,200 +1740,82 @@ public java.util.Listrepeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ + @java.lang.Override public int getIceServerCount() { return iceServer_.size(); } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ + @java.lang.Override public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer getIceServer(int index) { return iceServer_.get(index); } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ + @java.lang.Override public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServerOrBuilder getIceServerOrBuilder( int index) { return iceServer_.get(index); } - private void ensureIceServerIsMutable() { - if (!iceServer_.isModifiable()) { - iceServer_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(iceServer_); - } - } - - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void setIceServer( - int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIceServerIsMutable(); - iceServer_.set(index, value); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void setIceServer( - int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder builderForValue) { - ensureIceServerIsMutable(); - iceServer_.set(index, builderForValue.build()); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void addIceServer(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIceServerIsMutable(); - iceServer_.add(value); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void addIceServer( - int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIceServerIsMutable(); - iceServer_.add(index, value); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void addIceServer( - net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder builderForValue) { - ensureIceServerIsMutable(); - iceServer_.add(builderForValue.build()); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void addIceServer( - int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder builderForValue) { - ensureIceServerIsMutable(); - iceServer_.add(index, builderForValue.build()); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void addAllIceServer( - java.lang.Iterable values) { - ensureIceServerIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, iceServer_); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void clearIceServer() { - iceServer_ = emptyProtobufList(); - } - /** - * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - */ - private void removeIceServer(int index) { - ensureIceServerIsMutable(); - iceServer_.remove(index); - } public static final int VOICE_CALLING_FIELD_NUMBER = 3; private boolean voiceCalling_; /** - * optional bool voice_calling = 3; + * bool voice_calling = 3; + * @return The voiceCalling. */ + @java.lang.Override public boolean getVoiceCalling() { return voiceCalling_; } - /** - * optional bool voice_calling = 3; - */ - private void setVoiceCalling(boolean value) { - - voiceCalling_ = value; - } - /** - * optional bool voice_calling = 3; - */ - private void clearVoiceCalling() { - - voiceCalling_ = false; - } public static final int VIDEO_CALLING_FIELD_NUMBER = 4; private boolean videoCalling_; /** - * optional bool video_calling = 4; + * bool video_calling = 4; + * @return The videoCalling. */ + @java.lang.Override public boolean getVideoCalling() { return videoCalling_; } - /** - * optional bool video_calling = 4; - */ - private void setVideoCalling(boolean value) { - - videoCalling_ = value; - } - /** - * optional bool video_calling = 4; - */ - private void clearVideoCalling() { - - videoCalling_ = false; - } public static final int SCREEN_SHARING_FIELD_NUMBER = 5; private boolean screenSharing_; /** - * optional bool screen_sharing = 5; + * bool screen_sharing = 5; + * @return The screenSharing. */ + @java.lang.Override public boolean getScreenSharing() { return screenSharing_; } - /** - * optional bool screen_sharing = 5; - */ - private void setScreenSharing(boolean value) { - - screenSharing_ = value; - } - /** - * optional bool screen_sharing = 5; - */ - private void clearScreenSharing() { - - screenSharing_ = false; - } public static final int SECRET_CHAT_FIELD_NUMBER = 6; private boolean secretChat_; /** - * optional bool secret_chat = 6; + * bool secret_chat = 6; + * @return The secretChat. */ + @java.lang.Override public boolean getSecretChat() { return secretChat_; } - /** - * optional bool secret_chat = 6; - */ - private void setSecretChat(boolean value) { - - secretChat_ = value; - } - /** - * optional bool secret_chat = 6; - */ - private void clearSecretChat() { - - secretChat_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1214,10 +1836,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (secretChat_ != false) { output.writeBool(6, secretChat_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1245,162 +1869,561 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, secretChat_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse other = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getIceServerList() + .equals(other.getIceServerList())) return false; + if (getVoiceCalling() + != other.getVoiceCalling()) return false; + if (getVideoCalling() + != other.getVideoCalling()) return false; + if (getScreenSharing() + != other.getScreenSharing()) return false; + if (getSecretChat() + != other.getSecretChat()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getIceServerCount() > 0) { + hash = (37 * hash) + ICE_SERVER_FIELD_NUMBER; + hash = (53 * hash) + getIceServerList().hashCode(); + } + hash = (37 * hash) + VOICE_CALLING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVoiceCalling()); + hash = (37 * hash) + VIDEO_CALLING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVideoCalling()); + hash = (37 * hash) + SCREEN_SHARING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getScreenSharing()); + hash = (37 * hash) + SECRET_CHAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSecretChat()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingGetConfigurationResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingGetConfigurationResponse) net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.class, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getIceServerFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (iceServerBuilder_ == null) { + iceServer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + iceServerBuilder_.clear(); + } + voiceCalling_ = false; + + videoCalling_ = false; + + screenSharing_ = false; + + secretChat_ = false; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingGetConfiguration.internal_static_proto_SignalingGetConfigurationResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse build() { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse buildPartial() { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse result = new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (iceServerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + iceServer_ = java.util.Collections.unmodifiableList(iceServer_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.iceServer_ = iceServer_; + } else { + result.iceServer_ = iceServerBuilder_.build(); + } + result.voiceCalling_ = voiceCalling_; + result.videoCalling_ = videoCalling_; + result.screenSharing_ = screenSharing_; + result.secretChat_ = secretChat_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse other) { + if (other == net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (iceServerBuilder_ == null) { + if (!other.iceServer_.isEmpty()) { + if (iceServer_.isEmpty()) { + iceServer_ = other.iceServer_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIceServerIsMutable(); + iceServer_.addAll(other.iceServer_); + } + onChanged(); + } + } else { + if (!other.iceServer_.isEmpty()) { + if (iceServerBuilder_.isEmpty()) { + iceServerBuilder_.dispose(); + iceServerBuilder_ = null; + iceServer_ = other.iceServer_; + bitField0_ = (bitField0_ & ~0x00000001); + iceServerBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIceServerFieldBuilder() : null; + } else { + iceServerBuilder_.addAllMessages(other.iceServer_); + } + } + } + if (other.getVoiceCalling() != false) { + setVoiceCalling(other.getVoiceCalling()); + } + if (other.getVideoCalling() != false) { + setVideoCalling(other.getVideoCalling()); + } + if (other.getScreenSharing() != false) { + setScreenSharing(other.getScreenSharing()); + } + if (other.getSecretChat() != false) { + setSecretChat(other.getSecretChat()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List iceServer_ = + java.util.Collections.emptyList(); + private void ensureIceServerIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + iceServer_ = new java.util.ArrayList(iceServer_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServerOrBuilder> iceServerBuilder_; /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ public java.util.List getIceServerList() { - return java.util.Collections.unmodifiableList( - instance.getIceServerList()); + if (iceServerBuilder_ == null) { + return java.util.Collections.unmodifiableList(iceServer_); + } else { + return iceServerBuilder_.getMessageList(); + } } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ public int getIceServerCount() { - return instance.getIceServerCount(); - }/** + if (iceServerBuilder_ == null) { + return iceServer_.size(); + } else { + return iceServerBuilder_.getCount(); + } + } + /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer getIceServer(int index) { - return instance.getIceServer(index); + if (iceServerBuilder_ == null) { + return iceServer_.get(index); + } else { + return iceServerBuilder_.getMessage(index); + } } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ public Builder setIceServer( int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer value) { - copyOnWrite(); - instance.setIceServer(index, value); + if (iceServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIceServerIsMutable(); + iceServer_.set(index, value); + onChanged(); + } else { + iceServerBuilder_.setMessage(index, value); + } return this; } /** @@ -1408,16 +2431,29 @@ public Builder setIceServer( */ public Builder setIceServer( int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder builderForValue) { - copyOnWrite(); - instance.setIceServer(index, builderForValue); + if (iceServerBuilder_ == null) { + ensureIceServerIsMutable(); + iceServer_.set(index, builderForValue.build()); + onChanged(); + } else { + iceServerBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ public Builder addIceServer(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer value) { - copyOnWrite(); - instance.addIceServer(value); + if (iceServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIceServerIsMutable(); + iceServer_.add(value); + onChanged(); + } else { + iceServerBuilder_.addMessage(value); + } return this; } /** @@ -1425,8 +2461,16 @@ public Builder addIceServer(net.iGap.proto.ProtoSignalingGetConfiguration.Signal */ public Builder addIceServer( int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer value) { - copyOnWrite(); - instance.addIceServer(index, value); + if (iceServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIceServerIsMutable(); + iceServer_.add(index, value); + onChanged(); + } else { + iceServerBuilder_.addMessage(index, value); + } return this; } /** @@ -1434,8 +2478,13 @@ public Builder addIceServer( */ public Builder addIceServer( net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder builderForValue) { - copyOnWrite(); - instance.addIceServer(builderForValue); + if (iceServerBuilder_ == null) { + ensureIceServerIsMutable(); + iceServer_.add(builderForValue.build()); + onChanged(); + } else { + iceServerBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1443,8 +2492,13 @@ public Builder addIceServer( */ public Builder addIceServer( int index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder builderForValue) { - copyOnWrite(); - instance.addIceServer(index, builderForValue); + if (iceServerBuilder_ == null) { + ensureIceServerIsMutable(); + iceServer_.add(index, builderForValue.build()); + onChanged(); + } else { + iceServerBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1452,266 +2506,347 @@ public Builder addIceServer( */ public Builder addAllIceServer( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllIceServer(values); + if (iceServerBuilder_ == null) { + ensureIceServerIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, iceServer_); + onChanged(); + } else { + iceServerBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ public Builder clearIceServer() { - copyOnWrite(); - instance.clearIceServer(); + if (iceServerBuilder_ == null) { + iceServer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + iceServerBuilder_.clear(); + } return this; } /** * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; */ public Builder removeIceServer(int index) { - copyOnWrite(); - instance.removeIceServer(index); + if (iceServerBuilder_ == null) { + ensureIceServerIsMutable(); + iceServer_.remove(index); + onChanged(); + } else { + iceServerBuilder_.remove(index); + } return this; } + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder getIceServerBuilder( + int index) { + return getIceServerFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServerOrBuilder getIceServerOrBuilder( + int index) { + if (iceServerBuilder_ == null) { + return iceServer_.get(index); } else { + return iceServerBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + public java.util.List + getIceServerOrBuilderList() { + if (iceServerBuilder_ != null) { + return iceServerBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(iceServer_); + } + } + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder addIceServerBuilder() { + return getIceServerFieldBuilder().addBuilder( + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.getDefaultInstance()); + } + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder addIceServerBuilder( + int index) { + return getIceServerFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.getDefaultInstance()); + } + /** + * repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; + */ + public java.util.List + getIceServerBuilderList() { + return getIceServerFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServerOrBuilder> + getIceServerFieldBuilder() { + if (iceServerBuilder_ == null) { + iceServerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.Builder, net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServerOrBuilder>( + iceServer_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + iceServer_ = null; + } + return iceServerBuilder_; + } + private boolean voiceCalling_ ; /** - * optional bool voice_calling = 3; + * bool voice_calling = 3; + * @return The voiceCalling. */ + @java.lang.Override public boolean getVoiceCalling() { - return instance.getVoiceCalling(); + return voiceCalling_; } /** - * optional bool voice_calling = 3; + * bool voice_calling = 3; + * @param value The voiceCalling to set. + * @return This builder for chaining. */ public Builder setVoiceCalling(boolean value) { - copyOnWrite(); - instance.setVoiceCalling(value); + + voiceCalling_ = value; + onChanged(); return this; } /** - * optional bool voice_calling = 3; + * bool voice_calling = 3; + * @return This builder for chaining. */ public Builder clearVoiceCalling() { - copyOnWrite(); - instance.clearVoiceCalling(); + + voiceCalling_ = false; + onChanged(); return this; } + private boolean videoCalling_ ; /** - * optional bool video_calling = 4; + * bool video_calling = 4; + * @return The videoCalling. */ + @java.lang.Override public boolean getVideoCalling() { - return instance.getVideoCalling(); + return videoCalling_; } /** - * optional bool video_calling = 4; + * bool video_calling = 4; + * @param value The videoCalling to set. + * @return This builder for chaining. */ public Builder setVideoCalling(boolean value) { - copyOnWrite(); - instance.setVideoCalling(value); + + videoCalling_ = value; + onChanged(); return this; } /** - * optional bool video_calling = 4; + * bool video_calling = 4; + * @return This builder for chaining. */ public Builder clearVideoCalling() { - copyOnWrite(); - instance.clearVideoCalling(); + + videoCalling_ = false; + onChanged(); return this; } + private boolean screenSharing_ ; /** - * optional bool screen_sharing = 5; + * bool screen_sharing = 5; + * @return The screenSharing. */ + @java.lang.Override public boolean getScreenSharing() { - return instance.getScreenSharing(); + return screenSharing_; } /** - * optional bool screen_sharing = 5; + * bool screen_sharing = 5; + * @param value The screenSharing to set. + * @return This builder for chaining. */ public Builder setScreenSharing(boolean value) { - copyOnWrite(); - instance.setScreenSharing(value); + + screenSharing_ = value; + onChanged(); return this; } /** - * optional bool screen_sharing = 5; + * bool screen_sharing = 5; + * @return This builder for chaining. */ public Builder clearScreenSharing() { - copyOnWrite(); - instance.clearScreenSharing(); + + screenSharing_ = false; + onChanged(); return this; } + private boolean secretChat_ ; /** - * optional bool secret_chat = 6; + * bool secret_chat = 6; + * @return The secretChat. */ + @java.lang.Override public boolean getSecretChat() { - return instance.getSecretChat(); + return secretChat_; } /** - * optional bool secret_chat = 6; + * bool secret_chat = 6; + * @param value The secretChat to set. + * @return This builder for chaining. */ public Builder setSecretChat(boolean value) { - copyOnWrite(); - instance.setSecretChat(value); + + secretChat_ = value; + onChanged(); return this; } /** - * optional bool secret_chat = 6; + * bool secret_chat = 6; + * @return This builder for chaining. */ public Builder clearSecretChat() { - copyOnWrite(); - instance.clearSecretChat(); + + secretChat_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingGetConfigurationResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - iceServer_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse other = (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - iceServer_= visitor.visitList(iceServer_, other.iceServer_); - voiceCalling_ = visitor.visitBoolean(voiceCalling_ != false, voiceCalling_, - other.voiceCalling_ != false, other.voiceCalling_); - videoCalling_ = visitor.visitBoolean(videoCalling_ != false, videoCalling_, - other.videoCalling_ != false, other.videoCalling_); - screenSharing_ = visitor.visitBoolean(screenSharing_ != false, screenSharing_, - other.screenSharing_ != false, other.screenSharing_); - secretChat_ = visitor.visitBoolean(secretChat_ != false, secretChat_, - other.secretChat_ != false, other.secretChat_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!iceServer_.isModifiable()) { - iceServer_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(iceServer_); - } - iceServer_.add( - input.readMessage(net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.IceServer.parser(), extensionRegistry)); - break; - } - case 24: { - - voiceCalling_ = input.readBool(); - break; - } - case 32: { - - videoCalling_ = input.readBool(); - break; - } - case 40: { + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - screenSharing_ = input.readBool(); - break; - } - case 48: { - secretChat_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); + // @@protoc_insertion_point(builder_scope:proto.SignalingGetConfigurationResponse) } - // @@protoc_insertion_point(class_scope:proto.SignalingGetConfigurationResponse) private static final net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingGetConfigurationResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse(); } public static net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingGetConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingGetConfigurationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetConfiguration.SignalingGetConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingGetConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingGetConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingGetConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingGetConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingGetConfigurationResponse_IceServer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingGetConfigurationResponse_IceServer_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\037SignalingGetConfiguration.proto\022\005proto" + + "\032\rRequest.proto\032\016Response.proto\"<\n\031Signa" + + "lingGetConfiguration\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\"\251\002\n!SignalingGetConfigurat" + + "ionResponse\022!\n\010response\030\001 \001(\0132\017.proto.Re" + + "sponse\022F\n\nice_server\030\002 \003(\01322.proto.Signa" + + "lingGetConfigurationResponse.IceServer\022\025" + + "\n\rvoice_calling\030\003 \001(\010\022\025\n\rvideo_calling\030\004" + + " \001(\010\022\026\n\016screen_sharing\030\005 \001(\010\022\023\n\013secret_c" + + "hat\030\006 \001(\010\032>\n\tIceServer\022\013\n\003url\030\001 \001(\t\022\022\n\nc" + + "redential\030\002 \001(\t\022\020\n\010username\030\003 \001(\tB0\n\016net" + + ".iGap.protoB\036ProtoSignalingGetConfigurat" + + "ionb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingGetConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingGetConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingGetConfiguration_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_SignalingGetConfigurationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingGetConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingGetConfigurationResponse_descriptor, + new java.lang.String[] { "Response", "IceServer", "VoiceCalling", "VideoCalling", "ScreenSharing", "SecretChat", }); + internal_static_proto_SignalingGetConfigurationResponse_IceServer_descriptor = + internal_static_proto_SignalingGetConfigurationResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_SignalingGetConfigurationResponse_IceServer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingGetConfigurationResponse_IceServer_descriptor, + new java.lang.String[] { "Url", "Credential", "Username", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingGetLog.java b/src/main/java/net/iGap/proto/ProtoSignalingGetLog.java index fc3f4d4..00bd608 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingGetLog.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingGetLog.java @@ -8,52 +8,172 @@ private ProtoSignalingGetLog() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingGetLogOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingGetLog) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 2; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @return The enum numeric value on the wire for filter. */ int getFilterValue(); /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @return The filter. */ net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter getFilter(); } /** * Protobuf type {@code proto.SignalingGetLog} */ - public static final class SignalingGetLog extends - com.google.protobuf.GeneratedMessageLite< - SignalingGetLog, SignalingGetLog.Builder> implements + public static final class SignalingGetLog extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingGetLog) SignalingGetLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingGetLog.newBuilder() to construct. + private SignalingGetLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingGetLog() { + filter_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingGetLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingGetLog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + filter_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.class, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Builder.class); + } + /** * Protobuf enum {@code proto.SignalingGetLog.Filter} */ public enum Filter - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * ALL = 0; */ @@ -100,10 +220,16 @@ public enum Filter public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -111,6 +237,10 @@ public static Filter valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Filter forNumber(int value) { switch (value) { case 0: return ALL; @@ -134,6 +264,37 @@ public Filter findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.getDescriptor().getEnumTypes().get(0); + } + + private static final Filter[] VALUES = values(); + + public static Filter valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Filter(int value) { @@ -146,146 +307,86 @@ private Filter(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PAGINATION_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 2; - */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - - } - /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - private void clearPagination() { pagination_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } public static final int FILTER_FIELD_NUMBER = 3; private int filter_; /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @return The enum numeric value on the wire for filter. */ - public int getFilterValue() { + @java.lang.Override public int getFilterValue() { return filter_; } /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @return The filter. */ - public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter getFilter() { - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.forNumber(filter_); + @java.lang.Override public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter getFilter() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.valueOf(filter_); return result == null ? net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.UNRECOGNIZED : result; } - /** - * optional .proto.SignalingGetLog.Filter filter = 3; - */ - private void setFilterValue(int value) { - filter_ = value; - } - /** - * optional .proto.SignalingGetLog.Filter filter = 3; - */ - private void setFilter(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value.getNumber(); - } - /** - * optional .proto.SignalingGetLog.Filter filter = 3; - */ - private void clearFilter() { - - filter_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -297,10 +398,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (filter_ != net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.ALL.getNumber()) { output.writeEnum(3, filter_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -316,357 +419,685 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, filter_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog other = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (filter_ != other.filter_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + filter_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingGetLog} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingGetLog) net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.class, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + filter_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLog_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog build() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog buildPartial() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog result = new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog) { + return mergeFrom((net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog other) { + if (other == net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (other.filter_ != 0) { + setFilterValue(other.getFilterValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } + } + /** + * .proto.Pagination pagination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + private int filter_ = 0; /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @return The enum numeric value on the wire for filter. */ - public int getFilterValue() { - return instance.getFilterValue(); + @java.lang.Override public int getFilterValue() { + return filter_; } /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @param value The enum numeric value on the wire for filter to set. + * @return This builder for chaining. */ public Builder setFilterValue(int value) { - copyOnWrite(); - instance.setFilterValue(value); + + filter_ = value; + onChanged(); return this; } /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @return The filter. */ + @java.lang.Override public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter getFilter() { - return instance.getFilter(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.valueOf(filter_); + return result == null ? net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.UNRECOGNIZED : result; } /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter value) { - copyOnWrite(); - instance.setFilter(value); + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.SignalingGetLog.Filter filter = 3; + * .proto.SignalingGetLog.Filter filter = 3; + * @return This builder for chaining. */ public Builder clearFilter() { - copyOnWrite(); - instance.clearFilter(); + + filter_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingGetLog) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog other = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - filter_ = visitor.visitInt(filter_ != 0, filter_, other.filter_ != 0, other.filter_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - filter_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingGetLog) + } + // @@protoc_insertion_point(class_scope:proto.SignalingGetLog) private static final net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingGetLog(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog(); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingGetLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingGetLog(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } - public interface SignalingGetLogResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.SignalingGetLogResponse) - com.google.protobuf.MessageLiteOrBuilder { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * optional .proto.Response response = 1; + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalingGetLogResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.SignalingGetLogResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; @@ -681,84 +1112,315 @@ public interface SignalingGetLogResponseOrBuilder extends * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ int getSignalingLogCount(); + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + java.util.List + getSignalingLogOrBuilderList(); + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLogOrBuilder getSignalingLogOrBuilder( + int index); } /** * Protobuf type {@code proto.SignalingGetLogResponse} */ - public static final class SignalingGetLogResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingGetLogResponse, SignalingGetLogResponse.Builder> implements + public static final class SignalingGetLogResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingGetLogResponse) SignalingGetLogResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingGetLogResponse.newBuilder() to construct. + private SignalingGetLogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingGetLogResponse() { - signalingLog_ = emptyProtobufList(); + signalingLog_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingGetLogResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingGetLogResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + signalingLog_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + signalingLog_.add( + input.readMessage(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + signalingLog_ = java.util.Collections.unmodifiableList(signalingLog_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.class, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.Builder.class); } + public interface SignalingLogOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingGetLogResponse.SignalingLog) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return The id. */ long getId(); /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @return The type. */ net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType(); /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return The status. */ net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status getStatus(); /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; + * @return Whether the peer field is set. */ boolean hasPeer(); /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; + * @return The peer. */ net.iGap.proto.ProtoGlobal.RegisteredUser getPeer(); + /** + * .proto.RegisteredUser peer = 4; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder(); /** - * optional uint32 offer_time = 5; + * uint32 offer_time = 5; + * @return The offerTime. */ int getOfferTime(); /** - * optional uint32 duration = 6; + * uint32 duration = 6; + * @return The duration. */ int getDuration(); /** - * optional uint64 log_id = 7; + * uint64 log_id = 7; + * @return The logId. */ long getLogId(); } /** * Protobuf type {@code proto.SignalingGetLogResponse.SignalingLog} */ - public static final class SignalingLog extends - com.google.protobuf.GeneratedMessageLite< - SignalingLog, SignalingLog.Builder> implements + public static final class SignalingLog extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingGetLogResponse.SignalingLog) SignalingLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingLog.newBuilder() to construct. + private SignalingLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingLog() { + type_ = 0; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingLog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (peer_ != null) { + subBuilder = peer_.toBuilder(); + } + peer_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(peer_); + peer_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + offerTime_ = input.readUInt32(); + break; + } + case 48: { + + duration_ = input.readUInt32(); + break; + } + case 56: { + + logId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_SignalingLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_SignalingLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.class, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder.class); + } + /** * Protobuf enum {@code proto.SignalingGetLogResponse.SignalingLog.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MISSED = 0; */ @@ -797,10 +1459,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -808,6 +1476,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return MISSED; @@ -830,6 +1502,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -842,225 +1545,123 @@ private Status(int value) { public static final int ID_FIELD_NUMBER = 1; private long id_; /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 1; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 1; - */ - private void clearId() { - - id_ = 0L; - } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @return The type. */ - public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { - net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.UNRECOGNIZED : result; } - /** - * optional .proto.SignalingOffer.Type type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.SignalingOffer.Type type = 2; - */ - private void setType(net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.SignalingOffer.Type type = 2; - */ - private void clearType() { - - type_ = 0; - } public static final int STATUS_FIELD_NUMBER = 3; private int status_; /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return The status. */ - public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status getStatus() { - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status.UNRECOGNIZED : result; } - /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; - */ - private void setStatus(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; - */ - private void clearStatus() { - - status_ = 0; - } public static final int PEER_FIELD_NUMBER = 4; private net.iGap.proto.ProtoGlobal.RegisteredUser peer_; /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; + * @return Whether the peer field is set. */ + @java.lang.Override public boolean hasPeer() { return peer_ != null; } /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; + * @return The peer. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getPeer() { return peer_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : peer_; } /** - * optional .proto.RegisteredUser peer = 4; - */ - private void setPeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - peer_ = value; - - } - /** - * optional .proto.RegisteredUser peer = 4; - */ - private void setPeer( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - peer_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; */ - private void mergePeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (peer_ != null && - peer_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - peer_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(peer_).mergeFrom(value).buildPartial(); - } else { - peer_ = value; - } - - } - /** - * optional .proto.RegisteredUser peer = 4; - */ - private void clearPeer() { peer_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder() { + return getPeer(); } public static final int OFFER_TIME_FIELD_NUMBER = 5; private int offerTime_; /** - * optional uint32 offer_time = 5; + * uint32 offer_time = 5; + * @return The offerTime. */ + @java.lang.Override public int getOfferTime() { return offerTime_; } - /** - * optional uint32 offer_time = 5; - */ - private void setOfferTime(int value) { - - offerTime_ = value; - } - /** - * optional uint32 offer_time = 5; - */ - private void clearOfferTime() { - - offerTime_ = 0; - } public static final int DURATION_FIELD_NUMBER = 6; private int duration_; /** - * optional uint32 duration = 6; + * uint32 duration = 6; + * @return The duration. */ + @java.lang.Override public int getDuration() { return duration_; } - /** - * optional uint32 duration = 6; - */ - private void setDuration(int value) { - - duration_ = value; - } - /** - * optional uint32 duration = 6; - */ - private void clearDuration() { - - duration_ = 0; - } public static final int LOG_ID_FIELD_NUMBER = 7; private long logId_; /** - * optional uint64 log_id = 7; + * uint64 log_id = 7; + * @return The logId. */ + @java.lang.Override public long getLogId() { return logId_; } - /** - * optional uint64 log_id = 7; - */ - private void setLogId(long value) { - - logId_ = value; - } - /** - * optional uint64 log_id = 7; - */ - private void clearLogId() { - - logId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { @@ -1084,10 +1685,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (logId_ != 0L) { output.writeUInt64(7, logId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1119,514 +1722,793 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, logId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog other = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog) obj; + + if (getId() + != other.getId()) return false; + if (type_ != other.type_) return false; + if (status_ != other.status_) return false; + if (hasPeer() != other.hasPeer()) return false; + if (hasPeer()) { + if (!getPeer() + .equals(other.getPeer())) return false; + } + if (getOfferTime() + != other.getOfferTime()) return false; + if (getDuration() + != other.getDuration()) return false; + if (getLogId() + != other.getLogId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasPeer()) { + hash = (37 * hash) + PEER_FIELD_NUMBER; + hash = (53 * hash) + getPeer().hashCode(); + } + hash = (37 * hash) + OFFER_TIME_FIELD_NUMBER; + hash = (53 * hash) + getOfferTime(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration(); + hash = (37 * hash) + LOG_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLogId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingGetLogResponse.SignalingLog} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingGetLogResponse.SignalingLog) net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_SignalingLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_SignalingLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.class, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + type_ = 0; + + status_ = 0; + + if (peerBuilder_ == null) { + peer_ = null; + } else { + peer_ = null; + peerBuilder_ = null; + } + offerTime_ = 0; + + duration_ = 0; + + logId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_SignalingLog_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog build() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog buildPartial() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog result = new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog(this); + result.id_ = id_; + result.type_ = type_; + result.status_ = status_; + if (peerBuilder_ == null) { + result.peer_ = peer_; + } else { + result.peer_ = peerBuilder_.build(); + } + result.offerTime_ = offerTime_; + result.duration_ = duration_; + result.logId_ = logId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog) { + return mergeFrom((net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog other) { + if (other == net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasPeer()) { + mergePeer(other.getPeer()); + } + if (other.getOfferTime() != 0) { + setOfferTime(other.getOfferTime()); + } + if (other.getDuration() != 0) { + setDuration(other.getDuration()); + } + if (other.getLogId() != 0L) { + setLogId(other.getLogId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private long id_ ; /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 1; + * uint64 id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 1; + * uint64 id = 1; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.UNRECOGNIZED : result; } /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.SignalingOffer.Type type = 2; + * .proto.SignalingOffer.Type type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private int status_ = 0; /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status.UNRECOGNIZED : result; } /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private net.iGap.proto.ProtoGlobal.RegisteredUser peer_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> peerBuilder_; /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; + * @return Whether the peer field is set. */ public boolean hasPeer() { - return instance.hasPeer(); + return peerBuilder_ != null || peer_ != null; } /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; + * @return The peer. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getPeer() { - return instance.getPeer(); + if (peerBuilder_ == null) { + return peer_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : peer_; + } else { + return peerBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; */ public Builder setPeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setPeer(value); - return this; + if (peerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + peer_ = value; + onChanged(); + } else { + peerBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; */ public Builder setPeer( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setPeer(builderForValue); + if (peerBuilder_ == null) { + peer_ = builderForValue.build(); + onChanged(); + } else { + peerBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; */ public Builder mergePeer(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergePeer(value); + if (peerBuilder_ == null) { + if (peer_ != null) { + peer_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(peer_).mergeFrom(value).buildPartial(); + } else { + peer_ = value; + } + onChanged(); + } else { + peerBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser peer = 4; + * .proto.RegisteredUser peer = 4; */ - public Builder clearPeer() { copyOnWrite(); - instance.clearPeer(); + public Builder clearPeer() { + if (peerBuilder_ == null) { + peer_ = null; + onChanged(); + } else { + peer_ = null; + peerBuilder_ = null; + } + return this; } - /** - * optional uint32 offer_time = 5; + * .proto.RegisteredUser peer = 4; */ - public int getOfferTime() { - return instance.getOfferTime(); + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getPeerBuilder() { + + onChanged(); + return getPeerFieldBuilder().getBuilder(); } /** - * optional uint32 offer_time = 5; + * .proto.RegisteredUser peer = 4; */ - public Builder setOfferTime(int value) { - copyOnWrite(); - instance.setOfferTime(value); - return this; + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder() { + if (peerBuilder_ != null) { + return peerBuilder_.getMessageOrBuilder(); + } else { + return peer_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : peer_; + } } /** - * optional uint32 offer_time = 5; + * .proto.RegisteredUser peer = 4; */ - public Builder clearOfferTime() { - copyOnWrite(); - instance.clearOfferTime(); + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getPeerFieldBuilder() { + if (peerBuilder_ == null) { + peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getPeer(), + getParentForChildren(), + isClean()); + peer_ = null; + } + return peerBuilder_; + } + + private int offerTime_ ; + /** + * uint32 offer_time = 5; + * @return The offerTime. + */ + @java.lang.Override + public int getOfferTime() { + return offerTime_; + } + /** + * uint32 offer_time = 5; + * @param value The offerTime to set. + * @return This builder for chaining. + */ + public Builder setOfferTime(int value) { + + offerTime_ = value; + onChanged(); + return this; + } + /** + * uint32 offer_time = 5; + * @return This builder for chaining. + */ + public Builder clearOfferTime() { + + offerTime_ = 0; + onChanged(); return this; } + private int duration_ ; /** - * optional uint32 duration = 6; + * uint32 duration = 6; + * @return The duration. */ + @java.lang.Override public int getDuration() { - return instance.getDuration(); + return duration_; } /** - * optional uint32 duration = 6; + * uint32 duration = 6; + * @param value The duration to set. + * @return This builder for chaining. */ public Builder setDuration(int value) { - copyOnWrite(); - instance.setDuration(value); + + duration_ = value; + onChanged(); return this; } /** - * optional uint32 duration = 6; + * uint32 duration = 6; + * @return This builder for chaining. */ public Builder clearDuration() { - copyOnWrite(); - instance.clearDuration(); + + duration_ = 0; + onChanged(); return this; } + private long logId_ ; /** - * optional uint64 log_id = 7; + * uint64 log_id = 7; + * @return The logId. */ + @java.lang.Override public long getLogId() { - return instance.getLogId(); + return logId_; } /** - * optional uint64 log_id = 7; + * uint64 log_id = 7; + * @param value The logId to set. + * @return This builder for chaining. */ public Builder setLogId(long value) { - copyOnWrite(); - instance.setLogId(value); + + logId_ = value; + onChanged(); return this; } /** - * optional uint64 log_id = 7; + * uint64 log_id = 7; + * @return This builder for chaining. */ public Builder clearLogId() { - copyOnWrite(); - instance.clearLogId(); + + logId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingGetLogResponse.SignalingLog) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog other = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog) arg1; - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - peer_ = visitor.visitMessage(peer_, other.peer_); - offerTime_ = visitor.visitInt(offerTime_ != 0, offerTime_, - other.offerTime_ != 0, other.offerTime_); - duration_ = visitor.visitInt(duration_ != 0, duration_, - other.duration_ != 0, other.duration_); - logId_ = visitor.visitLong(logId_ != 0L, logId_, - other.logId_ != 0L, other.logId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 34: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (peer_ != null) { - subBuilder = peer_.toBuilder(); - } - peer_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(peer_); - peer_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - offerTime_ = input.readUInt32(); - break; - } - case 48: { - - duration_ = input.readUInt32(); - break; - } - case 56: { - - logId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingGetLogResponse.SignalingLog) + } + // @@protoc_insertion_point(class_scope:proto.SignalingGetLogResponse.SignalingLog) private static final net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingLog(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog(); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingLog(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SIGNALING_LOG_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList signalingLog_; + private java.util.List signalingLog_; /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ + @java.lang.Override public java.util.List getSignalingLogList() { return signalingLog_; } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ + @java.lang.Override public java.util.List getSignalingLogOrBuilderList() { return signalingLog_; @@ -1634,108 +2516,38 @@ public java.util.Listrepeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ + @java.lang.Override public int getSignalingLogCount() { return signalingLog_.size(); } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ + @java.lang.Override public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog getSignalingLog(int index) { return signalingLog_.get(index); } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ + @java.lang.Override public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLogOrBuilder getSignalingLogOrBuilder( int index) { return signalingLog_.get(index); } - private void ensureSignalingLogIsMutable() { - if (!signalingLog_.isModifiable()) { - signalingLog_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(signalingLog_); - } - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void setSignalingLog( - int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignalingLogIsMutable(); - signalingLog_.set(index, value); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void setSignalingLog( - int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder builderForValue) { - ensureSignalingLogIsMutable(); - signalingLog_.set(index, builderForValue.build()); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void addSignalingLog(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignalingLogIsMutable(); - signalingLog_.add(value); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void addSignalingLog( - int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignalingLogIsMutable(); - signalingLog_.add(index, value); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void addSignalingLog( - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder builderForValue) { - ensureSignalingLogIsMutable(); - signalingLog_.add(builderForValue.build()); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void addSignalingLog( - int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder builderForValue) { - ensureSignalingLogIsMutable(); - signalingLog_.add(index, builderForValue.build()); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void addAllSignalingLog( - java.lang.Iterable values) { - ensureSignalingLogIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, signalingLog_); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void clearSignalingLog() { - signalingLog_ = emptyProtobufList(); - } - /** - * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - */ - private void removeSignalingLog(int index) { - ensureSignalingLogIsMutable(); - signalingLog_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1744,10 +2556,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < signalingLog_.size(); i++) { output.writeMessage(2, signalingLog_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1759,162 +2573,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, signalingLog_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse other = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getSignalingLogList() + .equals(other.getSignalingLogList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getSignalingLogCount() > 0) { + hash = (37 * hash) + SIGNALING_LOG_FIELD_NUMBER; + hash = (53 * hash) + getSignalingLogList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingGetLogResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingGetLogResponse) net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.class, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSignalingLogFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (signalingLogBuilder_ == null) { + signalingLog_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + signalingLogBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingGetLog.internal_static_proto_SignalingGetLogResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse build() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse buildPartial() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse result = new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (signalingLogBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + signalingLog_ = java.util.Collections.unmodifiableList(signalingLog_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.signalingLog_ = signalingLog_; + } else { + result.signalingLog_ = signalingLogBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse other) { + if (other == net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (signalingLogBuilder_ == null) { + if (!other.signalingLog_.isEmpty()) { + if (signalingLog_.isEmpty()) { + signalingLog_ = other.signalingLog_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSignalingLogIsMutable(); + signalingLog_.addAll(other.signalingLog_); + } + onChanged(); + } + } else { + if (!other.signalingLog_.isEmpty()) { + if (signalingLogBuilder_.isEmpty()) { + signalingLogBuilder_.dispose(); + signalingLogBuilder_ = null; + signalingLog_ = other.signalingLog_; + bitField0_ = (bitField0_ & ~0x00000001); + signalingLogBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSignalingLogFieldBuilder() : null; + } else { + signalingLogBuilder_.addAllMessages(other.signalingLog_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List signalingLog_ = + java.util.Collections.emptyList(); + private void ensureSignalingLogIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + signalingLog_ = new java.util.ArrayList(signalingLog_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLogOrBuilder> signalingLogBuilder_; /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ public java.util.List getSignalingLogList() { - return java.util.Collections.unmodifiableList( - instance.getSignalingLogList()); + if (signalingLogBuilder_ == null) { + return java.util.Collections.unmodifiableList(signalingLog_); + } else { + return signalingLogBuilder_.getMessageList(); + } } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ public int getSignalingLogCount() { - return instance.getSignalingLogCount(); - }/** + if (signalingLogBuilder_ == null) { + return signalingLog_.size(); + } else { + return signalingLogBuilder_.getCount(); + } + } + /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog getSignalingLog(int index) { - return instance.getSignalingLog(index); + if (signalingLogBuilder_ == null) { + return signalingLog_.get(index); + } else { + return signalingLogBuilder_.getMessage(index); + } } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ public Builder setSignalingLog( int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog value) { - copyOnWrite(); - instance.setSignalingLog(index, value); + if (signalingLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalingLogIsMutable(); + signalingLog_.set(index, value); + onChanged(); + } else { + signalingLogBuilder_.setMessage(index, value); + } return this; } /** @@ -1922,16 +3091,29 @@ public Builder setSignalingLog( */ public Builder setSignalingLog( int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder builderForValue) { - copyOnWrite(); - instance.setSignalingLog(index, builderForValue); + if (signalingLogBuilder_ == null) { + ensureSignalingLogIsMutable(); + signalingLog_.set(index, builderForValue.build()); + onChanged(); + } else { + signalingLogBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ public Builder addSignalingLog(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog value) { - copyOnWrite(); - instance.addSignalingLog(value); + if (signalingLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalingLogIsMutable(); + signalingLog_.add(value); + onChanged(); + } else { + signalingLogBuilder_.addMessage(value); + } return this; } /** @@ -1939,8 +3121,16 @@ public Builder addSignalingLog(net.iGap.proto.ProtoSignalingGetLog.SignalingGetL */ public Builder addSignalingLog( int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog value) { - copyOnWrite(); - instance.addSignalingLog(index, value); + if (signalingLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalingLogIsMutable(); + signalingLog_.add(index, value); + onChanged(); + } else { + signalingLogBuilder_.addMessage(index, value); + } return this; } /** @@ -1948,8 +3138,13 @@ public Builder addSignalingLog( */ public Builder addSignalingLog( net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder builderForValue) { - copyOnWrite(); - instance.addSignalingLog(builderForValue); + if (signalingLogBuilder_ == null) { + ensureSignalingLogIsMutable(); + signalingLog_.add(builderForValue.build()); + onChanged(); + } else { + signalingLogBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1957,8 +3152,13 @@ public Builder addSignalingLog( */ public Builder addSignalingLog( int index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder builderForValue) { - copyOnWrite(); - instance.addSignalingLog(index, builderForValue); + if (signalingLogBuilder_ == null) { + ensureSignalingLogIsMutable(); + signalingLog_.add(index, builderForValue.build()); + onChanged(); + } else { + signalingLogBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1966,146 +3166,234 @@ public Builder addSignalingLog( */ public Builder addAllSignalingLog( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSignalingLog(values); + if (signalingLogBuilder_ == null) { + ensureSignalingLogIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, signalingLog_); + onChanged(); + } else { + signalingLogBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ public Builder clearSignalingLog() { - copyOnWrite(); - instance.clearSignalingLog(); + if (signalingLogBuilder_ == null) { + signalingLog_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + signalingLogBuilder_.clear(); + } return this; } /** * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; */ public Builder removeSignalingLog(int index) { - copyOnWrite(); - instance.removeSignalingLog(index); + if (signalingLogBuilder_ == null) { + ensureSignalingLogIsMutable(); + signalingLog_.remove(index); + onChanged(); + } else { + signalingLogBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.SignalingGetLogResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - signalingLog_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse other = (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - signalingLog_= visitor.visitList(signalingLog_, other.signalingLog_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!signalingLog_.isModifiable()) { - signalingLog_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(signalingLog_); - } - signalingLog_.add( - input.readMessage(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder getSignalingLogBuilder( + int index) { + return getSignalingLogFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLogOrBuilder getSignalingLogOrBuilder( + int index) { + if (signalingLogBuilder_ == null) { + return signalingLog_.get(index); } else { + return signalingLogBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + public java.util.List + getSignalingLogOrBuilderList() { + if (signalingLogBuilder_ != null) { + return signalingLogBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(signalingLog_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder addSignalingLogBuilder() { + return getSignalingLogFieldBuilder().addBuilder( + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.getDefaultInstance()); + } + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder addSignalingLogBuilder( + int index) { + return getSignalingLogFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.getDefaultInstance()); + } + /** + * repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; + */ + public java.util.List + getSignalingLogBuilderList() { + return getSignalingLogFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLogOrBuilder> + getSignalingLogFieldBuilder() { + if (signalingLogBuilder_ == null) { + signalingLogBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLog.Builder, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse.SignalingLogOrBuilder>( + signalingLog_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + signalingLog_ = null; } + return signalingLogBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingGetLogResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingGetLogResponse) private static final net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingGetLogResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse(); } public static net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingGetLogResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingGetLogResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingGetLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingGetLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingGetLogResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingGetLogResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingGetLogResponse_SignalingLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingGetLogResponse_SignalingLog_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025SignalingGetLog.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\032\024Sig" + + "nalingOffer.proto\"\321\001\n\017SignalingGetLog\022\037\n" + + "\007request\030\001 \001(\0132\016.proto.Request\022%\n\npagina" + + "tion\030\002 \001(\0132\021.proto.Pagination\022-\n\006filter\030" + + "\003 \001(\0162\035.proto.SignalingGetLog.Filter\"G\n\006" + + "Filter\022\007\n\003ALL\020\000\022\n\n\006MISSED\020\001\022\014\n\010CANCELED\020" + + "\002\022\014\n\010INCOMING\020\003\022\014\n\010OUTGOING\020\004\"\246\003\n\027Signal" + + "ingGetLogResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022B\n\rsignaling_log\030\002 \003(\0132+.pr" + + "oto.SignalingGetLogResponse.SignalingLog" + + "\032\243\002\n\014SignalingLog\022\n\n\002id\030\001 \001(\004\022(\n\004type\030\002 " + + "\001(\0162\032.proto.SignalingOffer.Type\022B\n\006statu" + + "s\030\003 \001(\01622.proto.SignalingGetLogResponse." + + "SignalingLog.Status\022#\n\004peer\030\004 \001(\0132\025.prot" + + "o.RegisteredUser\022\022\n\noffer_time\030\005 \001(\r\022\020\n\010" + + "duration\030\006 \001(\r\022\016\n\006log_id\030\007 \001(\004\">\n\006Status" + + "\022\n\n\006MISSED\020\000\022\014\n\010CANCELED\020\001\022\014\n\010INCOMING\020\002" + + "\022\014\n\010OUTGOING\020\003B&\n\016net.iGap.protoB\024ProtoS" + + "ignalingGetLogb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + net.iGap.proto.ProtoSignalingOffer.getDescriptor(), + }); + internal_static_proto_SignalingGetLog_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingGetLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingGetLog_descriptor, + new java.lang.String[] { "Request", "Pagination", "Filter", }); + internal_static_proto_SignalingGetLogResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingGetLogResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingGetLogResponse_descriptor, + new java.lang.String[] { "Response", "SignalingLog", }); + internal_static_proto_SignalingGetLogResponse_SignalingLog_descriptor = + internal_static_proto_SignalingGetLogResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_SignalingGetLogResponse_SignalingLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingGetLogResponse_SignalingLog_descriptor, + new java.lang.String[] { "Id", "Type", "Status", "Peer", "OfferTime", "Duration", "LogId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); + net.iGap.proto.ProtoSignalingOffer.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingLeave.java b/src/main/java/net/iGap/proto/ProtoSignalingLeave.java index 29d1d87..ce48cac 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingLeave.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingLeave.java @@ -8,90 +8,170 @@ private ProtoSignalingLeave() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingLeaveOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingLeave) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.SignalingLeave} */ - public static final class SignalingLeave extends - com.google.protobuf.GeneratedMessageLite< - SignalingLeave, SignalingLeave.Builder> implements + public static final class SignalingLeave extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingLeave) SignalingLeaveOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingLeave.newBuilder() to construct. + private SignalingLeave(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingLeave() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingLeave(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingLeave( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeave_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeave_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingLeave.SignalingLeave.class, net.iGap.proto.ProtoSignalingLeave.SignalingLeave.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,279 +179,594 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingLeave.SignalingLeave)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingLeave.SignalingLeave other = (net.iGap.proto.ProtoSignalingLeave.SignalingLeave) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingLeave.SignalingLeave prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingLeave} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingLeave.SignalingLeave, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingLeave) net.iGap.proto.ProtoSignalingLeave.SignalingLeaveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeave_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeave_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingLeave.SignalingLeave.class, net.iGap.proto.ProtoSignalingLeave.SignalingLeave.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingLeave.SignalingLeave.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeave_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeave getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingLeave.SignalingLeave.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeave build() { + net.iGap.proto.ProtoSignalingLeave.SignalingLeave result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeave buildPartial() { + net.iGap.proto.ProtoSignalingLeave.SignalingLeave result = new net.iGap.proto.ProtoSignalingLeave.SignalingLeave(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingLeave.SignalingLeave) { + return mergeFrom((net.iGap.proto.ProtoSignalingLeave.SignalingLeave)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoSignalingLeave.SignalingLeave other) { + if (other == net.iGap.proto.ProtoSignalingLeave.SignalingLeave.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingLeave.SignalingLeave parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingLeave.SignalingLeave) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.SignalingLeave) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingLeave.SignalingLeave(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingLeave.SignalingLeave other = (net.iGap.proto.ProtoSignalingLeave.SignalingLeave) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingLeave.SignalingLeave.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingLeave) + } + // @@protoc_insertion_point(class_scope:proto.SignalingLeave) private static final net.iGap.proto.ProtoSignalingLeave.SignalingLeave DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingLeave(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingLeave.SignalingLeave(); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeave getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingLeave parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingLeave(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeave getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface SignalingLeaveResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingLeaveResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @return The type. */ net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type getType(); } /** * Protobuf type {@code proto.SignalingLeaveResponse} */ - public static final class SignalingLeaveResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingLeaveResponse, SignalingLeaveResponse.Builder> implements + public static final class SignalingLeaveResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingLeaveResponse) SignalingLeaveResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingLeaveResponse.newBuilder() to construct. + private SignalingLeaveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingLeaveResponse() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingLeaveResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingLeaveResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeaveResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeaveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.class, net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Builder.class); + } + /** * Protobuf enum {@code proto.SignalingLeaveResponse.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * MISSED = 0; */ @@ -442,10 +837,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -453,6 +854,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return MISSED; @@ -479,6 +884,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -491,94 +927,60 @@ private Type(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @return The type. */ - public net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type getType() { - net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type result = net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type result = net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type.UNRECOGNIZED : result; } - /** - * optional .proto.SignalingLeaveResponse.Type type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.SignalingLeaveResponse.Type type = 2; - */ - private void setType(net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.SignalingLeaveResponse.Type type = 2; - */ - private void clearType() { - - type_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -587,10 +989,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type.MISSED.getNumber()) { output.writeEnum(2, type_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -602,288 +1006,575 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse other = (net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingLeaveResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingLeaveResponse) net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeaveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeaveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.class, net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingLeave.internal_static_proto_SignalingLeaveResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse build() { + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse buildPartial() { + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse result = new net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse other) { + if (other == net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int type_ = 0; /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type result = net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type.UNRECOGNIZED : result; } /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.SignalingLeaveResponse.Type type = 2; + * .proto.SignalingLeaveResponse.Type type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingLeaveResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse other = (net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingLeaveResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingLeaveResponse) private static final net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingLeaveResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse(); } public static net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingLeaveResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingLeaveResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingLeave.SignalingLeaveResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingLeave_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingLeave_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingLeaveResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingLeaveResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024SignalingLeave.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\"1\n\016SignalingLeave\022\037" + + "\n\007request\030\001 \001(\0132\016.proto.Request\"\356\001\n\026Sign" + + "alingLeaveResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.Response\0220\n\004type\030\002 \001(\0162\".proto.Sign" + + "alingLeaveResponse.Type\"\177\n\004Type\022\n\n\006MISSE" + + "D\020\000\022\014\n\010REJECTED\020\001\022\014\n\010ACCEPTED\020\002\022\020\n\014NOT_A" + + "NSWERED\020\003\022\017\n\013UNAVAILABLE\020\004\022\020\n\014DISCONNECT" + + "ED\020\005\022\014\n\010FINISHED\020\006\022\014\n\010TOO_LONG\020\007B%\n\016net." + + "iGap.protoB\023ProtoSignalingLeaveb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingLeave_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingLeave_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingLeave_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_SignalingLeaveResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingLeaveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingLeaveResponse_descriptor, + new java.lang.String[] { "Response", "Type", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingOffer.java b/src/main/java/net/iGap/proto/ProtoSignalingOffer.java index 611ffab..a5ca6ac 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingOffer.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingOffer.java @@ -8,39 +8,56 @@ private ProtoSignalingOffer() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingOfferOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingOffer) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 called_user_id = 2; + * uint64 called_user_id = 2; + * @return The calledUserId. */ long getCalledUserId(); /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The type. */ net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType(); /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The callerSdp. */ java.lang.String getCallerSdp(); /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The bytes for callerSdp. */ com.google.protobuf.ByteString getCallerSdpBytes(); @@ -48,19 +65,117 @@ public interface SignalingOfferOrBuilder extends /** * Protobuf type {@code proto.SignalingOffer} */ - public static final class SignalingOffer extends - com.google.protobuf.GeneratedMessageLite< - SignalingOffer, SignalingOffer.Builder> implements + public static final class SignalingOffer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingOffer) SignalingOfferOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingOffer.newBuilder() to construct. + private SignalingOffer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingOffer() { + type_ = 0; callerSdp_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingOffer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingOffer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + calledUserId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + callerSdp_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOffer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOffer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.class, net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Builder.class); + } + /** * Protobuf enum {@code proto.SignalingOffer.Type} */ public enum Type - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * VOICE_CALLING = 0; */ @@ -99,10 +214,16 @@ public enum Type public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -110,6 +231,10 @@ public static Type valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Type forNumber(int value) { switch (value) { case 0: return VOICE_CALLING; @@ -132,6 +257,37 @@ public Type findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingOffer.SignalingOffer.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Type(int value) { @@ -144,163 +300,109 @@ private Type(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CALLED_USER_ID_FIELD_NUMBER = 2; private long calledUserId_; /** - * optional uint64 called_user_id = 2; + * uint64 called_user_id = 2; + * @return The calledUserId. */ + @java.lang.Override public long getCalledUserId() { return calledUserId_; } - /** - * optional uint64 called_user_id = 2; - */ - private void setCalledUserId(long value) { - - calledUserId_ = value; - } - /** - * optional uint64 called_user_id = 2; - */ - private void clearCalledUserId() { - - calledUserId_ = 0L; - } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The type. */ - public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { - net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.UNRECOGNIZED : result; } - /** - * optional .proto.SignalingOffer.Type type = 3; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.SignalingOffer.Type type = 3; - */ - private void setType(net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.SignalingOffer.Type type = 3; - */ - private void clearType() { - - type_ = 0; - } public static final int CALLER_SDP_FIELD_NUMBER = 4; - private java.lang.String callerSdp_; + private volatile java.lang.Object callerSdp_; /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The callerSdp. */ + @java.lang.Override public java.lang.String getCallerSdp() { - return callerSdp_; + java.lang.Object ref = callerSdp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + callerSdp_ = s; + return s; + } } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The bytes for callerSdp. */ + @java.lang.Override public com.google.protobuf.ByteString getCallerSdpBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(callerSdp_); - } - /** - * optional string caller_sdp = 4; - */ - private void setCallerSdp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - callerSdp_ = value; - } - /** - * optional string caller_sdp = 4; - */ - private void clearCallerSdp() { - - callerSdp_ = getDefaultInstance().getCallerSdp(); + java.lang.Object ref = callerSdp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + callerSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string caller_sdp = 4; - */ - private void setCallerSdpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - callerSdp_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -312,13 +414,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.VOICE_CALLING.getNumber()) { output.writeEnum(3, type_); } - if (!callerSdp_.isEmpty()) { - output.writeString(4, getCallerSdp()); + if (!getCallerSdpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, callerSdp_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -334,401 +438,701 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } - if (!callerSdp_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getCallerSdp()); + if (!getCallerSdpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, callerSdp_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingOffer.SignalingOffer)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingOffer.SignalingOffer other = (net.iGap.proto.ProtoSignalingOffer.SignalingOffer) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getCalledUserId() + != other.getCalledUserId()) return false; + if (type_ != other.type_) return false; + if (!getCallerSdp() + .equals(other.getCallerSdp())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CALLED_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCalledUserId()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + CALLER_SDP_FIELD_NUMBER; + hash = (53 * hash) + getCallerSdp().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingOffer.SignalingOffer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingOffer} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingOffer.SignalingOffer, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingOffer) net.iGap.proto.ProtoSignalingOffer.SignalingOfferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOffer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOffer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.class, net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingOffer.SignalingOffer.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + calledUserId_ = 0L; + + type_ = 0; + callerSdp_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOffer_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOffer getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingOffer.SignalingOffer.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOffer build() { + net.iGap.proto.ProtoSignalingOffer.SignalingOffer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOffer buildPartial() { + net.iGap.proto.ProtoSignalingOffer.SignalingOffer result = new net.iGap.proto.ProtoSignalingOffer.SignalingOffer(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.calledUserId_ = calledUserId_; + result.type_ = type_; + result.callerSdp_ = callerSdp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingOffer.SignalingOffer) { + return mergeFrom((net.iGap.proto.ProtoSignalingOffer.SignalingOffer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingOffer.SignalingOffer other) { + if (other == net.iGap.proto.ProtoSignalingOffer.SignalingOffer.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getCalledUserId() != 0L) { + setCalledUserId(other.getCalledUserId()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getCallerSdp().isEmpty()) { + callerSdp_ = other.callerSdp_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingOffer.SignalingOffer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingOffer.SignalingOffer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long calledUserId_ ; /** - * optional uint64 called_user_id = 2; + * uint64 called_user_id = 2; + * @return The calledUserId. */ + @java.lang.Override public long getCalledUserId() { - return instance.getCalledUserId(); + return calledUserId_; } /** - * optional uint64 called_user_id = 2; + * uint64 called_user_id = 2; + * @param value The calledUserId to set. + * @return This builder for chaining. */ public Builder setCalledUserId(long value) { - copyOnWrite(); - instance.setCalledUserId(value); + + calledUserId_ = value; + onChanged(); return this; } /** - * optional uint64 called_user_id = 2; + * uint64 called_user_id = 2; + * @return This builder for chaining. */ public Builder clearCalledUserId() { - copyOnWrite(); - instance.clearCalledUserId(); + + calledUserId_ = 0L; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.UNRECOGNIZED : result; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private java.lang.Object callerSdp_ = ""; /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The callerSdp. */ public java.lang.String getCallerSdp() { - return instance.getCallerSdp(); + java.lang.Object ref = callerSdp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + callerSdp_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The bytes for callerSdp. */ public com.google.protobuf.ByteString getCallerSdpBytes() { - return instance.getCallerSdpBytes(); + java.lang.Object ref = callerSdp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + callerSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @param value The callerSdp to set. + * @return This builder for chaining. */ public Builder setCallerSdp( java.lang.String value) { - copyOnWrite(); - instance.setCallerSdp(value); + if (value == null) { + throw new NullPointerException(); + } + + callerSdp_ = value; + onChanged(); return this; } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return This builder for chaining. */ public Builder clearCallerSdp() { - copyOnWrite(); - instance.clearCallerSdp(); + + callerSdp_ = getDefaultInstance().getCallerSdp(); + onChanged(); return this; } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @param value The bytes for callerSdp to set. + * @return This builder for chaining. */ public Builder setCallerSdpBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCallerSdpBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + callerSdp_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingOffer) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingOffer.SignalingOffer(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingOffer.SignalingOffer other = (net.iGap.proto.ProtoSignalingOffer.SignalingOffer) arg1; - request_ = visitor.visitMessage(request_, other.request_); - calledUserId_ = visitor.visitLong(calledUserId_ != 0L, calledUserId_, - other.calledUserId_ != 0L, other.calledUserId_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - callerSdp_ = visitor.visitString(!callerSdp_.isEmpty(), callerSdp_, - !other.callerSdp_.isEmpty(), other.callerSdp_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - calledUserId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - callerSdp_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingOffer.SignalingOffer.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingOffer) + } + // @@protoc_insertion_point(class_scope:proto.SignalingOffer) private static final net.iGap.proto.ProtoSignalingOffer.SignalingOffer DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingOffer(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingOffer.SignalingOffer(); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOffer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingOffer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingOffer(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOffer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface SignalingOfferResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingOfferResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 caller_user_id = 2; + * uint64 caller_user_id = 2; + * @return The callerUserId. */ long getCallerUserId(); /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The type. */ net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType(); /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The callerSdp. */ java.lang.String getCallerSdp(); /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The bytes for callerSdp. */ com.google.protobuf.ByteString getCallerSdpBytes(); @@ -736,174 +1140,218 @@ public interface SignalingOfferResponseOrBuilder extends /** * Protobuf type {@code proto.SignalingOfferResponse} */ - public static final class SignalingOfferResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingOfferResponse, SignalingOfferResponse.Builder> implements + public static final class SignalingOfferResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingOfferResponse) SignalingOfferResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingOfferResponse.newBuilder() to construct. + private SignalingOfferResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingOfferResponse() { + type_ = 0; callerSdp_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingOfferResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingOfferResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + callerUserId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + callerSdp_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOfferResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOfferResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.class, net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int CALLER_USER_ID_FIELD_NUMBER = 2; private long callerUserId_; /** - * optional uint64 caller_user_id = 2; + * uint64 caller_user_id = 2; + * @return The callerUserId. */ + @java.lang.Override public long getCallerUserId() { return callerUserId_; } - /** - * optional uint64 caller_user_id = 2; - */ - private void setCallerUserId(long value) { - - callerUserId_ = value; - } - /** - * optional uint64 caller_user_id = 2; - */ - private void clearCallerUserId() { - - callerUserId_ = 0L; - } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The type. */ - public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { - net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.valueOf(type_); return result == null ? net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.UNRECOGNIZED : result; } - /** - * optional .proto.SignalingOffer.Type type = 3; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.SignalingOffer.Type type = 3; - */ - private void setType(net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.SignalingOffer.Type type = 3; - */ - private void clearType() { - - type_ = 0; - } public static final int CALLER_SDP_FIELD_NUMBER = 4; - private java.lang.String callerSdp_; + private volatile java.lang.Object callerSdp_; /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The callerSdp. */ + @java.lang.Override public java.lang.String getCallerSdp() { - return callerSdp_; + java.lang.Object ref = callerSdp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + callerSdp_ = s; + return s; + } } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The bytes for callerSdp. */ + @java.lang.Override public com.google.protobuf.ByteString getCallerSdpBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(callerSdp_); - } - /** - * optional string caller_sdp = 4; - */ - private void setCallerSdp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - callerSdp_ = value; - } - /** - * optional string caller_sdp = 4; - */ - private void clearCallerSdp() { - - callerSdp_ = getDefaultInstance().getCallerSdp(); + java.lang.Object ref = callerSdp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + callerSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string caller_sdp = 4; - */ - private void setCallerSdpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - callerSdp_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -915,13 +1363,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.VOICE_CALLING.getNumber()) { output.writeEnum(3, type_); } - if (!callerSdp_.isEmpty()) { - output.writeString(4, getCallerSdp()); + if (!getCallerSdpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, callerSdp_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -937,370 +1387,709 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } - if (!callerSdp_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getCallerSdp()); + if (!getCallerSdpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, callerSdp_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse other = (net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getCallerUserId() + != other.getCallerUserId()) return false; + if (type_ != other.type_) return false; + if (!getCallerSdp() + .equals(other.getCallerSdp())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CALLER_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCallerUserId()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + CALLER_SDP_FIELD_NUMBER; + hash = (53 * hash) + getCallerSdp().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingOfferResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingOfferResponse) net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOfferResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOfferResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.class, net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + callerUserId_ = 0L; + type_ = 0; + + callerSdp_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingOffer.internal_static_proto_SignalingOfferResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse build() { + net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse buildPartial() { + net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse result = new net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.callerUserId_ = callerUserId_; + result.type_ = type_; + result.callerSdp_ = callerSdp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse other) { + if (other == net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getCallerUserId() != 0L) { + setCallerUserId(other.getCallerUserId()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getCallerSdp().isEmpty()) { + callerSdp_ = other.callerSdp_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long callerUserId_ ; /** - * optional uint64 caller_user_id = 2; + * uint64 caller_user_id = 2; + * @return The callerUserId. */ + @java.lang.Override public long getCallerUserId() { - return instance.getCallerUserId(); + return callerUserId_; } /** - * optional uint64 caller_user_id = 2; + * uint64 caller_user_id = 2; + * @param value The callerUserId to set. + * @return This builder for chaining. */ public Builder setCallerUserId(long value) { - copyOnWrite(); - instance.setCallerUserId(value); + + callerUserId_ = value; + onChanged(); return this; } /** - * optional uint64 caller_user_id = 2; + * uint64 caller_user_id = 2; + * @return This builder for chaining. */ public Builder clearCallerUserId() { - copyOnWrite(); - instance.clearCallerUserId(); + + callerUserId_ = 0L; + onChanged(); return this; } + private int type_ = 0; /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type result = net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type.UNRECOGNIZED : result; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoSignalingOffer.SignalingOffer.Type value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.SignalingOffer.Type type = 3; + * .proto.SignalingOffer.Type type = 3; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private java.lang.Object callerSdp_ = ""; /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The callerSdp. */ public java.lang.String getCallerSdp() { - return instance.getCallerSdp(); + java.lang.Object ref = callerSdp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + callerSdp_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return The bytes for callerSdp. */ public com.google.protobuf.ByteString getCallerSdpBytes() { - return instance.getCallerSdpBytes(); + java.lang.Object ref = callerSdp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + callerSdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @param value The callerSdp to set. + * @return This builder for chaining. */ public Builder setCallerSdp( java.lang.String value) { - copyOnWrite(); - instance.setCallerSdp(value); + if (value == null) { + throw new NullPointerException(); + } + + callerSdp_ = value; + onChanged(); return this; } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @return This builder for chaining. */ public Builder clearCallerSdp() { - copyOnWrite(); - instance.clearCallerSdp(); + + callerSdp_ = getDefaultInstance().getCallerSdp(); + onChanged(); return this; } /** - * optional string caller_sdp = 4; + * string caller_sdp = 4; + * @param value The bytes for callerSdp to set. + * @return This builder for chaining. */ public Builder setCallerSdpBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCallerSdpBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + callerSdp_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingOfferResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse other = (net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - callerUserId_ = visitor.visitLong(callerUserId_ != 0L, callerUserId_, - other.callerUserId_ != 0L, other.callerUserId_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - callerSdp_ = visitor.visitString(!callerSdp_.isEmpty(), callerSdp_, - !other.callerSdp_.isEmpty(), other.callerSdp_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - callerUserId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - callerSdp_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingOfferResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingOfferResponse) private static final net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingOfferResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse(); } public static net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingOfferResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingOfferResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingOffer.SignalingOfferResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingOffer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingOffer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingOfferResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingOfferResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024SignalingOffer.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\"\332\001\n\016SignalingOffer\022" + + "\037\n\007request\030\001 \001(\0132\016.proto.Request\022\026\n\016call" + + "ed_user_id\030\002 \001(\004\022(\n\004type\030\003 \001(\0162\032.proto.S" + + "ignalingOffer.Type\022\022\n\ncaller_sdp\030\004 \001(\t\"Q" + + "\n\004Type\022\021\n\rVOICE_CALLING\020\000\022\021\n\rVIDEO_CALLI" + + "NG\020\001\022\022\n\016SCREEN_SHARING\020\002\022\017\n\013SECRET_CHAT\020" + + "\003\"\221\001\n\026SignalingOfferResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\026\n\016caller_user_i" + + "d\030\002 \001(\004\022(\n\004type\030\003 \001(\0162\032.proto.SignalingO" + + "ffer.Type\022\022\n\ncaller_sdp\030\004 \001(\tB%\n\016net.iGa" + + "p.protoB\023ProtoSignalingOfferb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingOffer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingOffer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingOffer_descriptor, + new java.lang.String[] { "Request", "CalledUserId", "Type", "CallerSdp", }); + internal_static_proto_SignalingOfferResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingOfferResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingOfferResponse_descriptor, + new java.lang.String[] { "Response", "CallerUserId", "Type", "CallerSdp", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingRate.java b/src/main/java/net/iGap/proto/ProtoSignalingRate.java index 8594176..d736206 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingRate.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingRate.java @@ -8,35 +8,51 @@ private ProtoSignalingRate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingRateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingRate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); /** - * optional uint32 rate = 3; + * uint32 rate = 3; + * @return The rate. */ int getRate(); /** - * optional string reason = 4; + * string reason = 4; + * @return The reason. */ java.lang.String getReason(); /** - * optional string reason = 4; + * string reason = 4; + * @return The bytes for reason. */ com.google.protobuf.ByteString getReasonBytes(); @@ -44,158 +60,208 @@ public interface SignalingRateOrBuilder extends /** * Protobuf type {@code proto.SignalingRate} */ - public static final class SignalingRate extends - com.google.protobuf.GeneratedMessageLite< - SignalingRate, SignalingRate.Builder> implements + public static final class SignalingRate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingRate) SignalingRateOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingRate.newBuilder() to construct. + private SignalingRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingRate() { reason_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingRate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingRate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + case 24: { + + rate_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + reason_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRate.SignalingRate.class, net.iGap.proto.ProtoSignalingRate.SignalingRate.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; - } public static final int RATE_FIELD_NUMBER = 3; private int rate_; /** - * optional uint32 rate = 3; + * uint32 rate = 3; + * @return The rate. */ + @java.lang.Override public int getRate() { return rate_; } - /** - * optional uint32 rate = 3; - */ - private void setRate(int value) { - - rate_ = value; - } - /** - * optional uint32 rate = 3; - */ - private void clearRate() { - - rate_ = 0; - } public static final int REASON_FIELD_NUMBER = 4; - private java.lang.String reason_; + private volatile java.lang.Object reason_; /** - * optional string reason = 4; + * string reason = 4; + * @return The reason. */ + @java.lang.Override public java.lang.String getReason() { - return reason_; + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } } /** - * optional string reason = 4; + * string reason = 4; + * @return The bytes for reason. */ + @java.lang.Override public com.google.protobuf.ByteString getReasonBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(reason_); - } - /** - * optional string reason = 4; - */ - private void setReason( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value; - } - /** - * optional string reason = 4; - */ - private void clearReason() { - - reason_ = getDefaultInstance().getReason(); + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string reason = 4; - */ - private void setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reason_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -207,13 +273,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (rate_ != 0) { output.writeUInt32(3, rate_); } - if (!reason_.isEmpty()) { - output.writeString(4, getReason()); + if (!getReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -229,438 +297,793 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, rate_); } - if (!reason_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getReason()); + if (!getReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingRate.SignalingRate)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingRate.SignalingRate other = (net.iGap.proto.ProtoSignalingRate.SignalingRate) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getId() + != other.getId()) return false; + if (getRate() + != other.getRate()) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + RATE_FIELD_NUMBER; + hash = (53 * hash) + getRate(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingRate.SignalingRate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingRate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingRate.SignalingRate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingRate) net.iGap.proto.ProtoSignalingRate.SignalingRateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRate.SignalingRate.class, net.iGap.proto.ProtoSignalingRate.SignalingRate.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingRate.SignalingRate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + id_ = 0L; + + rate_ = 0; + + reason_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRate getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingRate.SignalingRate.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRate build() { + net.iGap.proto.ProtoSignalingRate.SignalingRate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRate buildPartial() { + net.iGap.proto.ProtoSignalingRate.SignalingRate result = new net.iGap.proto.ProtoSignalingRate.SignalingRate(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.id_ = id_; + result.rate_ = rate_; + result.reason_ = reason_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingRate.SignalingRate) { + return mergeFrom((net.iGap.proto.ProtoSignalingRate.SignalingRate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingRate.SignalingRate other) { + if (other == net.iGap.proto.ProtoSignalingRate.SignalingRate.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.getRate() != 0) { + setRate(other.getRate()); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingRate.SignalingRate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingRate.SignalingRate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + private int rate_ ; /** - * optional uint32 rate = 3; + * uint32 rate = 3; + * @return The rate. */ + @java.lang.Override public int getRate() { - return instance.getRate(); + return rate_; } /** - * optional uint32 rate = 3; + * uint32 rate = 3; + * @param value The rate to set. + * @return This builder for chaining. */ public Builder setRate(int value) { - copyOnWrite(); - instance.setRate(value); + + rate_ = value; + onChanged(); return this; } /** - * optional uint32 rate = 3; + * uint32 rate = 3; + * @return This builder for chaining. */ public Builder clearRate() { - copyOnWrite(); - instance.clearRate(); + + rate_ = 0; + onChanged(); return this; } + private java.lang.Object reason_ = ""; /** - * optional string reason = 4; + * string reason = 4; + * @return The reason. */ public java.lang.String getReason() { - return instance.getReason(); + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string reason = 4; + * string reason = 4; + * @return The bytes for reason. */ public com.google.protobuf.ByteString getReasonBytes() { - return instance.getReasonBytes(); + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string reason = 4; + * string reason = 4; + * @param value The reason to set. + * @return This builder for chaining. */ public Builder setReason( java.lang.String value) { - copyOnWrite(); - instance.setReason(value); + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); return this; } /** - * optional string reason = 4; + * string reason = 4; + * @return This builder for chaining. */ public Builder clearReason() { - copyOnWrite(); - instance.clearReason(); + + reason_ = getDefaultInstance().getReason(); + onChanged(); return this; } /** - * optional string reason = 4; + * string reason = 4; + * @param value The bytes for reason to set. + * @return This builder for chaining. */ public Builder setReasonBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setReasonBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingRate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingRate.SignalingRate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingRate.SignalingRate other = (net.iGap.proto.ProtoSignalingRate.SignalingRate) arg1; - request_ = visitor.visitMessage(request_, other.request_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - rate_ = visitor.visitInt(rate_ != 0, rate_, - other.rate_ != 0, other.rate_); - reason_ = visitor.visitString(!reason_.isEmpty(), reason_, - !other.reason_.isEmpty(), other.reason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - case 24: { - - rate_ = input.readUInt32(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - reason_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingRate.SignalingRate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingRate) + } + // @@protoc_insertion_point(class_scope:proto.SignalingRate) private static final net.iGap.proto.ProtoSignalingRate.SignalingRate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingRate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingRate.SignalingRate(); } public static net.iGap.proto.ProtoSignalingRate.SignalingRate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingRate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingRate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface SignalingRateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingRateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.SignalingRateResponse} */ - public static final class SignalingRateResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingRateResponse, SignalingRateResponse.Builder> implements + public static final class SignalingRateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingRateResponse) SignalingRateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingRateResponse.newBuilder() to construct. + private SignalingRateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingRateResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingRateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingRateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.class, net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -668,244 +1091,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingRate.SignalingRateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingRate.SignalingRateResponse other = (net.iGap.proto.ProtoSignalingRate.SignalingRateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingRate.SignalingRateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingRateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingRate.SignalingRateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingRateResponse) net.iGap.proto.ProtoSignalingRate.SignalingRateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.class, net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingRate.internal_static_proto_SignalingRateResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRateResponse build() { + net.iGap.proto.ProtoSignalingRate.SignalingRateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRateResponse buildPartial() { + net.iGap.proto.ProtoSignalingRate.SignalingRateResponse result = new net.iGap.proto.ProtoSignalingRate.SignalingRateResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingRate.SignalingRateResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingRate.SignalingRateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingRate.SignalingRateResponse other) { + if (other == net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingRate.SignalingRateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingRate.SignalingRateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.SignalingRateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingRate.SignalingRateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingRate.SignalingRateResponse other = (net.iGap.proto.ProtoSignalingRate.SignalingRateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingRate.SignalingRateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingRateResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingRateResponse) private static final net.iGap.proto.ProtoSignalingRate.SignalingRateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingRateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingRate.SignalingRateResponse(); } public static net.iGap.proto.ProtoSignalingRate.SignalingRateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingRateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingRateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRate.SignalingRateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingRate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingRate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingRateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingRateResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023SignalingRate.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\"Z\n\rSignalingRate\022\037\n\007" + + "request\030\001 \001(\0132\016.proto.Request\022\n\n\002id\030\002 \001(" + + "\004\022\014\n\004rate\030\003 \001(\r\022\016\n\006reason\030\004 \001(\t\":\n\025Signa" + + "lingRateResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.ResponseB$\n\016net.iGap.protoB\022ProtoSign" + + "alingRateb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingRate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingRate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingRate_descriptor, + new java.lang.String[] { "Request", "Id", "Rate", "Reason", }); + internal_static_proto_SignalingRateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingRateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingRateResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingRinging.java b/src/main/java/net/iGap/proto/ProtoSignalingRinging.java index ab53428..b99fcac 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingRinging.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingRinging.java @@ -8,90 +8,170 @@ private ProtoSignalingRinging() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingRingingOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingRinging) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.SignalingRinging} */ - public static final class SignalingRinging extends - com.google.protobuf.GeneratedMessageLite< - SignalingRinging, SignalingRinging.Builder> implements + public static final class SignalingRinging extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingRinging) SignalingRingingOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingRinging.newBuilder() to construct. + private SignalingRinging(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingRinging() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingRinging(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingRinging( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRinging_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRinging_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRinging.SignalingRinging.class, net.iGap.proto.ProtoSignalingRinging.SignalingRinging.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,326 +179,620 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingRinging.SignalingRinging)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingRinging.SignalingRinging other = (net.iGap.proto.ProtoSignalingRinging.SignalingRinging) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingRinging.SignalingRinging prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingRinging} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingRinging.SignalingRinging, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingRinging) net.iGap.proto.ProtoSignalingRinging.SignalingRingingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRinging_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRinging_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRinging.SignalingRinging.class, net.iGap.proto.ProtoSignalingRinging.SignalingRinging.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingRinging.SignalingRinging.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRinging_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRinging getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingRinging.SignalingRinging.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRinging build() { + net.iGap.proto.ProtoSignalingRinging.SignalingRinging result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRinging buildPartial() { + net.iGap.proto.ProtoSignalingRinging.SignalingRinging result = new net.iGap.proto.ProtoSignalingRinging.SignalingRinging(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingRinging.SignalingRinging) { + return mergeFrom((net.iGap.proto.ProtoSignalingRinging.SignalingRinging)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingRinging.SignalingRinging other) { + if (other == net.iGap.proto.ProtoSignalingRinging.SignalingRinging.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingRinging.SignalingRinging parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingRinging.SignalingRinging) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.SignalingRinging) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingRinging.SignalingRinging(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingRinging.SignalingRinging other = (net.iGap.proto.ProtoSignalingRinging.SignalingRinging) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingRinging.SignalingRinging.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingRinging) + } + // @@protoc_insertion_point(class_scope:proto.SignalingRinging) private static final net.iGap.proto.ProtoSignalingRinging.SignalingRinging DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingRinging(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingRinging.SignalingRinging(); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRinging getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingRinging parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingRinging(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRinging getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface SignalingRingingResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingRingingResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.SignalingRingingResponse} */ - public static final class SignalingRingingResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingRingingResponse, SignalingRingingResponse.Builder> implements + public static final class SignalingRingingResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingRingingResponse) SignalingRingingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingRingingResponse.newBuilder() to construct. + private SignalingRingingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingRingingResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingRingingResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingRingingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRingingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRingingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.class, net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -426,244 +800,508 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse other = (net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingRingingResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingRingingResponse) net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRingingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRingingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.class, net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingRinging.internal_static_proto_SignalingRingingResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse build() { + net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse buildPartial() { + net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse result = new net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse other) { + if (other == net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.SignalingRingingResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse other = (net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.SignalingRingingResponse) + } // @@protoc_insertion_point(class_scope:proto.SignalingRingingResponse) private static final net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingRingingResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse(); } public static net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingRingingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingRingingResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingRinging.SignalingRingingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingRinging_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingRinging_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingRingingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingRingingResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026SignalingRinging.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"3\n\020SignalingRingi" + + "ng\022\037\n\007request\030\001 \001(\0132\016.proto.Request\"=\n\030S" + + "ignalingRingingResponse\022!\n\010response\030\001 \001(" + + "\0132\017.proto.ResponseB\'\n\016net.iGap.protoB\025Pr" + + "otoSignalingRingingb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingRinging_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingRinging_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingRinging_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_SignalingRingingResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingRingingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingRingingResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoSignalingSessionHold.java b/src/main/java/net/iGap/proto/ProtoSignalingSessionHold.java index 5b8a427..810b84b 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingSessionHold.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingSessionHold.java @@ -8,109 +8,181 @@ private ProtoSignalingSessionHold() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface SignalingSessionHoldOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingSessionHold) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional bool hold = 2; + * bool hold = 2; + * @return The hold. */ boolean getHold(); } /** * Protobuf type {@code proto.SignalingSessionHold} */ - public static final class SignalingSessionHold extends - com.google.protobuf.GeneratedMessageLite< - SignalingSessionHold, SignalingSessionHold.Builder> implements + public static final class SignalingSessionHold extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingSessionHold) SignalingSessionHoldOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingSessionHold.newBuilder() to construct. + private SignalingSessionHold(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingSessionHold() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingSessionHold(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingSessionHold( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + hold_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHold_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHold_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.class, net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int HOLD_FIELD_NUMBER = 2; private boolean hold_; /** - * optional bool hold = 2; + * bool hold = 2; + * @return The hold. */ + @java.lang.Override public boolean getHold() { return hold_; } - /** - * optional bool hold = 2; - */ - private void setHold(boolean value) { - - hold_ = value; - } - /** - * optional bool hold = 2; - */ - private void clearHold() { - - hold_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (hold_ != false) { output.writeBool(2, hold_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, hold_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold other = (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getHold() + != other.getHold()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + HOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHold()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingSessionHold} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingSessionHold) net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHold_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHold_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.class, net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + hold_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHold_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold build() { + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold buildPartial() { + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold result = new net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.hold_ = hold_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold) { + return mergeFrom((net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold other) { + if (other == net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getHold() != false) { + setHold(other.getHold()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private boolean hold_ ; /** - * optional bool hold = 2; + * bool hold = 2; + * @return The hold. */ + @java.lang.Override public boolean getHold() { - return instance.getHold(); + return hold_; } /** - * optional bool hold = 2; + * bool hold = 2; + * @param value The hold to set. + * @return This builder for chaining. */ public Builder setHold(boolean value) { - copyOnWrite(); - instance.setHold(value); + + hold_ = value; + onChanged(); return this; } /** - * optional bool hold = 2; + * bool hold = 2; + * @return This builder for chaining. */ public Builder clearHold() { - copyOnWrite(); - instance.clearHold(); + + hold_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingSessionHold) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold other = (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold) arg1; - request_ = visitor.visitMessage(request_, other.request_); - hold_ = visitor.visitBoolean(hold_ != false, hold_, - other.hold_ != false, other.hold_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - hold_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingSessionHold) + } + // @@protoc_insertion_point(class_scope:proto.SignalingSessionHold) private static final net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingSessionHold(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold(); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingSessionHold parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingSessionHold(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHold getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface SignalingSessionHoldResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SignalingSessionHoldResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bool hold = 2; + * bool hold = 2; + * @return The hold. */ boolean getHold(); } /** * Protobuf type {@code proto.SignalingSessionHoldResponse} */ - public static final class SignalingSessionHoldResponse extends - com.google.protobuf.GeneratedMessageLite< - SignalingSessionHoldResponse, SignalingSessionHoldResponse.Builder> implements + public static final class SignalingSessionHoldResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignalingSessionHoldResponse) SignalingSessionHoldResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalingSessionHoldResponse.newBuilder() to construct. + private SignalingSessionHoldResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private SignalingSessionHoldResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignalingSessionHoldResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalingSessionHoldResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + hold_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHoldResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHoldResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.class, net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int HOLD_FIELD_NUMBER = 2; private boolean hold_; /** - * optional bool hold = 2; + * bool hold = 2; + * @return The hold. */ + @java.lang.Override public boolean getHold() { return hold_; } - /** - * optional bool hold = 2; - */ - private void setHold(boolean value) { - - hold_ = value; - } - /** - * optional bool hold = 2; - */ - private void clearHold() { - - hold_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (hold_ != false) { output.writeBool(2, hold_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, hold_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse other = (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getHold() + != other.getHold()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + HOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHold()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.SignalingSessionHoldResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignalingSessionHoldResponse) net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHoldResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHoldResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.class, net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + hold_ = false; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoSignalingSessionHold.internal_static_proto_SignalingSessionHoldResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse build() { + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse buildPartial() { + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse result = new net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.hold_ = hold_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse) { + return mergeFrom((net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse other) { + if (other == net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getHold() != false) { + setHold(other.getHold()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private boolean hold_ ; /** - * optional bool hold = 2; + * bool hold = 2; + * @return The hold. */ + @java.lang.Override public boolean getHold() { - return instance.getHold(); + return hold_; } /** - * optional bool hold = 2; + * bool hold = 2; + * @param value The hold to set. + * @return This builder for chaining. */ public Builder setHold(boolean value) { - copyOnWrite(); - instance.setHold(value); + + hold_ = value; + onChanged(); return this; } /** - * optional bool hold = 2; + * bool hold = 2; + * @return This builder for chaining. */ public Builder clearHold() { - copyOnWrite(); - instance.clearHold(); + + hold_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.SignalingSessionHoldResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse other = (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - hold_ = visitor.visitBoolean(hold_ != false, hold_, - other.hold_ != false, other.hold_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - hold_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.SignalingSessionHoldResponse) + } + // @@protoc_insertion_point(class_scope:proto.SignalingSessionHoldResponse) private static final net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new SignalingSessionHoldResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse(); } public static net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalingSessionHoldResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalingSessionHoldResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoSignalingSessionHold.SignalingSessionHoldResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingSessionHold_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingSessionHold_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_SignalingSessionHoldResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_SignalingSessionHoldResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032SignalingSessionHold.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"E\n\024SignalingS" + + "essionHold\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\014\n\004hold\030\002 \001(\010\"O\n\034SignalingSessionHol" + + "dResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\014\n\004hold\030\002 \001(\010B+\n\016net.iGap.protoB\031Pr" + + "otoSignalingSessionHoldb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_SignalingSessionHold_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_SignalingSessionHold_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingSessionHold_descriptor, + new java.lang.String[] { "Request", "Hold", }); + internal_static_proto_SignalingSessionHoldResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_SignalingSessionHoldResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_SignalingSessionHoldResponse_descriptor, + new java.lang.String[] { "Response", "Hold", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoStoryAddView.java b/src/main/java/net/iGap/proto/ProtoStoryAddView.java index b04a88e..3fc767e 100644 --- a/src/main/java/net/iGap/proto/ProtoStoryAddView.java +++ b/src/main/java/net/iGap/proto/ProtoStoryAddView.java @@ -8,25 +8,39 @@ private ProtoStoryAddView() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface StoryAddViewOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryAddView) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string story_id = 2; + * string story_id = 2; + * @return The storyId. */ java.lang.String getStoryId(); /** - * optional string story_id = 2; + * string story_id = 2; + * @return The bytes for storyId. */ com.google.protobuf.ByteString getStoryIdBytes(); @@ -34,124 +48,190 @@ public interface StoryAddViewOrBuilder extends /** * Protobuf type {@code proto.StoryAddView} */ - public static final class StoryAddView extends - com.google.protobuf.GeneratedMessageLite< - StoryAddView, StoryAddView.Builder> implements + public static final class StoryAddView extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryAddView) StoryAddViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryAddView.newBuilder() to construct. + private StoryAddView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryAddView() { storyId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryAddView(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryAddView( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + storyId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryAddView.StoryAddView.class, net.iGap.proto.ProtoStoryAddView.StoryAddView.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int STORY_ID_FIELD_NUMBER = 2; - private java.lang.String storyId_; + private volatile java.lang.Object storyId_; /** - * optional string story_id = 2; + * string story_id = 2; + * @return The storyId. */ + @java.lang.Override public java.lang.String getStoryId() { - return storyId_; + java.lang.Object ref = storyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storyId_ = s; + return s; + } } /** - * optional string story_id = 2; + * string story_id = 2; + * @return The bytes for storyId. */ + @java.lang.Override public com.google.protobuf.ByteString getStoryIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(storyId_); - } - /** - * optional string story_id = 2; - */ - private void setStoryId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storyId_ = value; - } - /** - * optional string story_id = 2; - */ - private void clearStoryId() { - - storyId_ = getDefaultInstance().getStoryId(); + java.lang.Object ref = storyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string story_id = 2; - */ - private void setStoryIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storyId_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!storyId_.isEmpty()) { - output.writeString(2, getStoryId()); + if (!getStoryIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, storyId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,481 +239,787 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!storyId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getStoryId()); + if (!getStoryIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, storyId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryAddView.StoryAddView)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryAddView.StoryAddView other = (net.iGap.proto.ProtoStoryAddView.StoryAddView) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getStoryId() + .equals(other.getStoryId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + STORY_ID_FIELD_NUMBER; + hash = (53 * hash) + getStoryId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryAddView.StoryAddView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryAddView} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryAddView.StoryAddView, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryAddView) net.iGap.proto.ProtoStoryAddView.StoryAddViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryAddView.StoryAddView.class, net.iGap.proto.ProtoStoryAddView.StoryAddView.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryAddView.StoryAddView.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + storyId_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddView_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddView getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryAddView.StoryAddView.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddView build() { + net.iGap.proto.ProtoStoryAddView.StoryAddView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddView buildPartial() { + net.iGap.proto.ProtoStoryAddView.StoryAddView result = new net.iGap.proto.ProtoStoryAddView.StoryAddView(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.storyId_ = storyId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryAddView.StoryAddView) { + return mergeFrom((net.iGap.proto.ProtoStoryAddView.StoryAddView)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryAddView.StoryAddView other) { + if (other == net.iGap.proto.ProtoStoryAddView.StoryAddView.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getStoryId().isEmpty()) { + storyId_ = other.storyId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryAddView.StoryAddView parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryAddView.StoryAddView) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object storyId_ = ""; /** - * optional string story_id = 2; + * string story_id = 2; + * @return The storyId. */ public java.lang.String getStoryId() { - return instance.getStoryId(); + java.lang.Object ref = storyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string story_id = 2; + * string story_id = 2; + * @return The bytes for storyId. */ public com.google.protobuf.ByteString getStoryIdBytes() { - return instance.getStoryIdBytes(); + java.lang.Object ref = storyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string story_id = 2; + * string story_id = 2; + * @param value The storyId to set. + * @return This builder for chaining. */ public Builder setStoryId( java.lang.String value) { - copyOnWrite(); - instance.setStoryId(value); + if (value == null) { + throw new NullPointerException(); + } + + storyId_ = value; + onChanged(); return this; } /** - * optional string story_id = 2; + * string story_id = 2; + * @return This builder for chaining. */ public Builder clearStoryId() { - copyOnWrite(); - instance.clearStoryId(); + + storyId_ = getDefaultInstance().getStoryId(); + onChanged(); return this; } /** - * optional string story_id = 2; + * string story_id = 2; + * @param value The bytes for storyId to set. + * @return This builder for chaining. */ public Builder setStoryIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setStoryIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storyId_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.StoryAddView) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryAddView.StoryAddView(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryAddView.StoryAddView other = (net.iGap.proto.ProtoStoryAddView.StoryAddView) arg1; - request_ = visitor.visitMessage(request_, other.request_); - storyId_ = visitor.visitString(!storyId_.isEmpty(), storyId_, - !other.storyId_.isEmpty(), other.storyId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - storyId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryAddView.StoryAddView.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryAddView) + } + // @@protoc_insertion_point(class_scope:proto.StoryAddView) private static final net.iGap.proto.ProtoStoryAddView.StoryAddView DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryAddView(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryAddView.StoryAddView(); } public static net.iGap.proto.ProtoStoryAddView.StoryAddView getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryAddView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryAddView(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface StoryAddViewResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryAddViewResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @return The viewedAt. */ int getViewedAt(); /** - * optional uint64 story_id = 3 [jstype = JS_STRING]; + * uint64 story_id = 3 [jstype = JS_STRING]; + * @return The storyId. */ long getStoryId(); /** - * optional uint64 user_id = 4 [jstype = JS_STRING]; + * uint64 user_id = 4 [jstype = JS_STRING]; + * @return The userId. */ long getUserId(); /** - * optional uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * @return The storyOwnerUserId. */ long getStoryOwnerUserId(); } /** * Protobuf type {@code proto.StoryAddViewResponse} */ - public static final class StoryAddViewResponse extends - com.google.protobuf.GeneratedMessageLite< - StoryAddViewResponse, StoryAddViewResponse.Builder> implements + public static final class StoryAddViewResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryAddViewResponse) StoryAddViewResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryAddViewResponse.newBuilder() to construct. + private StoryAddViewResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryAddViewResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryAddViewResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryAddViewResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + viewedAt_ = input.readUInt32(); + break; + } + case 24: { + + storyId_ = input.readUInt64(); + break; + } + case 32: { + + userId_ = input.readUInt64(); + break; + } + case 40: { + + storyOwnerUserId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.class, net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int VIEWED_AT_FIELD_NUMBER = 2; private int viewedAt_; /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @return The viewedAt. */ + @java.lang.Override public int getViewedAt() { return viewedAt_; } - /** - * optional uint32 viewed_at = 2; - */ - private void setViewedAt(int value) { - - viewedAt_ = value; - } - /** - * optional uint32 viewed_at = 2; - */ - private void clearViewedAt() { - - viewedAt_ = 0; - } public static final int STORY_ID_FIELD_NUMBER = 3; private long storyId_; /** - * optional uint64 story_id = 3 [jstype = JS_STRING]; + * uint64 story_id = 3 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { return storyId_; } - /** - * optional uint64 story_id = 3 [jstype = JS_STRING]; - */ - private void setStoryId(long value) { - - storyId_ = value; - } - /** - * optional uint64 story_id = 3 [jstype = JS_STRING]; - */ - private void clearStoryId() { - - storyId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 4; private long userId_; /** - * optional uint64 user_id = 4 [jstype = JS_STRING]; + * uint64 user_id = 4 [jstype = JS_STRING]; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 4 [jstype = JS_STRING]; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 4 [jstype = JS_STRING]; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int STORY_OWNER_USER_ID_FIELD_NUMBER = 5; private long storyOwnerUserId_; /** - * optional uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * @return The storyOwnerUserId. */ + @java.lang.Override public long getStoryOwnerUserId() { return storyOwnerUserId_; } - /** - * optional uint64 story_owner_user_id = 5 [jstype = JS_STRING]; - */ - private void setStoryOwnerUserId(long value) { - - storyOwnerUserId_ = value; - } - /** - * optional uint64 story_owner_user_id = 5 [jstype = JS_STRING]; - */ - private void clearStoryOwnerUserId() { - - storyOwnerUserId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -651,10 +1037,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (storyOwnerUserId_ != 0L) { output.writeUInt64(5, storyOwnerUserId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -678,364 +1066,678 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, storyOwnerUserId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse other = (net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getViewedAt() + != other.getViewedAt()) return false; + if (getStoryId() + != other.getStoryId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (getStoryOwnerUserId() + != other.getStoryOwnerUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + VIEWED_AT_FIELD_NUMBER; + hash = (53 * hash) + getViewedAt(); + hash = (37 * hash) + STORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStoryId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + STORY_OWNER_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStoryOwnerUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryAddViewResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryAddViewResponse) net.iGap.proto.ProtoStoryAddView.StoryAddViewResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddViewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddViewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.class, net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + viewedAt_ = 0; + + storyId_ = 0L; + + userId_ = 0L; + + storyOwnerUserId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryAddView.internal_static_proto_StoryAddViewResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse build() { + net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse buildPartial() { + net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse result = new net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.viewedAt_ = viewedAt_; + result.storyId_ = storyId_; + result.userId_ = userId_; + result.storyOwnerUserId_ = storyOwnerUserId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse) { + return mergeFrom((net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse other) { + if (other == net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getViewedAt() != 0) { + setViewedAt(other.getViewedAt()); + } + if (other.getStoryId() != 0L) { + setStoryId(other.getStoryId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getStoryOwnerUserId() != 0L) { + setStoryOwnerUserId(other.getStoryOwnerUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int viewedAt_ ; /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @return The viewedAt. */ + @java.lang.Override public int getViewedAt() { - return instance.getViewedAt(); + return viewedAt_; } /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @param value The viewedAt to set. + * @return This builder for chaining. */ public Builder setViewedAt(int value) { - copyOnWrite(); - instance.setViewedAt(value); + + viewedAt_ = value; + onChanged(); return this; } /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @return This builder for chaining. */ public Builder clearViewedAt() { - copyOnWrite(); - instance.clearViewedAt(); + + viewedAt_ = 0; + onChanged(); return this; } + private long storyId_ ; /** - * optional uint64 story_id = 3 [jstype = JS_STRING]; + * uint64 story_id = 3 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { - return instance.getStoryId(); + return storyId_; } /** - * optional uint64 story_id = 3 [jstype = JS_STRING]; + * uint64 story_id = 3 [jstype = JS_STRING]; + * @param value The storyId to set. + * @return This builder for chaining. */ public Builder setStoryId(long value) { - copyOnWrite(); - instance.setStoryId(value); + + storyId_ = value; + onChanged(); return this; } /** - * optional uint64 story_id = 3 [jstype = JS_STRING]; + * uint64 story_id = 3 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearStoryId() { - copyOnWrite(); - instance.clearStoryId(); + + storyId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 4 [jstype = JS_STRING]; + * uint64 user_id = 4 [jstype = JS_STRING]; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 4 [jstype = JS_STRING]; + * uint64 user_id = 4 [jstype = JS_STRING]; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 4 [jstype = JS_STRING]; + * uint64 user_id = 4 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private long storyOwnerUserId_ ; /** - * optional uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * @return The storyOwnerUserId. */ + @java.lang.Override public long getStoryOwnerUserId() { - return instance.getStoryOwnerUserId(); + return storyOwnerUserId_; } /** - * optional uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * @param value The storyOwnerUserId to set. + * @return This builder for chaining. */ public Builder setStoryOwnerUserId(long value) { - copyOnWrite(); - instance.setStoryOwnerUserId(value); + + storyOwnerUserId_ = value; + onChanged(); return this; } /** - * optional uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * uint64 story_owner_user_id = 5 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearStoryOwnerUserId() { - copyOnWrite(); - instance.clearStoryOwnerUserId(); + + storyOwnerUserId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.StoryAddViewResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse other = (net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - viewedAt_ = visitor.visitInt(viewedAt_ != 0, viewedAt_, - other.viewedAt_ != 0, other.viewedAt_); - storyId_ = visitor.visitLong(storyId_ != 0L, storyId_, - other.storyId_ != 0L, other.storyId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - storyOwnerUserId_ = visitor.visitLong(storyOwnerUserId_ != 0L, storyOwnerUserId_, - other.storyOwnerUserId_ != 0L, other.storyOwnerUserId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - viewedAt_ = input.readUInt32(); - break; - } - case 24: { - - storyId_ = input.readUInt64(); - break; - } - case 32: { - - userId_ = input.readUInt64(); - break; - } - case 40: { - - storyOwnerUserId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryAddViewResponse) + } + // @@protoc_insertion_point(class_scope:proto.StoryAddViewResponse) private static final net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryAddViewResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse(); } public static net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryAddViewResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryAddViewResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoStoryAddView.StoryAddViewResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryAddView_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryAddView_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryAddViewResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryAddViewResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022StoryAddView.proto\022\005proto\032\rRequest.pro" + + "to\032\016Response.proto\"A\n\014StoryAddView\022\037\n\007re" + + "quest\030\001 \001(\0132\016.proto.Request\022\020\n\010story_id\030" + + "\002 \001(\t\"\230\001\n\024StoryAddViewResponse\022!\n\010respon" + + "se\030\001 \001(\0132\017.proto.Response\022\021\n\tviewed_at\030\002" + + " \001(\r\022\024\n\010story_id\030\003 \001(\004B\0020\001\022\023\n\007user_id\030\004 " + + "\001(\004B\0020\001\022\037\n\023story_owner_user_id\030\005 \001(\004B\0020\001" + + "B#\n\016net.iGap.protoB\021ProtoStoryAddViewb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_StoryAddView_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_StoryAddView_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryAddView_descriptor, + new java.lang.String[] { "Request", "StoryId", }); + internal_static_proto_StoryAddViewResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_StoryAddViewResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryAddViewResponse_descriptor, + new java.lang.String[] { "Response", "ViewedAt", "StoryId", "UserId", "StoryOwnerUserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoStoryDeleteStory.java b/src/main/java/net/iGap/proto/ProtoStoryDeleteStory.java index 362cb6c..a46e04f 100644 --- a/src/main/java/net/iGap/proto/ProtoStoryDeleteStory.java +++ b/src/main/java/net/iGap/proto/ProtoStoryDeleteStory.java @@ -8,109 +8,181 @@ private ProtoStoryDeleteStory() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface StoryDeleteStoryOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryDeleteStory) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return The storyId. */ long getStoryId(); } /** * Protobuf type {@code proto.StoryDeleteStory} */ - public static final class StoryDeleteStory extends - com.google.protobuf.GeneratedMessageLite< - StoryDeleteStory, StoryDeleteStory.Builder> implements + public static final class StoryDeleteStory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryDeleteStory) StoryDeleteStoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryDeleteStory.newBuilder() to construct. + private StoryDeleteStory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryDeleteStory() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryDeleteStory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryDeleteStory( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + storyId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.class, net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int STORY_ID_FIELD_NUMBER = 2; private long storyId_; /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { return storyId_; } - /** - * optional uint64 story_id = 2; - */ - private void setStoryId(long value) { - - storyId_ = value; - } - /** - * optional uint64 story_id = 2; - */ - private void clearStoryId() { - - storyId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (storyId_ != 0L) { output.writeUInt64(2, storyId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,403 +208,695 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, storyId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory other = (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getStoryId() + != other.getStoryId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + STORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStoryId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryDeleteStory} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryDeleteStory) net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.class, net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + storyId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStory_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory build() { + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory buildPartial() { + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory result = new net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.storyId_ = storyId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory) { + return mergeFrom((net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory other) { + if (other == net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getStoryId() != 0L) { + setStoryId(other.getStoryId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long storyId_ ; /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { - return instance.getStoryId(); + return storyId_; } /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @param value The storyId to set. + * @return This builder for chaining. */ public Builder setStoryId(long value) { - copyOnWrite(); - instance.setStoryId(value); + + storyId_ = value; + onChanged(); return this; } /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return This builder for chaining. */ public Builder clearStoryId() { - copyOnWrite(); - instance.clearStoryId(); + + storyId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.StoryDeleteStory) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory other = (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory) arg1; - request_ = visitor.visitMessage(request_, other.request_); - storyId_ = visitor.visitLong(storyId_ != 0L, storyId_, - other.storyId_ != 0L, other.storyId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - storyId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryDeleteStory) + } + // @@protoc_insertion_point(class_scope:proto.StoryDeleteStory) private static final net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryDeleteStory(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory(); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryDeleteStory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryDeleteStory(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface StoryDeleteStoryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryDeleteStoryResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return The storyId. */ long getStoryId(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.StoryDeleteStoryResponse} */ - public static final class StoryDeleteStoryResponse extends - com.google.protobuf.GeneratedMessageLite< - StoryDeleteStoryResponse, StoryDeleteStoryResponse.Builder> implements + public static final class StoryDeleteStoryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryDeleteStoryResponse) StoryDeleteStoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryDeleteStoryResponse.newBuilder() to construct. + private StoryDeleteStoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryDeleteStoryResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryDeleteStoryResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryDeleteStoryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + storyId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.class, net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STORY_ID_FIELD_NUMBER = 2; private long storyId_; /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { return storyId_; } - /** - * optional uint64 story_id = 2; - */ - private void setStoryId(long value) { - - storyId_ = value; - } - /** - * optional uint64 story_id = 2; - */ - private void clearStoryId() { - - storyId_ = 0L; - } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -542,10 +908,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(3, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -561,304 +929,593 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse other = (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStoryId() + != other.getStoryId()) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStoryId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryDeleteStoryResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryDeleteStoryResponse) net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.class, net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + storyId_ = 0L; + + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryDeleteStory.internal_static_proto_StoryDeleteStoryResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse build() { + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse buildPartial() { + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse result = new net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.storyId_ = storyId_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse) { + return mergeFrom((net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse other) { + if (other == net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStoryId() != 0L) { + setStoryId(other.getStoryId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long storyId_ ; /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { - return instance.getStoryId(); + return storyId_; } /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @param value The storyId to set. + * @return This builder for chaining. */ public Builder setStoryId(long value) { - copyOnWrite(); - instance.setStoryId(value); + + storyId_ = value; + onChanged(); return this; } /** - * optional uint64 story_id = 2; + * uint64 story_id = 2; + * @return This builder for chaining. */ public Builder clearStoryId() { - copyOnWrite(); - instance.clearStoryId(); + + storyId_ = 0L; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.StoryDeleteStoryResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse other = (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - storyId_ = visitor.visitLong(storyId_ != 0L, storyId_, - other.storyId_ != 0L, other.storyId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - storyId_ = input.readUInt64(); - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryDeleteStoryResponse) + } + // @@protoc_insertion_point(class_scope:proto.StoryDeleteStoryResponse) private static final net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryDeleteStoryResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse(); } public static net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryDeleteStoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryDeleteStoryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoStoryDeleteStory.StoryDeleteStoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryDeleteStory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryDeleteStory_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryDeleteStoryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryDeleteStoryResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026StoryDeleteStory.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"E\n\020StoryDeleteSto" + + "ry\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\020\n\010s" + + "tory_id\030\002 \001(\004\"`\n\030StoryDeleteStoryRespons" + + "e\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\020\n\010" + + "story_id\030\002 \001(\004\022\017\n\007user_id\030\003 \001(\004B\'\n\016net.i" + + "Gap.protoB\025ProtoStoryDeleteStoryb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_StoryDeleteStory_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_StoryDeleteStory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryDeleteStory_descriptor, + new java.lang.String[] { "Request", "StoryId", }); + internal_static_proto_StoryDeleteStoryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_StoryDeleteStoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryDeleteStoryResponse_descriptor, + new java.lang.String[] { "Response", "StoryId", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoStoryGetOwnStoryViews.java b/src/main/java/net/iGap/proto/ProtoStoryGetOwnStoryViews.java index 5ed7543..55b7e1b 100644 --- a/src/main/java/net/iGap/proto/ProtoStoryGetOwnStoryViews.java +++ b/src/main/java/net/iGap/proto/ProtoStoryGetOwnStoryViews.java @@ -8,142 +8,213 @@ private ProtoStoryGetOwnStoryViews() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface StoryGetOwnStoryViewsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryGetOwnStoryViews) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 3; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.StoryGetOwnStoryViews} */ - public static final class StoryGetOwnStoryViews extends - com.google.protobuf.GeneratedMessageLite< - StoryGetOwnStoryViews, StoryGetOwnStoryViews.Builder> implements + public static final class StoryGetOwnStoryViews extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryGetOwnStoryViews) StoryGetOwnStoryViewsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryGetOwnStoryViews.newBuilder() to construct. + private StoryGetOwnStoryViews(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryGetOwnStoryViews() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryGetOwnStoryViews(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryGetOwnStoryViews( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViews_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViews_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PAGINATION_FIELD_NUMBER = 3; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 3; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 3; - */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 3; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -152,10 +223,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(3, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -167,371 +240,741 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryGetOwnStoryViews} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryGetOwnStoryViews) net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViews_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViews_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViews_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews build() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews buildPartial() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews result = new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews) { + return mergeFrom((net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews other) { + if (other == net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 3; + * .proto.Pagination pagination = 3; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryGetOwnStoryViews) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.StoryGetOwnStoryViews) + } // @@protoc_insertion_point(class_scope:proto.StoryGetOwnStoryViews) private static final net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryGetOwnStoryViews(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews(); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryGetOwnStoryViews parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryGetOwnStoryViews(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViews getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface StoryViewOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryView) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return The userId. */ long getUserId(); /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @return The viewedAt. */ int getViewedAt(); } /** * Protobuf type {@code proto.StoryView} */ - public static final class StoryView extends - com.google.protobuf.GeneratedMessageLite< - StoryView, StoryView.Builder> implements + public static final class StoryView extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryView) StoryViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryView.newBuilder() to construct. + private StoryView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryView() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryView(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryView( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 16: { + + viewedAt_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int VIEWED_AT_FIELD_NUMBER = 2; private int viewedAt_; /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @return The viewedAt. */ + @java.lang.Override public int getViewedAt() { return viewedAt_; } - /** - * optional uint32 viewed_at = 2; - */ - private void setViewedAt(int value) { - - viewedAt_ = value; - } - /** - * optional uint32 viewed_at = 2; - */ - private void clearViewedAt() { - - viewedAt_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { @@ -540,10 +983,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (viewedAt_ != 0) { output.writeUInt32(2, viewedAt_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -555,254 +1000,416 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, viewedAt_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView) obj; + + if (getUserId() + != other.getUserId()) return false; + if (getViewedAt() + != other.getViewedAt()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + VIEWED_AT_FIELD_NUMBER; + hash = (53 * hash) + getViewedAt(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryView} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryView) net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; - */ - public long getUserId() { - return instance.getUserId(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; - */ - public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); - return this; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - /** - * optional uint64 user_id = 1 [jstype = JS_STRING]; - */ - public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + viewedAt_ = 0; + return this; } - /** - * optional uint32 viewed_at = 2; - */ - public int getViewedAt() { - return instance.getViewedAt(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryView_descriptor; } - /** - * optional uint32 viewed_at = 2; + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView build() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView buildPartial() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView result = new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView(this); + result.userId_ = userId_; + result.viewedAt_ = viewedAt_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView) { + return mergeFrom((net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView other) { + if (other == net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.getViewedAt() != 0) { + setViewedAt(other.getViewedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long userId_ ; + /** + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return The userId. + */ + @java.lang.Override + public long getUserId() { + return userId_; + } + /** + * uint64 user_id = 1 [jstype = JS_STRING]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(long value) { + + userId_ = value; + onChanged(); + return this; + } + /** + * uint64 user_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + + userId_ = 0L; + onChanged(); + return this; + } + + private int viewedAt_ ; + /** + * uint32 viewed_at = 2; + * @return The viewedAt. + */ + @java.lang.Override + public int getViewedAt() { + return viewedAt_; + } + /** + * uint32 viewed_at = 2; + * @param value The viewedAt to set. + * @return This builder for chaining. */ public Builder setViewedAt(int value) { - copyOnWrite(); - instance.setViewedAt(value); + + viewedAt_ = value; + onChanged(); return this; } /** - * optional uint32 viewed_at = 2; + * uint32 viewed_at = 2; + * @return This builder for chaining. */ public Builder clearViewedAt() { - copyOnWrite(); - instance.clearViewedAt(); + + viewedAt_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.StoryView) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - viewedAt_ = visitor.visitInt(viewedAt_ != 0, viewedAt_, - other.viewedAt_ != 0, other.viewedAt_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 16: { - - viewedAt_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryView) + } + // @@protoc_insertion_point(class_scope:proto.StoryView) private static final net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryView(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView(); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryView(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface GroupedViewsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupedViews) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ long getStoryId(); /** - * optional uint32 views = 2; + * uint32 views = 2; + * @return The views. */ int getViews(); @@ -819,76 +1426,153 @@ public interface GroupedViewsOrBuilder extends * repeated .proto.StoryView story_views = 3; */ int getStoryViewsCount(); + /** + * repeated .proto.StoryView story_views = 3; + */ + java.util.List + getStoryViewsOrBuilderList(); + /** + * repeated .proto.StoryView story_views = 3; + */ + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryViewOrBuilder getStoryViewsOrBuilder( + int index); } /** * Protobuf type {@code proto.GroupedViews} */ - public static final class GroupedViews extends - com.google.protobuf.GeneratedMessageLite< - GroupedViews, GroupedViews.Builder> implements + public static final class GroupedViews extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupedViews) GroupedViewsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupedViews.newBuilder() to construct. + private GroupedViews(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupedViews() { - storyViews_ = emptyProtobufList(); + storyViews_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupedViews(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupedViews( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + storyId_ = input.readUInt64(); + break; + } + case 16: { + + views_ = input.readUInt32(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + storyViews_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + storyViews_.add( + input.readMessage(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + storyViews_ = java.util.Collections.unmodifiableList(storyViews_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_GroupedViews_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_GroupedViews_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder.class); } - private int bitField0_; + public static final int STORY_ID_FIELD_NUMBER = 1; private long storyId_; /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { return storyId_; } - /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; - */ - private void setStoryId(long value) { - - storyId_ = value; - } - /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; - */ - private void clearStoryId() { - - storyId_ = 0L; - } public static final int VIEWS_FIELD_NUMBER = 2; private int views_; /** - * optional uint32 views = 2; + * uint32 views = 2; + * @return The views. */ + @java.lang.Override public int getViews() { return views_; } - /** - * optional uint32 views = 2; - */ - private void setViews(int value) { - - views_ = value; - } - /** - * optional uint32 views = 2; - */ - private void clearViews() { - - views_ = 0; - } public static final int STORY_VIEWS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList storyViews_; + private java.util.List storyViews_; /** * repeated .proto.StoryView story_views = 3; */ + @java.lang.Override public java.util.List getStoryViewsList() { return storyViews_; } /** * repeated .proto.StoryView story_views = 3; */ + @java.lang.Override public java.util.List getStoryViewsOrBuilderList() { return storyViews_; @@ -896,108 +1580,38 @@ public java.util.List getSt /** * repeated .proto.StoryView story_views = 3; */ + @java.lang.Override public int getStoryViewsCount() { return storyViews_.size(); } /** * repeated .proto.StoryView story_views = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView getStoryViews(int index) { return storyViews_.get(index); } /** * repeated .proto.StoryView story_views = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryViewOrBuilder getStoryViewsOrBuilder( int index) { return storyViews_.get(index); } - private void ensureStoryViewsIsMutable() { - if (!storyViews_.isModifiable()) { - storyViews_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(storyViews_); - } - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void setStoryViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryViewsIsMutable(); - storyViews_.set(index, value); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void setStoryViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder builderForValue) { - ensureStoryViewsIsMutable(); - storyViews_.set(index, builderForValue.build()); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void addStoryViews(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryViewsIsMutable(); - storyViews_.add(value); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void addStoryViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryViewsIsMutable(); - storyViews_.add(index, value); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void addStoryViews( - net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder builderForValue) { - ensureStoryViewsIsMutable(); - storyViews_.add(builderForValue.build()); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void addStoryViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder builderForValue) { - ensureStoryViewsIsMutable(); - storyViews_.add(index, builderForValue.build()); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void addAllStoryViews( - java.lang.Iterable values) { - ensureStoryViewsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, storyViews_); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void clearStoryViews() { - storyViews_ = emptyProtobufList(); - } - /** - * repeated .proto.StoryView story_views = 3; - */ - private void removeStoryViews(int index) { - ensureStoryViewsIsMutable(); - storyViews_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (storyId_ != 0L) { @@ -1009,10 +1623,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < storyViews_.size(); i++) { output.writeMessage(3, storyViews_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1028,163 +1644,458 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, storyViews_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews) obj; + + if (getStoryId() + != other.getStoryId()) return false; + if (getViews() + != other.getViews()) return false; + if (!getStoryViewsList() + .equals(other.getStoryViewsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStoryId()); + hash = (37 * hash) + VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getViews(); + if (getStoryViewsCount() > 0) { + hash = (37 * hash) + STORY_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getStoryViewsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupedViews} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupedViews) net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViewsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_GroupedViews_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_GroupedViews_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStoryViewsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + storyId_ = 0L; + + views_ = 0; + + if (storyViewsBuilder_ == null) { + storyViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + storyViewsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_GroupedViews_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews build() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews buildPartial() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews result = new net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews(this); + int from_bitField0_ = bitField0_; + result.storyId_ = storyId_; + result.views_ = views_; + if (storyViewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + storyViews_ = java.util.Collections.unmodifiableList(storyViews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.storyViews_ = storyViews_; + } else { + result.storyViews_ = storyViewsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews) { + return mergeFrom((net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews other) { + if (other == net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.getDefaultInstance()) return this; + if (other.getStoryId() != 0L) { + setStoryId(other.getStoryId()); + } + if (other.getViews() != 0) { + setViews(other.getViews()); + } + if (storyViewsBuilder_ == null) { + if (!other.storyViews_.isEmpty()) { + if (storyViews_.isEmpty()) { + storyViews_ = other.storyViews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStoryViewsIsMutable(); + storyViews_.addAll(other.storyViews_); + } + onChanged(); + } + } else { + if (!other.storyViews_.isEmpty()) { + if (storyViewsBuilder_.isEmpty()) { + storyViewsBuilder_.dispose(); + storyViewsBuilder_ = null; + storyViews_ = other.storyViews_; + bitField0_ = (bitField0_ & ~0x00000001); + storyViewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStoryViewsFieldBuilder() : null; + } else { + storyViewsBuilder_.addAllMessages(other.storyViews_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long storyId_ ; /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return The storyId. */ + @java.lang.Override public long getStoryId() { - return instance.getStoryId(); + return storyId_; } /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @param value The storyId to set. + * @return This builder for chaining. */ public Builder setStoryId(long value) { - copyOnWrite(); - instance.setStoryId(value); + + storyId_ = value; + onChanged(); return this; } /** - * optional uint64 story_id = 1 [jstype = JS_STRING]; + * uint64 story_id = 1 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearStoryId() { - copyOnWrite(); - instance.clearStoryId(); + + storyId_ = 0L; + onChanged(); return this; } + private int views_ ; /** - * optional uint32 views = 2; + * uint32 views = 2; + * @return The views. */ + @java.lang.Override public int getViews() { - return instance.getViews(); + return views_; } /** - * optional uint32 views = 2; + * uint32 views = 2; + * @param value The views to set. + * @return This builder for chaining. */ public Builder setViews(int value) { - copyOnWrite(); - instance.setViews(value); + + views_ = value; + onChanged(); return this; } /** - * optional uint32 views = 2; + * uint32 views = 2; + * @return This builder for chaining. */ public Builder clearViews() { - copyOnWrite(); - instance.clearViews(); + + views_ = 0; + onChanged(); return this; } + private java.util.List storyViews_ = + java.util.Collections.emptyList(); + private void ensureStoryViewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + storyViews_ = new java.util.ArrayList(storyViews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryViewOrBuilder> storyViewsBuilder_; + /** * repeated .proto.StoryView story_views = 3; */ public java.util.List getStoryViewsList() { - return java.util.Collections.unmodifiableList( - instance.getStoryViewsList()); + if (storyViewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(storyViews_); + } else { + return storyViewsBuilder_.getMessageList(); + } } /** * repeated .proto.StoryView story_views = 3; */ public int getStoryViewsCount() { - return instance.getStoryViewsCount(); - }/** + if (storyViewsBuilder_ == null) { + return storyViews_.size(); + } else { + return storyViewsBuilder_.getCount(); + } + } + /** * repeated .proto.StoryView story_views = 3; */ public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView getStoryViews(int index) { - return instance.getStoryViews(index); + if (storyViewsBuilder_ == null) { + return storyViews_.get(index); + } else { + return storyViewsBuilder_.getMessage(index); + } } /** * repeated .proto.StoryView story_views = 3; */ public Builder setStoryViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView value) { - copyOnWrite(); - instance.setStoryViews(index, value); + if (storyViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryViewsIsMutable(); + storyViews_.set(index, value); + onChanged(); + } else { + storyViewsBuilder_.setMessage(index, value); + } return this; } /** @@ -1192,16 +2103,29 @@ public Builder setStoryViews( */ public Builder setStoryViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder builderForValue) { - copyOnWrite(); - instance.setStoryViews(index, builderForValue); + if (storyViewsBuilder_ == null) { + ensureStoryViewsIsMutable(); + storyViews_.set(index, builderForValue.build()); + onChanged(); + } else { + storyViewsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.StoryView story_views = 3; */ public Builder addStoryViews(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView value) { - copyOnWrite(); - instance.addStoryViews(value); + if (storyViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryViewsIsMutable(); + storyViews_.add(value); + onChanged(); + } else { + storyViewsBuilder_.addMessage(value); + } return this; } /** @@ -1209,8 +2133,16 @@ public Builder addStoryViews(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView */ public Builder addStoryViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView value) { - copyOnWrite(); - instance.addStoryViews(index, value); + if (storyViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryViewsIsMutable(); + storyViews_.add(index, value); + onChanged(); + } else { + storyViewsBuilder_.addMessage(index, value); + } return this; } /** @@ -1218,8 +2150,13 @@ public Builder addStoryViews( */ public Builder addStoryViews( net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder builderForValue) { - copyOnWrite(); - instance.addStoryViews(builderForValue); + if (storyViewsBuilder_ == null) { + ensureStoryViewsIsMutable(); + storyViews_.add(builderForValue.build()); + onChanged(); + } else { + storyViewsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1227,8 +2164,13 @@ public Builder addStoryViews( */ public Builder addStoryViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder builderForValue) { - copyOnWrite(); - instance.addStoryViews(index, builderForValue); + if (storyViewsBuilder_ == null) { + ensureStoryViewsIsMutable(); + storyViews_.add(index, builderForValue.build()); + onChanged(); + } else { + storyViewsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1236,156 +2178,177 @@ public Builder addStoryViews( */ public Builder addAllStoryViews( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllStoryViews(values); + if (storyViewsBuilder_ == null) { + ensureStoryViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, storyViews_); + onChanged(); + } else { + storyViewsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.StoryView story_views = 3; */ public Builder clearStoryViews() { - copyOnWrite(); - instance.clearStoryViews(); + if (storyViewsBuilder_ == null) { + storyViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + storyViewsBuilder_.clear(); + } return this; } /** * repeated .proto.StoryView story_views = 3; */ public Builder removeStoryViews(int index) { - copyOnWrite(); - instance.removeStoryViews(index); + if (storyViewsBuilder_ == null) { + ensureStoryViewsIsMutable(); + storyViews_.remove(index); + onChanged(); + } else { + storyViewsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.GroupedViews) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - storyViews_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews) arg1; - storyId_ = visitor.visitLong(storyId_ != 0L, storyId_, - other.storyId_ != 0L, other.storyId_); - views_ = visitor.visitInt(views_ != 0, views_, - other.views_ != 0, other.views_); - storyViews_= visitor.visitList(storyViews_, other.storyViews_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - storyId_ = input.readUInt64(); - break; - } - case 16: { - - views_ = input.readUInt32(); - break; - } - case 26: { - if (!storyViews_.isModifiable()) { - storyViews_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(storyViews_); - } - storyViews_.add( - input.readMessage(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.StoryView story_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder getStoryViewsBuilder( + int index) { + return getStoryViewsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.StoryView story_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryViewOrBuilder getStoryViewsOrBuilder( + int index) { + if (storyViewsBuilder_ == null) { + return storyViews_.get(index); } else { + return storyViewsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.StoryView story_views = 3; + */ + public java.util.List + getStoryViewsOrBuilderList() { + if (storyViewsBuilder_ != null) { + return storyViewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(storyViews_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.StoryView story_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder addStoryViewsBuilder() { + return getStoryViewsFieldBuilder().addBuilder( + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.getDefaultInstance()); + } + /** + * repeated .proto.StoryView story_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder addStoryViewsBuilder( + int index) { + return getStoryViewsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.getDefaultInstance()); + } + /** + * repeated .proto.StoryView story_views = 3; + */ + public java.util.List + getStoryViewsBuilderList() { + return getStoryViewsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryViewOrBuilder> + getStoryViewsFieldBuilder() { + if (storyViewsBuilder_ == null) { + storyViewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryView.Builder, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryViewOrBuilder>( + storyViews_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + storyViews_ = null; } + return storyViewsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.GroupedViews) + } // @@protoc_insertion_point(class_scope:proto.GroupedViews) private static final net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupedViews(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews(); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedViews parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedViews(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface StoryGetOwnStoryViewsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryGetOwnStoryViewsResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.GroupedViews grouped_views = 3; @@ -1400,82 +2363,160 @@ public interface StoryGetOwnStoryViewsResponseOrBuilder extends * repeated .proto.GroupedViews grouped_views = 3; */ int getGroupedViewsCount(); + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + java.util.List + getGroupedViewsOrBuilderList(); + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViewsOrBuilder getGroupedViewsOrBuilder( + int index); } /** * Protobuf type {@code proto.StoryGetOwnStoryViewsResponse} */ - public static final class StoryGetOwnStoryViewsResponse extends - com.google.protobuf.GeneratedMessageLite< - StoryGetOwnStoryViewsResponse, StoryGetOwnStoryViewsResponse.Builder> implements + public static final class StoryGetOwnStoryViewsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryGetOwnStoryViewsResponse) StoryGetOwnStoryViewsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryGetOwnStoryViewsResponse.newBuilder() to construct. + private StoryGetOwnStoryViewsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryGetOwnStoryViewsResponse() { - groupedViews_ = emptyProtobufList(); + groupedViews_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryGetOwnStoryViewsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryGetOwnStoryViewsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupedViews_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupedViews_.add( + input.readMessage(net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + groupedViews_ = java.util.Collections.unmodifiableList(groupedViews_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViewsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViewsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.Builder.class); } - private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int GROUPED_VIEWS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList groupedViews_; + private java.util.List groupedViews_; /** * repeated .proto.GroupedViews grouped_views = 3; */ + @java.lang.Override public java.util.List getGroupedViewsList() { return groupedViews_; } /** * repeated .proto.GroupedViews grouped_views = 3; */ + @java.lang.Override public java.util.List getGroupedViewsOrBuilderList() { return groupedViews_; @@ -1483,108 +2524,38 @@ public java.util.List ge /** * repeated .proto.GroupedViews grouped_views = 3; */ + @java.lang.Override public int getGroupedViewsCount() { return groupedViews_.size(); } /** * repeated .proto.GroupedViews grouped_views = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews getGroupedViews(int index) { return groupedViews_.get(index); } /** * repeated .proto.GroupedViews grouped_views = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViewsOrBuilder getGroupedViewsOrBuilder( int index) { return groupedViews_.get(index); } - private void ensureGroupedViewsIsMutable() { - if (!groupedViews_.isModifiable()) { - groupedViews_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(groupedViews_); - } - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void setGroupedViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupedViewsIsMutable(); - groupedViews_.set(index, value); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void setGroupedViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder builderForValue) { - ensureGroupedViewsIsMutable(); - groupedViews_.set(index, builderForValue.build()); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void addGroupedViews(net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupedViewsIsMutable(); - groupedViews_.add(value); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void addGroupedViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupedViewsIsMutable(); - groupedViews_.add(index, value); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void addGroupedViews( - net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder builderForValue) { - ensureGroupedViewsIsMutable(); - groupedViews_.add(builderForValue.build()); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void addGroupedViews( - int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder builderForValue) { - ensureGroupedViewsIsMutable(); - groupedViews_.add(index, builderForValue.build()); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void addAllGroupedViews( - java.lang.Iterable values) { - ensureGroupedViewsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, groupedViews_); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void clearGroupedViews() { - groupedViews_ = emptyProtobufList(); - } - /** - * repeated .proto.GroupedViews grouped_views = 3; - */ - private void removeGroupedViews(int index) { - ensureGroupedViewsIsMutable(); - groupedViews_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1593,10 +2564,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < groupedViews_.size(); i++) { output.writeMessage(3, groupedViews_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1608,162 +2581,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, groupedViews_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getGroupedViewsList() + .equals(other.getGroupedViewsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getGroupedViewsCount() > 0) { + hash = (37 * hash) + GROUPED_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getGroupedViewsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryGetOwnStoryViewsResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryGetOwnStoryViewsResponse) net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViewsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViewsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.class, net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGroupedViewsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (groupedViewsBuilder_ == null) { + groupedViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + groupedViewsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.internal_static_proto_StoryGetOwnStoryViewsResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse build() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse buildPartial() { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse result = new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (groupedViewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + groupedViews_ = java.util.Collections.unmodifiableList(groupedViews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.groupedViews_ = groupedViews_; + } else { + result.groupedViews_ = groupedViewsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse) { + return mergeFrom((net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse other) { + if (other == net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (groupedViewsBuilder_ == null) { + if (!other.groupedViews_.isEmpty()) { + if (groupedViews_.isEmpty()) { + groupedViews_ = other.groupedViews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroupedViewsIsMutable(); + groupedViews_.addAll(other.groupedViews_); + } + onChanged(); + } + } else { + if (!other.groupedViews_.isEmpty()) { + if (groupedViewsBuilder_.isEmpty()) { + groupedViewsBuilder_.dispose(); + groupedViewsBuilder_ = null; + groupedViews_ = other.groupedViews_; + bitField0_ = (bitField0_ & ~0x00000001); + groupedViewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupedViewsFieldBuilder() : null; + } else { + groupedViewsBuilder_.addAllMessages(other.groupedViews_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List groupedViews_ = + java.util.Collections.emptyList(); + private void ensureGroupedViewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + groupedViews_ = new java.util.ArrayList(groupedViews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViewsOrBuilder> groupedViewsBuilder_; /** * repeated .proto.GroupedViews grouped_views = 3; */ public java.util.List getGroupedViewsList() { - return java.util.Collections.unmodifiableList( - instance.getGroupedViewsList()); + if (groupedViewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupedViews_); + } else { + return groupedViewsBuilder_.getMessageList(); + } } /** * repeated .proto.GroupedViews grouped_views = 3; */ public int getGroupedViewsCount() { - return instance.getGroupedViewsCount(); - }/** + if (groupedViewsBuilder_ == null) { + return groupedViews_.size(); + } else { + return groupedViewsBuilder_.getCount(); + } + } + /** * repeated .proto.GroupedViews grouped_views = 3; */ public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews getGroupedViews(int index) { - return instance.getGroupedViews(index); + if (groupedViewsBuilder_ == null) { + return groupedViews_.get(index); + } else { + return groupedViewsBuilder_.getMessage(index); + } } /** * repeated .proto.GroupedViews grouped_views = 3; */ public Builder setGroupedViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews value) { - copyOnWrite(); - instance.setGroupedViews(index, value); + if (groupedViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupedViewsIsMutable(); + groupedViews_.set(index, value); + onChanged(); + } else { + groupedViewsBuilder_.setMessage(index, value); + } return this; } /** @@ -1771,16 +3099,29 @@ public Builder setGroupedViews( */ public Builder setGroupedViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder builderForValue) { - copyOnWrite(); - instance.setGroupedViews(index, builderForValue); + if (groupedViewsBuilder_ == null) { + ensureGroupedViewsIsMutable(); + groupedViews_.set(index, builderForValue.build()); + onChanged(); + } else { + groupedViewsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.GroupedViews grouped_views = 3; */ public Builder addGroupedViews(net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews value) { - copyOnWrite(); - instance.addGroupedViews(value); + if (groupedViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupedViewsIsMutable(); + groupedViews_.add(value); + onChanged(); + } else { + groupedViewsBuilder_.addMessage(value); + } return this; } /** @@ -1788,8 +3129,16 @@ public Builder addGroupedViews(net.iGap.proto.ProtoStoryGetOwnStoryViews.Grouped */ public Builder addGroupedViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews value) { - copyOnWrite(); - instance.addGroupedViews(index, value); + if (groupedViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupedViewsIsMutable(); + groupedViews_.add(index, value); + onChanged(); + } else { + groupedViewsBuilder_.addMessage(index, value); + } return this; } /** @@ -1797,8 +3146,13 @@ public Builder addGroupedViews( */ public Builder addGroupedViews( net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder builderForValue) { - copyOnWrite(); - instance.addGroupedViews(builderForValue); + if (groupedViewsBuilder_ == null) { + ensureGroupedViewsIsMutable(); + groupedViews_.add(builderForValue.build()); + onChanged(); + } else { + groupedViewsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1806,8 +3160,13 @@ public Builder addGroupedViews( */ public Builder addGroupedViews( int index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder builderForValue) { - copyOnWrite(); - instance.addGroupedViews(index, builderForValue); + if (groupedViewsBuilder_ == null) { + ensureGroupedViewsIsMutable(); + groupedViews_.add(index, builderForValue.build()); + onChanged(); + } else { + groupedViewsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1815,146 +3174,236 @@ public Builder addGroupedViews( */ public Builder addAllGroupedViews( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllGroupedViews(values); + if (groupedViewsBuilder_ == null) { + ensureGroupedViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupedViews_); + onChanged(); + } else { + groupedViewsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.GroupedViews grouped_views = 3; */ public Builder clearGroupedViews() { - copyOnWrite(); - instance.clearGroupedViews(); + if (groupedViewsBuilder_ == null) { + groupedViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groupedViewsBuilder_.clear(); + } return this; } /** * repeated .proto.GroupedViews grouped_views = 3; */ public Builder removeGroupedViews(int index) { - copyOnWrite(); - instance.removeGroupedViews(index); + if (groupedViewsBuilder_ == null) { + ensureGroupedViewsIsMutable(); + groupedViews_.remove(index); + onChanged(); + } else { + groupedViewsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryGetOwnStoryViewsResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - groupedViews_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse other = (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - groupedViews_= visitor.visitList(groupedViews_, other.groupedViews_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!groupedViews_.isModifiable()) { - groupedViews_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(groupedViews_); - } - groupedViews_.add( - input.readMessage(net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder getGroupedViewsBuilder( + int index) { + return getGroupedViewsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViewsOrBuilder getGroupedViewsOrBuilder( + int index) { + if (groupedViewsBuilder_ == null) { + return groupedViews_.get(index); } else { + return groupedViewsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + public java.util.List + getGroupedViewsOrBuilderList() { + if (groupedViewsBuilder_ != null) { + return groupedViewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupedViews_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder addGroupedViewsBuilder() { + return getGroupedViewsFieldBuilder().addBuilder( + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.getDefaultInstance()); + } + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + public net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder addGroupedViewsBuilder( + int index) { + return getGroupedViewsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.getDefaultInstance()); + } + /** + * repeated .proto.GroupedViews grouped_views = 3; + */ + public java.util.List + getGroupedViewsBuilderList() { + return getGroupedViewsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViewsOrBuilder> + getGroupedViewsFieldBuilder() { + if (groupedViewsBuilder_ == null) { + groupedViewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViews.Builder, net.iGap.proto.ProtoStoryGetOwnStoryViews.GroupedViewsOrBuilder>( + groupedViews_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + groupedViews_ = null; } + return groupedViewsBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.StoryGetOwnStoryViewsResponse) + } // @@protoc_insertion_point(class_scope:proto.StoryGetOwnStoryViewsResponse) private static final net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryGetOwnStoryViewsResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse(); } public static net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryGetOwnStoryViewsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryGetOwnStoryViewsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetOwnStoryViews.StoryGetOwnStoryViewsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryGetOwnStoryViews_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryGetOwnStoryViews_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryView_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryView_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupedViews_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupedViews_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryGetOwnStoryViewsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryGetOwnStoryViewsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\033StoryGetOwnStoryViews.proto\022\005proto\032\rRe" + + "quest.proto\032\016Response.proto\032\014Global.prot" + + "o\"_\n\025StoryGetOwnStoryViews\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022%\n\npagination\030\003 \001(\0132" + + "\021.proto.Pagination\"3\n\tStoryView\022\023\n\007user_" + + "id\030\001 \001(\004B\0020\001\022\021\n\tviewed_at\030\002 \001(\r\"Z\n\014Group" + + "edViews\022\024\n\010story_id\030\001 \001(\004B\0020\001\022\r\n\005views\030\002" + + " \001(\r\022%\n\013story_views\030\003 \003(\0132\020.proto.StoryV" + + "iew\"n\n\035StoryGetOwnStoryViewsResponse\022!\n\010" + + "response\030\001 \001(\0132\017.proto.Response\022*\n\rgroup" + + "ed_views\030\003 \003(\0132\023.proto.GroupedViewsB,\n\016n" + + "et.iGap.protoB\032ProtoStoryGetOwnStoryView" + + "sb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_StoryGetOwnStoryViews_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_StoryGetOwnStoryViews_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryGetOwnStoryViews_descriptor, + new java.lang.String[] { "Request", "Pagination", }); + internal_static_proto_StoryView_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_StoryView_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryView_descriptor, + new java.lang.String[] { "UserId", "ViewedAt", }); + internal_static_proto_GroupedViews_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_proto_GroupedViews_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupedViews_descriptor, + new java.lang.String[] { "StoryId", "Views", "StoryViews", }); + internal_static_proto_StoryGetOwnStoryViewsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_proto_StoryGetOwnStoryViewsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryGetOwnStoryViewsResponse_descriptor, + new java.lang.String[] { "Response", "GroupedViews", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoStoryGetStories.java b/src/main/java/net/iGap/proto/ProtoStoryGetStories.java index e11389c..aab1afb 100644 --- a/src/main/java/net/iGap/proto/ProtoStoryGetStories.java +++ b/src/main/java/net/iGap/proto/ProtoStoryGetStories.java @@ -8,142 +8,213 @@ private ProtoStoryGetStories() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface StoryGetStoriesOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryGetStories) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 2; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.StoryGetStories} */ - public static final class StoryGetStories extends - com.google.protobuf.GeneratedMessageLite< - StoryGetStories, StoryGetStories.Builder> implements + public static final class StoryGetStories extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryGetStories) StoryGetStoriesOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryGetStories.newBuilder() to construct. + private StoryGetStories(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryGetStories() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryGetStories(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryGetStories( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStories_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStories_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetStories.StoryGetStories.class, net.iGap.proto.ProtoStoryGetStories.StoryGetStories.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PAGINATION_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 2; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -152,10 +223,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(2, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -167,331 +240,640 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryGetStories.StoryGetStories)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryGetStories.StoryGetStories other = (net.iGap.proto.ProtoStoryGetStories.StoryGetStories) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryGetStories.StoryGetStories prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryGetStories} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryGetStories.StoryGetStories, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryGetStories) net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStories_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStories_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetStories.StoryGetStories.class, net.iGap.proto.ProtoStoryGetStories.StoryGetStories.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryGetStories.StoryGetStories.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStories_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStories getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryGetStories.StoryGetStories.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStories build() { + net.iGap.proto.ProtoStoryGetStories.StoryGetStories result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStories buildPartial() { + net.iGap.proto.ProtoStoryGetStories.StoryGetStories result = new net.iGap.proto.ProtoStoryGetStories.StoryGetStories(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryGetStories.StoryGetStories) { + return mergeFrom((net.iGap.proto.ProtoStoryGetStories.StoryGetStories)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoStoryGetStories.StoryGetStories other) { + if (other == net.iGap.proto.ProtoStoryGetStories.StoryGetStories.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryGetStories.StoryGetStories parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryGetStories.StoryGetStories) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryGetStories) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryGetStories.StoryGetStories(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryGetStories.StoryGetStories other = (net.iGap.proto.ProtoStoryGetStories.StoryGetStories) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryGetStories.StoryGetStories.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.StoryGetStories) + } // @@protoc_insertion_point(class_scope:proto.StoryGetStories) private static final net.iGap.proto.ProtoStoryGetStories.StoryGetStories DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryGetStories(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryGetStories.StoryGetStories(); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStories getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryGetStories parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryGetStories(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStories getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface GroupedStoriesOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.GroupedStories) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @return The enum numeric value on the wire for originator. */ int getOriginatorValue(); /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @return The originator. */ net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator getOriginator(); /** - * optional uint64 originator_id = 2 [jstype = JS_STRING]; + * uint64 originator_id = 2 [jstype = JS_STRING]; + * @return The originatorId. */ long getOriginatorId(); /** - * optional string originator_name = 3; + * string originator_name = 3; + * @return The originatorName. */ java.lang.String getOriginatorName(); /** - * optional string originator_name = 3; + * string originator_name = 3; + * @return The bytes for originatorName. */ com.google.protobuf.ByteString getOriginatorNameBytes(); /** - * optional bool seen_all_group_stories = 4; + * bool seen_all_group_stories = 4; + * @return The seenAllGroupStories. */ boolean getSeenAllGroupStories(); @@ -508,29 +890,148 @@ public interface GroupedStoriesOrBuilder extends * repeated .proto.Story stories = 5; */ int getStoriesCount(); + /** + * repeated .proto.Story stories = 5; + */ + java.util.List + getStoriesOrBuilderList(); + /** + * repeated .proto.Story stories = 5; + */ + net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoriesOrBuilder( + int index); /** - * optional bool self = 6; + * bool self = 6; + * @return The self. */ boolean getSelf(); } /** * Protobuf type {@code proto.GroupedStories} */ - public static final class GroupedStories extends - com.google.protobuf.GeneratedMessageLite< - GroupedStories, GroupedStories.Builder> implements + public static final class GroupedStories extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.GroupedStories) GroupedStoriesOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupedStories.newBuilder() to construct. + private GroupedStories(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private GroupedStories() { + originator_ = 0; originatorName_ = ""; - stories_ = emptyProtobufList(); + stories_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GroupedStories(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupedStories( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + originator_ = rawValue; + break; + } + case 16: { + + originatorId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + originatorName_ = s; + break; + } + case 32: { + + seenAllGroupStories_ = input.readBool(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stories_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry)); + break; + } + case 48: { + + self_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + stories_ = java.util.Collections.unmodifiableList(stories_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_GroupedStories_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_GroupedStories_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetStories.GroupedStories.class, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder.class); } + /** * Protobuf enum {@code proto.GroupedStories.Originator} */ public enum Originator - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * User = 0; */ @@ -553,10 +1054,16 @@ public enum Originator public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -564,6 +1071,10 @@ public static Originator valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Originator forNumber(int value) { switch (value) { case 0: return User; @@ -584,6 +1095,37 @@ public Originator findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.GroupedStories.getDescriptor().getEnumTypes().get(0); + } + + private static final Originator[] VALUES = values(); + + public static Originator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Originator(int value) { @@ -593,149 +1135,98 @@ private Originator(int value) { // @@protoc_insertion_point(enum_scope:proto.GroupedStories.Originator) } - private int bitField0_; public static final int ORIGINATOR_FIELD_NUMBER = 1; private int originator_; /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @return The enum numeric value on the wire for originator. */ - public int getOriginatorValue() { + @java.lang.Override public int getOriginatorValue() { return originator_; } /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @return The originator. */ - public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator getOriginator() { - net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator result = net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.forNumber(originator_); + @java.lang.Override public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator getOriginator() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator result = net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.valueOf(originator_); return result == null ? net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.UNRECOGNIZED : result; } - /** - * optional .proto.GroupedStories.Originator originator = 1; - */ - private void setOriginatorValue(int value) { - originator_ = value; - } - /** - * optional .proto.GroupedStories.Originator originator = 1; - */ - private void setOriginator(net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator value) { - if (value == null) { - throw new NullPointerException(); - } - - originator_ = value.getNumber(); - } - /** - * optional .proto.GroupedStories.Originator originator = 1; - */ - private void clearOriginator() { - - originator_ = 0; - } public static final int ORIGINATOR_ID_FIELD_NUMBER = 2; private long originatorId_; /** - * optional uint64 originator_id = 2 [jstype = JS_STRING]; + * uint64 originator_id = 2 [jstype = JS_STRING]; + * @return The originatorId. */ + @java.lang.Override public long getOriginatorId() { return originatorId_; } - /** - * optional uint64 originator_id = 2 [jstype = JS_STRING]; - */ - private void setOriginatorId(long value) { - - originatorId_ = value; - } - /** - * optional uint64 originator_id = 2 [jstype = JS_STRING]; - */ - private void clearOriginatorId() { - - originatorId_ = 0L; - } public static final int ORIGINATOR_NAME_FIELD_NUMBER = 3; - private java.lang.String originatorName_; + private volatile java.lang.Object originatorName_; /** - * optional string originator_name = 3; + * string originator_name = 3; + * @return The originatorName. */ + @java.lang.Override public java.lang.String getOriginatorName() { - return originatorName_; + java.lang.Object ref = originatorName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originatorName_ = s; + return s; + } } /** - * optional string originator_name = 3; + * string originator_name = 3; + * @return The bytes for originatorName. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginatorNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(originatorName_); - } - /** - * optional string originator_name = 3; - */ - private void setOriginatorName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - originatorName_ = value; - } - /** - * optional string originator_name = 3; - */ - private void clearOriginatorName() { - - originatorName_ = getDefaultInstance().getOriginatorName(); - } - /** - * optional string originator_name = 3; - */ - private void setOriginatorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - originatorName_ = value.toStringUtf8(); + java.lang.Object ref = originatorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + originatorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SEEN_ALL_GROUP_STORIES_FIELD_NUMBER = 4; private boolean seenAllGroupStories_; /** - * optional bool seen_all_group_stories = 4; + * bool seen_all_group_stories = 4; + * @return The seenAllGroupStories. */ + @java.lang.Override public boolean getSeenAllGroupStories() { return seenAllGroupStories_; } - /** - * optional bool seen_all_group_stories = 4; - */ - private void setSeenAllGroupStories(boolean value) { - - seenAllGroupStories_ = value; - } - /** - * optional bool seen_all_group_stories = 4; - */ - private void clearSeenAllGroupStories() { - - seenAllGroupStories_ = false; - } public static final int STORIES_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.ProtobufList stories_; + private java.util.List stories_; /** * repeated .proto.Story stories = 5; */ + @java.lang.Override public java.util.List getStoriesList() { return stories_; } /** * repeated .proto.Story stories = 5; */ + @java.lang.Override public java.util.List getStoriesOrBuilderList() { return stories_; @@ -743,131 +1234,49 @@ public java.util.List getStoriesList() { /** * repeated .proto.Story stories = 5; */ + @java.lang.Override public int getStoriesCount() { return stories_.size(); } /** * repeated .proto.Story stories = 5; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Story getStories(int index) { return stories_.get(index); } /** * repeated .proto.Story stories = 5; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoriesOrBuilder( int index) { return stories_.get(index); } - private void ensureStoriesIsMutable() { - if (!stories_.isModifiable()) { - stories_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(stories_); - } - } - - /** - * repeated .proto.Story stories = 5; - */ - private void setStories( - int index, net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoriesIsMutable(); - stories_.set(index, value); - } - /** - * repeated .proto.Story stories = 5; - */ - private void setStories( - int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoriesIsMutable(); - stories_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Story stories = 5; - */ - private void addStories(net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoriesIsMutable(); - stories_.add(value); - } - /** - * repeated .proto.Story stories = 5; - */ - private void addStories( - int index, net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoriesIsMutable(); - stories_.add(index, value); - } - /** - * repeated .proto.Story stories = 5; - */ - private void addStories( - net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoriesIsMutable(); - stories_.add(builderForValue.build()); - } - /** - * repeated .proto.Story stories = 5; - */ - private void addStories( - int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoriesIsMutable(); - stories_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Story stories = 5; - */ - private void addAllStories( - java.lang.Iterable values) { - ensureStoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, stories_); - } - /** - * repeated .proto.Story stories = 5; - */ - private void clearStories() { - stories_ = emptyProtobufList(); - } - /** - * repeated .proto.Story stories = 5; - */ - private void removeStories(int index) { - ensureStoriesIsMutable(); - stories_.remove(index); - } public static final int SELF_FIELD_NUMBER = 6; private boolean self_; /** - * optional bool self = 6; + * bool self = 6; + * @return The self. */ + @java.lang.Override public boolean getSelf() { return self_; } - /** - * optional bool self = 6; - */ - private void setSelf(boolean value) { - - self_ = value; - } - /** - * optional bool self = 6; - */ - private void clearSelf() { - - self_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (originator_ != net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.User.getNumber()) { @@ -876,8 +1285,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (originatorId_ != 0L) { output.writeUInt64(2, originatorId_); } - if (!originatorName_.isEmpty()) { - output.writeString(3, getOriginatorName()); + if (!getOriginatorNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, originatorName_); } if (seenAllGroupStories_ != false) { output.writeBool(4, seenAllGroupStories_); @@ -888,10 +1297,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (self_ != false) { output.writeBool(6, self_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -903,9 +1314,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, originatorId_); } - if (!originatorName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getOriginatorName()); + if (!getOriginatorNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, originatorName_); } if (seenAllGroupStories_ != false) { size += com.google.protobuf.CodedOutputStream @@ -919,240 +1329,620 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, self_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryGetStories.GroupedStories)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryGetStories.GroupedStories other = (net.iGap.proto.ProtoStoryGetStories.GroupedStories) obj; + + if (originator_ != other.originator_) return false; + if (getOriginatorId() + != other.getOriginatorId()) return false; + if (!getOriginatorName() + .equals(other.getOriginatorName())) return false; + if (getSeenAllGroupStories() + != other.getSeenAllGroupStories()) return false; + if (!getStoriesList() + .equals(other.getStoriesList())) return false; + if (getSelf() + != other.getSelf()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORIGINATOR_FIELD_NUMBER; + hash = (53 * hash) + originator_; + hash = (37 * hash) + ORIGINATOR_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOriginatorId()); + hash = (37 * hash) + ORIGINATOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOriginatorName().hashCode(); + hash = (37 * hash) + SEEN_ALL_GROUP_STORIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSeenAllGroupStories()); + if (getStoriesCount() > 0) { + hash = (37 * hash) + STORIES_FIELD_NUMBER; + hash = (53 * hash) + getStoriesList().hashCode(); + } + hash = (37 * hash) + SELF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSelf()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryGetStories.GroupedStories prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.GroupedStories} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryGetStories.GroupedStories, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.GroupedStories) net.iGap.proto.ProtoStoryGetStories.GroupedStoriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_GroupedStories_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_GroupedStories_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetStories.GroupedStories.class, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryGetStories.GroupedStories.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStoriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + originator_ = 0; + + originatorId_ = 0L; + + originatorName_ = ""; + + seenAllGroupStories_ = false; + + if (storiesBuilder_ == null) { + stories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + storiesBuilder_.clear(); + } + self_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_GroupedStories_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.GroupedStories getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryGetStories.GroupedStories.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.GroupedStories build() { + net.iGap.proto.ProtoStoryGetStories.GroupedStories result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.GroupedStories buildPartial() { + net.iGap.proto.ProtoStoryGetStories.GroupedStories result = new net.iGap.proto.ProtoStoryGetStories.GroupedStories(this); + int from_bitField0_ = bitField0_; + result.originator_ = originator_; + result.originatorId_ = originatorId_; + result.originatorName_ = originatorName_; + result.seenAllGroupStories_ = seenAllGroupStories_; + if (storiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stories_ = java.util.Collections.unmodifiableList(stories_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stories_ = stories_; + } else { + result.stories_ = storiesBuilder_.build(); + } + result.self_ = self_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryGetStories.GroupedStories) { + return mergeFrom((net.iGap.proto.ProtoStoryGetStories.GroupedStories)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryGetStories.GroupedStories other) { + if (other == net.iGap.proto.ProtoStoryGetStories.GroupedStories.getDefaultInstance()) return this; + if (other.originator_ != 0) { + setOriginatorValue(other.getOriginatorValue()); + } + if (other.getOriginatorId() != 0L) { + setOriginatorId(other.getOriginatorId()); + } + if (!other.getOriginatorName().isEmpty()) { + originatorName_ = other.originatorName_; + onChanged(); + } + if (other.getSeenAllGroupStories() != false) { + setSeenAllGroupStories(other.getSeenAllGroupStories()); + } + if (storiesBuilder_ == null) { + if (!other.stories_.isEmpty()) { + if (stories_.isEmpty()) { + stories_ = other.stories_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStoriesIsMutable(); + stories_.addAll(other.stories_); + } + onChanged(); + } + } else { + if (!other.stories_.isEmpty()) { + if (storiesBuilder_.isEmpty()) { + storiesBuilder_.dispose(); + storiesBuilder_ = null; + stories_ = other.stories_; + bitField0_ = (bitField0_ & ~0x00000001); + storiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStoriesFieldBuilder() : null; + } else { + storiesBuilder_.addAllMessages(other.stories_); + } + } + } + if (other.getSelf() != false) { + setSelf(other.getSelf()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryGetStories.GroupedStories parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryGetStories.GroupedStories) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int originator_ = 0; /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @return The enum numeric value on the wire for originator. */ - public int getOriginatorValue() { - return instance.getOriginatorValue(); + @java.lang.Override public int getOriginatorValue() { + return originator_; } /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @param value The enum numeric value on the wire for originator to set. + * @return This builder for chaining. */ public Builder setOriginatorValue(int value) { - copyOnWrite(); - instance.setOriginatorValue(value); + + originator_ = value; + onChanged(); return this; } /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @return The originator. */ + @java.lang.Override public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator getOriginator() { - return instance.getOriginator(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator result = net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.valueOf(originator_); + return result == null ? net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.UNRECOGNIZED : result; } /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @param value The originator to set. + * @return This builder for chaining. */ public Builder setOriginator(net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator value) { - copyOnWrite(); - instance.setOriginator(value); + if (value == null) { + throw new NullPointerException(); + } + + originator_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.GroupedStories.Originator originator = 1; + * .proto.GroupedStories.Originator originator = 1; + * @return This builder for chaining. */ public Builder clearOriginator() { - copyOnWrite(); - instance.clearOriginator(); + + originator_ = 0; + onChanged(); return this; } + private long originatorId_ ; /** - * optional uint64 originator_id = 2 [jstype = JS_STRING]; + * uint64 originator_id = 2 [jstype = JS_STRING]; + * @return The originatorId. */ + @java.lang.Override public long getOriginatorId() { - return instance.getOriginatorId(); + return originatorId_; } /** - * optional uint64 originator_id = 2 [jstype = JS_STRING]; + * uint64 originator_id = 2 [jstype = JS_STRING]; + * @param value The originatorId to set. + * @return This builder for chaining. */ public Builder setOriginatorId(long value) { - copyOnWrite(); - instance.setOriginatorId(value); + + originatorId_ = value; + onChanged(); return this; } /** - * optional uint64 originator_id = 2 [jstype = JS_STRING]; + * uint64 originator_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearOriginatorId() { - copyOnWrite(); - instance.clearOriginatorId(); + + originatorId_ = 0L; + onChanged(); return this; } + private java.lang.Object originatorName_ = ""; /** - * optional string originator_name = 3; + * string originator_name = 3; + * @return The originatorName. */ public java.lang.String getOriginatorName() { - return instance.getOriginatorName(); + java.lang.Object ref = originatorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originatorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string originator_name = 3; + * string originator_name = 3; + * @return The bytes for originatorName. */ public com.google.protobuf.ByteString getOriginatorNameBytes() { - return instance.getOriginatorNameBytes(); + java.lang.Object ref = originatorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + originatorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string originator_name = 3; + * string originator_name = 3; + * @param value The originatorName to set. + * @return This builder for chaining. */ public Builder setOriginatorName( java.lang.String value) { - copyOnWrite(); - instance.setOriginatorName(value); + if (value == null) { + throw new NullPointerException(); + } + + originatorName_ = value; + onChanged(); return this; } /** - * optional string originator_name = 3; + * string originator_name = 3; + * @return This builder for chaining. */ public Builder clearOriginatorName() { - copyOnWrite(); - instance.clearOriginatorName(); + + originatorName_ = getDefaultInstance().getOriginatorName(); + onChanged(); return this; } /** - * optional string originator_name = 3; + * string originator_name = 3; + * @param value The bytes for originatorName to set. + * @return This builder for chaining. */ public Builder setOriginatorNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setOriginatorNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + originatorName_ = value; + onChanged(); return this; } + private boolean seenAllGroupStories_ ; /** - * optional bool seen_all_group_stories = 4; + * bool seen_all_group_stories = 4; + * @return The seenAllGroupStories. */ + @java.lang.Override public boolean getSeenAllGroupStories() { - return instance.getSeenAllGroupStories(); + return seenAllGroupStories_; } /** - * optional bool seen_all_group_stories = 4; + * bool seen_all_group_stories = 4; + * @param value The seenAllGroupStories to set. + * @return This builder for chaining. */ public Builder setSeenAllGroupStories(boolean value) { - copyOnWrite(); - instance.setSeenAllGroupStories(value); + + seenAllGroupStories_ = value; + onChanged(); return this; } /** - * optional bool seen_all_group_stories = 4; + * bool seen_all_group_stories = 4; + * @return This builder for chaining. */ public Builder clearSeenAllGroupStories() { - copyOnWrite(); - instance.clearSeenAllGroupStories(); + + seenAllGroupStories_ = false; + onChanged(); return this; } + private java.util.List stories_ = + java.util.Collections.emptyList(); + private void ensureStoriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stories_ = new java.util.ArrayList(stories_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> storiesBuilder_; + /** * repeated .proto.Story stories = 5; */ public java.util.List getStoriesList() { - return java.util.Collections.unmodifiableList( - instance.getStoriesList()); + if (storiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stories_); + } else { + return storiesBuilder_.getMessageList(); + } } /** * repeated .proto.Story stories = 5; */ public int getStoriesCount() { - return instance.getStoriesCount(); - }/** + if (storiesBuilder_ == null) { + return stories_.size(); + } else { + return storiesBuilder_.getCount(); + } + } + /** * repeated .proto.Story stories = 5; */ public net.iGap.proto.ProtoGlobal.Story getStories(int index) { - return instance.getStories(index); + if (storiesBuilder_ == null) { + return stories_.get(index); + } else { + return storiesBuilder_.getMessage(index); + } } /** * repeated .proto.Story stories = 5; */ public Builder setStories( int index, net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.setStories(index, value); + if (storiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoriesIsMutable(); + stories_.set(index, value); + onChanged(); + } else { + storiesBuilder_.setMessage(index, value); + } return this; } /** @@ -1160,16 +1950,29 @@ public Builder setStories( */ public Builder setStories( int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.setStories(index, builderForValue); + if (storiesBuilder_ == null) { + ensureStoriesIsMutable(); + stories_.set(index, builderForValue.build()); + onChanged(); + } else { + storiesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Story stories = 5; */ public Builder addStories(net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.addStories(value); + if (storiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoriesIsMutable(); + stories_.add(value); + onChanged(); + } else { + storiesBuilder_.addMessage(value); + } return this; } /** @@ -1177,8 +1980,16 @@ public Builder addStories(net.iGap.proto.ProtoGlobal.Story value) { */ public Builder addStories( int index, net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.addStories(index, value); + if (storiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoriesIsMutable(); + stories_.add(index, value); + onChanged(); + } else { + storiesBuilder_.addMessage(index, value); + } return this; } /** @@ -1186,8 +1997,13 @@ public Builder addStories( */ public Builder addStories( net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.addStories(builderForValue); + if (storiesBuilder_ == null) { + ensureStoriesIsMutable(); + stories_.add(builderForValue.build()); + onChanged(); + } else { + storiesBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1195,8 +2011,13 @@ public Builder addStories( */ public Builder addStories( int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.addStories(index, builderForValue); + if (storiesBuilder_ == null) { + ensureStoriesIsMutable(); + stories_.add(index, builderForValue.build()); + onChanged(); + } else { + storiesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1204,204 +2025,212 @@ public Builder addStories( */ public Builder addAllStories( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllStories(values); + if (storiesBuilder_ == null) { + ensureStoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stories_); + onChanged(); + } else { + storiesBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Story stories = 5; */ public Builder clearStories() { - copyOnWrite(); - instance.clearStories(); + if (storiesBuilder_ == null) { + stories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + storiesBuilder_.clear(); + } return this; } /** * repeated .proto.Story stories = 5; */ public Builder removeStories(int index) { - copyOnWrite(); - instance.removeStories(index); + if (storiesBuilder_ == null) { + ensureStoriesIsMutable(); + stories_.remove(index); + onChanged(); + } else { + storiesBuilder_.remove(index); + } return this; } + /** + * repeated .proto.Story stories = 5; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder getStoriesBuilder( + int index) { + return getStoriesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Story stories = 5; + */ + public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoriesOrBuilder( + int index) { + if (storiesBuilder_ == null) { + return stories_.get(index); } else { + return storiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Story stories = 5; + */ + public java.util.List + getStoriesOrBuilderList() { + if (storiesBuilder_ != null) { + return storiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stories_); + } + } + /** + * repeated .proto.Story stories = 5; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder addStoriesBuilder() { + return getStoriesFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()); + } + /** + * repeated .proto.Story stories = 5; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder addStoriesBuilder( + int index) { + return getStoriesFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()); + } + /** + * repeated .proto.Story stories = 5; + */ + public java.util.List + getStoriesBuilderList() { + return getStoriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> + getStoriesFieldBuilder() { + if (storiesBuilder_ == null) { + storiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder>( + stories_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + stories_ = null; + } + return storiesBuilder_; + } + private boolean self_ ; /** - * optional bool self = 6; + * bool self = 6; + * @return The self. */ + @java.lang.Override public boolean getSelf() { - return instance.getSelf(); + return self_; } /** - * optional bool self = 6; + * bool self = 6; + * @param value The self to set. + * @return This builder for chaining. */ public Builder setSelf(boolean value) { - copyOnWrite(); - instance.setSelf(value); + + self_ = value; + onChanged(); return this; } /** - * optional bool self = 6; + * bool self = 6; + * @return This builder for chaining. */ public Builder clearSelf() { - copyOnWrite(); - instance.clearSelf(); + + self_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.GroupedStories) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryGetStories.GroupedStories(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - stories_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryGetStories.GroupedStories other = (net.iGap.proto.ProtoStoryGetStories.GroupedStories) arg1; - originator_ = visitor.visitInt(originator_ != 0, originator_, other.originator_ != 0, other.originator_); - originatorId_ = visitor.visitLong(originatorId_ != 0L, originatorId_, - other.originatorId_ != 0L, other.originatorId_); - originatorName_ = visitor.visitString(!originatorName_.isEmpty(), originatorName_, - !other.originatorName_.isEmpty(), other.originatorName_); - seenAllGroupStories_ = visitor.visitBoolean(seenAllGroupStories_ != false, seenAllGroupStories_, - other.seenAllGroupStories_ != false, other.seenAllGroupStories_); - stories_= visitor.visitList(stories_, other.stories_); - self_ = visitor.visitBoolean(self_ != false, self_, - other.self_ != false, other.self_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - originator_ = rawValue; - break; - } - case 16: { - - originatorId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - originatorName_ = s; - break; - } - case 32: { - - seenAllGroupStories_ = input.readBool(); - break; - } - case 42: { - if (!stories_.isModifiable()) { - stories_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(stories_); - } - stories_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry)); - break; - } - case 48: { - - self_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryGetStories.GroupedStories.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.GroupedStories) + } + // @@protoc_insertion_point(class_scope:proto.GroupedStories) private static final net.iGap.proto.ProtoStoryGetStories.GroupedStories DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new GroupedStories(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryGetStories.GroupedStories(); } public static net.iGap.proto.ProtoStoryGetStories.GroupedStories getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedStories parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedStories(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.GroupedStories getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface StoryGetStoriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryGetStoriesResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bool seen_all_stories = 2; + * bool seen_all_stories = 2; + * @return The seenAllStories. */ boolean getSeenAllStories(); @@ -1418,105 +2247,176 @@ public interface StoryGetStoriesResponseOrBuilder extends * repeated .proto.GroupedStories grouped_stories = 3; */ int getGroupedStoriesCount(); + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + java.util.List + getGroupedStoriesOrBuilderList(); + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + net.iGap.proto.ProtoStoryGetStories.GroupedStoriesOrBuilder getGroupedStoriesOrBuilder( + int index); } /** * Protobuf type {@code proto.StoryGetStoriesResponse} */ - public static final class StoryGetStoriesResponse extends - com.google.protobuf.GeneratedMessageLite< - StoryGetStoriesResponse, StoryGetStoriesResponse.Builder> implements + public static final class StoryGetStoriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryGetStoriesResponse) StoryGetStoriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryGetStoriesResponse.newBuilder() to construct. + private StoryGetStoriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryGetStoriesResponse() { - groupedStories_ = emptyProtobufList(); + groupedStories_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryGetStoriesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryGetStoriesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + seenAllStories_ = input.readBool(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupedStories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupedStories_.add( + input.readMessage(net.iGap.proto.ProtoStoryGetStories.GroupedStories.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + groupedStories_ = java.util.Collections.unmodifiableList(groupedStories_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStoriesResponse_descriptor; } - private int bitField0_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.class, net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SEEN_ALL_STORIES_FIELD_NUMBER = 2; private boolean seenAllStories_; /** - * optional bool seen_all_stories = 2; + * bool seen_all_stories = 2; + * @return The seenAllStories. */ + @java.lang.Override public boolean getSeenAllStories() { return seenAllStories_; } - /** - * optional bool seen_all_stories = 2; - */ - private void setSeenAllStories(boolean value) { - - seenAllStories_ = value; - } - /** - * optional bool seen_all_stories = 2; - */ - private void clearSeenAllStories() { - - seenAllStories_ = false; - } public static final int GROUPED_STORIES_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList groupedStories_; + private java.util.List groupedStories_; /** * repeated .proto.GroupedStories grouped_stories = 3; */ + @java.lang.Override public java.util.List getGroupedStoriesList() { return groupedStories_; } /** * repeated .proto.GroupedStories grouped_stories = 3; */ + @java.lang.Override public java.util.List getGroupedStoriesOrBuilderList() { return groupedStories_; @@ -1524,108 +2424,38 @@ public java.util.List getGro /** * repeated .proto.GroupedStories grouped_stories = 3; */ + @java.lang.Override public int getGroupedStoriesCount() { return groupedStories_.size(); } /** * repeated .proto.GroupedStories grouped_stories = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryGetStories.GroupedStories getGroupedStories(int index) { return groupedStories_.get(index); } /** * repeated .proto.GroupedStories grouped_stories = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryGetStories.GroupedStoriesOrBuilder getGroupedStoriesOrBuilder( int index) { return groupedStories_.get(index); } - private void ensureGroupedStoriesIsMutable() { - if (!groupedStories_.isModifiable()) { - groupedStories_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(groupedStories_); - } - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void setGroupedStories( - int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupedStoriesIsMutable(); - groupedStories_.set(index, value); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void setGroupedStories( - int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder builderForValue) { - ensureGroupedStoriesIsMutable(); - groupedStories_.set(index, builderForValue.build()); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void addGroupedStories(net.iGap.proto.ProtoStoryGetStories.GroupedStories value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupedStoriesIsMutable(); - groupedStories_.add(value); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void addGroupedStories( - int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupedStoriesIsMutable(); - groupedStories_.add(index, value); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void addGroupedStories( - net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder builderForValue) { - ensureGroupedStoriesIsMutable(); - groupedStories_.add(builderForValue.build()); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void addGroupedStories( - int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder builderForValue) { - ensureGroupedStoriesIsMutable(); - groupedStories_.add(index, builderForValue.build()); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void addAllGroupedStories( - java.lang.Iterable values) { - ensureGroupedStoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, groupedStories_); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void clearGroupedStories() { - groupedStories_ = emptyProtobufList(); - } - /** - * repeated .proto.GroupedStories grouped_stories = 3; - */ - private void removeGroupedStories(int index) { - ensureGroupedStoriesIsMutable(); - groupedStories_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1637,10 +2467,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < groupedStories_.size(); i++) { output.writeMessage(3, groupedStories_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1656,185 +2488,559 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, groupedStories_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse other = (net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getSeenAllStories() + != other.getSeenAllStories()) return false; + if (!getGroupedStoriesList() + .equals(other.getGroupedStoriesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + SEEN_ALL_STORIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSeenAllStories()); + if (getGroupedStoriesCount() > 0) { + hash = (37 * hash) + GROUPED_STORIES_FIELD_NUMBER; + hash = (53 * hash) + getGroupedStoriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryGetStoriesResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryGetStoriesResponse) net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.class, net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGroupedStoriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + seenAllStories_ = false; + + if (groupedStoriesBuilder_ == null) { + groupedStories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + groupedStoriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryGetStories.internal_static_proto_StoryGetStoriesResponse_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse build() { + net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse buildPartial() { + net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse result = new net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.seenAllStories_ = seenAllStories_; + if (groupedStoriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + groupedStories_ = java.util.Collections.unmodifiableList(groupedStories_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.groupedStories_ = groupedStories_; + } else { + result.groupedStories_ = groupedStoriesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse) { + return mergeFrom((net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse other) { + if (other == net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getSeenAllStories() != false) { + setSeenAllStories(other.getSeenAllStories()); + } + if (groupedStoriesBuilder_ == null) { + if (!other.groupedStories_.isEmpty()) { + if (groupedStories_.isEmpty()) { + groupedStories_ = other.groupedStories_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroupedStoriesIsMutable(); + groupedStories_.addAll(other.groupedStories_); + } + onChanged(); + } + } else { + if (!other.groupedStories_.isEmpty()) { + if (groupedStoriesBuilder_.isEmpty()) { + groupedStoriesBuilder_.dispose(); + groupedStoriesBuilder_ = null; + groupedStories_ = other.groupedStories_; + bitField0_ = (bitField0_ & ~0x00000001); + groupedStoriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupedStoriesFieldBuilder() : null; + } else { + groupedStoriesBuilder_.addAllMessages(other.groupedStories_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private boolean seenAllStories_ ; /** - * optional bool seen_all_stories = 2; + * bool seen_all_stories = 2; + * @return The seenAllStories. */ + @java.lang.Override public boolean getSeenAllStories() { - return instance.getSeenAllStories(); + return seenAllStories_; } /** - * optional bool seen_all_stories = 2; + * bool seen_all_stories = 2; + * @param value The seenAllStories to set. + * @return This builder for chaining. */ public Builder setSeenAllStories(boolean value) { - copyOnWrite(); - instance.setSeenAllStories(value); + + seenAllStories_ = value; + onChanged(); return this; } /** - * optional bool seen_all_stories = 2; + * bool seen_all_stories = 2; + * @return This builder for chaining. */ public Builder clearSeenAllStories() { - copyOnWrite(); - instance.clearSeenAllStories(); + + seenAllStories_ = false; + onChanged(); return this; } + private java.util.List groupedStories_ = + java.util.Collections.emptyList(); + private void ensureGroupedStoriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + groupedStories_ = new java.util.ArrayList(groupedStories_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetStories.GroupedStories, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder, net.iGap.proto.ProtoStoryGetStories.GroupedStoriesOrBuilder> groupedStoriesBuilder_; + /** * repeated .proto.GroupedStories grouped_stories = 3; */ public java.util.List getGroupedStoriesList() { - return java.util.Collections.unmodifiableList( - instance.getGroupedStoriesList()); + if (groupedStoriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupedStories_); + } else { + return groupedStoriesBuilder_.getMessageList(); + } } /** * repeated .proto.GroupedStories grouped_stories = 3; */ public int getGroupedStoriesCount() { - return instance.getGroupedStoriesCount(); - }/** + if (groupedStoriesBuilder_ == null) { + return groupedStories_.size(); + } else { + return groupedStoriesBuilder_.getCount(); + } + } + /** * repeated .proto.GroupedStories grouped_stories = 3; */ public net.iGap.proto.ProtoStoryGetStories.GroupedStories getGroupedStories(int index) { - return instance.getGroupedStories(index); + if (groupedStoriesBuilder_ == null) { + return groupedStories_.get(index); + } else { + return groupedStoriesBuilder_.getMessage(index); + } } /** * repeated .proto.GroupedStories grouped_stories = 3; */ public Builder setGroupedStories( int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories value) { - copyOnWrite(); - instance.setGroupedStories(index, value); + if (groupedStoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupedStoriesIsMutable(); + groupedStories_.set(index, value); + onChanged(); + } else { + groupedStoriesBuilder_.setMessage(index, value); + } return this; } /** @@ -1842,16 +3048,29 @@ public Builder setGroupedStories( */ public Builder setGroupedStories( int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder builderForValue) { - copyOnWrite(); - instance.setGroupedStories(index, builderForValue); + if (groupedStoriesBuilder_ == null) { + ensureGroupedStoriesIsMutable(); + groupedStories_.set(index, builderForValue.build()); + onChanged(); + } else { + groupedStoriesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.GroupedStories grouped_stories = 3; */ public Builder addGroupedStories(net.iGap.proto.ProtoStoryGetStories.GroupedStories value) { - copyOnWrite(); - instance.addGroupedStories(value); + if (groupedStoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupedStoriesIsMutable(); + groupedStories_.add(value); + onChanged(); + } else { + groupedStoriesBuilder_.addMessage(value); + } return this; } /** @@ -1859,8 +3078,16 @@ public Builder addGroupedStories(net.iGap.proto.ProtoStoryGetStories.GroupedStor */ public Builder addGroupedStories( int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories value) { - copyOnWrite(); - instance.addGroupedStories(index, value); + if (groupedStoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupedStoriesIsMutable(); + groupedStories_.add(index, value); + onChanged(); + } else { + groupedStoriesBuilder_.addMessage(index, value); + } return this; } /** @@ -1868,8 +3095,13 @@ public Builder addGroupedStories( */ public Builder addGroupedStories( net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder builderForValue) { - copyOnWrite(); - instance.addGroupedStories(builderForValue); + if (groupedStoriesBuilder_ == null) { + ensureGroupedStoriesIsMutable(); + groupedStories_.add(builderForValue.build()); + onChanged(); + } else { + groupedStoriesBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1877,8 +3109,13 @@ public Builder addGroupedStories( */ public Builder addGroupedStories( int index, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder builderForValue) { - copyOnWrite(); - instance.addGroupedStories(index, builderForValue); + if (groupedStoriesBuilder_ == null) { + ensureGroupedStoriesIsMutable(); + groupedStories_.add(index, builderForValue.build()); + onChanged(); + } else { + groupedStoriesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1886,153 +3123,227 @@ public Builder addGroupedStories( */ public Builder addAllGroupedStories( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllGroupedStories(values); + if (groupedStoriesBuilder_ == null) { + ensureGroupedStoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupedStories_); + onChanged(); + } else { + groupedStoriesBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.GroupedStories grouped_stories = 3; */ public Builder clearGroupedStories() { - copyOnWrite(); - instance.clearGroupedStories(); + if (groupedStoriesBuilder_ == null) { + groupedStories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groupedStoriesBuilder_.clear(); + } return this; } /** * repeated .proto.GroupedStories grouped_stories = 3; */ public Builder removeGroupedStories(int index) { - copyOnWrite(); - instance.removeGroupedStories(index); + if (groupedStoriesBuilder_ == null) { + ensureGroupedStoriesIsMutable(); + groupedStories_.remove(index); + onChanged(); + } else { + groupedStoriesBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryGetStoriesResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - groupedStories_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse other = (net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - seenAllStories_ = visitor.visitBoolean(seenAllStories_ != false, seenAllStories_, - other.seenAllStories_ != false, other.seenAllStories_); - groupedStories_= visitor.visitList(groupedStories_, other.groupedStories_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - seenAllStories_ = input.readBool(); - break; - } - case 26: { - if (!groupedStories_.isModifiable()) { - groupedStories_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(groupedStories_); - } - groupedStories_.add( - input.readMessage(net.iGap.proto.ProtoStoryGetStories.GroupedStories.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder getGroupedStoriesBuilder( + int index) { + return getGroupedStoriesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + public net.iGap.proto.ProtoStoryGetStories.GroupedStoriesOrBuilder getGroupedStoriesOrBuilder( + int index) { + if (groupedStoriesBuilder_ == null) { + return groupedStories_.get(index); } else { + return groupedStoriesBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + public java.util.List + getGroupedStoriesOrBuilderList() { + if (groupedStoriesBuilder_ != null) { + return groupedStoriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupedStories_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder addGroupedStoriesBuilder() { + return getGroupedStoriesFieldBuilder().addBuilder( + net.iGap.proto.ProtoStoryGetStories.GroupedStories.getDefaultInstance()); + } + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder addGroupedStoriesBuilder( + int index) { + return getGroupedStoriesFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoStoryGetStories.GroupedStories.getDefaultInstance()); + } + /** + * repeated .proto.GroupedStories grouped_stories = 3; + */ + public java.util.List + getGroupedStoriesBuilderList() { + return getGroupedStoriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetStories.GroupedStories, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder, net.iGap.proto.ProtoStoryGetStories.GroupedStoriesOrBuilder> + getGroupedStoriesFieldBuilder() { + if (groupedStoriesBuilder_ == null) { + groupedStoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryGetStories.GroupedStories, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder, net.iGap.proto.ProtoStoryGetStories.GroupedStoriesOrBuilder>( + groupedStories_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + groupedStories_ = null; } + return groupedStoriesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryGetStoriesResponse) + } + // @@protoc_insertion_point(class_scope:proto.StoryGetStoriesResponse) private static final net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryGetStoriesResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse(); } public static net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryGetStoriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryGetStoriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryGetStories_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryGetStories_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_GroupedStories_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_GroupedStories_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryGetStoriesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryGetStoriesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025StoryGetStories.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"Y\n\017S" + + "toryGetStories\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022%\n\npagination\030\002 \001(\0132\021.proto.Pagi" + + "nation\"\351\001\n\016GroupedStories\0224\n\noriginator\030" + + "\001 \001(\0162 .proto.GroupedStories.Originator\022" + + "\031\n\roriginator_id\030\002 \001(\004B\0020\001\022\027\n\017originator" + + "_name\030\003 \001(\t\022\036\n\026seen_all_group_stories\030\004 " + + "\001(\010\022\035\n\007stories\030\005 \003(\0132\014.proto.Story\022\014\n\004se" + + "lf\030\006 \001(\010\" \n\nOriginator\022\010\n\004User\020\000\022\010\n\004Room" + + "\020\001\"\206\001\n\027StoryGetStoriesResponse\022!\n\010respon" + + "se\030\001 \001(\0132\017.proto.Response\022\030\n\020seen_all_st" + + "ories\030\002 \001(\010\022.\n\017grouped_stories\030\003 \003(\0132\025.p" + + "roto.GroupedStoriesB&\n\016net.iGap.protoB\024P" + + "rotoStoryGetStoriesb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_StoryGetStories_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_StoryGetStories_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryGetStories_descriptor, + new java.lang.String[] { "Request", "Pagination", }); + internal_static_proto_GroupedStories_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_GroupedStories_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_GroupedStories_descriptor, + new java.lang.String[] { "Originator", "OriginatorId", "OriginatorName", "SeenAllGroupStories", "Stories", "Self", }); + internal_static_proto_StoryGetStoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_proto_StoryGetStoriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryGetStoriesResponse_descriptor, + new java.lang.String[] { "Response", "SeenAllStories", "GroupedStories", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoStoryRoomAddNew.java b/src/main/java/net/iGap/proto/ProtoStoryRoomAddNew.java index 0870749..d467d8b 100644 --- a/src/main/java/net/iGap/proto/ProtoStoryRoomAddNew.java +++ b/src/main/java/net/iGap/proto/ProtoStoryRoomAddNew.java @@ -8,21 +8,34 @@ private ProtoStoryRoomAddNew() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface StoryRoomAddNewOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryRoomAddNew) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 room_id = 2 [jstype = JS_STRING]; + * uint64 room_id = 2 [jstype = JS_STRING]; + * @return The roomId. */ long getRoomId(); @@ -39,105 +52,176 @@ public interface StoryRoomAddNewOrBuilder extends * repeated .proto.StoryAddRequest token_batch = 3; */ int getTokenBatchCount(); + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + java.util.List + getTokenBatchOrBuilderList(); + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder getTokenBatchOrBuilder( + int index); } /** * Protobuf type {@code proto.StoryRoomAddNew} */ - public static final class StoryRoomAddNew extends - com.google.protobuf.GeneratedMessageLite< - StoryRoomAddNew, StoryRoomAddNew.Builder> implements + public static final class StoryRoomAddNew extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryRoomAddNew) StoryRoomAddNewOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryRoomAddNew.newBuilder() to construct. + private StoryRoomAddNew(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryRoomAddNew() { - tokenBatch_ = emptyProtobufList(); + tokenBatch_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryRoomAddNew(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryRoomAddNew( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tokenBatch_.add( + input.readMessage(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = java.util.Collections.unmodifiableList(tokenBatch_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNew_descriptor; } - private int bitField0_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNew_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.class, net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2 [jstype = JS_STRING]; + * uint64 room_id = 2 [jstype = JS_STRING]; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2 [jstype = JS_STRING]; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2 [jstype = JS_STRING]; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int TOKEN_BATCH_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList tokenBatch_; + private java.util.List tokenBatch_; /** * repeated .proto.StoryAddRequest token_batch = 3; */ + @java.lang.Override public java.util.List getTokenBatchList() { return tokenBatch_; } /** * repeated .proto.StoryAddRequest token_batch = 3; */ + @java.lang.Override public java.util.List getTokenBatchOrBuilderList() { return tokenBatch_; @@ -145,108 +229,38 @@ public java.util.List getTo /** * repeated .proto.StoryAddRequest token_batch = 3; */ + @java.lang.Override public int getTokenBatchCount() { return tokenBatch_.size(); } /** * repeated .proto.StoryAddRequest token_batch = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest getTokenBatch(int index) { return tokenBatch_.get(index); } /** * repeated .proto.StoryAddRequest token_batch = 3; */ + @java.lang.Override public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder getTokenBatchOrBuilder( int index) { return tokenBatch_.get(index); } - private void ensureTokenBatchIsMutable() { - if (!tokenBatch_.isModifiable()) { - tokenBatch_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tokenBatch_); - } - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void setTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenBatchIsMutable(); - tokenBatch_.set(index, value); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void setTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - ensureTokenBatchIsMutable(); - tokenBatch_.set(index, builderForValue.build()); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void addTokenBatch(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenBatchIsMutable(); - tokenBatch_.add(value); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void addTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenBatchIsMutable(); - tokenBatch_.add(index, value); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void addTokenBatch( - net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - ensureTokenBatchIsMutable(); - tokenBatch_.add(builderForValue.build()); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void addTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - ensureTokenBatchIsMutable(); - tokenBatch_.add(index, builderForValue.build()); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void addAllTokenBatch( - java.lang.Iterable values) { - ensureTokenBatchIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, tokenBatch_); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void clearTokenBatch() { - tokenBatch_ = emptyProtobufList(); - } - /** - * repeated .proto.StoryAddRequest token_batch = 3; - */ - private void removeTokenBatch(int index) { - ensureTokenBatchIsMutable(); - tokenBatch_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -258,10 +272,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tokenBatch_.size(); i++) { output.writeMessage(3, tokenBatch_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -277,185 +293,559 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tokenBatch_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew other = (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getRoomId() + != other.getRoomId()) return false; + if (!getTokenBatchList() + .equals(other.getTokenBatchList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (getTokenBatchCount() > 0) { + hash = (37 * hash) + TOKEN_BATCH_FIELD_NUMBER; + hash = (53 * hash) + getTokenBatchList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryRoomAddNew} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryRoomAddNew) net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNew_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNew_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.class, net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTokenBatchFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + if (tokenBatchBuilder_ == null) { + tokenBatch_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tokenBatchBuilder_.clear(); + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNew_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew build() { + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew buildPartial() { + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew result = new net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + if (tokenBatchBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = java.util.Collections.unmodifiableList(tokenBatch_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tokenBatch_ = tokenBatch_; + } else { + result.tokenBatch_ = tokenBatchBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew) { + return mergeFrom((net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew other) { + if (other == net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (tokenBatchBuilder_ == null) { + if (!other.tokenBatch_.isEmpty()) { + if (tokenBatch_.isEmpty()) { + tokenBatch_ = other.tokenBatch_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTokenBatchIsMutable(); + tokenBatch_.addAll(other.tokenBatch_); + } + onChanged(); + } + } else { + if (!other.tokenBatch_.isEmpty()) { + if (tokenBatchBuilder_.isEmpty()) { + tokenBatchBuilder_.dispose(); + tokenBatchBuilder_ = null; + tokenBatch_ = other.tokenBatch_; + bitField0_ = (bitField0_ & ~0x00000001); + tokenBatchBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTokenBatchFieldBuilder() : null; + } else { + tokenBatchBuilder_.addAllMessages(other.tokenBatch_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long roomId_ ; /** - * optional uint64 room_id = 2 [jstype = JS_STRING]; + * uint64 room_id = 2 [jstype = JS_STRING]; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2 [jstype = JS_STRING]; + * uint64 room_id = 2 [jstype = JS_STRING]; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2 [jstype = JS_STRING]; + * uint64 room_id = 2 [jstype = JS_STRING]; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.util.List tokenBatch_ = + java.util.Collections.emptyList(); + private void ensureTokenBatchIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = new java.util.ArrayList(tokenBatch_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder> tokenBatchBuilder_; + /** * repeated .proto.StoryAddRequest token_batch = 3; */ public java.util.List getTokenBatchList() { - return java.util.Collections.unmodifiableList( - instance.getTokenBatchList()); + if (tokenBatchBuilder_ == null) { + return java.util.Collections.unmodifiableList(tokenBatch_); + } else { + return tokenBatchBuilder_.getMessageList(); + } } /** * repeated .proto.StoryAddRequest token_batch = 3; */ public int getTokenBatchCount() { - return instance.getTokenBatchCount(); - }/** + if (tokenBatchBuilder_ == null) { + return tokenBatch_.size(); + } else { + return tokenBatchBuilder_.getCount(); + } + } + /** * repeated .proto.StoryAddRequest token_batch = 3; */ public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest getTokenBatch(int index) { - return instance.getTokenBatch(index); + if (tokenBatchBuilder_ == null) { + return tokenBatch_.get(index); + } else { + return tokenBatchBuilder_.getMessage(index); + } } /** * repeated .proto.StoryAddRequest token_batch = 3; */ public Builder setTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - copyOnWrite(); - instance.setTokenBatch(index, value); + if (tokenBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenBatchIsMutable(); + tokenBatch_.set(index, value); + onChanged(); + } else { + tokenBatchBuilder_.setMessage(index, value); + } return this; } /** @@ -463,16 +853,29 @@ public Builder setTokenBatch( */ public Builder setTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - copyOnWrite(); - instance.setTokenBatch(index, builderForValue); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.set(index, builderForValue.build()); + onChanged(); + } else { + tokenBatchBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.StoryAddRequest token_batch = 3; */ public Builder addTokenBatch(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - copyOnWrite(); - instance.addTokenBatch(value); + if (tokenBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenBatchIsMutable(); + tokenBatch_.add(value); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(value); + } return this; } /** @@ -480,8 +883,16 @@ public Builder addTokenBatch(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest */ public Builder addTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - copyOnWrite(); - instance.addTokenBatch(index, value); + if (tokenBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenBatchIsMutable(); + tokenBatch_.add(index, value); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(index, value); + } return this; } /** @@ -489,8 +900,13 @@ public Builder addTokenBatch( */ public Builder addTokenBatch( net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - copyOnWrite(); - instance.addTokenBatch(builderForValue); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.add(builderForValue.build()); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -498,8 +914,13 @@ public Builder addTokenBatch( */ public Builder addTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - copyOnWrite(); - instance.addTokenBatch(index, builderForValue); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.add(index, builderForValue.build()); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -507,163 +928,177 @@ public Builder addTokenBatch( */ public Builder addAllTokenBatch( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllTokenBatch(values); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokenBatch_); + onChanged(); + } else { + tokenBatchBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.StoryAddRequest token_batch = 3; */ public Builder clearTokenBatch() { - copyOnWrite(); - instance.clearTokenBatch(); + if (tokenBatchBuilder_ == null) { + tokenBatch_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tokenBatchBuilder_.clear(); + } return this; } /** * repeated .proto.StoryAddRequest token_batch = 3; */ public Builder removeTokenBatch(int index) { - copyOnWrite(); - instance.removeTokenBatch(index); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.remove(index); + onChanged(); + } else { + tokenBatchBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryRoomAddNew) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - tokenBatch_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew other = (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew) arg1; - request_ = visitor.visitMessage(request_, other.request_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - tokenBatch_= visitor.visitList(tokenBatch_, other.tokenBatch_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - if (!tokenBatch_.isModifiable()) { - tokenBatch_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tokenBatch_); - } - tokenBatch_.add( - input.readMessage(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder getTokenBatchBuilder( + int index) { + return getTokenBatchFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder getTokenBatchOrBuilder( + int index) { + if (tokenBatchBuilder_ == null) { + return tokenBatch_.get(index); } else { + return tokenBatchBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + public java.util.List + getTokenBatchOrBuilderList() { + if (tokenBatchBuilder_ != null) { + return tokenBatchBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tokenBatch_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder addTokenBatchBuilder() { + return getTokenBatchFieldBuilder().addBuilder( + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.getDefaultInstance()); + } + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder addTokenBatchBuilder( + int index) { + return getTokenBatchFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.getDefaultInstance()); + } + /** + * repeated .proto.StoryAddRequest token_batch = 3; + */ + public java.util.List + getTokenBatchBuilderList() { + return getTokenBatchFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder> + getTokenBatchFieldBuilder() { + if (tokenBatchBuilder_ == null) { + tokenBatchBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder>( + tokenBatch_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tokenBatch_ = null; } + return tokenBatchBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryRoomAddNew) + } + // @@protoc_insertion_point(class_scope:proto.StoryRoomAddNew) private static final net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryRoomAddNew(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew(); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryRoomAddNew parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryRoomAddNew(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNew getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface StoryRoomAddNewResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryRoomAddNewResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Story story = 2; @@ -678,82 +1113,160 @@ public interface StoryRoomAddNewResponseOrBuilder extends * repeated .proto.Story story = 2; */ int getStoryCount(); + /** + * repeated .proto.Story story = 2; + */ + java.util.List + getStoryOrBuilderList(); + /** + * repeated .proto.Story story = 2; + */ + net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder( + int index); } /** * Protobuf type {@code proto.StoryRoomAddNewResponse} */ - public static final class StoryRoomAddNewResponse extends - com.google.protobuf.GeneratedMessageLite< - StoryRoomAddNewResponse, StoryRoomAddNewResponse.Builder> implements + public static final class StoryRoomAddNewResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryRoomAddNewResponse) StoryRoomAddNewResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryRoomAddNewResponse.newBuilder() to construct. + private StoryRoomAddNewResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryRoomAddNewResponse() { - story_ = emptyProtobufList(); + story_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryRoomAddNewResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryRoomAddNewResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + story_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + story_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + story_ = java.util.Collections.unmodifiableList(story_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - private int bitField0_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.class, net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STORY_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList story_; + private java.util.List story_; /** * repeated .proto.Story story = 2; */ + @java.lang.Override public java.util.List getStoryList() { return story_; } /** * repeated .proto.Story story = 2; */ + @java.lang.Override public java.util.List getStoryOrBuilderList() { return story_; @@ -761,108 +1274,38 @@ public java.util.List getStoryList() { /** * repeated .proto.Story story = 2; */ + @java.lang.Override public int getStoryCount() { return story_.size(); } /** * repeated .proto.Story story = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Story getStory(int index) { return story_.get(index); } /** * repeated .proto.Story story = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder( int index) { return story_.get(index); } - private void ensureStoryIsMutable() { - if (!story_.isModifiable()) { - story_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(story_); - } - } - /** - * repeated .proto.Story story = 2; - */ - private void setStory( - int index, net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryIsMutable(); - story_.set(index, value); - } - /** - * repeated .proto.Story story = 2; - */ - private void setStory( - int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoryIsMutable(); - story_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory(net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryIsMutable(); - story_.add(value); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory( - int index, net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryIsMutable(); - story_.add(index, value); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory( - net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoryIsMutable(); - story_.add(builderForValue.build()); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory( - int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoryIsMutable(); - story_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Story story = 2; - */ - private void addAllStory( - java.lang.Iterable values) { - ensureStoryIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, story_); - } - /** - * repeated .proto.Story story = 2; - */ - private void clearStory() { - story_ = emptyProtobufList(); - } - /** - * repeated .proto.Story story = 2; - */ - private void removeStory(int index) { - ensureStoryIsMutable(); - story_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -871,10 +1314,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < story_.size(); i++) { output.writeMessage(2, story_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -886,162 +1331,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, story_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse other = (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getStoryList() + .equals(other.getStoryList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getStoryCount() > 0) { + hash = (37 * hash) + STORY_FIELD_NUMBER; + hash = (53 * hash) + getStoryList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryRoomAddNewResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryRoomAddNewResponse) net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.class, net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStoryFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (storyBuilder_ == null) { + story_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + storyBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryRoomAddNew.internal_static_proto_StoryRoomAddNewResponse_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse build() { + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse buildPartial() { + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse result = new net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (storyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + story_ = java.util.Collections.unmodifiableList(story_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.story_ = story_; + } else { + result.story_ = storyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse) { + return mergeFrom((net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse other) { + if (other == net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (storyBuilder_ == null) { + if (!other.story_.isEmpty()) { + if (story_.isEmpty()) { + story_ = other.story_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStoryIsMutable(); + story_.addAll(other.story_); + } + onChanged(); + } + } else { + if (!other.story_.isEmpty()) { + if (storyBuilder_.isEmpty()) { + storyBuilder_.dispose(); + storyBuilder_ = null; + story_ = other.story_; + bitField0_ = (bitField0_ & ~0x00000001); + storyBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStoryFieldBuilder() : null; + } else { + storyBuilder_.addAllMessages(other.story_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List story_ = + java.util.Collections.emptyList(); + private void ensureStoryIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + story_ = new java.util.ArrayList(story_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> storyBuilder_; /** * repeated .proto.Story story = 2; */ public java.util.List getStoryList() { - return java.util.Collections.unmodifiableList( - instance.getStoryList()); + if (storyBuilder_ == null) { + return java.util.Collections.unmodifiableList(story_); + } else { + return storyBuilder_.getMessageList(); + } } /** * repeated .proto.Story story = 2; */ public int getStoryCount() { - return instance.getStoryCount(); - }/** + if (storyBuilder_ == null) { + return story_.size(); + } else { + return storyBuilder_.getCount(); + } + } + /** * repeated .proto.Story story = 2; */ public net.iGap.proto.ProtoGlobal.Story getStory(int index) { - return instance.getStory(index); + if (storyBuilder_ == null) { + return story_.get(index); + } else { + return storyBuilder_.getMessage(index); + } } /** * repeated .proto.Story story = 2; */ public Builder setStory( int index, net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.setStory(index, value); + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryIsMutable(); + story_.set(index, value); + onChanged(); + } else { + storyBuilder_.setMessage(index, value); + } return this; } /** @@ -1049,16 +1849,29 @@ public Builder setStory( */ public Builder setStory( int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.setStory(index, builderForValue); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.set(index, builderForValue.build()); + onChanged(); + } else { + storyBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Story story = 2; */ public Builder addStory(net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.addStory(value); + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryIsMutable(); + story_.add(value); + onChanged(); + } else { + storyBuilder_.addMessage(value); + } return this; } /** @@ -1066,8 +1879,16 @@ public Builder addStory(net.iGap.proto.ProtoGlobal.Story value) { */ public Builder addStory( int index, net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.addStory(index, value); + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryIsMutable(); + story_.add(index, value); + onChanged(); + } else { + storyBuilder_.addMessage(index, value); + } return this; } /** @@ -1075,8 +1896,13 @@ public Builder addStory( */ public Builder addStory( net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.addStory(builderForValue); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.add(builderForValue.build()); + onChanged(); + } else { + storyBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1084,8 +1910,13 @@ public Builder addStory( */ public Builder addStory( int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.addStory(index, builderForValue); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.add(index, builderForValue.build()); + onChanged(); + } else { + storyBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1093,146 +1924,212 @@ public Builder addStory( */ public Builder addAllStory( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllStory(values); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, story_); + onChanged(); + } else { + storyBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Story story = 2; */ public Builder clearStory() { - copyOnWrite(); - instance.clearStory(); + if (storyBuilder_ == null) { + story_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + storyBuilder_.clear(); + } return this; } /** * repeated .proto.Story story = 2; */ public Builder removeStory(int index) { - copyOnWrite(); - instance.removeStory(index); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.remove(index); + onChanged(); + } else { + storyBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryRoomAddNewResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - story_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse other = (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - story_= visitor.visitList(story_, other.story_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!story_.isModifiable()) { - story_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(story_); - } - story_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder getStoryBuilder( + int index) { + return getStoryFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder( + int index) { + if (storyBuilder_ == null) { + return story_.get(index); } else { + return storyBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Story story = 2; + */ + public java.util.List + getStoryOrBuilderList() { + if (storyBuilder_ != null) { + return storyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(story_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder addStoryBuilder() { + return getStoryFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()); + } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder addStoryBuilder( + int index) { + return getStoryFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()); + } + /** + * repeated .proto.Story story = 2; + */ + public java.util.List + getStoryBuilderList() { + return getStoryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> + getStoryFieldBuilder() { + if (storyBuilder_ == null) { + storyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder>( + story_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + story_ = null; } + return storyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryRoomAddNewResponse) + } + // @@protoc_insertion_point(class_scope:proto.StoryRoomAddNewResponse) private static final net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryRoomAddNewResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse(); } public static net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryRoomAddNewResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryRoomAddNewResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryRoomAddNew.StoryRoomAddNewResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryRoomAddNew_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryRoomAddNew_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryRoomAddNewResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryRoomAddNewResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025StoryRoomAddNew.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\032\025Sto" + + "ryUserAddNew.proto\"t\n\017StoryRoomAddNew\022\037\n" + + "\007request\030\001 \001(\0132\016.proto.Request\022\023\n\007room_i" + + "d\030\002 \001(\004B\0020\001\022+\n\013token_batch\030\003 \003(\0132\026.proto" + + ".StoryAddRequest\"Y\n\027StoryRoomAddNewRespo" + + "nse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\033" + + "\n\005story\030\002 \003(\0132\014.proto.StoryB&\n\016net.iGap." + + "protoB\024ProtoStoryRoomAddNewb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + net.iGap.proto.ProtoStoryUserAddNew.getDescriptor(), + }); + internal_static_proto_StoryRoomAddNew_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_StoryRoomAddNew_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryRoomAddNew_descriptor, + new java.lang.String[] { "Request", "RoomId", "TokenBatch", }); + internal_static_proto_StoryRoomAddNewResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_StoryRoomAddNewResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryRoomAddNewResponse_descriptor, + new java.lang.String[] { "Response", "Story", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); + net.iGap.proto.ProtoStoryUserAddNew.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoStoryUserAddNew.java b/src/main/java/net/iGap/proto/ProtoStoryUserAddNew.java index 72b9626..f7e637f 100644 --- a/src/main/java/net/iGap/proto/ProtoStoryUserAddNew.java +++ b/src/main/java/net/iGap/proto/ProtoStoryUserAddNew.java @@ -8,26 +8,36 @@ private ProtoStoryUserAddNew() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface StoryAddRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryAddRequest) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string token = 1; + * string token = 1; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 1; + * string token = 1; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional string caption = 2; + * string caption = 2; + * @return The caption. */ java.lang.String getCaption(); /** - * optional string caption = 2; + * string caption = 2; + * @return The bytes for caption. */ com.google.protobuf.ByteString getCaptionBytes(); @@ -35,415 +45,711 @@ public interface StoryAddRequestOrBuilder extends /** * Protobuf type {@code proto.StoryAddRequest} */ - public static final class StoryAddRequest extends - com.google.protobuf.GeneratedMessageLite< - StoryAddRequest, StoryAddRequest.Builder> implements + public static final class StoryAddRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryAddRequest) StoryAddRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryAddRequest.newBuilder() to construct. + private StoryAddRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryAddRequest() { token_ = ""; caption_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryAddRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryAddRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + caption_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.class, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder.class); + } + public static final int TOKEN_FIELD_NUMBER = 1; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 1; + * string token = 1; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 1; + * string token = 1; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 1; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 1; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 1; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CAPTION_FIELD_NUMBER = 2; - private java.lang.String caption_; + private volatile java.lang.Object caption_; /** - * optional string caption = 2; + * string caption = 2; + * @return The caption. */ + @java.lang.Override public java.lang.String getCaption() { - return caption_; + java.lang.Object ref = caption_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caption_ = s; + return s; + } } /** - * optional string caption = 2; + * string caption = 2; + * @return The bytes for caption. */ + @java.lang.Override public com.google.protobuf.ByteString getCaptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(caption_); - } - /** - * optional string caption = 2; - */ - private void setCaption( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caption_ = value; - } - /** - * optional string caption = 2; - */ - private void clearCaption() { - - caption_ = getDefaultInstance().getCaption(); + java.lang.Object ref = caption_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string caption = 2; - */ - private void setCaptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caption_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!token_.isEmpty()) { - output.writeString(1, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } - if (!caption_.isEmpty()) { - output.writeString(2, getCaption()); + if (!getCaptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, caption_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); } - if (!caption_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCaption()); + if (!getCaptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, caption_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest other = (net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest) obj; + + if (!getToken() + .equals(other.getToken())) return false; + if (!getCaption() + .equals(other.getCaption())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + CAPTION_FIELD_NUMBER; + hash = (53 * hash) + getCaption().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryAddRequest} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryAddRequest) net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryAddRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryAddRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.class, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + token_ = ""; + + caption_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryAddRequest_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest build() { + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest buildPartial() { + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest result = new net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest(this); + result.token_ = token_; + result.caption_ = caption_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest) { + return mergeFrom((net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest other) { + if (other == net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.getDefaultInstance()) return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getCaption().isEmpty()) { + caption_ = other.caption_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object token_ = ""; /** - * optional string token = 1; + * string token = 1; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 1; + * string token = 1; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 1; + * string token = 1; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 1; + * string token = 1; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 1; + * string token = 1; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private java.lang.Object caption_ = ""; /** - * optional string caption = 2; + * string caption = 2; + * @return The caption. */ public java.lang.String getCaption() { - return instance.getCaption(); + java.lang.Object ref = caption_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caption_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string caption = 2; + * string caption = 2; + * @return The bytes for caption. */ public com.google.protobuf.ByteString getCaptionBytes() { - return instance.getCaptionBytes(); + java.lang.Object ref = caption_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string caption = 2; + * string caption = 2; + * @param value The caption to set. + * @return This builder for chaining. */ public Builder setCaption( java.lang.String value) { - copyOnWrite(); - instance.setCaption(value); + if (value == null) { + throw new NullPointerException(); + } + + caption_ = value; + onChanged(); return this; } /** - * optional string caption = 2; + * string caption = 2; + * @return This builder for chaining. */ public Builder clearCaption() { - copyOnWrite(); - instance.clearCaption(); + + caption_ = getDefaultInstance().getCaption(); + onChanged(); return this; } /** - * optional string caption = 2; + * string caption = 2; + * @param value The bytes for caption to set. + * @return This builder for chaining. */ public Builder setCaptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCaptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caption_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.StoryAddRequest) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest other = (net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest) arg1; - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - caption_ = visitor.visitString(!caption_.isEmpty(), caption_, - !other.caption_.isEmpty(), other.caption_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - caption_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryAddRequest) + } + // @@protoc_insertion_point(class_scope:proto.StoryAddRequest) private static final net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryAddRequest(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest(); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryAddRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryAddRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface StoryUserAddNewOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryUserAddNew) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** * repeated .proto.StoryAddRequest token_batch = 2; @@ -458,82 +764,160 @@ public interface StoryUserAddNewOrBuilder extends * repeated .proto.StoryAddRequest token_batch = 2; */ int getTokenBatchCount(); + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + java.util.List + getTokenBatchOrBuilderList(); + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder getTokenBatchOrBuilder( + int index); } /** * Protobuf type {@code proto.StoryUserAddNew} */ - public static final class StoryUserAddNew extends - com.google.protobuf.GeneratedMessageLite< - StoryUserAddNew, StoryUserAddNew.Builder> implements + public static final class StoryUserAddNew extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryUserAddNew) StoryUserAddNewOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryUserAddNew.newBuilder() to construct. + private StoryUserAddNew(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryUserAddNew() { - tokenBatch_ = emptyProtobufList(); + tokenBatch_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryUserAddNew(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoryUserAddNew( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tokenBatch_.add( + input.readMessage(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = java.util.Collections.unmodifiableList(tokenBatch_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNew_descriptor; } - private int bitField0_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNew_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.class, net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_BATCH_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList tokenBatch_; + private java.util.List tokenBatch_; /** * repeated .proto.StoryAddRequest token_batch = 2; */ + @java.lang.Override public java.util.List getTokenBatchList() { return tokenBatch_; } /** * repeated .proto.StoryAddRequest token_batch = 2; */ + @java.lang.Override public java.util.List getTokenBatchOrBuilderList() { return tokenBatch_; @@ -541,108 +925,38 @@ public java.util.List getTo /** * repeated .proto.StoryAddRequest token_batch = 2; */ + @java.lang.Override public int getTokenBatchCount() { return tokenBatch_.size(); } /** * repeated .proto.StoryAddRequest token_batch = 2; */ + @java.lang.Override public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest getTokenBatch(int index) { return tokenBatch_.get(index); } /** * repeated .proto.StoryAddRequest token_batch = 2; */ + @java.lang.Override public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder getTokenBatchOrBuilder( int index) { return tokenBatch_.get(index); } - private void ensureTokenBatchIsMutable() { - if (!tokenBatch_.isModifiable()) { - tokenBatch_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tokenBatch_); - } - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void setTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenBatchIsMutable(); - tokenBatch_.set(index, value); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void setTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - ensureTokenBatchIsMutable(); - tokenBatch_.set(index, builderForValue.build()); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void addTokenBatch(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenBatchIsMutable(); - tokenBatch_.add(value); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void addTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenBatchIsMutable(); - tokenBatch_.add(index, value); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void addTokenBatch( - net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - ensureTokenBatchIsMutable(); - tokenBatch_.add(builderForValue.build()); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void addTokenBatch( - int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - ensureTokenBatchIsMutable(); - tokenBatch_.add(index, builderForValue.build()); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void addAllTokenBatch( - java.lang.Iterable values) { - ensureTokenBatchIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, tokenBatch_); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void clearTokenBatch() { - tokenBatch_ = emptyProtobufList(); - } - /** - * repeated .proto.StoryAddRequest token_batch = 2; - */ - private void removeTokenBatch(int index) { - ensureTokenBatchIsMutable(); - tokenBatch_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -651,10 +965,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tokenBatch_.size(); i++) { output.writeMessage(2, tokenBatch_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -666,162 +982,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tokenBatch_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew other = (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getTokenBatchList() + .equals(other.getTokenBatchList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (getTokenBatchCount() > 0) { + hash = (37 * hash) + TOKEN_BATCH_FIELD_NUMBER; + hash = (53 * hash) + getTokenBatchList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( - com.google.protobuf.ByteString data) + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( - com.google.protobuf.ByteString data, + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom(byte[] data) + public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( - byte[] data, + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryUserAddNew} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryUserAddNew) net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNew_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNew_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.class, net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTokenBatchFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (tokenBatchBuilder_ == null) { + tokenBatch_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tokenBatchBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNew_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew build() { + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew buildPartial() { + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew result = new net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (tokenBatchBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = java.util.Collections.unmodifiableList(tokenBatch_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tokenBatch_ = tokenBatch_; + } else { + result.tokenBatch_ = tokenBatchBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew) { + return mergeFrom((net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew other) { + if (other == net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (tokenBatchBuilder_ == null) { + if (!other.tokenBatch_.isEmpty()) { + if (tokenBatch_.isEmpty()) { + tokenBatch_ = other.tokenBatch_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTokenBatchIsMutable(); + tokenBatch_.addAll(other.tokenBatch_); + } + onChanged(); + } + } else { + if (!other.tokenBatch_.isEmpty()) { + if (tokenBatchBuilder_.isEmpty()) { + tokenBatchBuilder_.dispose(); + tokenBatchBuilder_ = null; + tokenBatch_ = other.tokenBatch_; + bitField0_ = (bitField0_ & ~0x00000001); + tokenBatchBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTokenBatchFieldBuilder() : null; + } else { + tokenBatchBuilder_.addAllMessages(other.tokenBatch_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.util.List tokenBatch_ = + java.util.Collections.emptyList(); + private void ensureTokenBatchIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tokenBatch_ = new java.util.ArrayList(tokenBatch_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder> tokenBatchBuilder_; /** * repeated .proto.StoryAddRequest token_batch = 2; */ public java.util.List getTokenBatchList() { - return java.util.Collections.unmodifiableList( - instance.getTokenBatchList()); + if (tokenBatchBuilder_ == null) { + return java.util.Collections.unmodifiableList(tokenBatch_); + } else { + return tokenBatchBuilder_.getMessageList(); + } } /** * repeated .proto.StoryAddRequest token_batch = 2; */ public int getTokenBatchCount() { - return instance.getTokenBatchCount(); - }/** + if (tokenBatchBuilder_ == null) { + return tokenBatch_.size(); + } else { + return tokenBatchBuilder_.getCount(); + } + } + /** * repeated .proto.StoryAddRequest token_batch = 2; */ public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest getTokenBatch(int index) { - return instance.getTokenBatch(index); + if (tokenBatchBuilder_ == null) { + return tokenBatch_.get(index); + } else { + return tokenBatchBuilder_.getMessage(index); + } } /** * repeated .proto.StoryAddRequest token_batch = 2; */ public Builder setTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - copyOnWrite(); - instance.setTokenBatch(index, value); + if (tokenBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenBatchIsMutable(); + tokenBatch_.set(index, value); + onChanged(); + } else { + tokenBatchBuilder_.setMessage(index, value); + } return this; } /** @@ -829,16 +1500,29 @@ public Builder setTokenBatch( */ public Builder setTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - copyOnWrite(); - instance.setTokenBatch(index, builderForValue); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.set(index, builderForValue.build()); + onChanged(); + } else { + tokenBatchBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.StoryAddRequest token_batch = 2; */ public Builder addTokenBatch(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - copyOnWrite(); - instance.addTokenBatch(value); + if (tokenBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenBatchIsMutable(); + tokenBatch_.add(value); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(value); + } return this; } /** @@ -846,8 +1530,16 @@ public Builder addTokenBatch(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest */ public Builder addTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest value) { - copyOnWrite(); - instance.addTokenBatch(index, value); + if (tokenBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenBatchIsMutable(); + tokenBatch_.add(index, value); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(index, value); + } return this; } /** @@ -855,8 +1547,13 @@ public Builder addTokenBatch( */ public Builder addTokenBatch( net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - copyOnWrite(); - instance.addTokenBatch(builderForValue); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.add(builderForValue.build()); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -864,8 +1561,13 @@ public Builder addTokenBatch( */ public Builder addTokenBatch( int index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder builderForValue) { - copyOnWrite(); - instance.addTokenBatch(index, builderForValue); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.add(index, builderForValue.build()); + onChanged(); + } else { + tokenBatchBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -873,156 +1575,177 @@ public Builder addTokenBatch( */ public Builder addAllTokenBatch( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllTokenBatch(values); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokenBatch_); + onChanged(); + } else { + tokenBatchBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.StoryAddRequest token_batch = 2; */ public Builder clearTokenBatch() { - copyOnWrite(); - instance.clearTokenBatch(); + if (tokenBatchBuilder_ == null) { + tokenBatch_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tokenBatchBuilder_.clear(); + } return this; } /** * repeated .proto.StoryAddRequest token_batch = 2; */ public Builder removeTokenBatch(int index) { - copyOnWrite(); - instance.removeTokenBatch(index); + if (tokenBatchBuilder_ == null) { + ensureTokenBatchIsMutable(); + tokenBatch_.remove(index); + onChanged(); + } else { + tokenBatchBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryUserAddNew) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - tokenBatch_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew other = (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew) arg1; - request_ = visitor.visitMessage(request_, other.request_); - tokenBatch_= visitor.visitList(tokenBatch_, other.tokenBatch_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!tokenBatch_.isModifiable()) { - tokenBatch_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tokenBatch_); - } - tokenBatch_.add( - input.readMessage(net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder getTokenBatchBuilder( + int index) { + return getTokenBatchFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder getTokenBatchOrBuilder( + int index) { + if (tokenBatchBuilder_ == null) { + return tokenBatch_.get(index); } else { + return tokenBatchBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + public java.util.List + getTokenBatchOrBuilderList() { + if (tokenBatchBuilder_ != null) { + return tokenBatchBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tokenBatch_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder addTokenBatchBuilder() { + return getTokenBatchFieldBuilder().addBuilder( + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.getDefaultInstance()); + } + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + public net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder addTokenBatchBuilder( + int index) { + return getTokenBatchFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.getDefaultInstance()); + } + /** + * repeated .proto.StoryAddRequest token_batch = 2; + */ + public java.util.List + getTokenBatchBuilderList() { + return getTokenBatchFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder> + getTokenBatchFieldBuilder() { + if (tokenBatchBuilder_ == null) { + tokenBatchBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequest.Builder, net.iGap.proto.ProtoStoryUserAddNew.StoryAddRequestOrBuilder>( + tokenBatch_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tokenBatch_ = null; } + return tokenBatchBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.StoryUserAddNew) + } // @@protoc_insertion_point(class_scope:proto.StoryUserAddNew) private static final net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryUserAddNew(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew(); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryUserAddNew parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryUserAddNew(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNew getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface StoryUserAddNewResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.StoryUserAddNewResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Story story = 2; @@ -1037,82 +1760,160 @@ public interface StoryUserAddNewResponseOrBuilder extends * repeated .proto.Story story = 2; */ int getStoryCount(); + /** + * repeated .proto.Story story = 2; + */ + java.util.List + getStoryOrBuilderList(); + /** + * repeated .proto.Story story = 2; + */ + net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder( + int index); } /** * Protobuf type {@code proto.StoryUserAddNewResponse} */ - public static final class StoryUserAddNewResponse extends - com.google.protobuf.GeneratedMessageLite< - StoryUserAddNewResponse, StoryUserAddNewResponse.Builder> implements + public static final class StoryUserAddNewResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.StoryUserAddNewResponse) StoryUserAddNewResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoryUserAddNewResponse.newBuilder() to construct. + private StoryUserAddNewResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private StoryUserAddNewResponse() { - story_ = emptyProtobufList(); + story_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StoryUserAddNewResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - private int bitField0_; + private StoryUserAddNewResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + story_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + story_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + story_ = java.util.Collections.unmodifiableList(story_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.class, net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STORY_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList story_; + private java.util.List story_; /** * repeated .proto.Story story = 2; */ + @java.lang.Override public java.util.List getStoryList() { return story_; } /** * repeated .proto.Story story = 2; */ + @java.lang.Override public java.util.List getStoryOrBuilderList() { return story_; @@ -1120,108 +1921,38 @@ public java.util.List getStoryList() { /** * repeated .proto.Story story = 2; */ + @java.lang.Override public int getStoryCount() { return story_.size(); } /** * repeated .proto.Story story = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Story getStory(int index) { return story_.get(index); } /** * repeated .proto.Story story = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder( int index) { return story_.get(index); } - private void ensureStoryIsMutable() { - if (!story_.isModifiable()) { - story_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(story_); - } - } - /** - * repeated .proto.Story story = 2; - */ - private void setStory( - int index, net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryIsMutable(); - story_.set(index, value); - } - /** - * repeated .proto.Story story = 2; - */ - private void setStory( - int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoryIsMutable(); - story_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory(net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryIsMutable(); - story_.add(value); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory( - int index, net.iGap.proto.ProtoGlobal.Story value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoryIsMutable(); - story_.add(index, value); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory( - net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoryIsMutable(); - story_.add(builderForValue.build()); - } - /** - * repeated .proto.Story story = 2; - */ - private void addStory( - int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - ensureStoryIsMutable(); - story_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Story story = 2; - */ - private void addAllStory( - java.lang.Iterable values) { - ensureStoryIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, story_); - } - /** - * repeated .proto.Story story = 2; - */ - private void clearStory() { - story_ = emptyProtobufList(); - } - /** - * repeated .proto.Story story = 2; - */ - private void removeStory(int index) { - ensureStoryIsMutable(); - story_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1230,10 +1961,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < story_.size(); i++) { output.writeMessage(2, story_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1245,162 +1978,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, story_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse other = (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getStoryList() + .equals(other.getStoryList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getStoryCount() > 0) { + hash = (37 * hash) + STORY_FIELD_NUMBER; + hash = (53 * hash) + getStoryList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.StoryUserAddNewResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.StoryUserAddNewResponse) net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNewResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNewResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.class, net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStoryFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (storyBuilder_ == null) { + story_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + storyBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoStoryUserAddNew.internal_static_proto_StoryUserAddNewResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse build() { + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse buildPartial() { + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse result = new net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (storyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + story_ = java.util.Collections.unmodifiableList(story_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.story_ = story_; + } else { + result.story_ = storyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse) { + return mergeFrom((net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse other) { + if (other == net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (storyBuilder_ == null) { + if (!other.story_.isEmpty()) { + if (story_.isEmpty()) { + story_ = other.story_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStoryIsMutable(); + story_.addAll(other.story_); + } + onChanged(); + } + } else { + if (!other.story_.isEmpty()) { + if (storyBuilder_.isEmpty()) { + storyBuilder_.dispose(); + storyBuilder_ = null; + story_ = other.story_; + bitField0_ = (bitField0_ & ~0x00000001); + storyBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStoryFieldBuilder() : null; + } else { + storyBuilder_.addAllMessages(other.story_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List story_ = + java.util.Collections.emptyList(); + private void ensureStoryIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + story_ = new java.util.ArrayList(story_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> storyBuilder_; /** * repeated .proto.Story story = 2; */ public java.util.List getStoryList() { - return java.util.Collections.unmodifiableList( - instance.getStoryList()); + if (storyBuilder_ == null) { + return java.util.Collections.unmodifiableList(story_); + } else { + return storyBuilder_.getMessageList(); + } } /** * repeated .proto.Story story = 2; */ public int getStoryCount() { - return instance.getStoryCount(); - }/** + if (storyBuilder_ == null) { + return story_.size(); + } else { + return storyBuilder_.getCount(); + } + } + /** * repeated .proto.Story story = 2; */ public net.iGap.proto.ProtoGlobal.Story getStory(int index) { - return instance.getStory(index); + if (storyBuilder_ == null) { + return story_.get(index); + } else { + return storyBuilder_.getMessage(index); + } } /** * repeated .proto.Story story = 2; */ public Builder setStory( int index, net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.setStory(index, value); + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryIsMutable(); + story_.set(index, value); + onChanged(); + } else { + storyBuilder_.setMessage(index, value); + } return this; } /** @@ -1408,16 +2496,29 @@ public Builder setStory( */ public Builder setStory( int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.setStory(index, builderForValue); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.set(index, builderForValue.build()); + onChanged(); + } else { + storyBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Story story = 2; */ public Builder addStory(net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.addStory(value); + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryIsMutable(); + story_.add(value); + onChanged(); + } else { + storyBuilder_.addMessage(value); + } return this; } /** @@ -1425,8 +2526,16 @@ public Builder addStory(net.iGap.proto.ProtoGlobal.Story value) { */ public Builder addStory( int index, net.iGap.proto.ProtoGlobal.Story value) { - copyOnWrite(); - instance.addStory(index, value); + if (storyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoryIsMutable(); + story_.add(index, value); + onChanged(); + } else { + storyBuilder_.addMessage(index, value); + } return this; } /** @@ -1434,8 +2543,13 @@ public Builder addStory( */ public Builder addStory( net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.addStory(builderForValue); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.add(builderForValue.build()); + onChanged(); + } else { + storyBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1443,8 +2557,13 @@ public Builder addStory( */ public Builder addStory( int index, net.iGap.proto.ProtoGlobal.Story.Builder builderForValue) { - copyOnWrite(); - instance.addStory(index, builderForValue); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.add(index, builderForValue.build()); + onChanged(); + } else { + storyBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1452,146 +2571,222 @@ public Builder addStory( */ public Builder addAllStory( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllStory(values); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, story_); + onChanged(); + } else { + storyBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Story story = 2; */ public Builder clearStory() { - copyOnWrite(); - instance.clearStory(); + if (storyBuilder_ == null) { + story_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + storyBuilder_.clear(); + } return this; } /** * repeated .proto.Story story = 2; */ public Builder removeStory(int index) { - copyOnWrite(); - instance.removeStory(index); + if (storyBuilder_ == null) { + ensureStoryIsMutable(); + story_.remove(index); + onChanged(); + } else { + storyBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.StoryUserAddNewResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - story_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse other = (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - story_= visitor.visitList(story_, other.story_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!story_.isModifiable()) { - story_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(story_); - } - story_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Story.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder getStoryBuilder( + int index) { + return getStoryFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.StoryOrBuilder getStoryOrBuilder( + int index) { + if (storyBuilder_ == null) { + return story_.get(index); } else { + return storyBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Story story = 2; + */ + public java.util.List + getStoryOrBuilderList() { + if (storyBuilder_ != null) { + return storyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(story_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder addStoryBuilder() { + return getStoryFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()); + } + /** + * repeated .proto.Story story = 2; + */ + public net.iGap.proto.ProtoGlobal.Story.Builder addStoryBuilder( + int index) { + return getStoryFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Story.getDefaultInstance()); + } + /** + * repeated .proto.Story story = 2; + */ + public java.util.List + getStoryBuilderList() { + return getStoryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder> + getStoryFieldBuilder() { + if (storyBuilder_ == null) { + storyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Story, net.iGap.proto.ProtoGlobal.Story.Builder, net.iGap.proto.ProtoGlobal.StoryOrBuilder>( + story_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + story_ = null; } + return storyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.StoryUserAddNewResponse) + } + // @@protoc_insertion_point(class_scope:proto.StoryUserAddNewResponse) private static final net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new StoryUserAddNewResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse(); } public static net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoryUserAddNewResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoryUserAddNewResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoStoryUserAddNew.StoryUserAddNewResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryAddRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryAddRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryUserAddNew_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryUserAddNew_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_StoryUserAddNewResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_StoryUserAddNewResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025StoryUserAddNew.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\032\014Global.proto\"1\n\017S" + + "toryAddRequest\022\r\n\005token\030\001 \001(\t\022\017\n\007caption" + + "\030\002 \001(\t\"_\n\017StoryUserAddNew\022\037\n\007request\030\001 \001" + + "(\0132\016.proto.Request\022+\n\013token_batch\030\002 \003(\0132" + + "\026.proto.StoryAddRequest\"Y\n\027StoryUserAddN" + + "ewResponse\022!\n\010response\030\001 \001(\0132\017.proto.Res" + + "ponse\022\033\n\005story\030\002 \003(\0132\014.proto.StoryB&\n\016ne" + + "t.iGap.protoB\024ProtoStoryUserAddNewb\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_StoryAddRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_StoryAddRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryAddRequest_descriptor, + new java.lang.String[] { "Token", "Caption", }); + internal_static_proto_StoryUserAddNew_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_StoryUserAddNew_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryUserAddNew_descriptor, + new java.lang.String[] { "Request", "TokenBatch", }); + internal_static_proto_StoryUserAddNewResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_proto_StoryUserAddNewResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StoryUserAddNewResponse_descriptor, + new java.lang.String[] { "Response", "Story", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserAvatarAdd.java b/src/main/java/net/iGap/proto/ProtoUserAvatarAdd.java index 6f8b8c5..9f7bbfb 100644 --- a/src/main/java/net/iGap/proto/ProtoUserAvatarAdd.java +++ b/src/main/java/net/iGap/proto/ProtoUserAvatarAdd.java @@ -8,25 +8,39 @@ private ProtoUserAvatarAdd() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserAvatarAddOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserAvatarAdd) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ java.lang.String getAttachment(); /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ com.google.protobuf.ByteString getAttachmentBytes(); @@ -34,124 +48,190 @@ public interface UserAvatarAddOrBuilder extends /** * Protobuf type {@code proto.UserAvatarAdd} */ - public static final class UserAvatarAdd extends - com.google.protobuf.GeneratedMessageLite< - UserAvatarAdd, UserAvatarAdd.Builder> implements + public static final class UserAvatarAdd extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserAvatarAdd) UserAvatarAddOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserAvatarAdd.newBuilder() to construct. + private UserAvatarAdd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserAvatarAdd() { attachment_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserAvatarAdd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserAvatarAdd( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + attachment_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAdd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.class, net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ATTACHMENT_FIELD_NUMBER = 2; - private java.lang.String attachment_; + private volatile java.lang.Object attachment_; /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ + @java.lang.Override public java.lang.String getAttachment() { - return attachment_; + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(attachment_); - } - /** - * optional string attachment = 2; - */ - private void setAttachment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attachment_ = value; - } - /** - * optional string attachment = 2; - */ - private void clearAttachment() { - - attachment_ = getDefaultInstance().getAttachment(); + java.lang.Object ref = attachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string attachment = 2; - */ - private void setAttachmentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attachment_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!attachment_.isEmpty()) { - output.writeString(2, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attachment_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,430 +239,753 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!attachment_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAttachment()); + if (!getAttachmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attachment_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd other = (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getAttachment() + .equals(other.getAttachment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserAvatarAdd} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserAvatarAdd) net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAdd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.class, net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + attachment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAdd_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd build() { + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd buildPartial() { + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd result = new net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.attachment_ = attachment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd) { + return mergeFrom((net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd other) { + if (other == net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getAttachment().isEmpty()) { + attachment_ = other.attachment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object attachment_ = ""; /** - * optional string attachment = 2; + * string attachment = 2; + * @return The attachment. */ public java.lang.String getAttachment() { - return instance.getAttachment(); + java.lang.Object ref = attachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @return The bytes for attachment. */ public com.google.protobuf.ByteString getAttachmentBytes() { - return instance.getAttachmentBytes(); + java.lang.Object ref = attachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string attachment = 2; + * string attachment = 2; + * @param value The attachment to set. + * @return This builder for chaining. */ public Builder setAttachment( java.lang.String value) { - copyOnWrite(); - instance.setAttachment(value); + if (value == null) { + throw new NullPointerException(); + } + + attachment_ = value; + onChanged(); return this; } /** - * optional string attachment = 2; + * string attachment = 2; + * @return This builder for chaining. */ public Builder clearAttachment() { - copyOnWrite(); - instance.clearAttachment(); + + attachment_ = getDefaultInstance().getAttachment(); + onChanged(); return this; } /** - * optional string attachment = 2; + * string attachment = 2; + * @param value The bytes for attachment to set. + * @return This builder for chaining. */ public Builder setAttachmentBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAttachmentBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachment_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserAvatarAdd) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd other = (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd) arg1; - request_ = visitor.visitMessage(request_, other.request_); - attachment_ = visitor.visitString(!attachment_.isEmpty(), attachment_, - !other.attachment_.isEmpty(), other.attachment_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - attachment_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserAvatarAdd) + } + // @@protoc_insertion_point(class_scope:proto.UserAvatarAdd) private static final net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserAvatarAdd(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd(); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAvatarAdd parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserAvatarAdd(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAdd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserAvatarAddResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserAvatarAddResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ boolean hasAvatar(); /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ net.iGap.proto.ProtoGlobal.Avatar getAvatar(); + /** + * .proto.Avatar avatar = 2; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder(); } /** * Protobuf type {@code proto.UserAvatarAddResponse} */ - public static final class UserAvatarAddResponse extends - com.google.protobuf.GeneratedMessageLite< - UserAvatarAddResponse, UserAvatarAddResponse.Builder> implements + public static final class UserAvatarAddResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserAvatarAddResponse) UserAvatarAddResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserAvatarAddResponse.newBuilder() to construct. + private UserAvatarAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserAvatarAddResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserAvatarAddResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserAvatarAddResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; + if (avatar_ != null) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.class, net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int AVATAR_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Avatar avatar_; /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ + @java.lang.Override public boolean hasAvatar() { return avatar_ != null; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; } /** - * optional .proto.Avatar avatar = 2; - */ - private void setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - - } - /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ - private void setAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - avatar_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + return getAvatar(); } - /** - * optional .proto.Avatar avatar = 2; - */ - private void mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (avatar_ != null && - avatar_ != net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()) { - avatar_ = - net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - - } - /** - * optional .proto.Avatar avatar = 2; - */ - private void clearAvatar() { avatar_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -591,10 +994,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (avatar_ != null) { output.writeMessage(2, getAvatar()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -606,303 +1011,653 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAvatar()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse other = (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasAvatar() != other.hasAvatar()) return false; + if (hasAvatar()) { + if (!getAvatar() + .equals(other.getAvatar())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasAvatar()) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserAvatarAddResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserAvatarAddResponse) net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAddResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAddResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.class, net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (avatarBuilder_ == null) { + avatar_ = null; + } else { + avatar_ = null; + avatarBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserAvatarAdd.internal_static_proto_UserAvatarAddResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse build() { + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse buildPartial() { + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse result = new net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse) { + return mergeFrom((net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse other) { + if (other == net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.Avatar avatar_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return Whether the avatar field is set. */ public boolean hasAvatar() { - return instance.hasAvatar(); + return avatarBuilder_ != null || avatar_ != null; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; + * @return The avatar. */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar() { - return instance.getAvatar(); + if (avatarBuilder_ == null) { + return avatar_ == null ? net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; + } else { + return avatarBuilder_.getMessage(); + } } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder setAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(value); - return this; + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder setAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(builderForValue); + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ public Builder mergeAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.mergeAvatar(value); + if (avatarBuilder_ == null) { + if (avatar_ != null) { + avatar_ = + net.iGap.proto.ProtoGlobal.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Avatar avatar = 2; + * .proto.Avatar avatar = 2; */ - public Builder clearAvatar() { copyOnWrite(); - instance.clearAvatar(); + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserAvatarAddResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse other = (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - avatar_ = visitor.visitMessage(avatar_, other.avatar_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Avatar.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_ == null ? + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance() : avatar_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Avatar avatar = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + getAvatar(), + getParentForChildren(), + isClean()); + avatar_ = null; } + return avatarBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserAvatarAddResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserAvatarAddResponse) private static final net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserAvatarAddResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse(); } public static net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAvatarAddResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserAvatarAddResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarAdd.UserAvatarAddResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserAvatarAdd_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserAvatarAdd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserAvatarAddResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserAvatarAddResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\023UserAvatarAdd.proto\022\005proto\032\rRequest.pr" + + "oto\032\016Response.proto\032\014Global.proto\"D\n\rUse" + + "rAvatarAdd\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\022\n\nattachment\030\002 \001(\t\"Y\n\025UserAvatarAdd" + + "Response\022!\n\010response\030\001 \001(\0132\017.proto.Respo" + + "nse\022\035\n\006avatar\030\002 \001(\0132\r.proto.AvatarB$\n\016ne" + + "t.iGap.protoB\022ProtoUserAvatarAddb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserAvatarAdd_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserAvatarAdd_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserAvatarAdd_descriptor, + new java.lang.String[] { "Request", "Attachment", }); + internal_static_proto_UserAvatarAddResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserAvatarAddResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserAvatarAddResponse_descriptor, + new java.lang.String[] { "Response", "Avatar", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserAvatarDelete.java b/src/main/java/net/iGap/proto/ProtoUserAvatarDelete.java index 63202e5..b0ddf34 100644 --- a/src/main/java/net/iGap/proto/ProtoUserAvatarDelete.java +++ b/src/main/java/net/iGap/proto/ProtoUserAvatarDelete.java @@ -8,109 +8,181 @@ private ProtoUserAvatarDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserAvatarDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserAvatarDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); } /** * Protobuf type {@code proto.UserAvatarDelete} */ - public static final class UserAvatarDelete extends - com.google.protobuf.GeneratedMessageLite< - UserAvatarDelete, UserAvatarDelete.Builder> implements + public static final class UserAvatarDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserAvatarDelete) UserAvatarDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserAvatarDelete.newBuilder() to construct. + private UserAvatarDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserAvatarDelete() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserAvatarDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserAvatarDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.class, net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (id_ != 0L) { output.writeUInt64(2, id_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, id_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete other = (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getId() + != other.getId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserAvatarDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserAvatarDelete) net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.class, net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + id_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDelete_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete build() { + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete buildPartial() { + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete result = new net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete) { + return mergeFrom((net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete other) { + if (other == net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserAvatarDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete other = (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserAvatarDelete) + } + // @@protoc_insertion_point(class_scope:proto.UserAvatarDelete) private static final net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserAvatarDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete(); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAvatarDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserAvatarDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserAvatarDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserAvatarDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ long getId(); } /** * Protobuf type {@code proto.UserAvatarDeleteResponse} */ - public static final class UserAvatarDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - UserAvatarDeleteResponse, UserAvatarDeleteResponse.Builder> implements + public static final class UserAvatarDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserAvatarDeleteResponse) UserAvatarDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserAvatarDeleteResponse.newBuilder() to construct. + private UserAvatarDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserAvatarDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserAvatarDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserAvatarDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + id_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.class, net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { return id_; } - /** - * optional uint64 id = 2; - */ - private void setId(long value) { - - id_ = value; - } - /** - * optional uint64 id = 2; - */ - private void clearId() { - - id_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (id_ != 0L) { output.writeUInt64(2, id_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, id_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse other = (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getId() + != other.getId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserAvatarDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserAvatarDeleteResponse) net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.class, net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + id_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserAvatarDelete.internal_static_proto_UserAvatarDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse build() { + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse buildPartial() { + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse result = new net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse other) { + if (other == net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getId() != 0L) { + setId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long id_ ; /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return The id. */ + @java.lang.Override public long getId() { - return instance.getId(); + return id_; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(long value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint64 id = 2; + * uint64 id = 2; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserAvatarDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse other = (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - id_ = visitor.visitLong(id_ != 0L, id_, - other.id_ != 0L, other.id_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - id_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserAvatarDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserAvatarDeleteResponse) private static final net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserAvatarDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse(); } public static net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAvatarDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserAvatarDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarDelete.UserAvatarDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserAvatarDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserAvatarDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserAvatarDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserAvatarDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026UserAvatarDelete.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"?\n\020UserAvatarDele" + + "te\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\n\n\002i" + + "d\030\002 \001(\004\"I\n\030UserAvatarDeleteResponse\022!\n\010r" + + "esponse\030\001 \001(\0132\017.proto.Response\022\n\n\002id\030\002 \001" + + "(\004B\'\n\016net.iGap.protoB\025ProtoUserAvatarDel" + + "eteb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserAvatarDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserAvatarDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserAvatarDelete_descriptor, + new java.lang.String[] { "Request", "Id", }); + internal_static_proto_UserAvatarDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserAvatarDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserAvatarDeleteResponse_descriptor, + new java.lang.String[] { "Response", "Id", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserAvatarGetList.java b/src/main/java/net/iGap/proto/ProtoUserAvatarGetList.java index 6b6d42f..0222ef0 100644 --- a/src/main/java/net/iGap/proto/ProtoUserAvatarGetList.java +++ b/src/main/java/net/iGap/proto/ProtoUserAvatarGetList.java @@ -8,109 +8,181 @@ private ProtoUserAvatarGetList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserAvatarGetListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserAvatarGetList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserAvatarGetList} */ - public static final class UserAvatarGetList extends - com.google.protobuf.GeneratedMessageLite< - UserAvatarGetList, UserAvatarGetList.Builder> implements + public static final class UserAvatarGetList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserAvatarGetList) UserAvatarGetListOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserAvatarGetList.newBuilder() to construct. + private UserAvatarGetList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserAvatarGetList() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserAvatarGetList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserAvatarGetList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.class, net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,284 +208,522 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList other = (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserAvatarGetList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserAvatarGetList) net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.class, net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList build() { + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList buildPartial() { + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList result = new net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList) { + return mergeFrom((net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList other) { + if (other == net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserAvatarGetList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList other = (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserAvatarGetList) + } + // @@protoc_insertion_point(class_scope:proto.UserAvatarGetList) private static final net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserAvatarGetList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList(); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAvatarGetList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserAvatarGetList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserAvatarGetListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserAvatarGetListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.Avatar avatar = 2; @@ -426,82 +738,160 @@ public interface UserAvatarGetListResponseOrBuilder extends * repeated .proto.Avatar avatar = 2; */ int getAvatarCount(); + /** + * repeated .proto.Avatar avatar = 2; + */ + java.util.List + getAvatarOrBuilderList(); + /** + * repeated .proto.Avatar avatar = 2; + */ + net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( + int index); } /** * Protobuf type {@code proto.UserAvatarGetListResponse} */ - public static final class UserAvatarGetListResponse extends - com.google.protobuf.GeneratedMessageLite< - UserAvatarGetListResponse, UserAvatarGetListResponse.Builder> implements + public static final class UserAvatarGetListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserAvatarGetListResponse) UserAvatarGetListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserAvatarGetListResponse.newBuilder() to construct. + private UserAvatarGetListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserAvatarGetListResponse() { - avatar_ = emptyProtobufList(); + avatar_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserAvatarGetListResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserAvatarGetListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + avatar_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + avatar_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + avatar_ = java.util.Collections.unmodifiableList(avatar_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.class, net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int AVATAR_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList avatar_; + private java.util.List avatar_; /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public java.util.List getAvatarList() { return avatar_; } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public java.util.List getAvatarOrBuilderList() { return avatar_; @@ -509,108 +899,38 @@ public java.util.List getAvatarList() { /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public int getAvatarCount() { return avatar_.size(); } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Avatar getAvatar(int index) { return avatar_.get(index); } /** * repeated .proto.Avatar avatar = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( int index) { return avatar_.get(index); } - private void ensureAvatarIsMutable() { - if (!avatar_.isModifiable()) { - avatar_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(avatar_); - } - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void setAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.set(index, value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void setAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.set(index, builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.add(value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarIsMutable(); - avatar_.add(index, value); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.add(builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAvatar( - int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - ensureAvatarIsMutable(); - avatar_.add(index, builderForValue.build()); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void addAllAvatar( - java.lang.Iterable values) { - ensureAvatarIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, avatar_); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void clearAvatar() { - avatar_ = emptyProtobufList(); - } - /** - * repeated .proto.Avatar avatar = 2; - */ - private void removeAvatar(int index) { - ensureAvatarIsMutable(); - avatar_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -619,10 +939,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < avatar_.size(); i++) { output.writeMessage(2, avatar_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -634,162 +956,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, avatar_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse other = (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getAvatarList() + .equals(other.getAvatarList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getAvatarCount() > 0) { + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatarList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserAvatarGetListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserAvatarGetListResponse) net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.class, net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAvatarFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (avatarBuilder_ == null) { + avatar_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + avatarBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserAvatarGetList.internal_static_proto_UserAvatarGetListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse build() { + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse buildPartial() { + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse result = new net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + avatar_ = java.util.Collections.unmodifiableList(avatar_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse) { + return mergeFrom((net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse other) { + if (other == net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (avatarBuilder_ == null) { + if (!other.avatar_.isEmpty()) { + if (avatar_.isEmpty()) { + avatar_ = other.avatar_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAvatarIsMutable(); + avatar_.addAll(other.avatar_); + } + onChanged(); + } + } else { + if (!other.avatar_.isEmpty()) { + if (avatarBuilder_.isEmpty()) { + avatarBuilder_.dispose(); + avatarBuilder_ = null; + avatar_ = other.avatar_; + bitField0_ = (bitField0_ & ~0x00000001); + avatarBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAvatarFieldBuilder() : null; + } else { + avatarBuilder_.addAllMessages(other.avatar_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List avatar_ = + java.util.Collections.emptyList(); + private void ensureAvatarIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + avatar_ = new java.util.ArrayList(avatar_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> avatarBuilder_; /** * repeated .proto.Avatar avatar = 2; */ public java.util.List getAvatarList() { - return java.util.Collections.unmodifiableList( - instance.getAvatarList()); + if (avatarBuilder_ == null) { + return java.util.Collections.unmodifiableList(avatar_); + } else { + return avatarBuilder_.getMessageList(); + } } /** * repeated .proto.Avatar avatar = 2; */ public int getAvatarCount() { - return instance.getAvatarCount(); - }/** + if (avatarBuilder_ == null) { + return avatar_.size(); + } else { + return avatarBuilder_.getCount(); + } + } + /** * repeated .proto.Avatar avatar = 2; */ public net.iGap.proto.ProtoGlobal.Avatar getAvatar(int index) { - return instance.getAvatar(index); + if (avatarBuilder_ == null) { + return avatar_.get(index); + } else { + return avatarBuilder_.getMessage(index); + } } /** * repeated .proto.Avatar avatar = 2; */ public Builder setAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.setAvatar(index, value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.set(index, value); + onChanged(); + } else { + avatarBuilder_.setMessage(index, value); + } return this; } /** @@ -797,16 +1474,29 @@ public Builder setAvatar( */ public Builder setAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.setAvatar(index, builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.set(index, builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.addAvatar(value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.add(value); + onChanged(); + } else { + avatarBuilder_.addMessage(value); + } return this; } /** @@ -814,8 +1504,16 @@ public Builder addAvatar(net.iGap.proto.ProtoGlobal.Avatar value) { */ public Builder addAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar value) { - copyOnWrite(); - instance.addAvatar(index, value); + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvatarIsMutable(); + avatar_.add(index, value); + onChanged(); + } else { + avatarBuilder_.addMessage(index, value); + } return this; } /** @@ -823,8 +1521,13 @@ public Builder addAvatar( */ public Builder addAvatar( net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.addAvatar(builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.add(builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -832,8 +1535,13 @@ public Builder addAvatar( */ public Builder addAvatar( int index, net.iGap.proto.ProtoGlobal.Avatar.Builder builderForValue) { - copyOnWrite(); - instance.addAvatar(index, builderForValue); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.add(index, builderForValue.build()); + onChanged(); + } else { + avatarBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -841,146 +1549,209 @@ public Builder addAvatar( */ public Builder addAllAvatar( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllAvatar(values); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatar_); + onChanged(); + } else { + avatarBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder clearAvatar() { - copyOnWrite(); - instance.clearAvatar(); + if (avatarBuilder_ == null) { + avatar_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + avatarBuilder_.clear(); + } return this; } /** * repeated .proto.Avatar avatar = 2; */ public Builder removeAvatar(int index) { - copyOnWrite(); - instance.removeAvatar(index); + if (avatarBuilder_ == null) { + ensureAvatarIsMutable(); + avatar_.remove(index); + onChanged(); + } else { + avatarBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserAvatarGetListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - avatar_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse other = (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - avatar_= visitor.visitList(avatar_, other.avatar_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!avatar_.isModifiable()) { - avatar_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(avatar_); - } - avatar_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.Avatar.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder getAvatarBuilder( + int index) { + return getAvatarFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.AvatarOrBuilder getAvatarOrBuilder( + int index) { + if (avatarBuilder_ == null) { + return avatar_.get(index); } else { + return avatarBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public java.util.List + getAvatarOrBuilderList() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(avatar_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder addAvatarBuilder() { + return getAvatarFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public net.iGap.proto.ProtoGlobal.Avatar.Builder addAvatarBuilder( + int index) { + return getAvatarFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.Avatar.getDefaultInstance()); + } + /** + * repeated .proto.Avatar avatar = 2; + */ + public java.util.List + getAvatarBuilderList() { + return getAvatarFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Avatar, net.iGap.proto.ProtoGlobal.Avatar.Builder, net.iGap.proto.ProtoGlobal.AvatarOrBuilder>( + avatar_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + avatar_ = null; } + return avatarBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserAvatarGetListResponse) + } // @@protoc_insertion_point(class_scope:proto.UserAvatarGetListResponse) private static final net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserAvatarGetListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse(); } public static net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAvatarGetListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserAvatarGetListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserAvatarGetList.UserAvatarGetListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserAvatarGetList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserAvatarGetList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserAvatarGetListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserAvatarGetListResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027UserAvatarGetList.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\032\014Global.proto\"E\n" + + "\021UserAvatarGetList\022\037\n\007request\030\001 \001(\0132\016.pr" + + "oto.Request\022\017\n\007user_id\030\002 \001(\004\"]\n\031UserAvat" + + "arGetListResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\035\n\006avatar\030\002 \003(\0132\r.proto.Ava" + + "tarB(\n\016net.iGap.protoB\026ProtoUserAvatarGe" + + "tListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserAvatarGetList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserAvatarGetList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserAvatarGetList_descriptor, + new java.lang.String[] { "Request", "UserId", }); + internal_static_proto_UserAvatarGetListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserAvatarGetListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserAvatarGetListResponse_descriptor, + new java.lang.String[] { "Response", "Avatar", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserBan.java b/src/main/java/net/iGap/proto/ProtoUserBan.java deleted file mode 100644 index 2500648..0000000 --- a/src/main/java/net/iGap/proto/ProtoUserBan.java +++ /dev/null @@ -1,670 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UserBan.proto - -package net.iGap.proto; - -public final class ProtoUserBan { - private ProtoUserBan() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public interface UserBanOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.UserBan) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .proto.Request request = 1; - */ - boolean hasRequest(); - /** - * optional .proto.Request request = 1; - */ - net.iGap.proto.ProtoRequest.Request getRequest(); - } - /** - * Protobuf type {@code proto.UserBan} - */ - public static final class UserBan extends - com.google.protobuf.GeneratedMessageLite< - UserBan, UserBan.Builder> implements - // @@protoc_insertion_point(message_implements:proto.UserBan) - UserBanOrBuilder { - private UserBan() { - } - public static final int REQUEST_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoRequest.Request request_; - /** - * optional .proto.Request request = 1; - */ - public boolean hasRequest() { - return request_ != null; - } - /** - * optional .proto.Request request = 1; - */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (request_ != null) { - output.writeMessage(1, getRequest()); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (request_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRequest()); - } - memoizedSerializedSize = size; - return size; - } - - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoUserBan.UserBan parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(net.iGap.proto.ProtoUserBan.UserBan prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - * Protobuf type {@code proto.UserBan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserBan.UserBan, Builder> implements - // @@protoc_insertion_point(builder_implements:proto.UserBan) - net.iGap.proto.ProtoUserBan.UserBanOrBuilder { - // Construct using net.iGap.proto.ProtoUserBan.UserBan.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional .proto.Request request = 1; - */ - public boolean hasRequest() { - return instance.hasRequest(); - } - /** - * optional .proto.Request request = 1; - */ - public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); - } - /** - * optional .proto.Request request = 1; - */ - public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; - } - /** - * optional .proto.Request request = 1; - */ - public Builder setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); - return this; - } - /** - * optional .proto.Request request = 1; - */ - public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); - return this; - } - /** - * optional .proto.Request request = 1; - */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.UserBan) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserBan.UserBan(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserBan.UserBan other = (net.iGap.proto.ProtoUserBan.UserBan) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserBan.UserBan.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:proto.UserBan) - private static final net.iGap.proto.ProtoUserBan.UserBan DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new UserBan(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static net.iGap.proto.ProtoUserBan.UserBan getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface UserBanResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.UserBanResponse) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .proto.Response response = 1; - */ - boolean hasResponse(); - /** - * optional .proto.Response response = 1; - */ - net.iGap.proto.ProtoResponse.Response getResponse(); - } - /** - * Protobuf type {@code proto.UserBanResponse} - */ - public static final class UserBanResponse extends - com.google.protobuf.GeneratedMessageLite< - UserBanResponse, UserBanResponse.Builder> implements - // @@protoc_insertion_point(message_implements:proto.UserBanResponse) - UserBanResponseOrBuilder { - private UserBanResponse() { - } - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (response_ != null) { - output.writeMessage(1, getResponse()); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (response_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResponse()); - } - memoizedSerializedSize = size; - return size; - } - - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static net.iGap.proto.ProtoUserBan.UserBanResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(net.iGap.proto.ProtoUserBan.UserBanResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - * Protobuf type {@code proto.UserBanResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserBan.UserBanResponse, Builder> implements - // @@protoc_insertion_point(builder_implements:proto.UserBanResponse) - net.iGap.proto.ProtoUserBan.UserBanResponseOrBuilder { - // Construct using net.iGap.proto.ProtoUserBan.UserBanResponse.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return instance.hasResponse(); - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); - } - /** - * optional .proto.Response response = 1; - */ - public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; - } - /** - * optional .proto.Response response = 1; - */ - public Builder setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); - return this; - } - /** - * optional .proto.Response response = 1; - */ - public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); - return this; - } - /** - * optional .proto.Response response = 1; - */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); - return this; - } - - // @@protoc_insertion_point(builder_scope:proto.UserBanResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserBan.UserBanResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserBan.UserBanResponse other = (net.iGap.proto.ProtoUserBan.UserBanResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserBan.UserBanResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:proto.UserBanResponse) - private static final net.iGap.proto.ProtoUserBan.UserBanResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new UserBanResponse(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static net.iGap.proto.ProtoUserBan.UserBanResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - - static { - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/net/iGap/proto/ProtoUserContactsBlock.java b/src/main/java/net/iGap/proto/ProtoUserContactsBlock.java index 7fdcb37..20d5679 100644 --- a/src/main/java/net/iGap/proto/ProtoUserContactsBlock.java +++ b/src/main/java/net/iGap/proto/ProtoUserContactsBlock.java @@ -8,109 +8,181 @@ private ProtoUserContactsBlock() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserContactsBlockOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsBlock) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserContactsBlock} */ - public static final class UserContactsBlock extends - com.google.protobuf.GeneratedMessageLite< - UserContactsBlock, UserContactsBlock.Builder> implements + public static final class UserContactsBlock extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsBlock) UserContactsBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsBlock.newBuilder() to construct. + private UserContactsBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsBlock() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsBlock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsBlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.class, net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock other = (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsBlock} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsBlock) net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.class, net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + userId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlock_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock build() { + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock buildPartial() { + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock result = new net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock) { + return mergeFrom((net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock other) { + if (other == net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsBlock) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock other = (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock) arg1; - request_ = visitor.visitMessage(request_, other.request_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsBlock) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsBlock) private static final net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsBlock(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock(); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsBlock(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserContactsBlockResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsBlockResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserContactsBlockResponse} */ - public static final class UserContactsBlockResponse extends - com.google.protobuf.GeneratedMessageLite< - UserContactsBlockResponse, UserContactsBlockResponse.Builder> implements + public static final class UserContactsBlockResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsBlockResponse) UserContactsBlockResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsBlockResponse.newBuilder() to construct. + private UserContactsBlockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsBlockResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsBlockResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsBlockResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlockResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlockResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.class, net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse other = (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsBlockResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsBlockResponse) net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlockResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlockResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.class, net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + userId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsBlock.internal_static_proto_UserContactsBlockResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse build() { + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse buildPartial() { + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse result = new net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse) { + return mergeFrom((net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse other) { + if (other == net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsBlockResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse other = (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsBlockResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsBlockResponse) private static final net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsBlockResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse(); } public static net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsBlockResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsBlockResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsBlock.UserContactsBlockResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsBlockResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsBlockResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027UserContactsBlock.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"E\n\021UserContactsB" + + "lock\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007user_id\030\002 \001(\004\"O\n\031UserContactsBlockRespo" + + "nse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017" + + "\n\007user_id\030\002 \001(\004B(\n\016net.iGap.protoB\026Proto" + + "UserContactsBlockb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserContactsBlock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserContactsBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsBlock_descriptor, + new java.lang.String[] { "Request", "UserId", }); + internal_static_proto_UserContactsBlockResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserContactsBlockResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsBlockResponse_descriptor, + new java.lang.String[] { "Response", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserContactsDelete.java b/src/main/java/net/iGap/proto/ProtoUserContactsDelete.java index 3328d69..4ae483c 100644 --- a/src/main/java/net/iGap/proto/ProtoUserContactsDelete.java +++ b/src/main/java/net/iGap/proto/ProtoUserContactsDelete.java @@ -8,109 +8,181 @@ private ProtoUserContactsDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserContactsDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ long getPhone(); } /** * Protobuf type {@code proto.UserContactsDelete} */ - public static final class UserContactsDelete extends - com.google.protobuf.GeneratedMessageLite< - UserContactsDelete, UserContactsDelete.Builder> implements + public static final class UserContactsDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsDelete) UserContactsDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsDelete.newBuilder() to construct. + private UserContactsDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsDelete() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phone_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.class, net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_FIELD_NUMBER = 2; private long phone_; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { return phone_; } - /** - * optional uint64 phone = 2; - */ - private void setPhone(long value) { - - phone_ = value; - } - /** - * optional uint64 phone = 2; - */ - private void clearPhone() { - - phone_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (phone_ != 0L) { output.writeUInt64(2, phone_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, phone_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete other = (net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPhone() + != other.getPhone()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhone()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsDelete) net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.class, net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phone_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDelete_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete build() { + net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete buildPartial() { + net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete result = new net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phone_ = phone_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete) { + return mergeFrom((net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete other) { + if (other == net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPhone() != 0L) { + setPhone(other.getPhone()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long phone_ ; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { - return instance.getPhone(); + return phone_; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone(long value) { - copyOnWrite(); - instance.setPhone(value); + + phone_ = value; + onChanged(); return this; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete other = (net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phone_ = visitor.visitLong(phone_ != 0L, phone_, - other.phone_ != 0L, other.phone_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - phone_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsDelete) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsDelete) private static final net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete(); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserContactsDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ long getPhone(); } /** * Protobuf type {@code proto.UserContactsDeleteResponse} */ - public static final class UserContactsDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - UserContactsDeleteResponse, UserContactsDeleteResponse.Builder> implements + public static final class UserContactsDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsDeleteResponse) UserContactsDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsDeleteResponse.newBuilder() to construct. + private UserContactsDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phone_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.class, net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PHONE_FIELD_NUMBER = 2; private long phone_; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { return phone_; } - /** - * optional uint64 phone = 2; - */ - private void setPhone(long value) { - - phone_ = value; - } - /** - * optional uint64 phone = 2; - */ - private void clearPhone() { - - phone_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (phone_ != 0L) { output.writeUInt64(2, phone_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, phone_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse other = (net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getPhone() + != other.getPhone()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhone()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsDeleteResponse) net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.class, net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + phone_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsDelete.internal_static_proto_UserContactsDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse build() { + net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse buildPartial() { + net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse result = new net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.phone_ = phone_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse other) { + if (other == net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getPhone() != 0L) { + setPhone(other.getPhone()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long phone_ ; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { - return instance.getPhone(); + return phone_; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone(long value) { - copyOnWrite(); - instance.setPhone(value); + + phone_ = value; + onChanged(); return this; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse other = (net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - phone_ = visitor.visitLong(phone_ != 0L, phone_, - other.phone_ != 0L, other.phone_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - phone_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsDeleteResponse) private static final net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse(); } public static net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsDelete.UserContactsDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030UserContactsDelete.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"D\n\022UserContacts" + + "Delete\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\r\n\005phone\030\002 \001(\004\"N\n\032UserContactsDeleteResp" + + "onse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022" + + "\r\n\005phone\030\002 \001(\004B)\n\016net.iGap.protoB\027ProtoU" + + "serContactsDeleteb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserContactsDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserContactsDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsDelete_descriptor, + new java.lang.String[] { "Request", "Phone", }); + internal_static_proto_UserContactsDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserContactsDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsDeleteResponse_descriptor, + new java.lang.String[] { "Response", "Phone", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserContactsEdit.java b/src/main/java/net/iGap/proto/ProtoUserContactsEdit.java index 69e3cb3..c42df62 100644 --- a/src/main/java/net/iGap/proto/ProtoUserContactsEdit.java +++ b/src/main/java/net/iGap/proto/ProtoUserContactsEdit.java @@ -8,40 +8,57 @@ private ProtoUserContactsEdit() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserContactsEditOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsEdit) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ long getPhone(); /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ java.lang.String getFirstName(); /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ com.google.protobuf.ByteString getFirstNameBytes(); /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ java.lang.String getLastName(); /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ com.google.protobuf.ByteString getLastNameBytes(); @@ -49,182 +66,237 @@ public interface UserContactsEditOrBuilder extends /** * Protobuf type {@code proto.UserContactsEdit} */ - public static final class UserContactsEdit extends - com.google.protobuf.GeneratedMessageLite< - UserContactsEdit, UserContactsEdit.Builder> implements + public static final class UserContactsEdit extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsEdit) UserContactsEditOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsEdit.newBuilder() to construct. + private UserContactsEdit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsEdit() { firstName_ = ""; lastName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsEdit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsEdit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phone_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + firstName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + lastName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEdit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEdit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.class, net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_FIELD_NUMBER = 2; private long phone_; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { return phone_; } - /** - * optional uint64 phone = 2; - */ - private void setPhone(long value) { - - phone_ = value; - } - /** - * optional uint64 phone = 2; - */ - private void clearPhone() { - - phone_ = 0L; - } public static final int FIRST_NAME_FIELD_NUMBER = 3; - private java.lang.String firstName_; + private volatile java.lang.Object firstName_; /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ + @java.lang.Override public java.lang.String getFirstName() { - return firstName_; + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(firstName_); - } - /** - * optional string first_name = 3; - */ - private void setFirstName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firstName_ = value; - } - /** - * optional string first_name = 3; - */ - private void clearFirstName() { - - firstName_ = getDefaultInstance().getFirstName(); - } - /** - * optional string first_name = 3; - */ - private void setFirstNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firstName_ = value.toStringUtf8(); + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LAST_NAME_FIELD_NUMBER = 4; - private java.lang.String lastName_; + private volatile java.lang.Object lastName_; /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ + @java.lang.Override public java.lang.String getLastName() { - return lastName_; + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ + @java.lang.Override public com.google.protobuf.ByteString getLastNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(lastName_); - } - /** - * optional string last_name = 4; - */ - private void setLastName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastName_ = value; - } - /** - * optional string last_name = 4; - */ - private void clearLastName() { - - lastName_ = getDefaultInstance().getLastName(); + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string last_name = 4; - */ - private void setLastNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastName_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -233,16 +305,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (phone_ != 0L) { output.writeUInt64(2, phone_); } - if (!firstName_.isEmpty()) { - output.writeString(3, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firstName_); } - if (!lastName_.isEmpty()) { - output.writeString(4, getLastName()); + if (!getLastNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastName_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -254,420 +328,741 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, phone_); } - if (!firstName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstName_); } - if (!lastName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getLastName()); + if (!getLastNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastName_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit other = (net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPhone() + != other.getPhone()) return false; + if (!getFirstName() + .equals(other.getFirstName())) return false; + if (!getLastName() + .equals(other.getLastName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhone()); + hash = (37 * hash) + FIRST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFirstName().hashCode(); + hash = (37 * hash) + LAST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLastName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsEdit} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsEdit) net.iGap.proto.ProtoUserContactsEdit.UserContactsEditOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEdit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEdit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.class, net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phone_ = 0L; + + firstName_ = ""; + + lastName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEdit_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit build() { + net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit buildPartial() { + net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit result = new net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phone_ = phone_; + result.firstName_ = firstName_; + result.lastName_ = lastName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit) { + return mergeFrom((net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit other) { + if (other == net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPhone() != 0L) { + setPhone(other.getPhone()); + } + if (!other.getFirstName().isEmpty()) { + firstName_ = other.firstName_; + onChanged(); + } + if (!other.getLastName().isEmpty()) { + lastName_ = other.lastName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long phone_ ; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { - return instance.getPhone(); + return phone_; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone(long value) { - copyOnWrite(); - instance.setPhone(value); + + phone_ = value; + onChanged(); return this; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = 0L; + onChanged(); return this; } + private java.lang.Object firstName_ = ""; /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ public java.lang.String getFirstName() { - return instance.getFirstName(); + java.lang.Object ref = firstName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ public com.google.protobuf.ByteString getFirstNameBytes() { - return instance.getFirstNameBytes(); + java.lang.Object ref = firstName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @param value The firstName to set. + * @return This builder for chaining. */ public Builder setFirstName( java.lang.String value) { - copyOnWrite(); - instance.setFirstName(value); + if (value == null) { + throw new NullPointerException(); + } + + firstName_ = value; + onChanged(); return this; } /** - * optional string first_name = 3; + * string first_name = 3; + * @return This builder for chaining. */ public Builder clearFirstName() { - copyOnWrite(); - instance.clearFirstName(); + + firstName_ = getDefaultInstance().getFirstName(); + onChanged(); return this; } /** - * optional string first_name = 3; + * string first_name = 3; + * @param value The bytes for firstName to set. + * @return This builder for chaining. */ public Builder setFirstNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFirstNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + firstName_ = value; + onChanged(); return this; } + private java.lang.Object lastName_ = ""; /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ public java.lang.String getLastName() { - return instance.getLastName(); + java.lang.Object ref = lastName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ public com.google.protobuf.ByteString getLastNameBytes() { - return instance.getLastNameBytes(); + java.lang.Object ref = lastName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @param value The lastName to set. + * @return This builder for chaining. */ public Builder setLastName( java.lang.String value) { - copyOnWrite(); - instance.setLastName(value); + if (value == null) { + throw new NullPointerException(); + } + + lastName_ = value; + onChanged(); return this; } /** - * optional string last_name = 4; + * string last_name = 4; + * @return This builder for chaining. */ public Builder clearLastName() { - copyOnWrite(); - instance.clearLastName(); + + lastName_ = getDefaultInstance().getLastName(); + onChanged(); return this; } /** - * optional string last_name = 4; + * string last_name = 4; + * @param value The bytes for lastName to set. + * @return This builder for chaining. */ public Builder setLastNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLastNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastName_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsEdit) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit other = (net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phone_ = visitor.visitLong(phone_ != 0L, phone_, - other.phone_ != 0L, other.phone_); - firstName_ = visitor.visitString(!firstName_.isEmpty(), firstName_, - !other.firstName_.isEmpty(), other.firstName_); - lastName_ = visitor.visitString(!lastName_.isEmpty(), lastName_, - !other.lastName_.isEmpty(), other.lastName_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - phone_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - firstName_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - lastName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsEdit) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsEdit) private static final net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsEdit(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit(); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsEdit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsEdit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEdit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserContactsEditResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsEditResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ long getPhone(); /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ java.lang.String getFirstName(); /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ com.google.protobuf.ByteString getFirstNameBytes(); /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ java.lang.String getLastName(); /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ com.google.protobuf.ByteString getLastNameBytes(); /** - * optional string initials = 5; + * string initials = 5; + * @return The initials. */ java.lang.String getInitials(); /** - * optional string initials = 5; + * string initials = 5; + * @return The bytes for initials. */ com.google.protobuf.ByteString getInitialsBytes(); @@ -675,229 +1070,282 @@ public interface UserContactsEditResponseOrBuilder extends /** * Protobuf type {@code proto.UserContactsEditResponse} */ - public static final class UserContactsEditResponse extends - com.google.protobuf.GeneratedMessageLite< - UserContactsEditResponse, UserContactsEditResponse.Builder> implements + public static final class UserContactsEditResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsEditResponse) UserContactsEditResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsEditResponse.newBuilder() to construct. + private UserContactsEditResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsEditResponse() { firstName_ = ""; lastName_ = ""; initials_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsEditResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsEditResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phone_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + firstName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + lastName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + initials_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEditResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEditResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.class, net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PHONE_FIELD_NUMBER = 2; private long phone_; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { return phone_; } - /** - * optional uint64 phone = 2; - */ - private void setPhone(long value) { - - phone_ = value; - } - /** - * optional uint64 phone = 2; - */ - private void clearPhone() { - - phone_ = 0L; - } public static final int FIRST_NAME_FIELD_NUMBER = 3; - private java.lang.String firstName_; + private volatile java.lang.Object firstName_; /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ + @java.lang.Override public java.lang.String getFirstName() { - return firstName_; + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(firstName_); - } - /** - * optional string first_name = 3; - */ - private void setFirstName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firstName_ = value; - } - /** - * optional string first_name = 3; - */ - private void clearFirstName() { - - firstName_ = getDefaultInstance().getFirstName(); - } - /** - * optional string first_name = 3; - */ - private void setFirstNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firstName_ = value.toStringUtf8(); + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LAST_NAME_FIELD_NUMBER = 4; - private java.lang.String lastName_; + private volatile java.lang.Object lastName_; /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ + @java.lang.Override public java.lang.String getLastName() { - return lastName_; + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ + @java.lang.Override public com.google.protobuf.ByteString getLastNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(lastName_); - } - /** - * optional string last_name = 4; - */ - private void setLastName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastName_ = value; - } - /** - * optional string last_name = 4; - */ - private void clearLastName() { - - lastName_ = getDefaultInstance().getLastName(); - } - /** - * optional string last_name = 4; - */ - private void setLastNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastName_ = value.toStringUtf8(); + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INITIALS_FIELD_NUMBER = 5; - private java.lang.String initials_; + private volatile java.lang.Object initials_; /** - * optional string initials = 5; + * string initials = 5; + * @return The initials. */ + @java.lang.Override public java.lang.String getInitials() { - return initials_; + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } } /** - * optional string initials = 5; + * string initials = 5; + * @return The bytes for initials. */ + @java.lang.Override public com.google.protobuf.ByteString getInitialsBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(initials_); - } - /** - * optional string initials = 5; - */ - private void setInitials( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initials_ = value; - } - /** - * optional string initials = 5; - */ - private void clearInitials() { - - initials_ = getDefaultInstance().getInitials(); + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string initials = 5; - */ - private void setInitialsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initials_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -906,19 +1354,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (phone_ != 0L) { output.writeUInt64(2, phone_); } - if (!firstName_.isEmpty()) { - output.writeString(3, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firstName_); } - if (!lastName_.isEmpty()) { - output.writeString(4, getLastName()); + if (!getLastNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastName_); } - if (!initials_.isEmpty()) { - output.writeString(5, getInitials()); + if (!getInitialsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, initials_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -930,430 +1380,823 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, phone_); } - if (!firstName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstName_); } - if (!lastName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getLastName()); + if (!getLastNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastName_); } - if (!initials_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getInitials()); + if (!getInitialsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, initials_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse other = (net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getPhone() + != other.getPhone()) return false; + if (!getFirstName() + .equals(other.getFirstName())) return false; + if (!getLastName() + .equals(other.getLastName())) return false; + if (!getInitials() + .equals(other.getInitials())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhone()); + hash = (37 * hash) + FIRST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFirstName().hashCode(); + hash = (37 * hash) + LAST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLastName().hashCode(); + hash = (37 * hash) + INITIALS_FIELD_NUMBER; + hash = (53 * hash) + getInitials().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsEditResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsEditResponse) net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEditResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEditResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.class, net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + phone_ = 0L; + + firstName_ = ""; + + lastName_ = ""; + + initials_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsEdit.internal_static_proto_UserContactsEditResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse build() { + net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse buildPartial() { + net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse result = new net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.phone_ = phone_; + result.firstName_ = firstName_; + result.lastName_ = lastName_; + result.initials_ = initials_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse) { + return mergeFrom((net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse other) { + if (other == net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getPhone() != 0L) { + setPhone(other.getPhone()); + } + if (!other.getFirstName().isEmpty()) { + firstName_ = other.firstName_; + onChanged(); + } + if (!other.getLastName().isEmpty()) { + lastName_ = other.lastName_; + onChanged(); + } + if (!other.getInitials().isEmpty()) { + initials_ = other.initials_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long phone_ ; /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return The phone. */ + @java.lang.Override public long getPhone() { - return instance.getPhone(); + return phone_; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone(long value) { - copyOnWrite(); - instance.setPhone(value); + + phone_ = value; + onChanged(); return this; } /** - * optional uint64 phone = 2; + * uint64 phone = 2; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = 0L; + onChanged(); return this; } + private java.lang.Object firstName_ = ""; /** - * optional string first_name = 3; + * string first_name = 3; + * @return The firstName. */ public java.lang.String getFirstName() { - return instance.getFirstName(); + java.lang.Object ref = firstName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @return The bytes for firstName. */ public com.google.protobuf.ByteString getFirstNameBytes() { - return instance.getFirstNameBytes(); + java.lang.Object ref = firstName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string first_name = 3; + * string first_name = 3; + * @param value The firstName to set. + * @return This builder for chaining. */ public Builder setFirstName( java.lang.String value) { - copyOnWrite(); - instance.setFirstName(value); + if (value == null) { + throw new NullPointerException(); + } + + firstName_ = value; + onChanged(); return this; } /** - * optional string first_name = 3; + * string first_name = 3; + * @return This builder for chaining. */ public Builder clearFirstName() { - copyOnWrite(); - instance.clearFirstName(); + + firstName_ = getDefaultInstance().getFirstName(); + onChanged(); return this; } /** - * optional string first_name = 3; + * string first_name = 3; + * @param value The bytes for firstName to set. + * @return This builder for chaining. */ public Builder setFirstNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFirstNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + firstName_ = value; + onChanged(); return this; } + private java.lang.Object lastName_ = ""; /** - * optional string last_name = 4; + * string last_name = 4; + * @return The lastName. */ public java.lang.String getLastName() { - return instance.getLastName(); + java.lang.Object ref = lastName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @return The bytes for lastName. */ public com.google.protobuf.ByteString getLastNameBytes() { - return instance.getLastNameBytes(); + java.lang.Object ref = lastName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string last_name = 4; + * string last_name = 4; + * @param value The lastName to set. + * @return This builder for chaining. */ public Builder setLastName( java.lang.String value) { - copyOnWrite(); - instance.setLastName(value); + if (value == null) { + throw new NullPointerException(); + } + + lastName_ = value; + onChanged(); return this; } /** - * optional string last_name = 4; + * string last_name = 4; + * @return This builder for chaining. */ public Builder clearLastName() { - copyOnWrite(); - instance.clearLastName(); + + lastName_ = getDefaultInstance().getLastName(); + onChanged(); return this; } /** - * optional string last_name = 4; + * string last_name = 4; + * @param value The bytes for lastName to set. + * @return This builder for chaining. */ public Builder setLastNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLastNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastName_ = value; + onChanged(); return this; } + private java.lang.Object initials_ = ""; /** - * optional string initials = 5; + * string initials = 5; + * @return The initials. */ public java.lang.String getInitials() { - return instance.getInitials(); + java.lang.Object ref = initials_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string initials = 5; + * string initials = 5; + * @return The bytes for initials. */ public com.google.protobuf.ByteString getInitialsBytes() { - return instance.getInitialsBytes(); + java.lang.Object ref = initials_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string initials = 5; + * string initials = 5; + * @param value The initials to set. + * @return This builder for chaining. */ public Builder setInitials( java.lang.String value) { - copyOnWrite(); - instance.setInitials(value); + if (value == null) { + throw new NullPointerException(); + } + + initials_ = value; + onChanged(); return this; } /** - * optional string initials = 5; + * string initials = 5; + * @return This builder for chaining. */ public Builder clearInitials() { - copyOnWrite(); - instance.clearInitials(); + + initials_ = getDefaultInstance().getInitials(); + onChanged(); return this; } /** - * optional string initials = 5; + * string initials = 5; + * @param value The bytes for initials to set. + * @return This builder for chaining. */ public Builder setInitialsBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInitialsBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initials_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsEditResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse other = (net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - phone_ = visitor.visitLong(phone_ != 0L, phone_, - other.phone_ != 0L, other.phone_); - firstName_ = visitor.visitString(!firstName_.isEmpty(), firstName_, - !other.firstName_.isEmpty(), other.firstName_); - lastName_ = visitor.visitString(!lastName_.isEmpty(), lastName_, - !other.lastName_.isEmpty(), other.lastName_); - initials_ = visitor.visitString(!initials_.isEmpty(), initials_, - !other.initials_.isEmpty(), other.initials_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - phone_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - firstName_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - lastName_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - initials_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsEditResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsEditResponse) private static final net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsEditResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse(); } public static net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsEditResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsEditResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsEdit.UserContactsEditResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsEdit_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsEdit_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsEditResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsEditResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026UserContactsEdit.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"i\n\020UserContactsEd" + + "it\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\r\n\005p" + + "hone\030\002 \001(\004\022\022\n\nfirst_name\030\003 \001(\t\022\021\n\tlast_n" + + "ame\030\004 \001(\t\"\205\001\n\030UserContactsEditResponse\022!" + + "\n\010response\030\001 \001(\0132\017.proto.Response\022\r\n\005pho" + + "ne\030\002 \001(\004\022\022\n\nfirst_name\030\003 \001(\t\022\021\n\tlast_nam" + + "e\030\004 \001(\t\022\020\n\010initials\030\005 \001(\tB\'\n\016net.iGap.pr" + + "otoB\025ProtoUserContactsEditb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserContactsEdit_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserContactsEdit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsEdit_descriptor, + new java.lang.String[] { "Request", "Phone", "FirstName", "LastName", }); + internal_static_proto_UserContactsEditResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserContactsEditResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsEditResponse_descriptor, + new java.lang.String[] { "Response", "Phone", "FirstName", "LastName", "Initials", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserContactsGetBlockedList.java b/src/main/java/net/iGap/proto/ProtoUserContactsGetBlockedList.java index 14d0932..da27ca0 100644 --- a/src/main/java/net/iGap/proto/ProtoUserContactsGetBlockedList.java +++ b/src/main/java/net/iGap/proto/ProtoUserContactsGetBlockedList.java @@ -8,90 +8,170 @@ private ProtoUserContactsGetBlockedList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserContactsGetBlockedListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsGetBlockedList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserContactsGetBlockedList} */ - public static final class UserContactsGetBlockedList extends - com.google.protobuf.GeneratedMessageLite< - UserContactsGetBlockedList, UserContactsGetBlockedList.Builder> implements + public static final class UserContactsGetBlockedList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsGetBlockedList) UserContactsGetBlockedListOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsGetBlockedList.newBuilder() to construct. + private UserContactsGetBlockedList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsGetBlockedList() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsGetBlockedList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsGetBlockedList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.class, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,254 +179,480 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList other = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsGetBlockedList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsGetBlockedList) net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.class, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList build() { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList buildPartial() { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList result = new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList) { + return mergeFrom((net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList other) { + if (other == net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserContactsGetBlockedList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList other = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserContactsGetBlockedList) + } // @@protoc_insertion_point(class_scope:proto.UserContactsGetBlockedList) private static final net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsGetBlockedList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList(); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsGetBlockedList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsGetBlockedList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserContactsGetBlockedListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsGetBlockedListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; @@ -361,33 +667,139 @@ public interface UserContactsGetBlockedListResponseOrBuilder extends * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ int getUserCount(); + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + java.util.List + getUserOrBuilderList(); + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.UserOrBuilder getUserOrBuilder( + int index); } /** * Protobuf type {@code proto.UserContactsGetBlockedListResponse} */ - public static final class UserContactsGetBlockedListResponse extends - com.google.protobuf.GeneratedMessageLite< - UserContactsGetBlockedListResponse, UserContactsGetBlockedListResponse.Builder> implements + public static final class UserContactsGetBlockedListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsGetBlockedListResponse) UserContactsGetBlockedListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsGetBlockedListResponse.newBuilder() to construct. + private UserContactsGetBlockedListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsGetBlockedListResponse() { - user_ = emptyProtobufList(); + user_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsGetBlockedListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } + private UserContactsGetBlockedListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + user_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + user_.add( + input.readMessage(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + user_ = java.util.Collections.unmodifiableList(user_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.class, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.Builder.class); + } + public interface UserOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsGetBlockedListResponse.User) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ long getUserId(); /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The cacheId. */ java.lang.String getCacheId(); /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The bytes for cacheId. */ com.google.protobuf.ByteString getCacheIdBytes(); @@ -395,95 +807,167 @@ public interface UserOrBuilder extends /** * Protobuf type {@code proto.UserContactsGetBlockedListResponse.User} */ - public static final class User extends - com.google.protobuf.GeneratedMessageLite< - User, User.Builder> implements + public static final class User extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsGetBlockedListResponse.User) UserOrBuilder { + private static final long serialVersionUID = 0L; + // Use User.newBuilder() to construct. + private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private User() { cacheId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new User(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private User( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + userId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cacheId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.class, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder.class); + } + public static final int USER_ID_FIELD_NUMBER = 1; private long userId_; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 1; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 1; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int CACHE_ID_FIELD_NUMBER = 2; - private java.lang.String cacheId_; + private volatile java.lang.Object cacheId_; /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The cacheId. */ + @java.lang.Override public java.lang.String getCacheId() { - return cacheId_; + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The bytes for cacheId. */ + @java.lang.Override public com.google.protobuf.ByteString getCacheIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(cacheId_); - } - /** - * optional string cache_id = 2; - */ - private void setCacheId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheId_ = value; - } - /** - * optional string cache_id = 2; - */ - private void clearCacheId() { - - cacheId_ = getDefaultInstance().getCacheId(); + java.lang.Object ref = cacheId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string cache_id = 2; - */ - private void setCacheIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cacheId_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { output.writeUInt64(1, userId_); } - if (!cacheId_.isEmpty()) { - output.writeString(2, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cacheId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -491,329 +975,491 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, userId_); } - if (!cacheId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getCacheId()); + if (!getCacheIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cacheId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User other = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User) obj; + + if (getUserId() + != other.getUserId()) return false; + if (!getCacheId() + .equals(other.getCacheId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + CACHE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCacheId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsGetBlockedListResponse.User} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsGetBlockedListResponse.User) net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.UserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.class, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = 0L; + + cacheId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_User_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User build() { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User buildPartial() { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User result = new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User(this); + result.userId_ = userId_; + result.cacheId_ = cacheId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User) { + return mergeFrom((net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User other) { + if (other == net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.getDefaultInstance()) return this; + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (!other.getCacheId().isEmpty()) { + cacheId_ = other.cacheId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long userId_ ; /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 1; + * uint64 user_id = 1; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private java.lang.Object cacheId_ = ""; /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The cacheId. */ public java.lang.String getCacheId() { - return instance.getCacheId(); + java.lang.Object ref = cacheId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cacheId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return The bytes for cacheId. */ public com.google.protobuf.ByteString getCacheIdBytes() { - return instance.getCacheIdBytes(); + java.lang.Object ref = cacheId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cacheId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @param value The cacheId to set. + * @return This builder for chaining. */ public Builder setCacheId( java.lang.String value) { - copyOnWrite(); - instance.setCacheId(value); + if (value == null) { + throw new NullPointerException(); + } + + cacheId_ = value; + onChanged(); return this; } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @return This builder for chaining. */ public Builder clearCacheId() { - copyOnWrite(); - instance.clearCacheId(); + + cacheId_ = getDefaultInstance().getCacheId(); + onChanged(); return this; } /** - * optional string cache_id = 2; + * string cache_id = 2; + * @param value The bytes for cacheId to set. + * @return This builder for chaining. */ public Builder setCacheIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCacheIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cacheId_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsGetBlockedListResponse.User) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User other = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User) arg1; - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - cacheId_ = visitor.visitString(!cacheId_.isEmpty(), cacheId_, - !other.cacheId_.isEmpty(), other.cacheId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - userId_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - cacheId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsGetBlockedListResponse.User) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsGetBlockedListResponse.User) private static final net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new User(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User(); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new User(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USER_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList user_; + private java.util.List user_; /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ + @java.lang.Override public java.util.List getUserList() { return user_; } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ + @java.lang.Override public java.util.List getUserOrBuilderList() { return user_; @@ -821,108 +1467,38 @@ public java.util.Listrepeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ + @java.lang.Override public int getUserCount() { return user_.size(); } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User getUser(int index) { return user_.get(index); } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.UserOrBuilder getUserOrBuilder( int index) { return user_.get(index); } - private void ensureUserIsMutable() { - if (!user_.isModifiable()) { - user_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(user_); - } - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void setUser( - int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserIsMutable(); - user_.set(index, value); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void setUser( - int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder builderForValue) { - ensureUserIsMutable(); - user_.set(index, builderForValue.build()); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void addUser(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserIsMutable(); - user_.add(value); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void addUser( - int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserIsMutable(); - user_.add(index, value); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void addUser( - net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder builderForValue) { - ensureUserIsMutable(); - user_.add(builderForValue.build()); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void addUser( - int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder builderForValue) { - ensureUserIsMutable(); - user_.add(index, builderForValue.build()); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void addAllUser( - java.lang.Iterable values) { - ensureUserIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, user_); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void clearUser() { - user_ = emptyProtobufList(); - } - /** - * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - */ - private void removeUser(int index) { - ensureUserIsMutable(); - user_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -931,10 +1507,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < user_.size(); i++) { output.writeMessage(2, user_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -946,162 +1524,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, user_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse other = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUserList() + .equals(other.getUserList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getUserCount() > 0) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUserList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsGetBlockedListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsGetBlockedListResponse) net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.class, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (userBuilder_ == null) { + user_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + userBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.internal_static_proto_UserContactsGetBlockedListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse build() { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse buildPartial() { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse result = new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + user_ = java.util.Collections.unmodifiableList(user_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse) { + return mergeFrom((net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse other) { + if (other == net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (userBuilder_ == null) { + if (!other.user_.isEmpty()) { + if (user_.isEmpty()) { + user_ = other.user_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserIsMutable(); + user_.addAll(other.user_); + } + onChanged(); + } + } else { + if (!other.user_.isEmpty()) { + if (userBuilder_.isEmpty()) { + userBuilder_.dispose(); + userBuilder_ = null; + user_ = other.user_; + bitField0_ = (bitField0_ & ~0x00000001); + userBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUserFieldBuilder() : null; + } else { + userBuilder_.addAllMessages(other.user_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List user_ = + java.util.Collections.emptyList(); + private void ensureUserIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + user_ = new java.util.ArrayList(user_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.UserOrBuilder> userBuilder_; /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ public java.util.List getUserList() { - return java.util.Collections.unmodifiableList( - instance.getUserList()); + if (userBuilder_ == null) { + return java.util.Collections.unmodifiableList(user_); + } else { + return userBuilder_.getMessageList(); + } } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ public int getUserCount() { - return instance.getUserCount(); - }/** + if (userBuilder_ == null) { + return user_.size(); + } else { + return userBuilder_.getCount(); + } + } + /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User getUser(int index) { - return instance.getUser(index); + if (userBuilder_ == null) { + return user_.get(index); + } else { + return userBuilder_.getMessage(index); + } } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ public Builder setUser( int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User value) { - copyOnWrite(); - instance.setUser(index, value); + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserIsMutable(); + user_.set(index, value); + onChanged(); + } else { + userBuilder_.setMessage(index, value); + } return this; } /** @@ -1109,16 +2042,29 @@ public Builder setUser( */ public Builder setUser( int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder builderForValue) { - copyOnWrite(); - instance.setUser(index, builderForValue); + if (userBuilder_ == null) { + ensureUserIsMutable(); + user_.set(index, builderForValue.build()); + onChanged(); + } else { + userBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ public Builder addUser(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User value) { - copyOnWrite(); - instance.addUser(value); + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserIsMutable(); + user_.add(value); + onChanged(); + } else { + userBuilder_.addMessage(value); + } return this; } /** @@ -1126,8 +2072,16 @@ public Builder addUser(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContac */ public Builder addUser( int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User value) { - copyOnWrite(); - instance.addUser(index, value); + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserIsMutable(); + user_.add(index, value); + onChanged(); + } else { + userBuilder_.addMessage(index, value); + } return this; } /** @@ -1135,8 +2089,13 @@ public Builder addUser( */ public Builder addUser( net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder builderForValue) { - copyOnWrite(); - instance.addUser(builderForValue); + if (userBuilder_ == null) { + ensureUserIsMutable(); + user_.add(builderForValue.build()); + onChanged(); + } else { + userBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1144,8 +2103,13 @@ public Builder addUser( */ public Builder addUser( int index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder builderForValue) { - copyOnWrite(); - instance.addUser(index, builderForValue); + if (userBuilder_ == null) { + ensureUserIsMutable(); + user_.add(index, builderForValue.build()); + onChanged(); + } else { + userBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1153,146 +2117,220 @@ public Builder addUser( */ public Builder addAllUser( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllUser(values); + if (userBuilder_ == null) { + ensureUserIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, user_); + onChanged(); + } else { + userBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ public Builder clearUser() { - copyOnWrite(); - instance.clearUser(); + if (userBuilder_ == null) { + user_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + userBuilder_.clear(); + } return this; } /** * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; */ public Builder removeUser(int index) { - copyOnWrite(); - instance.removeUser(index); + if (userBuilder_ == null) { + ensureUserIsMutable(); + user_.remove(index); + onChanged(); + } else { + userBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserContactsGetBlockedListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - user_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse other = (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - user_= visitor.visitList(user_, other.user_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!user_.isModifiable()) { - user_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(user_); - } - user_.add( - input.readMessage(net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder getUserBuilder( + int index) { + return getUserFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.UserOrBuilder getUserOrBuilder( + int index) { + if (userBuilder_ == null) { + return user_.get(index); } else { + return userBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + public java.util.List + getUserOrBuilderList() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(user_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder addUserBuilder() { + return getUserFieldBuilder().addBuilder( + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.getDefaultInstance()); + } + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder addUserBuilder( + int index) { + return getUserFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.getDefaultInstance()); + } + /** + * repeated .proto.UserContactsGetBlockedListResponse.User user = 2; + */ + public java.util.List + getUserBuilderList() { + return getUserFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.User.Builder, net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse.UserOrBuilder>( + user_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + user_ = null; } + return userBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserContactsGetBlockedListResponse) + } // @@protoc_insertion_point(class_scope:proto.UserContactsGetBlockedListResponse) private static final net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsGetBlockedListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse(); } public static net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsGetBlockedListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsGetBlockedListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetBlockedList.UserContactsGetBlockedListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsGetBlockedList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsGetBlockedList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsGetBlockedListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsGetBlockedListResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsGetBlockedListResponse_User_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsGetBlockedListResponse_User_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n UserContactsGetBlockedList.proto\022\005prot" + + "o\032\rRequest.proto\032\016Response.proto\"=\n\032User" + + "ContactsGetBlockedList\022\037\n\007request\030\001 \001(\0132" + + "\016.proto.Request\"\260\001\n\"UserContactsGetBlock" + + "edListResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022<\n\004user\030\002 \003(\0132..proto.UserCont" + + "actsGetBlockedListResponse.User\032)\n\004User\022" + + "\017\n\007user_id\030\001 \001(\004\022\020\n\010cache_id\030\002 \001(\tB1\n\016ne" + + "t.iGap.protoB\037ProtoUserContactsGetBlocke" + + "dListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserContactsGetBlockedList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserContactsGetBlockedList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsGetBlockedList_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserContactsGetBlockedListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserContactsGetBlockedListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsGetBlockedListResponse_descriptor, + new java.lang.String[] { "Response", "User", }); + internal_static_proto_UserContactsGetBlockedListResponse_User_descriptor = + internal_static_proto_UserContactsGetBlockedListResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_UserContactsGetBlockedListResponse_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsGetBlockedListResponse_User_descriptor, + new java.lang.String[] { "UserId", "CacheId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserContactsGetList.java b/src/main/java/net/iGap/proto/ProtoUserContactsGetList.java index 4dce3ef..46d11d9 100644 --- a/src/main/java/net/iGap/proto/ProtoUserContactsGetList.java +++ b/src/main/java/net/iGap/proto/ProtoUserContactsGetList.java @@ -8,90 +8,170 @@ private ProtoUserContactsGetList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserContactsGetListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsGetList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserContactsGetList} */ - public static final class UserContactsGetList extends - com.google.protobuf.GeneratedMessageLite< - UserContactsGetList, UserContactsGetList.Builder> implements + public static final class UserContactsGetList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsGetList) UserContactsGetListOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsGetList.newBuilder() to construct. + private UserContactsGetList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsGetList() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsGetList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsGetList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.class, net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,254 +179,480 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList other = (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsGetList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsGetList) net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.class, net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList build() { + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList buildPartial() { + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList result = new net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList) { + return mergeFrom((net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList other) { + if (other == net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserContactsGetList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList other = (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsGetList) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsGetList) private static final net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsGetList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList(); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsGetList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsGetList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserContactsGetListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsGetListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.RegisteredUser registered_user = 2; @@ -361,82 +667,160 @@ public interface UserContactsGetListResponseOrBuilder extends * repeated .proto.RegisteredUser registered_user = 2; */ int getRegisteredUserCount(); + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + java.util.List + getRegisteredUserOrBuilderList(); + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getRegisteredUserOrBuilder( + int index); } /** * Protobuf type {@code proto.UserContactsGetListResponse} */ - public static final class UserContactsGetListResponse extends - com.google.protobuf.GeneratedMessageLite< - UserContactsGetListResponse, UserContactsGetListResponse.Builder> implements + public static final class UserContactsGetListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsGetListResponse) UserContactsGetListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsGetListResponse.newBuilder() to construct. + private UserContactsGetListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsGetListResponse() { - registeredUser_ = emptyProtobufList(); + registeredUser_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsGetListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsGetListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + registeredUser_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + registeredUser_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + registeredUser_ = java.util.Collections.unmodifiableList(registeredUser_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetListResponse_descriptor; } - private int bitField0_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.class, net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int REGISTERED_USER_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList registeredUser_; + private java.util.List registeredUser_; /** * repeated .proto.RegisteredUser registered_user = 2; */ + @java.lang.Override public java.util.List getRegisteredUserList() { return registeredUser_; } /** * repeated .proto.RegisteredUser registered_user = 2; */ + @java.lang.Override public java.util.List getRegisteredUserOrBuilderList() { return registeredUser_; @@ -444,108 +828,38 @@ public java.util.List getRegisteredUs /** * repeated .proto.RegisteredUser registered_user = 2; */ + @java.lang.Override public int getRegisteredUserCount() { return registeredUser_.size(); } /** * repeated .proto.RegisteredUser registered_user = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getRegisteredUser(int index) { return registeredUser_.get(index); } /** * repeated .proto.RegisteredUser registered_user = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getRegisteredUserOrBuilder( int index) { return registeredUser_.get(index); } - private void ensureRegisteredUserIsMutable() { - if (!registeredUser_.isModifiable()) { - registeredUser_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(registeredUser_); - } - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void setRegisteredUser( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredUserIsMutable(); - registeredUser_.set(index, value); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void setRegisteredUser( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - ensureRegisteredUserIsMutable(); - registeredUser_.set(index, builderForValue.build()); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void addRegisteredUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredUserIsMutable(); - registeredUser_.add(value); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void addRegisteredUser( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredUserIsMutable(); - registeredUser_.add(index, value); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void addRegisteredUser( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - ensureRegisteredUserIsMutable(); - registeredUser_.add(builderForValue.build()); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void addRegisteredUser( - int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - ensureRegisteredUserIsMutable(); - registeredUser_.add(index, builderForValue.build()); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void addAllRegisteredUser( - java.lang.Iterable values) { - ensureRegisteredUserIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, registeredUser_); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void clearRegisteredUser() { - registeredUser_ = emptyProtobufList(); - } - /** - * repeated .proto.RegisteredUser registered_user = 2; - */ - private void removeRegisteredUser(int index) { - ensureRegisteredUserIsMutable(); - registeredUser_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -554,10 +868,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < registeredUser_.size(); i++) { output.writeMessage(2, registeredUser_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -569,162 +885,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, registeredUser_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse other = (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getRegisteredUserList() + .equals(other.getRegisteredUserList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getRegisteredUserCount() > 0) { + hash = (37 * hash) + REGISTERED_USER_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredUserList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsGetListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsGetListResponse) net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.class, net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRegisteredUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (registeredUserBuilder_ == null) { + registeredUser_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + registeredUserBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsGetList.internal_static_proto_UserContactsGetListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse build() { + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse buildPartial() { + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse result = new net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (registeredUserBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + registeredUser_ = java.util.Collections.unmodifiableList(registeredUser_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.registeredUser_ = registeredUser_; + } else { + result.registeredUser_ = registeredUserBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse) { + return mergeFrom((net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse other) { + if (other == net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (registeredUserBuilder_ == null) { + if (!other.registeredUser_.isEmpty()) { + if (registeredUser_.isEmpty()) { + registeredUser_ = other.registeredUser_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRegisteredUserIsMutable(); + registeredUser_.addAll(other.registeredUser_); + } + onChanged(); + } + } else { + if (!other.registeredUser_.isEmpty()) { + if (registeredUserBuilder_.isEmpty()) { + registeredUserBuilder_.dispose(); + registeredUserBuilder_ = null; + registeredUser_ = other.registeredUser_; + bitField0_ = (bitField0_ & ~0x00000001); + registeredUserBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRegisteredUserFieldBuilder() : null; + } else { + registeredUserBuilder_.addAllMessages(other.registeredUser_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List registeredUser_ = + java.util.Collections.emptyList(); + private void ensureRegisteredUserIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + registeredUser_ = new java.util.ArrayList(registeredUser_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> registeredUserBuilder_; /** * repeated .proto.RegisteredUser registered_user = 2; */ public java.util.List getRegisteredUserList() { - return java.util.Collections.unmodifiableList( - instance.getRegisteredUserList()); + if (registeredUserBuilder_ == null) { + return java.util.Collections.unmodifiableList(registeredUser_); + } else { + return registeredUserBuilder_.getMessageList(); + } } /** * repeated .proto.RegisteredUser registered_user = 2; */ public int getRegisteredUserCount() { - return instance.getRegisteredUserCount(); - }/** + if (registeredUserBuilder_ == null) { + return registeredUser_.size(); + } else { + return registeredUserBuilder_.getCount(); + } + } + /** * repeated .proto.RegisteredUser registered_user = 2; */ public net.iGap.proto.ProtoGlobal.RegisteredUser getRegisteredUser(int index) { - return instance.getRegisteredUser(index); + if (registeredUserBuilder_ == null) { + return registeredUser_.get(index); + } else { + return registeredUserBuilder_.getMessage(index); + } } /** * repeated .proto.RegisteredUser registered_user = 2; */ public Builder setRegisteredUser( int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setRegisteredUser(index, value); + if (registeredUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredUserIsMutable(); + registeredUser_.set(index, value); + onChanged(); + } else { + registeredUserBuilder_.setMessage(index, value); + } return this; } /** @@ -732,16 +1403,29 @@ public Builder setRegisteredUser( */ public Builder setRegisteredUser( int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setRegisteredUser(index, builderForValue); + if (registeredUserBuilder_ == null) { + ensureRegisteredUserIsMutable(); + registeredUser_.set(index, builderForValue.build()); + onChanged(); + } else { + registeredUserBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.RegisteredUser registered_user = 2; */ public Builder addRegisteredUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.addRegisteredUser(value); + if (registeredUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredUserIsMutable(); + registeredUser_.add(value); + onChanged(); + } else { + registeredUserBuilder_.addMessage(value); + } return this; } /** @@ -749,8 +1433,16 @@ public Builder addRegisteredUser(net.iGap.proto.ProtoGlobal.RegisteredUser value */ public Builder addRegisteredUser( int index, net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.addRegisteredUser(index, value); + if (registeredUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredUserIsMutable(); + registeredUser_.add(index, value); + onChanged(); + } else { + registeredUserBuilder_.addMessage(index, value); + } return this; } /** @@ -758,8 +1450,13 @@ public Builder addRegisteredUser( */ public Builder addRegisteredUser( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.addRegisteredUser(builderForValue); + if (registeredUserBuilder_ == null) { + ensureRegisteredUserIsMutable(); + registeredUser_.add(builderForValue.build()); + onChanged(); + } else { + registeredUserBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -767,8 +1464,13 @@ public Builder addRegisteredUser( */ public Builder addRegisteredUser( int index, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.addRegisteredUser(index, builderForValue); + if (registeredUserBuilder_ == null) { + ensureRegisteredUserIsMutable(); + registeredUser_.add(index, builderForValue.build()); + onChanged(); + } else { + registeredUserBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -776,146 +1478,209 @@ public Builder addRegisteredUser( */ public Builder addAllRegisteredUser( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllRegisteredUser(values); + if (registeredUserBuilder_ == null) { + ensureRegisteredUserIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, registeredUser_); + onChanged(); + } else { + registeredUserBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.RegisteredUser registered_user = 2; */ public Builder clearRegisteredUser() { - copyOnWrite(); - instance.clearRegisteredUser(); + if (registeredUserBuilder_ == null) { + registeredUser_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + registeredUserBuilder_.clear(); + } return this; } /** * repeated .proto.RegisteredUser registered_user = 2; */ public Builder removeRegisteredUser(int index) { - copyOnWrite(); - instance.removeRegisteredUser(index); + if (registeredUserBuilder_ == null) { + ensureRegisteredUserIsMutable(); + registeredUser_.remove(index); + onChanged(); + } else { + registeredUserBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserContactsGetListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - registeredUser_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse other = (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - registeredUser_= visitor.visitList(registeredUser_, other.registeredUser_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!registeredUser_.isModifiable()) { - registeredUser_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(registeredUser_); - } - registeredUser_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getRegisteredUserBuilder( + int index) { + return getRegisteredUserFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getRegisteredUserOrBuilder( + int index) { + if (registeredUserBuilder_ == null) { + return registeredUser_.get(index); } else { + return registeredUserBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + public java.util.List + getRegisteredUserOrBuilderList() { + if (registeredUserBuilder_ != null) { + return registeredUserBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(registeredUser_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder addRegisteredUserBuilder() { + return getRegisteredUserFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()); + } + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder addRegisteredUserBuilder( + int index) { + return getRegisteredUserFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()); + } + /** + * repeated .proto.RegisteredUser registered_user = 2; + */ + public java.util.List + getRegisteredUserBuilderList() { + return getRegisteredUserFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getRegisteredUserFieldBuilder() { + if (registeredUserBuilder_ == null) { + registeredUserBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + registeredUser_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + registeredUser_ = null; } + return registeredUserBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserContactsGetListResponse) + } // @@protoc_insertion_point(class_scope:proto.UserContactsGetListResponse) private static final net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsGetListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse(); } public static net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsGetListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsGetListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsGetList.UserContactsGetListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsGetList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsGetList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsGetListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsGetListResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031UserContactsGetList.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\032\014Global.proto\"" + + "6\n\023UserContactsGetList\022\037\n\007request\030\001 \001(\0132" + + "\016.proto.Request\"p\n\033UserContactsGetListRe" + + "sponse\022!\n\010response\030\001 \001(\0132\017.proto.Respons" + + "e\022.\n\017registered_user\030\002 \003(\0132\025.proto.Regis" + + "teredUserB*\n\016net.iGap.protoB\030ProtoUserCo" + + "ntactsGetListb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserContactsGetList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserContactsGetList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsGetList_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserContactsGetListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserContactsGetListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsGetListResponse_descriptor, + new java.lang.String[] { "Response", "RegisteredUser", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserContactsImport.java b/src/main/java/net/iGap/proto/ProtoUserContactsImport.java index fafd4ab..5c19de6 100644 --- a/src/main/java/net/iGap/proto/ProtoUserContactsImport.java +++ b/src/main/java/net/iGap/proto/ProtoUserContactsImport.java @@ -8,18 +8,30 @@ private ProtoUserContactsImport() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserContactsImportOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsImport) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** * repeated .proto.UserContactsImport.Contact contacts = 2; @@ -34,18 +46,31 @@ public interface UserContactsImportOrBuilder extends * repeated .proto.UserContactsImport.Contact contacts = 2; */ int getContactsCount(); + /** + * repeated .proto.UserContactsImport.Contact contacts = 2; + */ + java.util.List + getContactsOrBuilderList(); + /** + * repeated .proto.UserContactsImport.Contact contacts = 2; + */ + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.ContactOrBuilder getContactsOrBuilder( + int index); /** - * optional bool force = 3; + * bool force = 3; + * @return The force. */ boolean getForce(); /** - * optional string contact_hash = 4; + * string contact_hash = 4; + * @return The contactHash. */ java.lang.String getContactHash(); /** - * optional string contact_hash = 4; + * string contact_hash = 4; + * @return The bytes for contactHash. */ com.google.protobuf.ByteString getContactHashBytes(); @@ -53,55 +78,167 @@ public interface UserContactsImportOrBuilder extends /** * Protobuf type {@code proto.UserContactsImport} */ - public static final class UserContactsImport extends - com.google.protobuf.GeneratedMessageLite< - UserContactsImport, UserContactsImport.Builder> implements + public static final class UserContactsImport extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsImport) UserContactsImportOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsImport.newBuilder() to construct. + private UserContactsImport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsImport() { - contacts_ = emptyProtobufList(); + contacts_ = java.util.Collections.emptyList(); contactHash_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsImport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsImport( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contacts_.add( + input.readMessage(net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.parser(), extensionRegistry)); + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + contactHash_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = java.util.Collections.unmodifiableList(contacts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Builder.class); + } + public interface ContactOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsImport.Contact) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string phone = 1; + * string phone = 1; + * @return The phone. */ java.lang.String getPhone(); /** - * optional string phone = 1; + * string phone = 1; + * @return The bytes for phone. */ com.google.protobuf.ByteString getPhoneBytes(); /** - * optional string first_name = 2; + * string first_name = 2; + * @return The firstName. */ java.lang.String getFirstName(); /** - * optional string first_name = 2; + * string first_name = 2; + * @return The bytes for firstName. */ com.google.protobuf.ByteString getFirstNameBytes(); /** - * optional string last_name = 3; + * string last_name = 3; + * @return The lastName. */ java.lang.String getLastName(); /** - * optional string last_name = 3; + * string last_name = 3; + * @return The bytes for lastName. */ com.google.protobuf.ByteString getLastNameBytes(); /** - * optional string client_id = 4; + * string client_id = 4; + * @return The clientId. */ java.lang.String getClientId(); /** - * optional string client_id = 4; + * string client_id = 4; + * @return The bytes for clientId. */ com.google.protobuf.ByteString getClientIdBytes(); @@ -109,671 +246,1008 @@ public interface ContactOrBuilder extends /** * Protobuf type {@code proto.UserContactsImport.Contact} */ - public static final class Contact extends - com.google.protobuf.GeneratedMessageLite< - Contact, Contact.Builder> implements + public static final class Contact extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsImport.Contact) ContactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Contact.newBuilder() to construct. + private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Contact() { phone_ = ""; firstName_ = ""; lastName_ = ""; clientId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Contact(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Contact( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + phone_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + firstName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + lastName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_Contact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder.class); + } + public static final int PHONE_FIELD_NUMBER = 1; - private java.lang.String phone_; + private volatile java.lang.Object phone_; /** - * optional string phone = 1; + * string phone = 1; + * @return The phone. */ + @java.lang.Override public java.lang.String getPhone() { - return phone_; + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } } /** - * optional string phone = 1; + * string phone = 1; + * @return The bytes for phone. */ + @java.lang.Override public com.google.protobuf.ByteString getPhoneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phone_); - } - /** - * optional string phone = 1; - */ - private void setPhone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phone_ = value; - } - /** - * optional string phone = 1; - */ - private void clearPhone() { - - phone_ = getDefaultInstance().getPhone(); - } - /** - * optional string phone = 1; - */ - private void setPhoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phone_ = value.toStringUtf8(); + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FIRST_NAME_FIELD_NUMBER = 2; - private java.lang.String firstName_; + private volatile java.lang.Object firstName_; /** - * optional string first_name = 2; + * string first_name = 2; + * @return The firstName. */ + @java.lang.Override public java.lang.String getFirstName() { - return firstName_; + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } } /** - * optional string first_name = 2; + * string first_name = 2; + * @return The bytes for firstName. */ + @java.lang.Override public com.google.protobuf.ByteString getFirstNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(firstName_); - } - /** - * optional string first_name = 2; - */ - private void setFirstName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firstName_ = value; - } - /** - * optional string first_name = 2; - */ - private void clearFirstName() { - - firstName_ = getDefaultInstance().getFirstName(); - } - /** - * optional string first_name = 2; - */ - private void setFirstNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firstName_ = value.toStringUtf8(); + java.lang.Object ref = firstName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LAST_NAME_FIELD_NUMBER = 3; - private java.lang.String lastName_; + private volatile java.lang.Object lastName_; /** - * optional string last_name = 3; + * string last_name = 3; + * @return The lastName. */ + @java.lang.Override public java.lang.String getLastName() { - return lastName_; + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } } /** - * optional string last_name = 3; + * string last_name = 3; + * @return The bytes for lastName. */ + @java.lang.Override public com.google.protobuf.ByteString getLastNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(lastName_); - } - /** - * optional string last_name = 3; - */ - private void setLastName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastName_ = value; - } - /** - * optional string last_name = 3; - */ - private void clearLastName() { - - lastName_ = getDefaultInstance().getLastName(); - } - /** - * optional string last_name = 3; - */ - private void setLastNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastName_ = value.toStringUtf8(); + java.lang.Object ref = lastName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CLIENT_ID_FIELD_NUMBER = 4; - private java.lang.String clientId_; + private volatile java.lang.Object clientId_; /** - * optional string client_id = 4; + * string client_id = 4; + * @return The clientId. */ + @java.lang.Override public java.lang.String getClientId() { - return clientId_; + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } } /** - * optional string client_id = 4; + * string client_id = 4; + * @return The bytes for clientId. */ + @java.lang.Override public com.google.protobuf.ByteString getClientIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(clientId_); - } - /** - * optional string client_id = 4; - */ - private void setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - } - /** - * optional string client_id = 4; - */ - private void clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string client_id = 4; - */ - private void setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!phone_.isEmpty()) { - output.writeString(1, getPhone()); + if (!getPhoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phone_); } - if (!firstName_.isEmpty()) { - output.writeString(2, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firstName_); } - if (!lastName_.isEmpty()) { - output.writeString(3, getLastName()); + if (!getLastNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, lastName_); } - if (!clientId_.isEmpty()) { - output.writeString(4, getClientId()); + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clientId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!phone_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getPhone()); + if (!getPhoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phone_); } - if (!firstName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getFirstName()); + if (!getFirstNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firstName_); } - if (!lastName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getLastName()); + if (!getLastNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, lastName_); } - if (!clientId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getClientId()); + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clientId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact) obj; + + if (!getPhone() + .equals(other.getPhone())) return false; + if (!getFirstName() + .equals(other.getFirstName())) return false; + if (!getLastName() + .equals(other.getLastName())) return false; + if (!getClientId() + .equals(other.getClientId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + hash = (37 * hash) + FIRST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFirstName().hashCode(); + hash = (37 * hash) + LAST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLastName().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsImport.Contact} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsImport.Contact) net.iGap.proto.ProtoUserContactsImport.UserContactsImport.ContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_Contact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + phone_ = ""; + + firstName_ = ""; + + lastName_ = ""; + + clientId_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_Contact_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact build() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact buildPartial() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact result = new net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact(this); + result.phone_ = phone_; + result.firstName_ = firstName_; + result.lastName_ = lastName_; + result.clientId_ = clientId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact) { + return mergeFrom((net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact other) { + if (other == net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.getDefaultInstance()) return this; + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + onChanged(); + } + if (!other.getFirstName().isEmpty()) { + firstName_ = other.firstName_; + onChanged(); + } + if (!other.getLastName().isEmpty()) { + lastName_ = other.lastName_; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private java.lang.Object phone_ = ""; /** - * optional string phone = 1; + * string phone = 1; + * @return The phone. */ public java.lang.String getPhone() { - return instance.getPhone(); + java.lang.Object ref = phone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string phone = 1; + * string phone = 1; + * @return The bytes for phone. */ public com.google.protobuf.ByteString getPhoneBytes() { - return instance.getPhoneBytes(); + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone = 1; + * string phone = 1; + * @param value The phone to set. + * @return This builder for chaining. */ public Builder setPhone( java.lang.String value) { - copyOnWrite(); - instance.setPhone(value); + if (value == null) { + throw new NullPointerException(); + } + + phone_ = value; + onChanged(); return this; } /** - * optional string phone = 1; + * string phone = 1; + * @return This builder for chaining. */ public Builder clearPhone() { - copyOnWrite(); - instance.clearPhone(); + + phone_ = getDefaultInstance().getPhone(); + onChanged(); return this; } /** - * optional string phone = 1; + * string phone = 1; + * @param value The bytes for phone to set. + * @return This builder for chaining. */ public Builder setPhoneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phone_ = value; + onChanged(); return this; } + private java.lang.Object firstName_ = ""; /** - * optional string first_name = 2; + * string first_name = 2; + * @return The firstName. */ public java.lang.String getFirstName() { - return instance.getFirstName(); + java.lang.Object ref = firstName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string first_name = 2; + * string first_name = 2; + * @return The bytes for firstName. */ public com.google.protobuf.ByteString getFirstNameBytes() { - return instance.getFirstNameBytes(); + java.lang.Object ref = firstName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firstName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string first_name = 2; + * string first_name = 2; + * @param value The firstName to set. + * @return This builder for chaining. */ public Builder setFirstName( java.lang.String value) { - copyOnWrite(); - instance.setFirstName(value); + if (value == null) { + throw new NullPointerException(); + } + + firstName_ = value; + onChanged(); return this; } /** - * optional string first_name = 2; + * string first_name = 2; + * @return This builder for chaining. */ public Builder clearFirstName() { - copyOnWrite(); - instance.clearFirstName(); + + firstName_ = getDefaultInstance().getFirstName(); + onChanged(); return this; } /** - * optional string first_name = 2; + * string first_name = 2; + * @param value The bytes for firstName to set. + * @return This builder for chaining. */ public Builder setFirstNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFirstNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + firstName_ = value; + onChanged(); return this; } + private java.lang.Object lastName_ = ""; /** - * optional string last_name = 3; + * string last_name = 3; + * @return The lastName. */ public java.lang.String getLastName() { - return instance.getLastName(); + java.lang.Object ref = lastName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string last_name = 3; + * string last_name = 3; + * @return The bytes for lastName. */ public com.google.protobuf.ByteString getLastNameBytes() { - return instance.getLastNameBytes(); + java.lang.Object ref = lastName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string last_name = 3; + * string last_name = 3; + * @param value The lastName to set. + * @return This builder for chaining. */ public Builder setLastName( java.lang.String value) { - copyOnWrite(); - instance.setLastName(value); + if (value == null) { + throw new NullPointerException(); + } + + lastName_ = value; + onChanged(); return this; } /** - * optional string last_name = 3; + * string last_name = 3; + * @return This builder for chaining. */ public Builder clearLastName() { - copyOnWrite(); - instance.clearLastName(); + + lastName_ = getDefaultInstance().getLastName(); + onChanged(); return this; } /** - * optional string last_name = 3; + * string last_name = 3; + * @param value The bytes for lastName to set. + * @return This builder for chaining. */ public Builder setLastNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setLastNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastName_ = value; + onChanged(); return this; } + private java.lang.Object clientId_ = ""; /** - * optional string client_id = 4; + * string client_id = 4; + * @return The clientId. */ public java.lang.String getClientId() { - return instance.getClientId(); + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string client_id = 4; + * string client_id = 4; + * @return The bytes for clientId. */ public com.google.protobuf.ByteString getClientIdBytes() { - return instance.getClientIdBytes(); + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string client_id = 4; + * string client_id = 4; + * @param value The clientId to set. + * @return This builder for chaining. */ public Builder setClientId( java.lang.String value) { - copyOnWrite(); - instance.setClientId(value); + if (value == null) { + throw new NullPointerException(); + } + + clientId_ = value; + onChanged(); return this; } /** - * optional string client_id = 4; + * string client_id = 4; + * @return This builder for chaining. */ public Builder clearClientId() { - copyOnWrite(); - instance.clearClientId(); + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); return this; } /** - * optional string client_id = 4; + * string client_id = 4; + * @param value The bytes for clientId to set. + * @return This builder for chaining. */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClientIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientId_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsImport.Contact) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact) arg1; - phone_ = visitor.visitString(!phone_.isEmpty(), phone_, - !other.phone_.isEmpty(), other.phone_); - firstName_ = visitor.visitString(!firstName_.isEmpty(), firstName_, - !other.firstName_.isEmpty(), other.firstName_); - lastName_ = visitor.visitString(!lastName_.isEmpty(), lastName_, - !other.lastName_.isEmpty(), other.lastName_); - clientId_ = visitor.visitString(!clientId_.isEmpty(), clientId_, - !other.clientId_.isEmpty(), other.clientId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - phone_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - firstName_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - lastName_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsImport.Contact) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsImport.Contact) private static final net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Contact(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact(); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Contact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Contact(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CONTACTS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList contacts_; + private java.util.List contacts_; /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ + @java.lang.Override public java.util.List getContactsList() { return contacts_; } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ + @java.lang.Override public java.util.List getContactsOrBuilderList() { return contacts_; @@ -781,177 +1255,87 @@ public java.util.Listrepeated .proto.UserContactsImport.Contact contacts = 2; */ + @java.lang.Override public int getContactsCount() { return contacts_.size(); } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact getContacts(int index) { return contacts_.get(index); } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.ContactOrBuilder getContactsOrBuilder( int index) { return contacts_.get(index); } - private void ensureContactsIsMutable() { - if (!contacts_.isModifiable()) { - contacts_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(contacts_); - } - } - - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void setContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactsIsMutable(); - contacts_.set(index, value); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void setContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder builderForValue) { - ensureContactsIsMutable(); - contacts_.set(index, builderForValue.build()); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void addContacts(net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactsIsMutable(); - contacts_.add(value); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void addContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactsIsMutable(); - contacts_.add(index, value); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void addContacts( - net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder builderForValue) { - ensureContactsIsMutable(); - contacts_.add(builderForValue.build()); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void addContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder builderForValue) { - ensureContactsIsMutable(); - contacts_.add(index, builderForValue.build()); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void addAllContacts( - java.lang.Iterable values) { - ensureContactsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, contacts_); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void clearContacts() { - contacts_ = emptyProtobufList(); - } - /** - * repeated .proto.UserContactsImport.Contact contacts = 2; - */ - private void removeContacts(int index) { - ensureContactsIsMutable(); - contacts_.remove(index); - } public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * optional bool force = 3; + * bool force = 3; + * @return The force. */ + @java.lang.Override public boolean getForce() { return force_; } - /** - * optional bool force = 3; - */ - private void setForce(boolean value) { - - force_ = value; - } - /** - * optional bool force = 3; - */ - private void clearForce() { - - force_ = false; - } public static final int CONTACT_HASH_FIELD_NUMBER = 4; - private java.lang.String contactHash_; + private volatile java.lang.Object contactHash_; /** - * optional string contact_hash = 4; + * string contact_hash = 4; + * @return The contactHash. */ + @java.lang.Override public java.lang.String getContactHash() { - return contactHash_; + java.lang.Object ref = contactHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactHash_ = s; + return s; + } } /** - * optional string contact_hash = 4; + * string contact_hash = 4; + * @return The bytes for contactHash. */ + @java.lang.Override public com.google.protobuf.ByteString getContactHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(contactHash_); - } - /** - * optional string contact_hash = 4; - */ - private void setContactHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contactHash_ = value; - } - /** - * optional string contact_hash = 4; - */ - private void clearContactHash() { - - contactHash_ = getDefaultInstance().getContactHash(); + java.lang.Object ref = contactHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contactHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string contact_hash = 4; - */ - private void setContactHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contactHash_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -963,13 +1347,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (force_ != false) { output.writeBool(3, force_); } - if (!contactHash_.isEmpty()) { - output.writeString(4, getContactHash()); + if (!getContactHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, contactHash_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -985,166 +1371,542 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, force_); } - if (!contactHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getContactHash()); + if (!getContactHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, contactHash_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImport)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsImport.UserContactsImport other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImport) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getContactsList() + .equals(other.getContactsList())) return false; + if (getForce() + != other.getForce()) return false; + if (!getContactHash() + .equals(other.getContactHash())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (getContactsCount() > 0) { + hash = (37 * hash) + CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getContactsList().hashCode(); + } + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); + hash = (37 * hash) + CONTACT_HASH_FIELD_NUMBER; + hash = (53 * hash) + getContactHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsImport.UserContactsImport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsImport} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsImport.UserContactsImport, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsImport) net.iGap.proto.ProtoUserContactsImport.UserContactsImportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsImport.UserContactsImport.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getContactsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + contactsBuilder_.clear(); + } + force_ = false; + + contactHash_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImport_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsImport.UserContactsImport.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport build() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport buildPartial() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImport result = new net.iGap.proto.ProtoUserContactsImport.UserContactsImport(this); + int from_bitField0_ = bitField0_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (contactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contacts_ = java.util.Collections.unmodifiableList(contacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contacts_ = contacts_; + } else { + result.contacts_ = contactsBuilder_.build(); + } + result.force_ = force_; + result.contactHash_ = contactHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImport) { + return mergeFrom((net.iGap.proto.ProtoUserContactsImport.UserContactsImport)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsImport.UserContactsImport other) { + if (other == net.iGap.proto.ProtoUserContactsImport.UserContactsImport.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (contactsBuilder_ == null) { + if (!other.contacts_.isEmpty()) { + if (contacts_.isEmpty()) { + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContactsIsMutable(); + contacts_.addAll(other.contacts_); + } + onChanged(); + } + } else { + if (!other.contacts_.isEmpty()) { + if (contactsBuilder_.isEmpty()) { + contactsBuilder_.dispose(); + contactsBuilder_ = null; + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getContactsFieldBuilder() : null; + } else { + contactsBuilder_.addAllMessages(other.contacts_); + } + } + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (!other.getContactHash().isEmpty()) { + contactHash_ = other.contactHash_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsImport.UserContactsImport parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsImport.UserContactsImport) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.util.List contacts_ = + java.util.Collections.emptyList(); + private void ensureContactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contacts_ = new java.util.ArrayList(contacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.ContactOrBuilder> contactsBuilder_; /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ public java.util.List getContactsList() { - return java.util.Collections.unmodifiableList( - instance.getContactsList()); + if (contactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contacts_); + } else { + return contactsBuilder_.getMessageList(); + } } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ public int getContactsCount() { - return instance.getContactsCount(); - }/** + if (contactsBuilder_ == null) { + return contacts_.size(); + } else { + return contactsBuilder_.getCount(); + } + } + /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact getContacts(int index) { - return instance.getContacts(index); + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessage(index); + } } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ public Builder setContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact value) { - copyOnWrite(); - instance.setContacts(index, value); + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.set(index, value); + onChanged(); + } else { + contactsBuilder_.setMessage(index, value); + } return this; } /** @@ -1152,16 +1914,29 @@ public Builder setContacts( */ public Builder setContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder builderForValue) { - copyOnWrite(); - instance.setContacts(index, builderForValue); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.set(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ public Builder addContacts(net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact value) { - copyOnWrite(); - instance.addContacts(value); + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(value); + onChanged(); + } else { + contactsBuilder_.addMessage(value); + } return this; } /** @@ -1169,8 +1944,16 @@ public Builder addContacts(net.iGap.proto.ProtoUserContactsImport.UserContactsIm */ public Builder addContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact value) { - copyOnWrite(); - instance.addContacts(index, value); + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(index, value); + onChanged(); + } else { + contactsBuilder_.addMessage(index, value); + } return this; } /** @@ -1178,8 +1961,13 @@ public Builder addContacts( */ public Builder addContacts( net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder builderForValue) { - copyOnWrite(); - instance.addContacts(builderForValue); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1187,8 +1975,13 @@ public Builder addContacts( */ public Builder addContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder builderForValue) { - copyOnWrite(); - instance.addContacts(index, builderForValue); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1196,234 +1989,284 @@ public Builder addContacts( */ public Builder addAllContacts( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllContacts(values); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contacts_); + onChanged(); + } else { + contactsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ public Builder clearContacts() { - copyOnWrite(); - instance.clearContacts(); + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contactsBuilder_.clear(); + } return this; } /** * repeated .proto.UserContactsImport.Contact contacts = 2; */ public Builder removeContacts(int index) { - copyOnWrite(); - instance.removeContacts(index); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.remove(index); + onChanged(); + } else { + contactsBuilder_.remove(index); + } return this; } - /** - * optional bool force = 3; + * repeated .proto.UserContactsImport.Contact contacts = 2; */ - public boolean getForce() { - return instance.getForce(); + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder getContactsBuilder( + int index) { + return getContactsFieldBuilder().getBuilder(index); } /** - * optional bool force = 3; + * repeated .proto.UserContactsImport.Contact contacts = 2; */ - public Builder setForce(boolean value) { - copyOnWrite(); - instance.setForce(value); - return this; + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.ContactOrBuilder getContactsOrBuilder( + int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); } else { + return contactsBuilder_.getMessageOrBuilder(index); + } } /** - * optional bool force = 3; + * repeated .proto.UserContactsImport.Contact contacts = 2; */ - public Builder clearForce() { - copyOnWrite(); - instance.clearForce(); - return this; + public java.util.List + getContactsOrBuilderList() { + if (contactsBuilder_ != null) { + return contactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contacts_); + } } - /** - * optional string contact_hash = 4; + * repeated .proto.UserContactsImport.Contact contacts = 2; */ - public java.lang.String getContactHash() { - return instance.getContactHash(); + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder addContactsBuilder() { + return getContactsFieldBuilder().addBuilder( + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.getDefaultInstance()); } /** - * optional string contact_hash = 4; + * repeated .proto.UserContactsImport.Contact contacts = 2; */ - public com.google.protobuf.ByteString - getContactHashBytes() { - return instance.getContactHashBytes(); + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder addContactsBuilder( + int index) { + return getContactsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.getDefaultInstance()); } /** - * optional string contact_hash = 4; + * repeated .proto.UserContactsImport.Contact contacts = 2; */ - public Builder setContactHash( - java.lang.String value) { - copyOnWrite(); - instance.setContactHash(value); - return this; + public java.util.List + getContactsBuilderList() { + return getContactsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.ContactOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.Builder, net.iGap.proto.ProtoUserContactsImport.UserContactsImport.ContactOrBuilder>( + contacts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + contacts_ = null; + } + return contactsBuilder_; } + + private boolean force_ ; /** - * optional string contact_hash = 4; + * bool force = 3; + * @return The force. */ - public Builder clearContactHash() { - copyOnWrite(); - instance.clearContactHash(); - return this; + @java.lang.Override + public boolean getForce() { + return force_; } /** - * optional string contact_hash = 4; + * bool force = 3; + * @param value The force to set. + * @return This builder for chaining. */ - public Builder setContactHashBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setContactHashBytes(value); + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * bool force = 3; + * @return This builder for chaining. + */ + public Builder clearForce() { + + force_ = false; + onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:proto.UserContactsImport) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsImport.UserContactsImport(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - contacts_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsImport.UserContactsImport other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImport) arg1; - request_ = visitor.visitMessage(request_, other.request_); - contacts_= visitor.visitList(contacts_, other.contacts_); - force_ = visitor.visitBoolean(force_ != false, force_, - other.force_ != false, other.force_); - contactHash_ = visitor.visitString(!contactHash_.isEmpty(), contactHash_, - !other.contactHash_.isEmpty(), other.contactHash_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!contacts_.isModifiable()) { - contacts_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(contacts_); - } - contacts_.add( - input.readMessage(net.iGap.proto.ProtoUserContactsImport.UserContactsImport.Contact.parser(), extensionRegistry)); - break; - } - case 24: { - - force_ = input.readBool(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - contactHash_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + private java.lang.Object contactHash_ = ""; + /** + * string contact_hash = 4; + * @return The contactHash. + */ + public java.lang.String getContactHash() { + java.lang.Object ref = contactHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactHash_ = s; + return s; + } else { + return (java.lang.String) ref; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsImport.UserContactsImport.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * string contact_hash = 4; + * @return The bytes for contactHash. + */ + public com.google.protobuf.ByteString + getContactHashBytes() { + java.lang.Object ref = contactHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contactHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - throw new UnsupportedOperationException(); - } + /** + * string contact_hash = 4; + * @param value The contactHash to set. + * @return This builder for chaining. + */ + public Builder setContactHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contactHash_ = value; + onChanged(); + return this; + } + /** + * string contact_hash = 4; + * @return This builder for chaining. + */ + public Builder clearContactHash() { + + contactHash_ = getDefaultInstance().getContactHash(); + onChanged(); + return this; + } + /** + * string contact_hash = 4; + * @param value The bytes for contactHash to set. + * @return This builder for chaining. + */ + public Builder setContactHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contactHash_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserContactsImport) + } // @@protoc_insertion_point(class_scope:proto.UserContactsImport) private static final net.iGap.proto.ProtoUserContactsImport.UserContactsImport DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsImport(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsImport.UserContactsImport(); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImport getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsImport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsImport(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserContactsImportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsImportResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; @@ -1438,459 +2281,799 @@ public interface UserContactsImportResponseOrBuilder extends * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ int getRegisteredContactsCount(); + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + java.util.List + getRegisteredContactsOrBuilderList(); + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.ContactOrBuilder getRegisteredContactsOrBuilder( + int index); } /** * Protobuf type {@code proto.UserContactsImportResponse} */ - public static final class UserContactsImportResponse extends - com.google.protobuf.GeneratedMessageLite< - UserContactsImportResponse, UserContactsImportResponse.Builder> implements + public static final class UserContactsImportResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsImportResponse) UserContactsImportResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsImportResponse.newBuilder() to construct. + private UserContactsImportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsImportResponse() { - registeredContacts_ = emptyProtobufList(); + registeredContacts_ = java.util.Collections.emptyList(); } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsImportResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsImportResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + registeredContacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + registeredContacts_.add( + input.readMessage(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + registeredContacts_ = java.util.Collections.unmodifiableList(registeredContacts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Builder.class); + } + public interface ContactOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsImportResponse.Contact) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional string client_id = 1; + * string client_id = 1; + * @return The clientId. */ java.lang.String getClientId(); /** - * optional string client_id = 1; + * string client_id = 1; + * @return The bytes for clientId. */ com.google.protobuf.ByteString getClientIdBytes(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserContactsImportResponse.Contact} */ - public static final class Contact extends - com.google.protobuf.GeneratedMessageLite< - Contact, Contact.Builder> implements + public static final class Contact extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsImportResponse.Contact) ContactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Contact.newBuilder() to construct. + private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Contact() { clientId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Contact(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Contact( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = s; + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_Contact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder.class); + } + public static final int CLIENT_ID_FIELD_NUMBER = 1; - private java.lang.String clientId_; + private volatile java.lang.Object clientId_; /** - * optional string client_id = 1; + * string client_id = 1; + * @return The clientId. */ + @java.lang.Override public java.lang.String getClientId() { - return clientId_; + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } } /** - * optional string client_id = 1; + * string client_id = 1; + * @return The bytes for clientId. */ + @java.lang.Override public com.google.protobuf.ByteString getClientIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(clientId_); - } - /** - * optional string client_id = 1; - */ - private void setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - } - /** - * optional string client_id = 1; - */ - private void clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - } - /** - * optional string client_id = 1; - */ - private void setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value.toStringUtf8(); + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!clientId_.isEmpty()) { - output.writeString(1, getClientId()); + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); } if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (!clientId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getClientId()); + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); } if (userId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact) obj; + + if (!getClientId() + .equals(other.getClientId())) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsImportResponse.Contact} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsImportResponse.Contact) net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.ContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_Contact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + clientId_ = ""; + + userId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_Contact_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact build() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact buildPartial() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact result = new net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact(this); + result.clientId_ = clientId_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact) { + return mergeFrom((net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact other) { + if (other == net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.getDefaultInstance()) return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + onChanged(); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object clientId_ = ""; /** - * optional string client_id = 1; + * string client_id = 1; + * @return The clientId. */ public java.lang.String getClientId() { - return instance.getClientId(); + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string client_id = 1; + * string client_id = 1; + * @return The bytes for clientId. */ public com.google.protobuf.ByteString getClientIdBytes() { - return instance.getClientIdBytes(); + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string client_id = 1; + * string client_id = 1; + * @param value The clientId to set. + * @return This builder for chaining. */ public Builder setClientId( java.lang.String value) { - copyOnWrite(); - instance.setClientId(value); + if (value == null) { + throw new NullPointerException(); + } + + clientId_ = value; + onChanged(); return this; } /** - * optional string client_id = 1; + * string client_id = 1; + * @return This builder for chaining. */ public Builder clearClientId() { - copyOnWrite(); - instance.clearClientId(); + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); return this; } /** - * optional string client_id = 1; + * string client_id = 1; + * @param value The bytes for clientId to set. + * @return This builder for chaining. */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClientIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientId_ = value; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsImportResponse.Contact) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact) arg1; - clientId_ = visitor.visitString(!clientId_.isEmpty(), clientId_, - !other.clientId_.isEmpty(), other.clientId_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsImportResponse.Contact) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsImportResponse.Contact) private static final net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Contact(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact(); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Contact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Contact(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int REGISTERED_CONTACTS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList registeredContacts_; + private java.util.List registeredContacts_; /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ + @java.lang.Override public java.util.List getRegisteredContactsList() { return registeredContacts_; } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ + @java.lang.Override public java.util.List getRegisteredContactsOrBuilderList() { return registeredContacts_; @@ -1898,108 +3081,38 @@ public java.util.Listrepeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ + @java.lang.Override public int getRegisteredContactsCount() { return registeredContacts_.size(); } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact getRegisteredContacts(int index) { return registeredContacts_.get(index); } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.ContactOrBuilder getRegisteredContactsOrBuilder( int index) { return registeredContacts_.get(index); } - private void ensureRegisteredContactsIsMutable() { - if (!registeredContacts_.isModifiable()) { - registeredContacts_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(registeredContacts_); - } - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void setRegisteredContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredContactsIsMutable(); - registeredContacts_.set(index, value); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void setRegisteredContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder builderForValue) { - ensureRegisteredContactsIsMutable(); - registeredContacts_.set(index, builderForValue.build()); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void addRegisteredContacts(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredContactsIsMutable(); - registeredContacts_.add(value); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void addRegisteredContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredContactsIsMutable(); - registeredContacts_.add(index, value); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void addRegisteredContacts( - net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder builderForValue) { - ensureRegisteredContactsIsMutable(); - registeredContacts_.add(builderForValue.build()); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void addRegisteredContacts( - int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder builderForValue) { - ensureRegisteredContactsIsMutable(); - registeredContacts_.add(index, builderForValue.build()); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void addAllRegisteredContacts( - java.lang.Iterable values) { - ensureRegisteredContactsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, registeredContacts_); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void clearRegisteredContacts() { - registeredContacts_ = emptyProtobufList(); - } - /** - * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - */ - private void removeRegisteredContacts(int index) { - ensureRegisteredContactsIsMutable(); - registeredContacts_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -2008,10 +3121,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < registeredContacts_.size(); i++) { output.writeMessage(2, registeredContacts_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2023,162 +3138,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, registeredContacts_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getRegisteredContactsList() + .equals(other.getRegisteredContactsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getRegisteredContactsCount() > 0) { + hash = (37 * hash) + REGISTERED_CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredContactsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsImportResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsImportResponse) net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.class, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRegisteredContactsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (registeredContactsBuilder_ == null) { + registeredContacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + registeredContactsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsImport.internal_static_proto_UserContactsImportResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse build() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse buildPartial() { + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse result = new net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (registeredContactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + registeredContacts_ = java.util.Collections.unmodifiableList(registeredContacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.registeredContacts_ = registeredContacts_; + } else { + result.registeredContacts_ = registeredContactsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse) { + return mergeFrom((net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse other) { + if (other == net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (registeredContactsBuilder_ == null) { + if (!other.registeredContacts_.isEmpty()) { + if (registeredContacts_.isEmpty()) { + registeredContacts_ = other.registeredContacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRegisteredContactsIsMutable(); + registeredContacts_.addAll(other.registeredContacts_); + } + onChanged(); + } + } else { + if (!other.registeredContacts_.isEmpty()) { + if (registeredContactsBuilder_.isEmpty()) { + registeredContactsBuilder_.dispose(); + registeredContactsBuilder_ = null; + registeredContacts_ = other.registeredContacts_; + bitField0_ = (bitField0_ & ~0x00000001); + registeredContactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRegisteredContactsFieldBuilder() : null; + } else { + registeredContactsBuilder_.addAllMessages(other.registeredContacts_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List registeredContacts_ = + java.util.Collections.emptyList(); + private void ensureRegisteredContactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + registeredContacts_ = new java.util.ArrayList(registeredContacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.ContactOrBuilder> registeredContactsBuilder_; /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ public java.util.List getRegisteredContactsList() { - return java.util.Collections.unmodifiableList( - instance.getRegisteredContactsList()); + if (registeredContactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(registeredContacts_); + } else { + return registeredContactsBuilder_.getMessageList(); + } } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ public int getRegisteredContactsCount() { - return instance.getRegisteredContactsCount(); - }/** + if (registeredContactsBuilder_ == null) { + return registeredContacts_.size(); + } else { + return registeredContactsBuilder_.getCount(); + } + } + /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact getRegisteredContacts(int index) { - return instance.getRegisteredContacts(index); + if (registeredContactsBuilder_ == null) { + return registeredContacts_.get(index); + } else { + return registeredContactsBuilder_.getMessage(index); + } } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ public Builder setRegisteredContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact value) { - copyOnWrite(); - instance.setRegisteredContacts(index, value); + if (registeredContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredContactsIsMutable(); + registeredContacts_.set(index, value); + onChanged(); + } else { + registeredContactsBuilder_.setMessage(index, value); + } return this; } /** @@ -2186,16 +3656,29 @@ public Builder setRegisteredContacts( */ public Builder setRegisteredContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder builderForValue) { - copyOnWrite(); - instance.setRegisteredContacts(index, builderForValue); + if (registeredContactsBuilder_ == null) { + ensureRegisteredContactsIsMutable(); + registeredContacts_.set(index, builderForValue.build()); + onChanged(); + } else { + registeredContactsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ public Builder addRegisteredContacts(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact value) { - copyOnWrite(); - instance.addRegisteredContacts(value); + if (registeredContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredContactsIsMutable(); + registeredContacts_.add(value); + onChanged(); + } else { + registeredContactsBuilder_.addMessage(value); + } return this; } /** @@ -2203,8 +3686,16 @@ public Builder addRegisteredContacts(net.iGap.proto.ProtoUserContactsImport.User */ public Builder addRegisteredContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact value) { - copyOnWrite(); - instance.addRegisteredContacts(index, value); + if (registeredContactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredContactsIsMutable(); + registeredContacts_.add(index, value); + onChanged(); + } else { + registeredContactsBuilder_.addMessage(index, value); + } return this; } /** @@ -2212,8 +3703,13 @@ public Builder addRegisteredContacts( */ public Builder addRegisteredContacts( net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder builderForValue) { - copyOnWrite(); - instance.addRegisteredContacts(builderForValue); + if (registeredContactsBuilder_ == null) { + ensureRegisteredContactsIsMutable(); + registeredContacts_.add(builderForValue.build()); + onChanged(); + } else { + registeredContactsBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -2221,8 +3717,13 @@ public Builder addRegisteredContacts( */ public Builder addRegisteredContacts( int index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder builderForValue) { - copyOnWrite(); - instance.addRegisteredContacts(index, builderForValue); + if (registeredContactsBuilder_ == null) { + ensureRegisteredContactsIsMutable(); + registeredContacts_.add(index, builderForValue.build()); + onChanged(); + } else { + registeredContactsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -2230,146 +3731,235 @@ public Builder addRegisteredContacts( */ public Builder addAllRegisteredContacts( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllRegisteredContacts(values); + if (registeredContactsBuilder_ == null) { + ensureRegisteredContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, registeredContacts_); + onChanged(); + } else { + registeredContactsBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ public Builder clearRegisteredContacts() { - copyOnWrite(); - instance.clearRegisteredContacts(); + if (registeredContactsBuilder_ == null) { + registeredContacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + registeredContactsBuilder_.clear(); + } return this; } /** * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; */ public Builder removeRegisteredContacts(int index) { - copyOnWrite(); - instance.removeRegisteredContacts(index); + if (registeredContactsBuilder_ == null) { + ensureRegisteredContactsIsMutable(); + registeredContacts_.remove(index); + onChanged(); + } else { + registeredContactsBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserContactsImportResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - registeredContacts_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse other = (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - registeredContacts_= visitor.visitList(registeredContacts_, other.registeredContacts_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!registeredContacts_.isModifiable()) { - registeredContacts_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(registeredContacts_); - } - registeredContacts_.add( - input.readMessage(net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder getRegisteredContactsBuilder( + int index) { + return getRegisteredContactsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.ContactOrBuilder getRegisteredContactsOrBuilder( + int index) { + if (registeredContactsBuilder_ == null) { + return registeredContacts_.get(index); } else { + return registeredContactsBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + public java.util.List + getRegisteredContactsOrBuilderList() { + if (registeredContactsBuilder_ != null) { + return registeredContactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(registeredContacts_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder addRegisteredContactsBuilder() { + return getRegisteredContactsFieldBuilder().addBuilder( + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.getDefaultInstance()); + } + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder addRegisteredContactsBuilder( + int index) { + return getRegisteredContactsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.getDefaultInstance()); + } + /** + * repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; + */ + public java.util.List + getRegisteredContactsBuilderList() { + return getRegisteredContactsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.ContactOrBuilder> + getRegisteredContactsFieldBuilder() { + if (registeredContactsBuilder_ == null) { + registeredContactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.Contact.Builder, net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse.ContactOrBuilder>( + registeredContacts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + registeredContacts_ = null; } + return registeredContactsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsImportResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsImportResponse) private static final net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsImportResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse(); } public static net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsImportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsImportResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsImport.UserContactsImportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsImport_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsImport_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsImport_Contact_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsImport_Contact_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsImportResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsImportResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsImportResponse_Contact_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsImportResponse_Contact_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030UserContactsImport.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"\343\001\n\022UserContact" + + "sImport\022\037\n\007request\030\001 \001(\0132\016.proto.Request" + + "\0223\n\010contacts\030\002 \003(\0132!.proto.UserContactsI" + + "mport.Contact\022\r\n\005force\030\003 \001(\010\022\024\n\014contact_" + + "hash\030\004 \001(\t\032R\n\007Contact\022\r\n\005phone\030\001 \001(\t\022\022\n\n" + + "first_name\030\002 \001(\t\022\021\n\tlast_name\030\003 \001(\t\022\021\n\tc" + + "lient_id\030\004 \001(\t\"\266\001\n\032UserContactsImportRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "\022F\n\023registered_contacts\030\002 \003(\0132).proto.Us" + + "erContactsImportResponse.Contact\032-\n\007Cont" + + "act\022\021\n\tclient_id\030\001 \001(\t\022\017\n\007user_id\030\002 \001(\004B" + + ")\n\016net.iGap.protoB\027ProtoUserContactsImpo" + + "rtb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserContactsImport_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserContactsImport_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsImport_descriptor, + new java.lang.String[] { "Request", "Contacts", "Force", "ContactHash", }); + internal_static_proto_UserContactsImport_Contact_descriptor = + internal_static_proto_UserContactsImport_descriptor.getNestedTypes().get(0); + internal_static_proto_UserContactsImport_Contact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsImport_Contact_descriptor, + new java.lang.String[] { "Phone", "FirstName", "LastName", "ClientId", }); + internal_static_proto_UserContactsImportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserContactsImportResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsImportResponse_descriptor, + new java.lang.String[] { "Response", "RegisteredContacts", }); + internal_static_proto_UserContactsImportResponse_Contact_descriptor = + internal_static_proto_UserContactsImportResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_UserContactsImportResponse_Contact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsImportResponse_Contact_descriptor, + new java.lang.String[] { "ClientId", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserContactsUnblock.java b/src/main/java/net/iGap/proto/ProtoUserContactsUnblock.java index 933adbb..289ea52 100644 --- a/src/main/java/net/iGap/proto/ProtoUserContactsUnblock.java +++ b/src/main/java/net/iGap/proto/ProtoUserContactsUnblock.java @@ -8,109 +8,181 @@ private ProtoUserContactsUnblock() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserContactsUnblockOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsUnblock) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserContactsUnblock} */ - public static final class UserContactsUnblock extends - com.google.protobuf.GeneratedMessageLite< - UserContactsUnblock, UserContactsUnblock.Builder> implements + public static final class UserContactsUnblock extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsUnblock) UserContactsUnblockOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsUnblock.newBuilder() to construct. + private UserContactsUnblock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsUnblock() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsUnblock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsUnblock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.class, net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock other = (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsUnblock} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsUnblock) net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.class, net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + userId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblock_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock build() { + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock buildPartial() { + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock result = new net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock) { + return mergeFrom((net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock other) { + if (other == net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsUnblock) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock other = (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock) arg1; - request_ = visitor.visitMessage(request_, other.request_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsUnblock) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsUnblock) private static final net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsUnblock(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock(); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsUnblock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsUnblock(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserContactsUnblockResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserContactsUnblockResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserContactsUnblockResponse} */ - public static final class UserContactsUnblockResponse extends - com.google.protobuf.GeneratedMessageLite< - UserContactsUnblockResponse, UserContactsUnblockResponse.Builder> implements + public static final class UserContactsUnblockResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserContactsUnblockResponse) UserContactsUnblockResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserContactsUnblockResponse.newBuilder() to construct. + private UserContactsUnblockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserContactsUnblockResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserContactsUnblockResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserContactsUnblockResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblockResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblockResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.class, net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse other = (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserContactsUnblockResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserContactsUnblockResponse) net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblockResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblockResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.class, net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + userId_ = 0L; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserContactsUnblock.internal_static_proto_UserContactsUnblockResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse build() { + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse buildPartial() { + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse result = new net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse) { + return mergeFrom((net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse other) { + if (other == net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserContactsUnblockResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse other = (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserContactsUnblockResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserContactsUnblockResponse) private static final net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserContactsUnblockResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse(); } public static net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserContactsUnblockResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserContactsUnblockResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserContactsUnblock.UserContactsUnblockResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsUnblock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsUnblock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserContactsUnblockResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserContactsUnblockResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031UserContactsUnblock.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"G\n\023UserContact" + + "sUnblock\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\017\n\007user_id\030\002 \001(\004\"Q\n\033UserContactsUnbloc" + + "kResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\017\n\007user_id\030\002 \001(\004B*\n\016net.iGap.protoB" + + "\030ProtoUserContactsUnblockb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserContactsUnblock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserContactsUnblock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsUnblock_descriptor, + new java.lang.String[] { "Request", "UserId", }); + internal_static_proto_UserContactsUnblockResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserContactsUnblockResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserContactsUnblockResponse_descriptor, + new java.lang.String[] { "Response", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserDelete.java b/src/main/java/net/iGap/proto/ProtoUserDelete.java index c103ce2..01aa4cd 100644 --- a/src/main/java/net/iGap/proto/ProtoUserDelete.java +++ b/src/main/java/net/iGap/proto/ProtoUserDelete.java @@ -8,54 +8,163 @@ private ProtoUserDelete() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserDeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserDelete) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @return The reason. */ net.iGap.proto.ProtoUserDelete.UserDelete.Reason getReason(); } /** * Protobuf type {@code proto.UserDelete} */ - public static final class UserDelete extends - com.google.protobuf.GeneratedMessageLite< - UserDelete, UserDelete.Builder> implements + public static final class UserDelete extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserDelete) UserDeleteOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserDelete.newBuilder() to construct. + private UserDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserDelete() { token_ = ""; + reason_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserDelete(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserDelete( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + reason_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserDelete.UserDelete.class, net.iGap.proto.ProtoUserDelete.UserDelete.Builder.class); + } + /** * Protobuf enum {@code proto.UserDelete.Reason} */ public enum Reason - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * OTHER = 0; */ @@ -70,10 +179,16 @@ public enum Reason public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -81,6 +196,10 @@ public static Reason valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Reason forNumber(int value) { switch (value) { case 0: return OTHER; @@ -100,6 +219,37 @@ public Reason findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoUserDelete.UserDelete.getDescriptor().getEnumTypes().get(0); + } + + private static final Reason[] VALUES = values(); + + public static Reason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Reason(int value) { @@ -112,155 +262,115 @@ private Reason(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int REASON_FIELD_NUMBER = 3; private int reason_; /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @return The enum numeric value on the wire for reason. */ - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @return The reason. */ - public net.iGap.proto.ProtoUserDelete.UserDelete.Reason getReason() { - net.iGap.proto.ProtoUserDelete.UserDelete.Reason result = net.iGap.proto.ProtoUserDelete.UserDelete.Reason.forNumber(reason_); + @java.lang.Override public net.iGap.proto.ProtoUserDelete.UserDelete.Reason getReason() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserDelete.UserDelete.Reason result = net.iGap.proto.ProtoUserDelete.UserDelete.Reason.valueOf(reason_); return result == null ? net.iGap.proto.ProtoUserDelete.UserDelete.Reason.UNRECOGNIZED : result; } - /** - * optional .proto.UserDelete.Reason reason = 3; - */ - private void setReasonValue(int value) { - reason_ = value; - } - /** - * optional .proto.UserDelete.Reason reason = 3; - */ - private void setReason(net.iGap.proto.ProtoUserDelete.UserDelete.Reason value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value.getNumber(); - } - /** - * optional .proto.UserDelete.Reason reason = 3; - */ - private void clearReason() { - - reason_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } if (reason_ != net.iGap.proto.ProtoUserDelete.UserDelete.Reason.OTHER.getNumber()) { output.writeEnum(3, reason_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -268,426 +378,777 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } if (reason_ != net.iGap.proto.ProtoUserDelete.UserDelete.Reason.OTHER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, reason_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserDelete.UserDelete)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserDelete.UserDelete other = (net.iGap.proto.ProtoUserDelete.UserDelete) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (reason_ != other.reason_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + reason_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserDelete.UserDelete parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserDelete.UserDelete prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserDelete} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserDelete.UserDelete, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserDelete) net.iGap.proto.ProtoUserDelete.UserDeleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDelete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDelete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserDelete.UserDelete.class, net.iGap.proto.ProtoUserDelete.UserDelete.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserDelete.UserDelete.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + reason_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDelete_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDelete getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserDelete.UserDelete.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDelete build() { + net.iGap.proto.ProtoUserDelete.UserDelete result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDelete buildPartial() { + net.iGap.proto.ProtoUserDelete.UserDelete result = new net.iGap.proto.ProtoUserDelete.UserDelete(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + result.reason_ = reason_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserDelete.UserDelete) { + return mergeFrom((net.iGap.proto.ProtoUserDelete.UserDelete)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserDelete.UserDelete other) { + if (other == net.iGap.proto.ProtoUserDelete.UserDelete.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.reason_ != 0) { + setReasonValue(other.getReasonValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserDelete.UserDelete parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserDelete.UserDelete) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private int reason_ = 0; /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @return The enum numeric value on the wire for reason. */ - public int getReasonValue() { - return instance.getReasonValue(); + @java.lang.Override public int getReasonValue() { + return reason_; } /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @param value The enum numeric value on the wire for reason to set. + * @return This builder for chaining. */ public Builder setReasonValue(int value) { - copyOnWrite(); - instance.setReasonValue(value); + + reason_ = value; + onChanged(); return this; } /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @return The reason. */ + @java.lang.Override public net.iGap.proto.ProtoUserDelete.UserDelete.Reason getReason() { - return instance.getReason(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserDelete.UserDelete.Reason result = net.iGap.proto.ProtoUserDelete.UserDelete.Reason.valueOf(reason_); + return result == null ? net.iGap.proto.ProtoUserDelete.UserDelete.Reason.UNRECOGNIZED : result; } /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @param value The reason to set. + * @return This builder for chaining. */ public Builder setReason(net.iGap.proto.ProtoUserDelete.UserDelete.Reason value) { - copyOnWrite(); - instance.setReason(value); + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.UserDelete.Reason reason = 3; + * .proto.UserDelete.Reason reason = 3; + * @return This builder for chaining. */ public Builder clearReason() { - copyOnWrite(); - instance.clearReason(); + + reason_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserDelete) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserDelete.UserDelete(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserDelete.UserDelete other = (net.iGap.proto.ProtoUserDelete.UserDelete) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - reason_ = visitor.visitInt(reason_ != 0, reason_, other.reason_ != 0, other.reason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserDelete.UserDelete.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserDelete) + } + // @@protoc_insertion_point(class_scope:proto.UserDelete) private static final net.iGap.proto.ProtoUserDelete.UserDelete DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserDelete(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserDelete.UserDelete(); } public static net.iGap.proto.ProtoUserDelete.UserDelete getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserDelete parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserDelete(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDelete getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserDeleteResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserDeleteResponse} */ - public static final class UserDeleteResponse extends - com.google.protobuf.GeneratedMessageLite< - UserDeleteResponse, UserDeleteResponse.Builder> implements + public static final class UserDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserDeleteResponse) UserDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserDeleteResponse.newBuilder() to construct. + private UserDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserDeleteResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserDeleteResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserDelete.UserDeleteResponse.class, net.iGap.proto.ProtoUserDelete.UserDeleteResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -695,244 +1156,510 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserDelete.UserDeleteResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserDelete.UserDeleteResponse other = (net.iGap.proto.ProtoUserDelete.UserDeleteResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserDelete.UserDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserDeleteResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserDelete.UserDeleteResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserDeleteResponse) net.iGap.proto.ProtoUserDelete.UserDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserDelete.UserDeleteResponse.class, net.iGap.proto.ProtoUserDelete.UserDeleteResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserDelete.UserDeleteResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserDelete.internal_static_proto_UserDeleteResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDeleteResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserDelete.UserDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDeleteResponse build() { + net.iGap.proto.ProtoUserDelete.UserDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDeleteResponse buildPartial() { + net.iGap.proto.ProtoUserDelete.UserDeleteResponse result = new net.iGap.proto.ProtoUserDelete.UserDeleteResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserDelete.UserDeleteResponse) { + return mergeFrom((net.iGap.proto.ProtoUserDelete.UserDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserDelete.UserDeleteResponse other) { + if (other == net.iGap.proto.ProtoUserDelete.UserDeleteResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserDelete.UserDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserDelete.UserDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserDeleteResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserDelete.UserDeleteResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserDelete.UserDeleteResponse other = (net.iGap.proto.ProtoUserDelete.UserDeleteResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserDelete.UserDeleteResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserDeleteResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserDeleteResponse) private static final net.iGap.proto.ProtoUserDelete.UserDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserDeleteResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserDelete.UserDeleteResponse(); } public static net.iGap.proto.ProtoUserDelete.UserDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserDeleteResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserDelete.UserDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserDelete_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserDelete_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserDeleteResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020UserDelete.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"{\n\nUserDelete\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\022\r\n\005token\030\002 \001(\t\022(" + + "\n\006reason\030\003 \001(\0162\030.proto.UserDelete.Reason" + + "\"\023\n\006Reason\022\t\n\005OTHER\020\000\"7\n\022UserDeleteRespo" + + "nse\022!\n\010response\030\001 \001(\0132\017.proto.ResponseB!" + + "\n\016net.iGap.protoB\017ProtoUserDeleteb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserDelete_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserDelete_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserDelete_descriptor, + new java.lang.String[] { "Request", "Token", "Reason", }); + internal_static_proto_UserDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserDeleteResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserGetDeleteToken.java b/src/main/java/net/iGap/proto/ProtoUserGetDeleteToken.java index f3375d8..24e7822 100644 --- a/src/main/java/net/iGap/proto/ProtoUserGetDeleteToken.java +++ b/src/main/java/net/iGap/proto/ProtoUserGetDeleteToken.java @@ -8,109 +8,181 @@ private ProtoUserGetDeleteToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserGetDeleteTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserGetDeleteToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return The appId. */ int getAppId(); } /** * Protobuf type {@code proto.UserGetDeleteToken} */ - public static final class UserGetDeleteToken extends - com.google.protobuf.GeneratedMessageLite< - UserGetDeleteToken, UserGetDeleteToken.Builder> implements + public static final class UserGetDeleteToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserGetDeleteToken) UserGetDeleteTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserGetDeleteToken.newBuilder() to construct. + private UserGetDeleteToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserGetDeleteToken() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserGetDeleteToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserGetDeleteToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + appId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.class, net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int APP_ID_FIELD_NUMBER = 2; private int appId_; /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 2; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 2; - */ - private void clearAppId() { - - appId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (appId_ != 0) { output.writeUInt32(2, appId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,319 +208,565 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, appId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken other = (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getAppId() + != other.getAppId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserGetDeleteToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserGetDeleteToken) net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.class, net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + appId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteToken_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken build() { + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken buildPartial() { + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken result = new net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.appId_ = appId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken) { + return mergeFrom((net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken other) { + if (other == net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int appId_ ; /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 2; + * uint32 app_id = 2; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserGetDeleteToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken other = (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - appId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserGetDeleteToken) + } + // @@protoc_insertion_point(class_scope:proto.UserGetDeleteToken) private static final net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserGetDeleteToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken(); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserGetDeleteToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserGetDeleteToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserGetDeleteTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserGetDeleteTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 resend_delay = 2; + * uint32 resend_delay = 2; + * @return The resendDelay. */ int getResendDelay(); /** * repeated uint64 sms_number = 3; + * @return A list containing the smsNumber. */ java.util.List getSmsNumberList(); /** * repeated uint64 sms_number = 3; + * @return The count of smsNumber. */ int getSmsNumberCount(); /** * repeated uint64 sms_number = 3; + * @param index The index of the element to return. + * @return The smsNumber at the given index. */ long getSmsNumber(int index); /** - * optional string token_regex = 4; + * string token_regex = 4; + * @return The tokenRegex. */ java.lang.String getTokenRegex(); /** - * optional string token_regex = 4; + * string token_regex = 4; + * @return The bytes for tokenRegex. */ com.google.protobuf.ByteString getTokenRegexBytes(); /** - * optional string token_length = 5; + * string token_length = 5; + * @return The tokenLength. */ java.lang.String getTokenLength(); /** - * optional string token_length = 5; + * string token_length = 5; + * @return The bytes for tokenLength. */ com.google.protobuf.ByteString getTokenLengthBytes(); @@ -454,242 +774,291 @@ public interface UserGetDeleteTokenResponseOrBuilder extends /** * Protobuf type {@code proto.UserGetDeleteTokenResponse} */ - public static final class UserGetDeleteTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - UserGetDeleteTokenResponse, UserGetDeleteTokenResponse.Builder> implements + public static final class UserGetDeleteTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserGetDeleteTokenResponse) UserGetDeleteTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserGetDeleteTokenResponse.newBuilder() to construct. + private UserGetDeleteTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserGetDeleteTokenResponse() { smsNumber_ = emptyLongList(); tokenRegex_ = ""; tokenLength_ = ""; } - private int bitField0_; + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserGetDeleteTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserGetDeleteTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + resendDelay_ = input.readUInt32(); + break; + } + case 24: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + smsNumber_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + smsNumber_.addLong(input.readUInt64()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + smsNumber_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + smsNumber_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + tokenRegex_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + tokenLength_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + smsNumber_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.class, net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int RESEND_DELAY_FIELD_NUMBER = 2; private int resendDelay_; /** - * optional uint32 resend_delay = 2; + * uint32 resend_delay = 2; + * @return The resendDelay. */ + @java.lang.Override public int getResendDelay() { return resendDelay_; } - /** - * optional uint32 resend_delay = 2; - */ - private void setResendDelay(int value) { - - resendDelay_ = value; - } - /** - * optional uint32 resend_delay = 2; - */ - private void clearResendDelay() { - - resendDelay_ = 0; - } public static final int SMS_NUMBER_FIELD_NUMBER = 3; private com.google.protobuf.Internal.LongList smsNumber_; /** * repeated uint64 sms_number = 3; + * @return A list containing the smsNumber. */ + @java.lang.Override public java.util.List getSmsNumberList() { return smsNumber_; } /** * repeated uint64 sms_number = 3; + * @return The count of smsNumber. */ public int getSmsNumberCount() { return smsNumber_.size(); } /** * repeated uint64 sms_number = 3; + * @param index The index of the element to return. + * @return The smsNumber at the given index. */ public long getSmsNumber(int index) { return smsNumber_.getLong(index); } - private void ensureSmsNumberIsMutable() { - if (!smsNumber_.isModifiable()) { - smsNumber_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(smsNumber_); - } - } - /** - * repeated uint64 sms_number = 3; - */ - private void setSmsNumber( - int index, long value) { - ensureSmsNumberIsMutable(); - smsNumber_.setLong(index, value); - } - /** - * repeated uint64 sms_number = 3; - */ - private void addSmsNumber(long value) { - ensureSmsNumberIsMutable(); - smsNumber_.addLong(value); - } - /** - * repeated uint64 sms_number = 3; - */ - private void addAllSmsNumber( - java.lang.Iterable values) { - ensureSmsNumberIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, smsNumber_); - } - /** - * repeated uint64 sms_number = 3; - */ - private void clearSmsNumber() { - smsNumber_ = emptyLongList(); - } + private int smsNumberMemoizedSerializedSize = -1; public static final int TOKEN_REGEX_FIELD_NUMBER = 4; - private java.lang.String tokenRegex_; + private volatile java.lang.Object tokenRegex_; /** - * optional string token_regex = 4; + * string token_regex = 4; + * @return The tokenRegex. */ + @java.lang.Override public java.lang.String getTokenRegex() { - return tokenRegex_; + java.lang.Object ref = tokenRegex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenRegex_ = s; + return s; + } } /** - * optional string token_regex = 4; + * string token_regex = 4; + * @return The bytes for tokenRegex. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenRegexBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(tokenRegex_); - } - /** - * optional string token_regex = 4; - */ - private void setTokenRegex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tokenRegex_ = value; - } - /** - * optional string token_regex = 4; - */ - private void clearTokenRegex() { - - tokenRegex_ = getDefaultInstance().getTokenRegex(); - } - /** - * optional string token_regex = 4; - */ - private void setTokenRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tokenRegex_ = value.toStringUtf8(); + java.lang.Object ref = tokenRegex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOKEN_LENGTH_FIELD_NUMBER = 5; - private java.lang.String tokenLength_; + private volatile java.lang.Object tokenLength_; /** - * optional string token_length = 5; + * string token_length = 5; + * @return The tokenLength. */ + @java.lang.Override public java.lang.String getTokenLength() { - return tokenLength_; + java.lang.Object ref = tokenLength_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenLength_ = s; + return s; + } } /** - * optional string token_length = 5; + * string token_length = 5; + * @return The bytes for tokenLength. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenLengthBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(tokenLength_); - } - /** - * optional string token_length = 5; - */ - private void setTokenLength( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tokenLength_ = value; - } - /** - * optional string token_length = 5; - */ - private void clearTokenLength() { - - tokenLength_ = getDefaultInstance().getTokenLength(); + java.lang.Object ref = tokenLength_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenLength_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token_length = 5; - */ - private void setTokenLengthBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tokenLength_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -699,19 +1068,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (resendDelay_ != 0) { output.writeUInt32(2, resendDelay_); } + if (getSmsNumberList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(smsNumberMemoizedSerializedSize); + } for (int i = 0; i < smsNumber_.size(); i++) { - output.writeUInt64(3, smsNumber_.getLong(i)); + output.writeUInt64NoTag(smsNumber_.getLong(i)); } - if (!tokenRegex_.isEmpty()) { - output.writeString(4, getTokenRegex()); + if (!getTokenRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tokenRegex_); } - if (!tokenLength_.isEmpty()) { - output.writeString(5, getTokenLength()); + if (!getTokenLengthBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tokenLength_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -730,459 +1105,843 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(smsNumber_.getLong(i)); } size += dataSize; - size += 1 * getSmsNumberList().size(); + if (!getSmsNumberList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + smsNumberMemoizedSerializedSize = dataSize; } - if (!tokenRegex_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getTokenRegex()); + if (!getTokenRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tokenRegex_); } - if (!tokenLength_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getTokenLength()); + if (!getTokenLengthBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tokenLength_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse other = (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getResendDelay() + != other.getResendDelay()) return false; + if (!getSmsNumberList() + .equals(other.getSmsNumberList())) return false; + if (!getTokenRegex() + .equals(other.getTokenRegex())) return false; + if (!getTokenLength() + .equals(other.getTokenLength())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + RESEND_DELAY_FIELD_NUMBER; + hash = (53 * hash) + getResendDelay(); + if (getSmsNumberCount() > 0) { + hash = (37 * hash) + SMS_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSmsNumberList().hashCode(); + } + hash = (37 * hash) + TOKEN_REGEX_FIELD_NUMBER; + hash = (53 * hash) + getTokenRegex().hashCode(); + hash = (37 * hash) + TOKEN_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getTokenLength().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserGetDeleteTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserGetDeleteTokenResponse) net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.class, net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + resendDelay_ = 0; + + smsNumber_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + tokenRegex_ = ""; + + tokenLength_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserGetDeleteToken.internal_static_proto_UserGetDeleteTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse build() { + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse buildPartial() { + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse result = new net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.resendDelay_ = resendDelay_; + if (((bitField0_ & 0x00000001) != 0)) { + smsNumber_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.smsNumber_ = smsNumber_; + result.tokenRegex_ = tokenRegex_; + result.tokenLength_ = tokenLength_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse other) { + if (other == net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getResendDelay() != 0) { + setResendDelay(other.getResendDelay()); + } + if (!other.smsNumber_.isEmpty()) { + if (smsNumber_.isEmpty()) { + smsNumber_ = other.smsNumber_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSmsNumberIsMutable(); + smsNumber_.addAll(other.smsNumber_); + } + onChanged(); + } + if (!other.getTokenRegex().isEmpty()) { + tokenRegex_ = other.tokenRegex_; + onChanged(); + } + if (!other.getTokenLength().isEmpty()) { + tokenLength_ = other.tokenLength_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int resendDelay_ ; /** - * optional uint32 resend_delay = 2; + * uint32 resend_delay = 2; + * @return The resendDelay. */ + @java.lang.Override public int getResendDelay() { - return instance.getResendDelay(); + return resendDelay_; } /** - * optional uint32 resend_delay = 2; + * uint32 resend_delay = 2; + * @param value The resendDelay to set. + * @return This builder for chaining. */ public Builder setResendDelay(int value) { - copyOnWrite(); - instance.setResendDelay(value); + + resendDelay_ = value; + onChanged(); return this; } /** - * optional uint32 resend_delay = 2; + * uint32 resend_delay = 2; + * @return This builder for chaining. */ public Builder clearResendDelay() { - copyOnWrite(); - instance.clearResendDelay(); + + resendDelay_ = 0; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList smsNumber_ = emptyLongList(); + private void ensureSmsNumberIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + smsNumber_ = mutableCopy(smsNumber_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 sms_number = 3; + * @return A list containing the smsNumber. */ public java.util.List getSmsNumberList() { - return java.util.Collections.unmodifiableList( - instance.getSmsNumberList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(smsNumber_) : smsNumber_; } /** * repeated uint64 sms_number = 3; + * @return The count of smsNumber. */ public int getSmsNumberCount() { - return instance.getSmsNumberCount(); + return smsNumber_.size(); } /** * repeated uint64 sms_number = 3; + * @param index The index of the element to return. + * @return The smsNumber at the given index. */ public long getSmsNumber(int index) { - return instance.getSmsNumber(index); + return smsNumber_.getLong(index); } /** * repeated uint64 sms_number = 3; + * @param index The index to set the value at. + * @param value The smsNumber to set. + * @return This builder for chaining. */ public Builder setSmsNumber( int index, long value) { - copyOnWrite(); - instance.setSmsNumber(index, value); + ensureSmsNumberIsMutable(); + smsNumber_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 sms_number = 3; + * @param value The smsNumber to add. + * @return This builder for chaining. */ public Builder addSmsNumber(long value) { - copyOnWrite(); - instance.addSmsNumber(value); + ensureSmsNumberIsMutable(); + smsNumber_.addLong(value); + onChanged(); return this; } /** * repeated uint64 sms_number = 3; + * @param values The smsNumber to add. + * @return This builder for chaining. */ public Builder addAllSmsNumber( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSmsNumber(values); + ensureSmsNumberIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, smsNumber_); + onChanged(); return this; } /** * repeated uint64 sms_number = 3; + * @return This builder for chaining. */ public Builder clearSmsNumber() { - copyOnWrite(); - instance.clearSmsNumber(); + smsNumber_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + private java.lang.Object tokenRegex_ = ""; /** - * optional string token_regex = 4; + * string token_regex = 4; + * @return The tokenRegex. */ public java.lang.String getTokenRegex() { - return instance.getTokenRegex(); + java.lang.Object ref = tokenRegex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenRegex_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token_regex = 4; + * string token_regex = 4; + * @return The bytes for tokenRegex. */ public com.google.protobuf.ByteString getTokenRegexBytes() { - return instance.getTokenRegexBytes(); + java.lang.Object ref = tokenRegex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token_regex = 4; + * string token_regex = 4; + * @param value The tokenRegex to set. + * @return This builder for chaining. */ public Builder setTokenRegex( java.lang.String value) { - copyOnWrite(); - instance.setTokenRegex(value); + if (value == null) { + throw new NullPointerException(); + } + + tokenRegex_ = value; + onChanged(); return this; } /** - * optional string token_regex = 4; + * string token_regex = 4; + * @return This builder for chaining. */ public Builder clearTokenRegex() { - copyOnWrite(); - instance.clearTokenRegex(); + + tokenRegex_ = getDefaultInstance().getTokenRegex(); + onChanged(); return this; } /** - * optional string token_regex = 4; + * string token_regex = 4; + * @param value The bytes for tokenRegex to set. + * @return This builder for chaining. */ public Builder setTokenRegexBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenRegexBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tokenRegex_ = value; + onChanged(); return this; } + private java.lang.Object tokenLength_ = ""; /** - * optional string token_length = 5; + * string token_length = 5; + * @return The tokenLength. */ public java.lang.String getTokenLength() { - return instance.getTokenLength(); + java.lang.Object ref = tokenLength_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenLength_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token_length = 5; + * string token_length = 5; + * @return The bytes for tokenLength. */ public com.google.protobuf.ByteString getTokenLengthBytes() { - return instance.getTokenLengthBytes(); + java.lang.Object ref = tokenLength_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenLength_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token_length = 5; + * string token_length = 5; + * @param value The tokenLength to set. + * @return This builder for chaining. */ public Builder setTokenLength( java.lang.String value) { - copyOnWrite(); - instance.setTokenLength(value); + if (value == null) { + throw new NullPointerException(); + } + + tokenLength_ = value; + onChanged(); return this; } /** - * optional string token_length = 5; + * string token_length = 5; + * @return This builder for chaining. */ public Builder clearTokenLength() { - copyOnWrite(); - instance.clearTokenLength(); + + tokenLength_ = getDefaultInstance().getTokenLength(); + onChanged(); return this; } /** - * optional string token_length = 5; + * string token_length = 5; + * @param value The bytes for tokenLength to set. + * @return This builder for chaining. */ public Builder setTokenLengthBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenLengthBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tokenLength_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserGetDeleteTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - smsNumber_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse other = (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - resendDelay_ = visitor.visitInt(resendDelay_ != 0, resendDelay_, - other.resendDelay_ != 0, other.resendDelay_); - smsNumber_= visitor.visitLongList(smsNumber_, other.smsNumber_); - tokenRegex_ = visitor.visitString(!tokenRegex_.isEmpty(), tokenRegex_, - !other.tokenRegex_.isEmpty(), other.tokenRegex_); - tokenLength_ = visitor.visitString(!tokenLength_.isEmpty(), tokenLength_, - !other.tokenLength_.isEmpty(), other.tokenLength_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - resendDelay_ = input.readUInt32(); - break; - } - case 24: { - if (!smsNumber_.isModifiable()) { - smsNumber_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(smsNumber_); - } - smsNumber_.addLong(input.readUInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!smsNumber_.isModifiable() && input.getBytesUntilLimit() > 0) { - smsNumber_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(smsNumber_); - } - while (input.getBytesUntilLimit() > 0) { - smsNumber_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - tokenRegex_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - tokenLength_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserGetDeleteTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserGetDeleteTokenResponse) private static final net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserGetDeleteTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse(); } public static net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserGetDeleteTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserGetDeleteTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserGetDeleteToken.UserGetDeleteTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserGetDeleteToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserGetDeleteToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserGetDeleteTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserGetDeleteTokenResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030UserGetDeleteToken.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\"E\n\022UserGetDelet" + + "eToken\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022" + + "\016\n\006app_id\030\002 \001(\r\"\224\001\n\032UserGetDeleteTokenRe" + + "sponse\022!\n\010response\030\001 \001(\0132\017.proto.Respons" + + "e\022\024\n\014resend_delay\030\002 \001(\r\022\022\n\nsms_number\030\003 " + + "\003(\004\022\023\n\013token_regex\030\004 \001(\t\022\024\n\014token_length" + + "\030\005 \001(\tB)\n\016net.iGap.protoB\027ProtoUserGetDe" + + "leteTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserGetDeleteToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserGetDeleteToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserGetDeleteToken_descriptor, + new java.lang.String[] { "Request", "AppId", }); + internal_static_proto_UserGetDeleteTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserGetDeleteTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserGetDeleteTokenResponse_descriptor, + new java.lang.String[] { "Response", "ResendDelay", "SmsNumber", "TokenRegex", "TokenLength", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserIVandGetActivities.java b/src/main/java/net/iGap/proto/ProtoUserIVandGetActivities.java index 1713951..d31e76b 100644 --- a/src/main/java/net/iGap/proto/ProtoUserIVandGetActivities.java +++ b/src/main/java/net/iGap/proto/ProtoUserIVandGetActivities.java @@ -8,142 +8,213 @@ private ProtoUserIVandGetActivities() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserIVandGetActivitiesOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserIVandGetActivities) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ boolean hasPagination(); /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ net.iGap.proto.ProtoGlobal.Pagination getPagination(); + /** + * .proto.Pagination pagination = 2; + */ + net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); } /** * Protobuf type {@code proto.UserIVandGetActivities} */ - public static final class UserIVandGetActivities extends - com.google.protobuf.GeneratedMessageLite< - UserIVandGetActivities, UserIVandGetActivities.Builder> implements + public static final class UserIVandGetActivities extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserIVandGetActivities) UserIVandGetActivitiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserIVandGetActivities.newBuilder() to construct. + private UserIVandGetActivities(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserIVandGetActivities() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserIVandGetActivities(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserIVandGetActivities( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivities_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivities_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.class, net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PAGINATION_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.Pagination pagination_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ + @java.lang.Override public boolean hasPagination() { return pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Pagination getPagination() { return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - - } - /** - * optional .proto.Pagination pagination = 2; - */ - private void setPagination( - net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - pagination_ = builderForValue.build(); - - } - /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - if (pagination_ != null && - pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { - pagination_ = - net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + return getPagination(); } - /** - * optional .proto.Pagination pagination = 2; - */ - private void clearPagination() { pagination_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -152,10 +223,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(2, getPagination()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -167,313 +240,622 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPagination()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities other = (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserIVandGetActivities} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserIVandGetActivities) net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivities_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivities_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.class, net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivities_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities build() { + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities buildPartial() { + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities result = new net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities) { + return mergeFrom((net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities other) { + if (other == net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> paginationBuilder_; /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return Whether the pagination field is set. */ public boolean hasPagination() { - return instance.hasPagination(); + return paginationBuilder_ != null || pagination_ != null; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; + * @return The pagination. */ public net.iGap.proto.ProtoGlobal.Pagination getPagination() { - return instance.getPagination(); + if (paginationBuilder_ == null) { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.setPagination(value); - return this; + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder setPagination( net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { - copyOnWrite(); - instance.setPagination(builderForValue); + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { - copyOnWrite(); - instance.mergePagination(value); + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Pagination pagination = 2; + * .proto.Pagination pagination = 2; */ - public Builder clearPagination() { copyOnWrite(); - instance.clearPagination(); + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserIVandGetActivities) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities other = (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities) arg1; - request_ = visitor.visitMessage(request_, other.request_); - pagination_ = visitor.visitMessage(pagination_, other.pagination_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.Pagination.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .proto.Pagination pagination = 2; + */ + public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Pagination pagination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Pagination, net.iGap.proto.ProtoGlobal.Pagination.Builder, net.iGap.proto.ProtoGlobal.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; } + return paginationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserIVandGetActivities) + } + // @@protoc_insertion_point(class_scope:proto.UserIVandGetActivities) private static final net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserIVandGetActivities(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities(); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserIVandGetActivities parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserIVandGetActivities(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivities getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserIVandGetActivitiesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserIVandGetActivitiesResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.IVandActivity activities = 2; @@ -488,82 +870,160 @@ public interface UserIVandGetActivitiesResponseOrBuilder extends * repeated .proto.IVandActivity activities = 2; */ int getActivitiesCount(); + /** + * repeated .proto.IVandActivity activities = 2; + */ + java.util.List + getActivitiesOrBuilderList(); + /** + * repeated .proto.IVandActivity activities = 2; + */ + net.iGap.proto.ProtoGlobal.IVandActivityOrBuilder getActivitiesOrBuilder( + int index); } /** * Protobuf type {@code proto.UserIVandGetActivitiesResponse} */ - public static final class UserIVandGetActivitiesResponse extends - com.google.protobuf.GeneratedMessageLite< - UserIVandGetActivitiesResponse, UserIVandGetActivitiesResponse.Builder> implements + public static final class UserIVandGetActivitiesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserIVandGetActivitiesResponse) UserIVandGetActivitiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserIVandGetActivitiesResponse.newBuilder() to construct. + private UserIVandGetActivitiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserIVandGetActivitiesResponse() { - activities_ = emptyProtobufList(); + activities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserIVandGetActivitiesResponse(); } - private int bitField0_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserIVandGetActivitiesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + activities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + activities_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.IVandActivity.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.class, net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ACTIVITIES_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList activities_; + private java.util.List activities_; /** * repeated .proto.IVandActivity activities = 2; */ + @java.lang.Override public java.util.List getActivitiesList() { return activities_; } /** * repeated .proto.IVandActivity activities = 2; */ + @java.lang.Override public java.util.List getActivitiesOrBuilderList() { return activities_; @@ -571,108 +1031,38 @@ public java.util.List getActivitiesLis /** * repeated .proto.IVandActivity activities = 2; */ + @java.lang.Override public int getActivitiesCount() { return activities_.size(); } /** * repeated .proto.IVandActivity activities = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.IVandActivity getActivities(int index) { return activities_.get(index); } /** * repeated .proto.IVandActivity activities = 2; */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.IVandActivityOrBuilder getActivitiesOrBuilder( int index) { return activities_.get(index); } - private void ensureActivitiesIsMutable() { - if (!activities_.isModifiable()) { - activities_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(activities_); - } - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void setActivities( - int index, net.iGap.proto.ProtoGlobal.IVandActivity value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivitiesIsMutable(); - activities_.set(index, value); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void setActivities( - int index, net.iGap.proto.ProtoGlobal.IVandActivity.Builder builderForValue) { - ensureActivitiesIsMutable(); - activities_.set(index, builderForValue.build()); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void addActivities(net.iGap.proto.ProtoGlobal.IVandActivity value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivitiesIsMutable(); - activities_.add(value); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void addActivities( - int index, net.iGap.proto.ProtoGlobal.IVandActivity value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivitiesIsMutable(); - activities_.add(index, value); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void addActivities( - net.iGap.proto.ProtoGlobal.IVandActivity.Builder builderForValue) { - ensureActivitiesIsMutable(); - activities_.add(builderForValue.build()); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void addActivities( - int index, net.iGap.proto.ProtoGlobal.IVandActivity.Builder builderForValue) { - ensureActivitiesIsMutable(); - activities_.add(index, builderForValue.build()); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void addAllActivities( - java.lang.Iterable values) { - ensureActivitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, activities_); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void clearActivities() { - activities_ = emptyProtobufList(); - } - /** - * repeated .proto.IVandActivity activities = 2; - */ - private void removeActivities(int index) { - ensureActivitiesIsMutable(); - activities_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -681,10 +1071,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < activities_.size(); i++) { output.writeMessage(2, activities_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -696,162 +1088,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, activities_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse other = (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getActivitiesList() + .equals(other.getActivitiesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getActivitiesCount() > 0) { + hash = (37 * hash) + ACTIVITIES_FIELD_NUMBER; + hash = (53 * hash) + getActivitiesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserIVandGetActivitiesResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserIVandGetActivitiesResponse) net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.class, net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getActivitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + activitiesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserIVandGetActivities.internal_static_proto_UserIVandGetActivitiesResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse build() { + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse buildPartial() { + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse result = new net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (activitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.activities_ = activities_; + } else { + result.activities_ = activitiesBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse) { + return mergeFrom((net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse other) { + if (other == net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (activitiesBuilder_ == null) { + if (!other.activities_.isEmpty()) { + if (activities_.isEmpty()) { + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActivitiesIsMutable(); + activities_.addAll(other.activities_); + } + onChanged(); + } + } else { + if (!other.activities_.isEmpty()) { + if (activitiesBuilder_.isEmpty()) { + activitiesBuilder_.dispose(); + activitiesBuilder_ = null; + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00000001); + activitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActivitiesFieldBuilder() : null; + } else { + activitiesBuilder_.addAllMessages(other.activities_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List activities_ = + java.util.Collections.emptyList(); + private void ensureActivitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + activities_ = new java.util.ArrayList(activities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.IVandActivity, net.iGap.proto.ProtoGlobal.IVandActivity.Builder, net.iGap.proto.ProtoGlobal.IVandActivityOrBuilder> activitiesBuilder_; /** * repeated .proto.IVandActivity activities = 2; */ public java.util.List getActivitiesList() { - return java.util.Collections.unmodifiableList( - instance.getActivitiesList()); + if (activitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(activities_); + } else { + return activitiesBuilder_.getMessageList(); + } } /** * repeated .proto.IVandActivity activities = 2; */ public int getActivitiesCount() { - return instance.getActivitiesCount(); - }/** + if (activitiesBuilder_ == null) { + return activities_.size(); + } else { + return activitiesBuilder_.getCount(); + } + } + /** * repeated .proto.IVandActivity activities = 2; */ public net.iGap.proto.ProtoGlobal.IVandActivity getActivities(int index) { - return instance.getActivities(index); + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessage(index); + } } /** * repeated .proto.IVandActivity activities = 2; */ public Builder setActivities( int index, net.iGap.proto.ProtoGlobal.IVandActivity value) { - copyOnWrite(); - instance.setActivities(index, value); + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.set(index, value); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, value); + } return this; } /** @@ -859,16 +1606,29 @@ public Builder setActivities( */ public Builder setActivities( int index, net.iGap.proto.ProtoGlobal.IVandActivity.Builder builderForValue) { - copyOnWrite(); - instance.setActivities(index, builderForValue); + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.set(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.IVandActivity activities = 2; */ public Builder addActivities(net.iGap.proto.ProtoGlobal.IVandActivity value) { - copyOnWrite(); - instance.addActivities(value); + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(value); + onChanged(); + } else { + activitiesBuilder_.addMessage(value); + } return this; } /** @@ -876,8 +1636,16 @@ public Builder addActivities(net.iGap.proto.ProtoGlobal.IVandActivity value) { */ public Builder addActivities( int index, net.iGap.proto.ProtoGlobal.IVandActivity value) { - copyOnWrite(); - instance.addActivities(index, value); + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(index, value); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, value); + } return this; } /** @@ -885,8 +1653,13 @@ public Builder addActivities( */ public Builder addActivities( net.iGap.proto.ProtoGlobal.IVandActivity.Builder builderForValue) { - copyOnWrite(); - instance.addActivities(builderForValue); + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -894,8 +1667,13 @@ public Builder addActivities( */ public Builder addActivities( int index, net.iGap.proto.ProtoGlobal.IVandActivity.Builder builderForValue) { - copyOnWrite(); - instance.addActivities(index, builderForValue); + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -903,146 +1681,210 @@ public Builder addActivities( */ public Builder addAllActivities( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllActivities(values); + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, activities_); + onChanged(); + } else { + activitiesBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.IVandActivity activities = 2; */ public Builder clearActivities() { - copyOnWrite(); - instance.clearActivities(); + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + activitiesBuilder_.clear(); + } return this; } /** * repeated .proto.IVandActivity activities = 2; */ public Builder removeActivities(int index) { - copyOnWrite(); - instance.removeActivities(index); + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.remove(index); + onChanged(); + } else { + activitiesBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserIVandGetActivitiesResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - activities_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse other = (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - activities_= visitor.visitList(activities_, other.activities_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!activities_.isModifiable()) { - activities_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(activities_); - } - activities_.add( - input.readMessage(net.iGap.proto.ProtoGlobal.IVandActivity.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.IVandActivity activities = 2; + */ + public net.iGap.proto.ProtoGlobal.IVandActivity.Builder getActivitiesBuilder( + int index) { + return getActivitiesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.IVandActivity activities = 2; + */ + public net.iGap.proto.ProtoGlobal.IVandActivityOrBuilder getActivitiesOrBuilder( + int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); } else { + return activitiesBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.IVandActivity activities = 2; + */ + public java.util.List + getActivitiesOrBuilderList() { + if (activitiesBuilder_ != null) { + return activitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activities_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.IVandActivity activities = 2; + */ + public net.iGap.proto.ProtoGlobal.IVandActivity.Builder addActivitiesBuilder() { + return getActivitiesFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.IVandActivity.getDefaultInstance()); + } + /** + * repeated .proto.IVandActivity activities = 2; + */ + public net.iGap.proto.ProtoGlobal.IVandActivity.Builder addActivitiesBuilder( + int index) { + return getActivitiesFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.IVandActivity.getDefaultInstance()); + } + /** + * repeated .proto.IVandActivity activities = 2; + */ + public java.util.List + getActivitiesBuilderList() { + return getActivitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.IVandActivity, net.iGap.proto.ProtoGlobal.IVandActivity.Builder, net.iGap.proto.ProtoGlobal.IVandActivityOrBuilder> + getActivitiesFieldBuilder() { + if (activitiesBuilder_ == null) { + activitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.IVandActivity, net.iGap.proto.ProtoGlobal.IVandActivity.Builder, net.iGap.proto.ProtoGlobal.IVandActivityOrBuilder>( + activities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + activities_ = null; } + return activitiesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserIVandGetActivitiesResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserIVandGetActivitiesResponse) private static final net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserIVandGetActivitiesResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse(); } public static net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserIVandGetActivitiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserIVandGetActivitiesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetActivities.UserIVandGetActivitiesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserIVandGetActivities_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserIVandGetActivities_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserIVandGetActivitiesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserIVandGetActivitiesResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034UserIVandGetActivities.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\032\014Global.pro" + + "to\"`\n\026UserIVandGetActivities\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\022%\n\npagination\030\002 \001(" + + "\0132\021.proto.Pagination\"m\n\036UserIVandGetActi" + + "vitiesResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022(\n\nactivities\030\002 \003(\0132\024.proto.IV" + + "andActivityB-\n\016net.iGap.protoB\033ProtoUser" + + "IVandGetActivitiesb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserIVandGetActivities_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserIVandGetActivities_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserIVandGetActivities_descriptor, + new java.lang.String[] { "Request", "Pagination", }); + internal_static_proto_UserIVandGetActivitiesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserIVandGetActivitiesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserIVandGetActivitiesResponse_descriptor, + new java.lang.String[] { "Response", "Activities", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserIVandGetScore.java b/src/main/java/net/iGap/proto/ProtoUserIVandGetScore.java index 99dfc65..57850d7 100644 --- a/src/main/java/net/iGap/proto/ProtoUserIVandGetScore.java +++ b/src/main/java/net/iGap/proto/ProtoUserIVandGetScore.java @@ -8,90 +8,170 @@ private ProtoUserIVandGetScore() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserIVandGetScoreOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserIVandGetScore) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserIVandGetScore} */ - public static final class UserIVandGetScore extends - com.google.protobuf.GeneratedMessageLite< - UserIVandGetScore, UserIVandGetScore.Builder> implements + public static final class UserIVandGetScore extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserIVandGetScore) UserIVandGetScoreOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserIVandGetScore.newBuilder() to construct. + private UserIVandGetScore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserIVandGetScore() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserIVandGetScore(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserIVandGetScore( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.class, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,267 +179,496 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore other = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserIVandGetScore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserIVandGetScore) net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.class, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScore_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore build() { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore buildPartial() { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore result = new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore) { + return mergeFrom((net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore other) { + if (other == net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserIVandGetScore) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore other = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserIVandGetScore) + } // @@protoc_insertion_point(class_scope:proto.UserIVandGetScore) private static final net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserIVandGetScore(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore(); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserIVandGetScore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserIVandGetScore(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserIVandGetScoreResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserIVandGetScoreResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 score = 2; + * uint32 score = 2; + * @return The score. */ int getScore(); /** - * optional uint32 user_rank = 3; + * uint32 user_rank = 3; + * @return The userRank. */ int getUserRank(); /** - * optional uint32 total_rank = 4; + * uint32 total_rank = 4; + * @return The totalRank. */ int getTotalRank(); @@ -376,220 +685,407 @@ public interface UserIVandGetScoreResponseOrBuilder extends * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ int getScoresCount(); + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + java.util.List + getScoresOrBuilderList(); + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScoreOrBuilder getScoresOrBuilder( + int index); } /** * Protobuf type {@code proto.UserIVandGetScoreResponse} */ - public static final class UserIVandGetScoreResponse extends - com.google.protobuf.GeneratedMessageLite< - UserIVandGetScoreResponse, UserIVandGetScoreResponse.Builder> implements + public static final class UserIVandGetScoreResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserIVandGetScoreResponse) UserIVandGetScoreResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserIVandGetScoreResponse.newBuilder() to construct. + private UserIVandGetScoreResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserIVandGetScoreResponse() { - scores_ = emptyProtobufList(); + scores_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserIVandGetScoreResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserIVandGetScoreResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + score_ = input.readUInt32(); + break; + } + case 24: { + + userRank_ = input.readUInt32(); + break; + } + case 32: { + + totalRank_ = input.readUInt32(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scores_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + scores_.add( + input.readMessage(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + scores_ = java.util.Collections.unmodifiableList(scores_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.class, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.Builder.class); + } + public interface IVandScoreOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserIVandGetScoreResponse.IVandScore) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint32 id = 1; + * uint32 id = 1; + * @return The id. */ int getId(); /** - * optional string en_name = 2; + * string en_name = 2; + * @return The enName. */ java.lang.String getEnName(); /** - * optional string en_name = 2; + * string en_name = 2; + * @return The bytes for enName. */ com.google.protobuf.ByteString getEnNameBytes(); /** - * optional string fa_name = 3; + * string fa_name = 3; + * @return The faName. */ java.lang.String getFaName(); /** - * optional string fa_name = 3; + * string fa_name = 3; + * @return The bytes for faName. */ com.google.protobuf.ByteString getFaNameBytes(); /** - * optional uint32 score = 4; + * uint32 score = 4; + * @return The score. */ int getScore(); } /** * Protobuf type {@code proto.UserIVandGetScoreResponse.IVandScore} */ - public static final class IVandScore extends - com.google.protobuf.GeneratedMessageLite< - IVandScore, IVandScore.Builder> implements + public static final class IVandScore extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserIVandGetScoreResponse.IVandScore) IVandScoreOrBuilder { + private static final long serialVersionUID = 0L; + // Use IVandScore.newBuilder() to construct. + private IVandScore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private IVandScore() { enName_ = ""; faName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IVandScore(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IVandScore( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + id_ = input.readUInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + enName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + faName_ = s; + break; + } + case 32: { + + score_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_IVandScore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_IVandScore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.class, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder.class); + } + public static final int ID_FIELD_NUMBER = 1; private int id_; /** - * optional uint32 id = 1; + * uint32 id = 1; + * @return The id. */ + @java.lang.Override public int getId() { return id_; } - /** - * optional uint32 id = 1; - */ - private void setId(int value) { - - id_ = value; - } - /** - * optional uint32 id = 1; - */ - private void clearId() { - - id_ = 0; - } public static final int EN_NAME_FIELD_NUMBER = 2; - private java.lang.String enName_; + private volatile java.lang.Object enName_; /** - * optional string en_name = 2; + * string en_name = 2; + * @return The enName. */ + @java.lang.Override public java.lang.String getEnName() { - return enName_; + java.lang.Object ref = enName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + enName_ = s; + return s; + } } /** - * optional string en_name = 2; + * string en_name = 2; + * @return The bytes for enName. */ + @java.lang.Override public com.google.protobuf.ByteString getEnNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(enName_); - } - /** - * optional string en_name = 2; - */ - private void setEnName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - enName_ = value; - } - /** - * optional string en_name = 2; - */ - private void clearEnName() { - - enName_ = getDefaultInstance().getEnName(); - } - /** - * optional string en_name = 2; - */ - private void setEnNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - enName_ = value.toStringUtf8(); + java.lang.Object ref = enName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + enName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FA_NAME_FIELD_NUMBER = 3; - private java.lang.String faName_; + private volatile java.lang.Object faName_; /** - * optional string fa_name = 3; + * string fa_name = 3; + * @return The faName. */ + @java.lang.Override public java.lang.String getFaName() { - return faName_; + java.lang.Object ref = faName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + faName_ = s; + return s; + } } /** - * optional string fa_name = 3; + * string fa_name = 3; + * @return The bytes for faName. */ + @java.lang.Override public com.google.protobuf.ByteString getFaNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(faName_); - } - /** - * optional string fa_name = 3; - */ - private void setFaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - faName_ = value; - } - /** - * optional string fa_name = 3; - */ - private void clearFaName() { - - faName_ = getDefaultInstance().getFaName(); - } - /** - * optional string fa_name = 3; - */ - private void setFaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - faName_ = value.toStringUtf8(); + java.lang.Object ref = faName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + faName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SCORE_FIELD_NUMBER = 4; private int score_; /** - * optional uint32 score = 4; + * uint32 score = 4; + * @return The score. */ + @java.lang.Override public int getScore() { return score_; } - /** - * optional uint32 score = 4; - */ - private void setScore(int value) { - - score_ = value; - } - /** - * optional uint32 score = 4; - */ - private void clearScore() { - - score_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0) { output.writeUInt32(1, id_); } - if (!enName_.isEmpty()) { - output.writeString(2, getEnName()); + if (!getEnNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, enName_); } - if (!faName_.isEmpty()) { - output.writeString(3, getFaName()); + if (!getFaNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, faName_); } if (score_ != 0) { output.writeUInt32(4, score_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -597,484 +1093,658 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, id_); } - if (!enName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getEnName()); + if (!getEnNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, enName_); } - if (!faName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getFaName()); + if (!getFaNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, faName_); } if (score_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, score_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore other = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore) obj; + + if (getId() + != other.getId()) return false; + if (!getEnName() + .equals(other.getEnName())) return false; + if (!getFaName() + .equals(other.getFaName())) return false; + if (getScore() + != other.getScore()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + hash = (37 * hash) + EN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEnName().hashCode(); + hash = (37 * hash) + FA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFaName().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + getScore(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserIVandGetScoreResponse.IVandScore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserIVandGetScoreResponse.IVandScore) net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_IVandScore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_IVandScore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.class, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0; + + enName_ = ""; + + faName_ = ""; + + score_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_IVandScore_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore build() { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore buildPartial() { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore result = new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore(this); + result.id_ = id_; + result.enName_ = enName_; + result.faName_ = faName_; + result.score_ = score_; + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore) { + return mergeFrom((net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore other) { + if (other == net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.getDefaultInstance()) return this; + if (other.getId() != 0) { + setId(other.getId()); + } + if (!other.getEnName().isEmpty()) { + enName_ = other.enName_; + onChanged(); + } + if (!other.getFaName().isEmpty()) { + faName_ = other.faName_; + onChanged(); + } + if (other.getScore() != 0) { + setScore(other.getScore()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int id_ ; /** - * optional uint32 id = 1; + * uint32 id = 1; + * @return The id. */ + @java.lang.Override public int getId() { - return instance.getId(); + return id_; } /** - * optional uint32 id = 1; + * uint32 id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(int value) { - copyOnWrite(); - instance.setId(value); + + id_ = value; + onChanged(); return this; } /** - * optional uint32 id = 1; + * uint32 id = 1; + * @return This builder for chaining. */ public Builder clearId() { - copyOnWrite(); - instance.clearId(); + + id_ = 0; + onChanged(); return this; } + private java.lang.Object enName_ = ""; /** - * optional string en_name = 2; + * string en_name = 2; + * @return The enName. */ public java.lang.String getEnName() { - return instance.getEnName(); + java.lang.Object ref = enName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + enName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string en_name = 2; + * string en_name = 2; + * @return The bytes for enName. */ public com.google.protobuf.ByteString getEnNameBytes() { - return instance.getEnNameBytes(); + java.lang.Object ref = enName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + enName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string en_name = 2; + * string en_name = 2; + * @param value The enName to set. + * @return This builder for chaining. */ public Builder setEnName( java.lang.String value) { - copyOnWrite(); - instance.setEnName(value); + if (value == null) { + throw new NullPointerException(); + } + + enName_ = value; + onChanged(); return this; } /** - * optional string en_name = 2; + * string en_name = 2; + * @return This builder for chaining. */ public Builder clearEnName() { - copyOnWrite(); - instance.clearEnName(); + + enName_ = getDefaultInstance().getEnName(); + onChanged(); return this; } /** - * optional string en_name = 2; + * string en_name = 2; + * @param value The bytes for enName to set. + * @return This builder for chaining. */ public Builder setEnNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setEnNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + enName_ = value; + onChanged(); return this; } + private java.lang.Object faName_ = ""; /** - * optional string fa_name = 3; + * string fa_name = 3; + * @return The faName. */ public java.lang.String getFaName() { - return instance.getFaName(); + java.lang.Object ref = faName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + faName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string fa_name = 3; + * string fa_name = 3; + * @return The bytes for faName. */ public com.google.protobuf.ByteString getFaNameBytes() { - return instance.getFaNameBytes(); + java.lang.Object ref = faName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + faName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string fa_name = 3; + * string fa_name = 3; + * @param value The faName to set. + * @return This builder for chaining. */ public Builder setFaName( java.lang.String value) { - copyOnWrite(); - instance.setFaName(value); + if (value == null) { + throw new NullPointerException(); + } + + faName_ = value; + onChanged(); return this; } /** - * optional string fa_name = 3; + * string fa_name = 3; + * @return This builder for chaining. */ public Builder clearFaName() { - copyOnWrite(); - instance.clearFaName(); + + faName_ = getDefaultInstance().getFaName(); + onChanged(); return this; } /** - * optional string fa_name = 3; + * string fa_name = 3; + * @param value The bytes for faName to set. + * @return This builder for chaining. */ public Builder setFaNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setFaNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + faName_ = value; + onChanged(); return this; } + private int score_ ; /** - * optional uint32 score = 4; + * uint32 score = 4; + * @return The score. */ + @java.lang.Override public int getScore() { - return instance.getScore(); + return score_; } /** - * optional uint32 score = 4; + * uint32 score = 4; + * @param value The score to set. + * @return This builder for chaining. */ public Builder setScore(int value) { - copyOnWrite(); - instance.setScore(value); + + score_ = value; + onChanged(); return this; } /** - * optional uint32 score = 4; + * uint32 score = 4; + * @return This builder for chaining. */ public Builder clearScore() { - copyOnWrite(); - instance.clearScore(); + + score_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserIVandGetScoreResponse.IVandScore) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore other = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore) arg1; - id_ = visitor.visitInt(id_ != 0, id_, - other.id_ != 0, other.id_); - enName_ = visitor.visitString(!enName_.isEmpty(), enName_, - !other.enName_.isEmpty(), other.enName_); - faName_ = visitor.visitString(!faName_.isEmpty(), faName_, - !other.faName_.isEmpty(), other.faName_); - score_ = visitor.visitInt(score_ != 0, score_, - other.score_ != 0, other.score_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - id_ = input.readUInt32(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - enName_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - faName_ = s; - break; - } - case 32: { - - score_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserIVandGetScoreResponse.IVandScore) + } + // @@protoc_insertion_point(class_scope:proto.UserIVandGetScoreResponse.IVandScore) private static final net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new IVandScore(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore(); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IVandScore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IVandScore(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } - private int bitField0_; - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; - } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - response_ = value; - + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public boolean hasResponse() { + return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SCORE_FIELD_NUMBER = 2; private int score_; /** - * optional uint32 score = 2; + * uint32 score = 2; + * @return The score. */ + @java.lang.Override public int getScore() { return score_; } - /** - * optional uint32 score = 2; - */ - private void setScore(int value) { - - score_ = value; - } - /** - * optional uint32 score = 2; - */ - private void clearScore() { - - score_ = 0; - } public static final int USER_RANK_FIELD_NUMBER = 3; private int userRank_; /** - * optional uint32 user_rank = 3; + * uint32 user_rank = 3; + * @return The userRank. */ + @java.lang.Override public int getUserRank() { return userRank_; } - /** - * optional uint32 user_rank = 3; - */ - private void setUserRank(int value) { - - userRank_ = value; - } - /** - * optional uint32 user_rank = 3; - */ - private void clearUserRank() { - - userRank_ = 0; - } public static final int TOTAL_RANK_FIELD_NUMBER = 4; private int totalRank_; /** - * optional uint32 total_rank = 4; + * uint32 total_rank = 4; + * @return The totalRank. */ + @java.lang.Override public int getTotalRank() { return totalRank_; } - /** - * optional uint32 total_rank = 4; - */ - private void setTotalRank(int value) { - - totalRank_ = value; - } - /** - * optional uint32 total_rank = 4; - */ - private void clearTotalRank() { - - totalRank_ = 0; - } public static final int SCORES_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.ProtobufList scores_; + private java.util.List scores_; /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ + @java.lang.Override public java.util.List getScoresList() { return scores_; } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ + @java.lang.Override public java.util.List getScoresOrBuilderList() { return scores_; @@ -1082,108 +1752,38 @@ public java.util.Listrepeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ + @java.lang.Override public int getScoresCount() { return scores_.size(); } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ + @java.lang.Override public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore getScores(int index) { return scores_.get(index); } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ + @java.lang.Override public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScoreOrBuilder getScoresOrBuilder( int index) { return scores_.get(index); } - private void ensureScoresIsMutable() { - if (!scores_.isModifiable()) { - scores_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(scores_); - } - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void setScores( - int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore value) { - if (value == null) { - throw new NullPointerException(); - } - ensureScoresIsMutable(); - scores_.set(index, value); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void setScores( - int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder builderForValue) { - ensureScoresIsMutable(); - scores_.set(index, builderForValue.build()); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void addScores(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore value) { - if (value == null) { - throw new NullPointerException(); - } - ensureScoresIsMutable(); - scores_.add(value); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void addScores( - int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore value) { - if (value == null) { - throw new NullPointerException(); - } - ensureScoresIsMutable(); - scores_.add(index, value); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void addScores( - net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder builderForValue) { - ensureScoresIsMutable(); - scores_.add(builderForValue.build()); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void addScores( - int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder builderForValue) { - ensureScoresIsMutable(); - scores_.add(index, builderForValue.build()); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void addAllScores( - java.lang.Iterable values) { - ensureScoresIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, scores_); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void clearScores() { - scores_ = emptyProtobufList(); - } - /** - * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; - */ - private void removeScores(int index) { - ensureScoresIsMutable(); - scores_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1201,10 +1801,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < scores_.size(); i++) { output.writeMessage(5, scores_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1228,231 +1830,640 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, scores_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse other = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getScore() + != other.getScore()) return false; + if (getUserRank() + != other.getUserRank()) return false; + if (getTotalRank() + != other.getTotalRank()) return false; + if (!getScoresList() + .equals(other.getScoresList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + getScore(); + hash = (37 * hash) + USER_RANK_FIELD_NUMBER; + hash = (53 * hash) + getUserRank(); + hash = (37 * hash) + TOTAL_RANK_FIELD_NUMBER; + hash = (53 * hash) + getTotalRank(); + if (getScoresCount() > 0) { + hash = (37 * hash) + SCORES_FIELD_NUMBER; + hash = (53 * hash) + getScoresList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserIVandGetScoreResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserIVandGetScoreResponse) net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.class, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getScoresFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + score_ = 0; + + userRank_ = 0; + + totalRank_ = 0; + + if (scoresBuilder_ == null) { + scores_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + scoresBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserIVandGetScore.internal_static_proto_UserIVandGetScoreResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse build() { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse buildPartial() { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse result = new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.score_ = score_; + result.userRank_ = userRank_; + result.totalRank_ = totalRank_; + if (scoresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scores_ = java.util.Collections.unmodifiableList(scores_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scores_ = scores_; + } else { + result.scores_ = scoresBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse) { + return mergeFrom((net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse other) { + if (other == net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getScore() != 0) { + setScore(other.getScore()); + } + if (other.getUserRank() != 0) { + setUserRank(other.getUserRank()); + } + if (other.getTotalRank() != 0) { + setTotalRank(other.getTotalRank()); + } + if (scoresBuilder_ == null) { + if (!other.scores_.isEmpty()) { + if (scores_.isEmpty()) { + scores_ = other.scores_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScoresIsMutable(); + scores_.addAll(other.scores_); + } + onChanged(); + } + } else { + if (!other.scores_.isEmpty()) { + if (scoresBuilder_.isEmpty()) { + scoresBuilder_.dispose(); + scoresBuilder_ = null; + scores_ = other.scores_; + bitField0_ = (bitField0_ & ~0x00000001); + scoresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScoresFieldBuilder() : null; + } else { + scoresBuilder_.addAllMessages(other.scores_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int score_ ; /** - * optional uint32 score = 2; + * uint32 score = 2; + * @return The score. */ + @java.lang.Override public int getScore() { - return instance.getScore(); + return score_; } /** - * optional uint32 score = 2; + * uint32 score = 2; + * @param value The score to set. + * @return This builder for chaining. */ public Builder setScore(int value) { - copyOnWrite(); - instance.setScore(value); + + score_ = value; + onChanged(); return this; } /** - * optional uint32 score = 2; + * uint32 score = 2; + * @return This builder for chaining. */ public Builder clearScore() { - copyOnWrite(); - instance.clearScore(); + + score_ = 0; + onChanged(); return this; } + private int userRank_ ; /** - * optional uint32 user_rank = 3; + * uint32 user_rank = 3; + * @return The userRank. */ + @java.lang.Override public int getUserRank() { - return instance.getUserRank(); + return userRank_; } /** - * optional uint32 user_rank = 3; + * uint32 user_rank = 3; + * @param value The userRank to set. + * @return This builder for chaining. */ public Builder setUserRank(int value) { - copyOnWrite(); - instance.setUserRank(value); + + userRank_ = value; + onChanged(); return this; } /** - * optional uint32 user_rank = 3; + * uint32 user_rank = 3; + * @return This builder for chaining. */ public Builder clearUserRank() { - copyOnWrite(); - instance.clearUserRank(); + + userRank_ = 0; + onChanged(); return this; } + private int totalRank_ ; /** - * optional uint32 total_rank = 4; + * uint32 total_rank = 4; + * @return The totalRank. */ + @java.lang.Override public int getTotalRank() { - return instance.getTotalRank(); + return totalRank_; } /** - * optional uint32 total_rank = 4; + * uint32 total_rank = 4; + * @param value The totalRank to set. + * @return This builder for chaining. */ public Builder setTotalRank(int value) { - copyOnWrite(); - instance.setTotalRank(value); + + totalRank_ = value; + onChanged(); return this; } /** - * optional uint32 total_rank = 4; + * uint32 total_rank = 4; + * @return This builder for chaining. */ public Builder clearTotalRank() { - copyOnWrite(); - instance.clearTotalRank(); + + totalRank_ = 0; + onChanged(); return this; } + private java.util.List scores_ = + java.util.Collections.emptyList(); + private void ensureScoresIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scores_ = new java.util.ArrayList(scores_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScoreOrBuilder> scoresBuilder_; + /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ public java.util.List getScoresList() { - return java.util.Collections.unmodifiableList( - instance.getScoresList()); + if (scoresBuilder_ == null) { + return java.util.Collections.unmodifiableList(scores_); + } else { + return scoresBuilder_.getMessageList(); + } } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ public int getScoresCount() { - return instance.getScoresCount(); - }/** + if (scoresBuilder_ == null) { + return scores_.size(); + } else { + return scoresBuilder_.getCount(); + } + } + /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore getScores(int index) { - return instance.getScores(index); + if (scoresBuilder_ == null) { + return scores_.get(index); + } else { + return scoresBuilder_.getMessage(index); + } } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ public Builder setScores( int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore value) { - copyOnWrite(); - instance.setScores(index, value); + if (scoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScoresIsMutable(); + scores_.set(index, value); + onChanged(); + } else { + scoresBuilder_.setMessage(index, value); + } return this; } /** @@ -1460,16 +2471,29 @@ public Builder setScores( */ public Builder setScores( int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder builderForValue) { - copyOnWrite(); - instance.setScores(index, builderForValue); + if (scoresBuilder_ == null) { + ensureScoresIsMutable(); + scores_.set(index, builderForValue.build()); + onChanged(); + } else { + scoresBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ public Builder addScores(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore value) { - copyOnWrite(); - instance.addScores(value); + if (scoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScoresIsMutable(); + scores_.add(value); + onChanged(); + } else { + scoresBuilder_.addMessage(value); + } return this; } /** @@ -1477,8 +2501,16 @@ public Builder addScores(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScore */ public Builder addScores( int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore value) { - copyOnWrite(); - instance.addScores(index, value); + if (scoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScoresIsMutable(); + scores_.add(index, value); + onChanged(); + } else { + scoresBuilder_.addMessage(index, value); + } return this; } /** @@ -1486,8 +2518,13 @@ public Builder addScores( */ public Builder addScores( net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder builderForValue) { - copyOnWrite(); - instance.addScores(builderForValue); + if (scoresBuilder_ == null) { + ensureScoresIsMutable(); + scores_.add(builderForValue.build()); + onChanged(); + } else { + scoresBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -1495,8 +2532,13 @@ public Builder addScores( */ public Builder addScores( int index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder builderForValue) { - copyOnWrite(); - instance.addScores(index, builderForValue); + if (scoresBuilder_ == null) { + ensureScoresIsMutable(); + scores_.add(index, builderForValue.build()); + onChanged(); + } else { + scoresBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -1504,167 +2546,221 @@ public Builder addScores( */ public Builder addAllScores( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllScores(values); + if (scoresBuilder_ == null) { + ensureScoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scores_); + onChanged(); + } else { + scoresBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ public Builder clearScores() { - copyOnWrite(); - instance.clearScores(); + if (scoresBuilder_ == null) { + scores_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scoresBuilder_.clear(); + } return this; } /** * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; */ public Builder removeScores(int index) { - copyOnWrite(); - instance.removeScores(index); + if (scoresBuilder_ == null) { + ensureScoresIsMutable(); + scores_.remove(index); + onChanged(); + } else { + scoresBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserIVandGetScoreResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - scores_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse other = (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - score_ = visitor.visitInt(score_ != 0, score_, - other.score_ != 0, other.score_); - userRank_ = visitor.visitInt(userRank_ != 0, userRank_, - other.userRank_ != 0, other.userRank_); - totalRank_ = visitor.visitInt(totalRank_ != 0, totalRank_, - other.totalRank_ != 0, other.totalRank_); - scores_= visitor.visitList(scores_, other.scores_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - score_ = input.readUInt32(); - break; - } - case 24: { - - userRank_ = input.readUInt32(); - break; - } - case 32: { - - totalRank_ = input.readUInt32(); - break; - } - case 42: { - if (!scores_.isModifiable()) { - scores_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(scores_); - } - scores_.add( - input.readMessage(net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder getScoresBuilder( + int index) { + return getScoresFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScoreOrBuilder getScoresOrBuilder( + int index) { + if (scoresBuilder_ == null) { + return scores_.get(index); } else { + return scoresBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + public java.util.List + getScoresOrBuilderList() { + if (scoresBuilder_ != null) { + return scoresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scores_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder addScoresBuilder() { + return getScoresFieldBuilder().addBuilder( + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.getDefaultInstance()); + } + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder addScoresBuilder( + int index) { + return getScoresFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.getDefaultInstance()); + } + /** + * repeated .proto.UserIVandGetScoreResponse.IVandScore scores = 5; + */ + public java.util.List + getScoresBuilderList() { + return getScoresFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScoreOrBuilder> + getScoresFieldBuilder() { + if (scoresBuilder_ == null) { + scoresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScore.Builder, net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse.IVandScoreOrBuilder>( + scores_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + scores_ = null; } + return scoresBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.UserIVandGetScoreResponse) + } // @@protoc_insertion_point(class_scope:proto.UserIVandGetScoreResponse) private static final net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserIVandGetScoreResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse(); } public static net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserIVandGetScoreResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserIVandGetScoreResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandGetScore.UserIVandGetScoreResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserIVandGetScore_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserIVandGetScore_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserIVandGetScoreResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserIVandGetScoreResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserIVandGetScoreResponse_IVandScore_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserIVandGetScoreResponse_IVandScore_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027UserIVandGetScore.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"4\n\021UserIVandGetS" + + "core\022\037\n\007request\030\001 \001(\0132\016.proto.Request\"\374\001" + + "\n\031UserIVandGetScoreResponse\022!\n\010response\030" + + "\001 \001(\0132\017.proto.Response\022\r\n\005score\030\002 \001(\r\022\021\n" + + "\tuser_rank\030\003 \001(\r\022\022\n\ntotal_rank\030\004 \001(\r\022;\n\006" + + "scores\030\005 \003(\0132+.proto.UserIVandGetScoreRe" + + "sponse.IVandScore\032I\n\nIVandScore\022\n\n\002id\030\001 " + + "\001(\r\022\017\n\007en_name\030\002 \001(\t\022\017\n\007fa_name\030\003 \001(\t\022\r\n" + + "\005score\030\004 \001(\rB(\n\016net.iGap.protoB\026ProtoUse" + + "rIVandGetScoreb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserIVandGetScore_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserIVandGetScore_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserIVandGetScore_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserIVandGetScoreResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserIVandGetScoreResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserIVandGetScoreResponse_descriptor, + new java.lang.String[] { "Response", "Score", "UserRank", "TotalRank", "Scores", }); + internal_static_proto_UserIVandGetScoreResponse_IVandScore_descriptor = + internal_static_proto_UserIVandGetScoreResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_UserIVandGetScoreResponse_IVandScore_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserIVandGetScoreResponse_IVandScore_descriptor, + new java.lang.String[] { "Id", "EnName", "FaName", "Score", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserIVandSetActivity.java b/src/main/java/net/iGap/proto/ProtoUserIVandSetActivity.java index f3c20b0..3305f81 100644 --- a/src/main/java/net/iGap/proto/ProtoUserIVandSetActivity.java +++ b/src/main/java/net/iGap/proto/ProtoUserIVandSetActivity.java @@ -8,181 +8,255 @@ private ProtoUserIVandSetActivity() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserIVandSetActivityOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserIVandSetActivity) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string plancode = 2; + * string plancode = 2; + * @return The plancode. */ java.lang.String getPlancode(); /** - * optional string plancode = 2; + * string plancode = 2; + * @return The bytes for plancode. */ com.google.protobuf.ByteString getPlancodeBytes(); /** - * optional uint64 value = 3; + * uint64 value = 3; + * @return The value. */ long getValue(); } /** * Protobuf type {@code proto.UserIVandSetActivity} */ - public static final class UserIVandSetActivity extends - com.google.protobuf.GeneratedMessageLite< - UserIVandSetActivity, UserIVandSetActivity.Builder> implements + public static final class UserIVandSetActivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserIVandSetActivity) UserIVandSetActivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserIVandSetActivity.newBuilder() to construct. + private UserIVandSetActivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserIVandSetActivity() { plancode_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserIVandSetActivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserIVandSetActivity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + plancode_ = s; + break; + } + case 24: { + + value_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.class, net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PLANCODE_FIELD_NUMBER = 2; - private java.lang.String plancode_; + private volatile java.lang.Object plancode_; /** - * optional string plancode = 2; + * string plancode = 2; + * @return The plancode. */ + @java.lang.Override public java.lang.String getPlancode() { - return plancode_; + java.lang.Object ref = plancode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + plancode_ = s; + return s; + } } /** - * optional string plancode = 2; + * string plancode = 2; + * @return The bytes for plancode. */ + @java.lang.Override public com.google.protobuf.ByteString getPlancodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(plancode_); - } - /** - * optional string plancode = 2; - */ - private void setPlancode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - plancode_ = value; - } - /** - * optional string plancode = 2; - */ - private void clearPlancode() { - - plancode_ = getDefaultInstance().getPlancode(); - } - /** - * optional string plancode = 2; - */ - private void setPlancodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - plancode_ = value.toStringUtf8(); + java.lang.Object ref = plancode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + plancode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VALUE_FIELD_NUMBER = 3; private long value_; /** - * optional uint64 value = 3; + * uint64 value = 3; + * @return The value. */ + @java.lang.Override public long getValue() { return value_; } - /** - * optional uint64 value = 3; - */ - private void setValue(long value) { - - value_ = value; - } - /** - * optional uint64 value = 3; - */ - private void clearValue() { - - value_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!plancode_.isEmpty()) { - output.writeString(2, getPlancode()); + if (!getPlancodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, plancode_); } if (value_ != 0L) { output.writeUInt64(3, value_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -190,503 +264,841 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!plancode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPlancode()); + if (!getPlancodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, plancode_); } if (value_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, value_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity other = (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPlancode() + .equals(other.getPlancode())) return false; + if (getValue() + != other.getValue()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PLANCODE_FIELD_NUMBER; + hash = (53 * hash) + getPlancode().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValue()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserIVandSetActivity} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserIVandSetActivity) net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.class, net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + plancode_ = ""; + + value_ = 0L; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivity_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity build() { + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity buildPartial() { + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity result = new net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.plancode_ = plancode_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity) { + return mergeFrom((net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity other) { + if (other == net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPlancode().isEmpty()) { + plancode_ = other.plancode_; + onChanged(); + } + if (other.getValue() != 0L) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object plancode_ = ""; /** - * optional string plancode = 2; + * string plancode = 2; + * @return The plancode. */ public java.lang.String getPlancode() { - return instance.getPlancode(); + java.lang.Object ref = plancode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + plancode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string plancode = 2; + * string plancode = 2; + * @return The bytes for plancode. */ public com.google.protobuf.ByteString getPlancodeBytes() { - return instance.getPlancodeBytes(); + java.lang.Object ref = plancode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + plancode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string plancode = 2; + * string plancode = 2; + * @param value The plancode to set. + * @return This builder for chaining. */ public Builder setPlancode( java.lang.String value) { - copyOnWrite(); - instance.setPlancode(value); + if (value == null) { + throw new NullPointerException(); + } + + plancode_ = value; + onChanged(); return this; } /** - * optional string plancode = 2; + * string plancode = 2; + * @return This builder for chaining. */ public Builder clearPlancode() { - copyOnWrite(); - instance.clearPlancode(); + + plancode_ = getDefaultInstance().getPlancode(); + onChanged(); return this; } /** - * optional string plancode = 2; + * string plancode = 2; + * @param value The bytes for plancode to set. + * @return This builder for chaining. */ public Builder setPlancodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPlancodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + plancode_ = value; + onChanged(); return this; } + private long value_ ; /** - * optional uint64 value = 3; + * uint64 value = 3; + * @return The value. */ + @java.lang.Override public long getValue() { - return instance.getValue(); + return value_; } /** - * optional uint64 value = 3; + * uint64 value = 3; + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue(long value) { - copyOnWrite(); - instance.setValue(value); + + value_ = value; + onChanged(); return this; } /** - * optional uint64 value = 3; + * uint64 value = 3; + * @return This builder for chaining. */ public Builder clearValue() { - copyOnWrite(); - instance.clearValue(); + + value_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserIVandSetActivity) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity other = (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity) arg1; - request_ = visitor.visitMessage(request_, other.request_); - plancode_ = visitor.visitString(!plancode_.isEmpty(), plancode_, - !other.plancode_.isEmpty(), other.plancode_); - value_ = visitor.visitLong(value_ != 0L, value_, - other.value_ != 0L, other.value_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - plancode_ = s; - break; - } - case 24: { - - value_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserIVandSetActivity) + } + // @@protoc_insertion_point(class_scope:proto.UserIVandSetActivity) private static final net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserIVandSetActivity(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity(); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserIVandSetActivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserIVandSetActivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserIVandSetActivityResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserIVandSetActivityResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string message = 2; + * string message = 2; + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional bool state = 3; + * bool state = 3; + * @return The state. */ boolean getState(); } /** * Protobuf type {@code proto.UserIVandSetActivityResponse} */ - public static final class UserIVandSetActivityResponse extends - com.google.protobuf.GeneratedMessageLite< - UserIVandSetActivityResponse, UserIVandSetActivityResponse.Builder> implements + public static final class UserIVandSetActivityResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserIVandSetActivityResponse) UserIVandSetActivityResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserIVandSetActivityResponse.newBuilder() to construct. + private UserIVandSetActivityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserIVandSetActivityResponse() { message_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserIVandSetActivityResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserIVandSetActivityResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: { + + state_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.class, net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int MESSAGE_FIELD_NUMBER = 2; - private java.lang.String message_; + private volatile java.lang.Object message_; /** - * optional string message = 2; + * string message = 2; + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { - return message_; + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 2; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 2; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 2; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STATE_FIELD_NUMBER = 3; private boolean state_; /** - * optional bool state = 3; + * bool state = 3; + * @return The state. */ + @java.lang.Override public boolean getState() { return state_; } - /** - * optional bool state = 3; - */ - private void setState(boolean value) { - - state_ = value; - } - /** - * optional bool state = 3; - */ - private void clearState() { - - state_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!message_.isEmpty()) { - output.writeString(2, getMessage()); + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } if (state_ != false) { output.writeBool(3, state_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -694,330 +1106,646 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getMessage()); + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (state_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, state_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse other = (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getMessage() + .equals(other.getMessage())) return false; + if (getState() + != other.getState()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getState()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserIVandSetActivityResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserIVandSetActivityResponse) net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.class, net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + message_ = ""; + + state_ = false; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserIVandSetActivity.internal_static_proto_UserIVandSetActivityResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse build() { + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse buildPartial() { + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse result = new net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.message_ = message_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse) { + return mergeFrom((net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse other) { + if (other == net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getState() != false) { + setState(other.getState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object message_ = ""; /** - * optional string message = 2; + * string message = 2; + * @return The message. */ public java.lang.String getMessage() { - return instance.getMessage(); + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string message = 2; + * string message = 2; + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { - return instance.getMessageBytes(); + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string message = 2; + * string message = 2; + * @param value The message to set. + * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); return this; } /** - * optional string message = 2; + * string message = 2; + * @return This builder for chaining. */ public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); + + message_ = getDefaultInstance().getMessage(); + onChanged(); return this; } /** - * optional string message = 2; + * string message = 2; + * @param value The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); return this; } + private boolean state_ ; /** - * optional bool state = 3; + * bool state = 3; + * @return The state. */ + @java.lang.Override public boolean getState() { - return instance.getState(); + return state_; } /** - * optional bool state = 3; + * bool state = 3; + * @param value The state to set. + * @return This builder for chaining. */ public Builder setState(boolean value) { - copyOnWrite(); - instance.setState(value); + + state_ = value; + onChanged(); return this; } /** - * optional bool state = 3; + * bool state = 3; + * @return This builder for chaining. */ public Builder clearState() { - copyOnWrite(); - instance.clearState(); + + state_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserIVandSetActivityResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse other = (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - state_ = visitor.visitBoolean(state_ != false, state_, - other.state_ != false, other.state_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 24: { - - state_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserIVandSetActivityResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserIVandSetActivityResponse) private static final net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserIVandSetActivityResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse(); } public static net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserIVandSetActivityResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserIVandSetActivityResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserIVandSetActivity.UserIVandSetActivityResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserIVandSetActivity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserIVandSetActivity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserIVandSetActivityResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserIVandSetActivityResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032UserIVandSetActivity.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"X\n\024UserIVandS" + + "etActivity\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\020\n\010plancode\030\002 \001(\t\022\r\n\005value\030\003 \001(\004\"a\n\034" + + "UserIVandSetActivityResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\017\n\007message\030\002 \001(\t" + + "\022\r\n\005state\030\003 \001(\010B+\n\016net.iGap.protoB\031Proto" + + "UserIVandSetActivityb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserIVandSetActivity_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserIVandSetActivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserIVandSetActivity_descriptor, + new java.lang.String[] { "Request", "Plancode", "Value", }); + internal_static_proto_UserIVandSetActivityResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserIVandSetActivityResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserIVandSetActivityResponse_descriptor, + new java.lang.String[] { "Response", "Message", "State", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserInfo.java b/src/main/java/net/iGap/proto/ProtoUserInfo.java index 05dfc3e..447c987 100644 --- a/src/main/java/net/iGap/proto/ProtoUserInfo.java +++ b/src/main/java/net/iGap/proto/ProtoUserInfo.java @@ -8,109 +8,181 @@ private ProtoUserInfo() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserInfo) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserInfo} */ - public static final class UserInfo extends - com.google.protobuf.GeneratedMessageLite< - UserInfo, UserInfo.Builder> implements + public static final class UserInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserInfo) UserInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserInfo.newBuilder() to construct. + private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserInfo() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserInfo.UserInfo.class, net.iGap.proto.ProtoUserInfo.UserInfo.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(3, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,408 +208,705 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserInfo.UserInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserInfo.UserInfo other = (net.iGap.proto.ProtoUserInfo.UserInfo) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserInfo.UserInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserInfo.UserInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserInfo.UserInfo, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserInfo) net.iGap.proto.ProtoUserInfo.UserInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserInfo.UserInfo.class, net.iGap.proto.ProtoUserInfo.UserInfo.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserInfo.UserInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + userId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfo_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserInfo.UserInfo.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfo build() { + net.iGap.proto.ProtoUserInfo.UserInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfo buildPartial() { + net.iGap.proto.ProtoUserInfo.UserInfo result = new net.iGap.proto.ProtoUserInfo.UserInfo(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserInfo.UserInfo) { + return mergeFrom((net.iGap.proto.ProtoUserInfo.UserInfo)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserInfo.UserInfo other) { + if (other == net.iGap.proto.ProtoUserInfo.UserInfo.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserInfo.UserInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserInfo.UserInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserInfo.UserInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserInfo.UserInfo other = (net.iGap.proto.ProtoUserInfo.UserInfo) arg1; - request_ = visitor.visitMessage(request_, other.request_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserInfo.UserInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserInfo) + } + // @@protoc_insertion_point(class_scope:proto.UserInfo) private static final net.iGap.proto.ProtoUserInfo.UserInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserInfo(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserInfo.UserInfo(); } public static net.iGap.proto.ProtoUserInfo.UserInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserInfoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserInfoResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; + * @return Whether the user field is set. */ boolean hasUser(); /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; + * @return The user. */ net.iGap.proto.ProtoGlobal.RegisteredUser getUser(); + /** + * .proto.RegisteredUser user = 2; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder(); } /** * Protobuf type {@code proto.UserInfoResponse} */ - public static final class UserInfoResponse extends - com.google.protobuf.GeneratedMessageLite< - UserInfoResponse, UserInfoResponse.Builder> implements + public static final class UserInfoResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserInfoResponse) UserInfoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserInfoResponse.newBuilder() to construct. + private UserInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserInfoResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserInfoResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserInfoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserInfo.UserInfoResponse.class, net.iGap.proto.ProtoUserInfo.UserInfoResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USER_FIELD_NUMBER = 2; private net.iGap.proto.ProtoGlobal.RegisteredUser user_; /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; + * @return Whether the user field is set. */ + @java.lang.Override public boolean hasUser() { return user_ != null; } /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; + * @return The user. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; } /** - * optional .proto.RegisteredUser user = 2; - */ - private void setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - - } - /** - * optional .proto.RegisteredUser user = 2; - */ - private void setUser( - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - user_ = builderForValue.build(); - - } - /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; */ - private void mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - if (user_ != null && - user_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { - user_ = - net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); - } else { - user_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + return getUser(); } - /** - * optional .proto.RegisteredUser user = 2; - */ - private void clearUser() { user_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -544,10 +915,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (user_ != null) { output.writeMessage(2, getUser()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -559,303 +932,653 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUser()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserInfo.UserInfoResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserInfo.UserInfoResponse other = (net.iGap.proto.ProtoUserInfo.UserInfoResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserInfo.UserInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserInfoResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserInfo.UserInfoResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserInfoResponse) net.iGap.proto.ProtoUserInfo.UserInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserInfo.UserInfoResponse.class, net.iGap.proto.ProtoUserInfo.UserInfoResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserInfo.UserInfoResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserInfo.internal_static_proto_UserInfoResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfoResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserInfo.UserInfoResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfoResponse build() { + net.iGap.proto.ProtoUserInfo.UserInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfoResponse buildPartial() { + net.iGap.proto.ProtoUserInfo.UserInfoResponse result = new net.iGap.proto.ProtoUserInfo.UserInfoResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserInfo.UserInfoResponse) { + return mergeFrom((net.iGap.proto.ProtoUserInfo.UserInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserInfo.UserInfoResponse other) { + if (other == net.iGap.proto.ProtoUserInfo.UserInfoResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserInfo.UserInfoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserInfo.UserInfoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private net.iGap.proto.ProtoGlobal.RegisteredUser user_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userBuilder_; /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; + * @return Whether the user field is set. */ public boolean hasUser() { - return instance.hasUser(); + return userBuilder_ != null || user_ != null; } /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; + * @return The user. */ public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { - return instance.getUser(); + if (userBuilder_ == null) { + return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } } /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; */ public Builder setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.setUser(value); - return this; + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; */ public Builder setUser( net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { - copyOnWrite(); - instance.setUser(builderForValue); + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; */ public Builder mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { - copyOnWrite(); - instance.mergeUser(value); + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.RegisteredUser user = 2; + * .proto.RegisteredUser user = 2; */ - public Builder clearUser() { copyOnWrite(); - instance.clearUser(); + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserInfoResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserInfo.UserInfoResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserInfo.UserInfoResponse other = (net.iGap.proto.ProtoUserInfo.UserInfoResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - user_ = visitor.visitMessage(user_, other.user_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; - if (user_ != null) { - subBuilder = user_.toBuilder(); - } - user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(user_); - user_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.RegisteredUser user = 2; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .proto.RegisteredUser user = 2; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserInfo.UserInfoResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.RegisteredUser user = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; } + return userBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserInfoResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserInfoResponse) private static final net.iGap.proto.ProtoUserInfo.UserInfoResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserInfoResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserInfo.UserInfoResponse(); } public static net.iGap.proto.ProtoUserInfo.UserInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserInfoResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserInfo.UserInfoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserInfoResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserInfoResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\016UserInfo.proto\022\005proto\032\rRequest.proto\032\016" + + "Response.proto\032\014Global.proto\"<\n\010UserInfo" + + "\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007use" + + "r_id\030\003 \001(\004\"Z\n\020UserInfoResponse\022!\n\010respon" + + "se\030\001 \001(\0132\017.proto.Response\022#\n\004user\030\002 \001(\0132" + + "\025.proto.RegisteredUserB\037\n\016net.iGap.proto" + + "B\rProtoUserInfob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserInfo_descriptor, + new java.lang.String[] { "Request", "UserId", }); + internal_static_proto_UserInfoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserInfoResponse_descriptor, + new java.lang.String[] { "Response", "User", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserLogin.java b/src/main/java/net/iGap/proto/ProtoUserLogin.java index 25eea22..a6456df 100644 --- a/src/main/java/net/iGap/proto/ProtoUserLogin.java +++ b/src/main/java/net/iGap/proto/ProtoUserLogin.java @@ -8,608 +8,632 @@ private ProtoUserLogin() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserLoginOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserLogin) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional string app_name = 3; + * string app_name = 3; + * @return The appName. */ java.lang.String getAppName(); /** - * optional string app_name = 3; + * string app_name = 3; + * @return The bytes for appName. */ com.google.protobuf.ByteString getAppNameBytes(); /** - * optional uint32 app_id = 4; + * uint32 app_id = 4; + * @return The appId. */ int getAppId(); /** - * optional uint32 app_build_version = 5; + * uint32 app_build_version = 5; + * @return The appBuildVersion. */ int getAppBuildVersion(); /** - * optional string app_version = 6; + * string app_version = 6; + * @return The appVersion. */ java.lang.String getAppVersion(); /** - * optional string app_version = 6; + * string app_version = 6; + * @return The bytes for appVersion. */ com.google.protobuf.ByteString getAppVersionBytes(); /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @return The enum numeric value on the wire for platform. */ int getPlatformValue(); /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @return The platform. */ net.iGap.proto.ProtoGlobal.Platform getPlatform(); /** - * optional string platform_version = 8; + * string platform_version = 8; + * @return The platformVersion. */ java.lang.String getPlatformVersion(); /** - * optional string platform_version = 8; + * string platform_version = 8; + * @return The bytes for platformVersion. */ com.google.protobuf.ByteString getPlatformVersionBytes(); /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @return The enum numeric value on the wire for device. */ int getDeviceValue(); /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @return The device. */ net.iGap.proto.ProtoGlobal.Device getDevice(); /** - * optional string device_name = 10; + * string device_name = 10; + * @return The deviceName. */ java.lang.String getDeviceName(); /** - * optional string device_name = 10; + * string device_name = 10; + * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @return The enum numeric value on the wire for language. */ int getLanguageValue(); /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @return The language. */ net.iGap.proto.ProtoGlobal.Language getLanguage(); /** - * optional bytes symmetric_key = 12; + * bytes symmetric_key = 12; + * @return The symmetricKey. */ com.google.protobuf.ByteString getSymmetricKey(); } /** * Protobuf type {@code proto.UserLogin} */ - public static final class UserLogin extends - com.google.protobuf.GeneratedMessageLite< - UserLogin, UserLogin.Builder> implements + public static final class UserLogin extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserLogin) UserLoginOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserLogin.newBuilder() to construct. + private UserLogin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserLogin() { token_ = ""; appName_ = ""; appVersion_ = ""; + platform_ = 0; platformVersion_ = ""; + device_ = 0; deviceName_ = ""; + language_ = 0; symmetricKey_ = com.google.protobuf.ByteString.EMPTY; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserLogin(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserLogin( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + appName_ = s; + break; + } + case 32: { + + appId_ = input.readUInt32(); + break; + } + case 40: { + + appBuildVersion_ = input.readUInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + appVersion_ = s; + break; + } + case 56: { + int rawValue = input.readEnum(); + + platform_ = rawValue; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + platformVersion_ = s; + break; + } + case 72: { + int rawValue = input.readEnum(); + + device_ = rawValue; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + deviceName_ = s; + break; + } + case 88: { + int rawValue = input.readEnum(); + + language_ = rawValue; + break; + } + case 98: { + + symmetricKey_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLogin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLogin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserLogin.UserLogin.class, net.iGap.proto.ProtoUserLogin.UserLogin.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int APP_NAME_FIELD_NUMBER = 3; - private java.lang.String appName_; + private volatile java.lang.Object appName_; /** - * optional string app_name = 3; + * string app_name = 3; + * @return The appName. */ + @java.lang.Override public java.lang.String getAppName() { - return appName_; + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } } /** - * optional string app_name = 3; + * string app_name = 3; + * @return The bytes for appName. */ + @java.lang.Override public com.google.protobuf.ByteString getAppNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appName_); - } - /** - * optional string app_name = 3; - */ - private void setAppName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appName_ = value; - } - /** - * optional string app_name = 3; - */ - private void clearAppName() { - - appName_ = getDefaultInstance().getAppName(); - } - /** - * optional string app_name = 3; - */ - private void setAppNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appName_ = value.toStringUtf8(); + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int APP_ID_FIELD_NUMBER = 4; private int appId_; /** - * optional uint32 app_id = 4; + * uint32 app_id = 4; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 4; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 4; - */ - private void clearAppId() { - - appId_ = 0; - } public static final int APP_BUILD_VERSION_FIELD_NUMBER = 5; private int appBuildVersion_; /** - * optional uint32 app_build_version = 5; + * uint32 app_build_version = 5; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { return appBuildVersion_; } - /** - * optional uint32 app_build_version = 5; - */ - private void setAppBuildVersion(int value) { - - appBuildVersion_ = value; - } - /** - * optional uint32 app_build_version = 5; - */ - private void clearAppBuildVersion() { - - appBuildVersion_ = 0; - } public static final int APP_VERSION_FIELD_NUMBER = 6; - private java.lang.String appVersion_; + private volatile java.lang.Object appVersion_; /** - * optional string app_version = 6; + * string app_version = 6; + * @return The appVersion. */ + @java.lang.Override public java.lang.String getAppVersion() { - return appVersion_; + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } } /** - * optional string app_version = 6; + * string app_version = 6; + * @return The bytes for appVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getAppVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appVersion_); - } - /** - * optional string app_version = 6; - */ - private void setAppVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appVersion_ = value; - } - /** - * optional string app_version = 6; - */ - private void clearAppVersion() { - - appVersion_ = getDefaultInstance().getAppVersion(); - } - /** - * optional string app_version = 6; - */ - private void setAppVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appVersion_ = value.toStringUtf8(); + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PLATFORM_FIELD_NUMBER = 7; private int platform_; /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { + @java.lang.Override public int getPlatformValue() { return platform_; } /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @return The platform. */ - public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.forNumber(platform_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } - /** - * optional .proto.Platform platform = 7; - */ - private void setPlatformValue(int value) { - platform_ = value; - } - /** - * optional .proto.Platform platform = 7; - */ - private void setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - if (value == null) { - throw new NullPointerException(); - } - - platform_ = value.getNumber(); - } - /** - * optional .proto.Platform platform = 7; - */ - private void clearPlatform() { - - platform_ = 0; - } public static final int PLATFORM_VERSION_FIELD_NUMBER = 8; - private java.lang.String platformVersion_; + private volatile java.lang.Object platformVersion_; /** - * optional string platform_version = 8; + * string platform_version = 8; + * @return The platformVersion. */ + @java.lang.Override public java.lang.String getPlatformVersion() { - return platformVersion_; + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } } /** - * optional string platform_version = 8; + * string platform_version = 8; + * @return The bytes for platformVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getPlatformVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(platformVersion_); - } - /** - * optional string platform_version = 8; - */ - private void setPlatformVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - platformVersion_ = value; - } - /** - * optional string platform_version = 8; - */ - private void clearPlatformVersion() { - - platformVersion_ = getDefaultInstance().getPlatformVersion(); - } - /** - * optional string platform_version = 8; - */ - private void setPlatformVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - platformVersion_ = value.toStringUtf8(); + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DEVICE_FIELD_NUMBER = 9; private int device_; /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { + @java.lang.Override public int getDeviceValue() { return device_; } /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @return The device. */ - public net.iGap.proto.ProtoGlobal.Device getDevice() { - net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.forNumber(device_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } - /** - * optional .proto.Device device = 9; - */ - private void setDeviceValue(int value) { - device_ = value; - } - /** - * optional .proto.Device device = 9; - */ - private void setDevice(net.iGap.proto.ProtoGlobal.Device value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value.getNumber(); - } - /** - * optional .proto.Device device = 9; - */ - private void clearDevice() { - - device_ = 0; - } public static final int DEVICE_NAME_FIELD_NUMBER = 10; - private java.lang.String deviceName_; + private volatile java.lang.Object deviceName_; /** - * optional string device_name = 10; + * string device_name = 10; + * @return The deviceName. */ + @java.lang.Override public java.lang.String getDeviceName() { - return deviceName_; + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } } /** - * optional string device_name = 10; + * string device_name = 10; + * @return The bytes for deviceName. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(deviceName_); - } - /** - * optional string device_name = 10; - */ - private void setDeviceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceName_ = value; - } - /** - * optional string device_name = 10; - */ - private void clearDeviceName() { - - deviceName_ = getDefaultInstance().getDeviceName(); - } - /** - * optional string device_name = 10; - */ - private void setDeviceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceName_ = value.toStringUtf8(); + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LANGUAGE_FIELD_NUMBER = 11; private int language_; /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @return The enum numeric value on the wire for language. */ - public int getLanguageValue() { + @java.lang.Override public int getLanguageValue() { return language_; } /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @return The language. */ - public net.iGap.proto.ProtoGlobal.Language getLanguage() { - net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.forNumber(language_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Language getLanguage() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; } - /** - * optional .proto.Language language = 11; - */ - private void setLanguageValue(int value) { - language_ = value; - } - /** - * optional .proto.Language language = 11; - */ - private void setLanguage(net.iGap.proto.ProtoGlobal.Language value) { - if (value == null) { - throw new NullPointerException(); - } - - language_ = value.getNumber(); - } - /** - * optional .proto.Language language = 11; - */ - private void clearLanguage() { - - language_ = 0; - } public static final int SYMMETRIC_KEY_FIELD_NUMBER = 12; private com.google.protobuf.ByteString symmetricKey_; /** - * optional bytes symmetric_key = 12; + * bytes symmetric_key = 12; + * @return The symmetricKey. */ + @java.lang.Override public com.google.protobuf.ByteString getSymmetricKey() { return symmetricKey_; } - /** - * optional bytes symmetric_key = 12; - */ - private void setSymmetricKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - symmetricKey_ = value; - } - /** - * optional bytes symmetric_key = 12; - */ - private void clearSymmetricKey() { - - symmetricKey_ = getDefaultInstance().getSymmetricKey(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } - if (!appName_.isEmpty()) { - output.writeString(3, getAppName()); + if (!getAppNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appName_); } if (appId_ != 0) { output.writeUInt32(4, appId_); @@ -617,20 +641,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (appBuildVersion_ != 0) { output.writeUInt32(5, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - output.writeString(6, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { output.writeEnum(7, platform_); } - if (!platformVersion_.isEmpty()) { - output.writeString(8, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { output.writeEnum(9, device_); } - if (!deviceName_.isEmpty()) { - output.writeString(10, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, deviceName_); } if (language_ != net.iGap.proto.ProtoGlobal.Language.EN_US.getNumber()) { output.writeEnum(11, language_); @@ -638,10 +662,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!symmetricKey_.isEmpty()) { output.writeBytes(12, symmetricKey_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -649,13 +675,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - if (!appName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getAppName()); + if (!getAppNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appName_); } if (appId_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -665,25 +689,22 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, platform_); } - if (!platformVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, device_); } - if (!deviceName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, deviceName_); } if (language_ != net.iGap.proto.ProtoGlobal.Language.EN_US.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -693,1174 +714,1706 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, symmetricKey_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserLogin.UserLogin)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserLogin.UserLogin other = (net.iGap.proto.ProtoUserLogin.UserLogin) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!getAppName() + .equals(other.getAppName())) return false; + if (getAppId() + != other.getAppId()) return false; + if (getAppBuildVersion() + != other.getAppBuildVersion()) return false; + if (!getAppVersion() + .equals(other.getAppVersion())) return false; + if (platform_ != other.platform_) return false; + if (!getPlatformVersion() + .equals(other.getPlatformVersion())) return false; + if (device_ != other.device_) return false; + if (!getDeviceName() + .equals(other.getDeviceName())) return false; + if (language_ != other.language_) return false; + if (!getSymmetricKey() + .equals(other.getSymmetricKey())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + APP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAppName().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + hash = (37 * hash) + APP_BUILD_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppBuildVersion(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + platform_; + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + device_; + hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceName().hashCode(); + hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + hash = (37 * hash) + SYMMETRIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getSymmetricKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserLogin.UserLogin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserLogin.UserLogin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserLogin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserLogin.UserLogin, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserLogin) net.iGap.proto.ProtoUserLogin.UserLoginOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLogin_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLogin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserLogin.UserLogin.class, net.iGap.proto.ProtoUserLogin.UserLogin.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserLogin.UserLogin.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + appName_ = ""; + + appId_ = 0; + + appBuildVersion_ = 0; + + appVersion_ = ""; + + platform_ = 0; + + platformVersion_ = ""; + + device_ = 0; + + deviceName_ = ""; + + language_ = 0; + + symmetricKey_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLogin_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLogin getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserLogin.UserLogin.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLogin build() { + net.iGap.proto.ProtoUserLogin.UserLogin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLogin buildPartial() { + net.iGap.proto.ProtoUserLogin.UserLogin result = new net.iGap.proto.ProtoUserLogin.UserLogin(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + result.appName_ = appName_; + result.appId_ = appId_; + result.appBuildVersion_ = appBuildVersion_; + result.appVersion_ = appVersion_; + result.platform_ = platform_; + result.platformVersion_ = platformVersion_; + result.device_ = device_; + result.deviceName_ = deviceName_; + result.language_ = language_; + result.symmetricKey_ = symmetricKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserLogin.UserLogin) { + return mergeFrom((net.iGap.proto.ProtoUserLogin.UserLogin)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoUserLogin.UserLogin other) { + if (other == net.iGap.proto.ProtoUserLogin.UserLogin.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getAppName().isEmpty()) { + appName_ = other.appName_; + onChanged(); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + if (other.getAppBuildVersion() != 0) { + setAppBuildVersion(other.getAppBuildVersion()); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + onChanged(); + } + if (other.platform_ != 0) { + setPlatformValue(other.getPlatformValue()); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + onChanged(); + } + if (other.device_ != 0) { + setDeviceValue(other.getDeviceValue()); + } + if (!other.getDeviceName().isEmpty()) { + deviceName_ = other.deviceName_; + onChanged(); + } + if (other.language_ != 0) { + setLanguageValue(other.getLanguageValue()); + } + if (other.getSymmetricKey() != com.google.protobuf.ByteString.EMPTY) { + setSymmetricKey(other.getSymmetricKey()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserLogin.UserLogin parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserLogin.UserLogin) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private java.lang.Object appName_ = ""; /** - * optional string app_name = 3; + * string app_name = 3; + * @return The appName. */ public java.lang.String getAppName() { - return instance.getAppName(); + java.lang.Object ref = appName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_name = 3; + * string app_name = 3; + * @return The bytes for appName. */ public com.google.protobuf.ByteString getAppNameBytes() { - return instance.getAppNameBytes(); + java.lang.Object ref = appName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_name = 3; + * string app_name = 3; + * @param value The appName to set. + * @return This builder for chaining. */ public Builder setAppName( java.lang.String value) { - copyOnWrite(); - instance.setAppName(value); + if (value == null) { + throw new NullPointerException(); + } + + appName_ = value; + onChanged(); return this; } /** - * optional string app_name = 3; + * string app_name = 3; + * @return This builder for chaining. */ public Builder clearAppName() { - copyOnWrite(); - instance.clearAppName(); + + appName_ = getDefaultInstance().getAppName(); + onChanged(); return this; } /** - * optional string app_name = 3; + * string app_name = 3; + * @param value The bytes for appName to set. + * @return This builder for chaining. */ public Builder setAppNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appName_ = value; + onChanged(); return this; } + private int appId_ ; /** - * optional uint32 app_id = 4; + * uint32 app_id = 4; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 4; + * uint32 app_id = 4; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 4; + * uint32 app_id = 4; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + private int appBuildVersion_ ; /** - * optional uint32 app_build_version = 5; + * uint32 app_build_version = 5; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { - return instance.getAppBuildVersion(); + return appBuildVersion_; } /** - * optional uint32 app_build_version = 5; + * uint32 app_build_version = 5; + * @param value The appBuildVersion to set. + * @return This builder for chaining. */ public Builder setAppBuildVersion(int value) { - copyOnWrite(); - instance.setAppBuildVersion(value); + + appBuildVersion_ = value; + onChanged(); return this; } /** - * optional uint32 app_build_version = 5; + * uint32 app_build_version = 5; + * @return This builder for chaining. */ public Builder clearAppBuildVersion() { - copyOnWrite(); - instance.clearAppBuildVersion(); + + appBuildVersion_ = 0; + onChanged(); return this; } + private java.lang.Object appVersion_ = ""; /** - * optional string app_version = 6; + * string app_version = 6; + * @return The appVersion. */ public java.lang.String getAppVersion() { - return instance.getAppVersion(); + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_version = 6; + * string app_version = 6; + * @return The bytes for appVersion. */ public com.google.protobuf.ByteString getAppVersionBytes() { - return instance.getAppVersionBytes(); + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_version = 6; + * string app_version = 6; + * @param value The appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersion( java.lang.String value) { - copyOnWrite(); - instance.setAppVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + appVersion_ = value; + onChanged(); return this; } /** - * optional string app_version = 6; + * string app_version = 6; + * @return This builder for chaining. */ public Builder clearAppVersion() { - copyOnWrite(); - instance.clearAppVersion(); + + appVersion_ = getDefaultInstance().getAppVersion(); + onChanged(); return this; } /** - * optional string app_version = 6; + * string app_version = 6; + * @param value The bytes for appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appVersion_ = value; + onChanged(); return this; } + private int platform_ = 0; /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { - return instance.getPlatformValue(); + @java.lang.Override public int getPlatformValue() { + return platform_; } /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @param value The enum numeric value on the wire for platform to set. + * @return This builder for chaining. */ public Builder setPlatformValue(int value) { - copyOnWrite(); - instance.setPlatformValue(value); + + platform_ = value; + onChanged(); return this; } /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @return The platform. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - return instance.getPlatform(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); + return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @param value The platform to set. + * @return This builder for chaining. */ public Builder setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - copyOnWrite(); - instance.setPlatform(value); + if (value == null) { + throw new NullPointerException(); + } + + platform_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Platform platform = 7; + * .proto.Platform platform = 7; + * @return This builder for chaining. */ public Builder clearPlatform() { - copyOnWrite(); - instance.clearPlatform(); + + platform_ = 0; + onChanged(); return this; } + private java.lang.Object platformVersion_ = ""; /** - * optional string platform_version = 8; + * string platform_version = 8; + * @return The platformVersion. */ public java.lang.String getPlatformVersion() { - return instance.getPlatformVersion(); + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string platform_version = 8; + * string platform_version = 8; + * @return The bytes for platformVersion. */ public com.google.protobuf.ByteString getPlatformVersionBytes() { - return instance.getPlatformVersionBytes(); + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string platform_version = 8; + * string platform_version = 8; + * @param value The platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersion( java.lang.String value) { - copyOnWrite(); - instance.setPlatformVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); return this; } /** - * optional string platform_version = 8; + * string platform_version = 8; + * @return This builder for chaining. */ public Builder clearPlatformVersion() { - copyOnWrite(); - instance.clearPlatformVersion(); + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); return this; } /** - * optional string platform_version = 8; + * string platform_version = 8; + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPlatformVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); return this; } + private int device_ = 0; /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { - return instance.getDeviceValue(); + @java.lang.Override public int getDeviceValue() { + return device_; } /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @param value The enum numeric value on the wire for device to set. + * @return This builder for chaining. */ public Builder setDeviceValue(int value) { - copyOnWrite(); - instance.setDeviceValue(value); + + device_ = value; + onChanged(); return this; } /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @return The device. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { - return instance.getDevice(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); + return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @param value The device to set. + * @return This builder for chaining. */ public Builder setDevice(net.iGap.proto.ProtoGlobal.Device value) { - copyOnWrite(); - instance.setDevice(value); + if (value == null) { + throw new NullPointerException(); + } + + device_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Device device = 9; + * .proto.Device device = 9; + * @return This builder for chaining. */ public Builder clearDevice() { - copyOnWrite(); - instance.clearDevice(); + + device_ = 0; + onChanged(); return this; } + private java.lang.Object deviceName_ = ""; /** - * optional string device_name = 10; + * string device_name = 10; + * @return The deviceName. */ public java.lang.String getDeviceName() { - return instance.getDeviceName(); + java.lang.Object ref = deviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string device_name = 10; + * string device_name = 10; + * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { - return instance.getDeviceNameBytes(); + java.lang.Object ref = deviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string device_name = 10; + * string device_name = 10; + * @param value The deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { - copyOnWrite(); - instance.setDeviceName(value); + if (value == null) { + throw new NullPointerException(); + } + + deviceName_ = value; + onChanged(); return this; } /** - * optional string device_name = 10; + * string device_name = 10; + * @return This builder for chaining. */ public Builder clearDeviceName() { - copyOnWrite(); - instance.clearDeviceName(); + + deviceName_ = getDefaultInstance().getDeviceName(); + onChanged(); return this; } /** - * optional string device_name = 10; + * string device_name = 10; + * @param value The bytes for deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDeviceNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceName_ = value; + onChanged(); return this; } + private int language_ = 0; /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @return The enum numeric value on the wire for language. */ - public int getLanguageValue() { - return instance.getLanguageValue(); + @java.lang.Override public int getLanguageValue() { + return language_; } /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @param value The enum numeric value on the wire for language to set. + * @return This builder for chaining. */ public Builder setLanguageValue(int value) { - copyOnWrite(); - instance.setLanguageValue(value); + + language_ = value; + onChanged(); return this; } /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @return The language. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Language getLanguage() { - return instance.getLanguage(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); + return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; } /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @param value The language to set. + * @return This builder for chaining. */ public Builder setLanguage(net.iGap.proto.ProtoGlobal.Language value) { - copyOnWrite(); - instance.setLanguage(value); + if (value == null) { + throw new NullPointerException(); + } + + language_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Language language = 11; + * .proto.Language language = 11; + * @return This builder for chaining. */ public Builder clearLanguage() { - copyOnWrite(); - instance.clearLanguage(); + + language_ = 0; + onChanged(); return this; } + private com.google.protobuf.ByteString symmetricKey_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes symmetric_key = 12; + * bytes symmetric_key = 12; + * @return The symmetricKey. */ + @java.lang.Override public com.google.protobuf.ByteString getSymmetricKey() { - return instance.getSymmetricKey(); + return symmetricKey_; } /** - * optional bytes symmetric_key = 12; + * bytes symmetric_key = 12; + * @param value The symmetricKey to set. + * @return This builder for chaining. */ public Builder setSymmetricKey(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSymmetricKey(value); + if (value == null) { + throw new NullPointerException(); + } + + symmetricKey_ = value; + onChanged(); return this; } /** - * optional bytes symmetric_key = 12; + * bytes symmetric_key = 12; + * @return This builder for chaining. */ public Builder clearSymmetricKey() { - copyOnWrite(); - instance.clearSymmetricKey(); + + symmetricKey_ = getDefaultInstance().getSymmetricKey(); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserLogin) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserLogin.UserLogin(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserLogin.UserLogin other = (net.iGap.proto.ProtoUserLogin.UserLogin) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - appName_ = visitor.visitString(!appName_.isEmpty(), appName_, - !other.appName_.isEmpty(), other.appName_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - appBuildVersion_ = visitor.visitInt(appBuildVersion_ != 0, appBuildVersion_, - other.appBuildVersion_ != 0, other.appBuildVersion_); - appVersion_ = visitor.visitString(!appVersion_.isEmpty(), appVersion_, - !other.appVersion_.isEmpty(), other.appVersion_); - platform_ = visitor.visitInt(platform_ != 0, platform_, other.platform_ != 0, other.platform_); - platformVersion_ = visitor.visitString(!platformVersion_.isEmpty(), platformVersion_, - !other.platformVersion_.isEmpty(), other.platformVersion_); - device_ = visitor.visitInt(device_ != 0, device_, other.device_ != 0, other.device_); - deviceName_ = visitor.visitString(!deviceName_.isEmpty(), deviceName_, - !other.deviceName_.isEmpty(), other.deviceName_); - language_ = visitor.visitInt(language_ != 0, language_, other.language_ != 0, other.language_); - symmetricKey_ = visitor.visitByteString(symmetricKey_ != com.google.protobuf.ByteString.EMPTY, symmetricKey_, - other.symmetricKey_ != com.google.protobuf.ByteString.EMPTY, other.symmetricKey_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - appName_ = s; - break; - } - case 32: { - - appId_ = input.readUInt32(); - break; - } - case 40: { - - appBuildVersion_ = input.readUInt32(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - appVersion_ = s; - break; - } - case 56: { - int rawValue = input.readEnum(); - - platform_ = rawValue; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - platformVersion_ = s; - break; - } - case 72: { - int rawValue = input.readEnum(); - - device_ = rawValue; - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - deviceName_ = s; - break; - } - case 88: { - int rawValue = input.readEnum(); - - language_ = rawValue; - break; - } - case 98: { - - symmetricKey_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserLogin.UserLogin.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserLogin) + } + // @@protoc_insertion_point(class_scope:proto.UserLogin) private static final net.iGap.proto.ProtoUserLogin.UserLogin DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserLogin(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserLogin.UserLogin(); } public static net.iGap.proto.ProtoUserLogin.UserLogin getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserLogin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserLogin(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLogin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserLoginResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserLoginResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bool deprecated_client = 2; + * bool deprecated_client = 2; + * @return The deprecatedClient. */ boolean getDeprecatedClient(); /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @return The secondaryNodeName. */ java.lang.String getSecondaryNodeName(); /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @return The bytes for secondaryNodeName. */ com.google.protobuf.ByteString getSecondaryNodeNameBytes(); /** - * optional bool update_available = 4; + * bool update_available = 4; + * @return The updateAvailable. */ boolean getUpdateAvailable(); /** - * optional uint32 chat_delete_message_for_both_period = 5; + * uint32 chat_delete_message_for_both_period = 5; + * @return The chatDeleteMessageForBothPeriod. */ int getChatDeleteMessageForBothPeriod(); /** - * optional bool wallet_active = 6; + * bool wallet_active = 6; + * @return The walletActive. */ boolean getWalletActive(); /** - * optional bool mpl_active = 7; + * bool mpl_active = 7; + * @return The mplActive. */ boolean getMplActive(); /** - * optional bool wallet_agreement_accepted = 8; + * bool wallet_agreement_accepted = 8; + * @return The walletAgreementAccepted. */ boolean getWalletAgreementAccepted(); /** - * optional string access_token = 9; + * string access_token = 9; + * @return The accessToken. */ java.lang.String getAccessToken(); /** - * optional string access_token = 9; + * string access_token = 9; + * @return The bytes for accessToken. */ com.google.protobuf.ByteString getAccessTokenBytes(); /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @return The contactHash. */ java.lang.String getContactHash(); /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @return The bytes for contactHash. */ com.google.protobuf.ByteString getContactHashBytes(); /** - * optional int32 role = 11; + * int32 role = 11; + * @return The role. */ int getRole(); /** - * optional bool need_fcm_token = 12; + * bool need_fcm_token = 12; + * @return The needFcmToken. */ boolean getNeedFcmToken(); } /** * Protobuf type {@code proto.UserLoginResponse} */ - public static final class UserLoginResponse extends - com.google.protobuf.GeneratedMessageLite< - UserLoginResponse, UserLoginResponse.Builder> implements + public static final class UserLoginResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserLoginResponse) UserLoginResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserLoginResponse.newBuilder() to construct. + private UserLoginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserLoginResponse() { secondaryNodeName_ = ""; accessToken_ = ""; contactHash_ = ""; } - public static final int RESPONSE_FIELD_NUMBER = 1; - private net.iGap.proto.ProtoResponse.Response response_; - /** - * optional .proto.Response response = 1; - */ - public boolean hasResponse() { - return response_ != null; + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserLoginResponse(); } - /** - * optional .proto.Response response = 1; - */ - public net.iGap.proto.ProtoResponse.Response getResponse() { - return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - + private UserLoginResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + deprecatedClient_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryNodeName_ = s; + break; + } + case 32: { + + updateAvailable_ = input.readBool(); + break; + } + case 40: { + + chatDeleteMessageForBothPeriod_ = input.readUInt32(); + break; + } + case 48: { + + walletActive_ = input.readBool(); + break; + } + case 56: { + + mplActive_ = input.readBool(); + break; + } + case 64: { + + walletAgreementAccepted_ = input.readBool(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + accessToken_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + contactHash_ = s; + break; + } + case 88: { + + role_ = input.readInt32(); + break; + } + case 96: { + + needFcmToken_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLoginResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLoginResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserLogin.UserLoginResponse.class, net.iGap.proto.ProtoUserLogin.UserLoginResponse.Builder.class); + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public boolean hasResponse() { + return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int DEPRECATED_CLIENT_FIELD_NUMBER = 2; private boolean deprecatedClient_; /** - * optional bool deprecated_client = 2; + * bool deprecated_client = 2; + * @return The deprecatedClient. */ + @java.lang.Override public boolean getDeprecatedClient() { return deprecatedClient_; } - /** - * optional bool deprecated_client = 2; - */ - private void setDeprecatedClient(boolean value) { - - deprecatedClient_ = value; - } - /** - * optional bool deprecated_client = 2; - */ - private void clearDeprecatedClient() { - - deprecatedClient_ = false; - } public static final int SECONDARY_NODE_NAME_FIELD_NUMBER = 3; - private java.lang.String secondaryNodeName_; + private volatile java.lang.Object secondaryNodeName_; /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @return The secondaryNodeName. */ + @java.lang.Override public java.lang.String getSecondaryNodeName() { - return secondaryNodeName_; + java.lang.Object ref = secondaryNodeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryNodeName_ = s; + return s; + } } /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @return The bytes for secondaryNodeName. */ + @java.lang.Override public com.google.protobuf.ByteString getSecondaryNodeNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(secondaryNodeName_); - } - /** - * optional string secondary_node_name = 3; - */ - private void setSecondaryNodeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - secondaryNodeName_ = value; - } - /** - * optional string secondary_node_name = 3; - */ - private void clearSecondaryNodeName() { - - secondaryNodeName_ = getDefaultInstance().getSecondaryNodeName(); - } - /** - * optional string secondary_node_name = 3; - */ - private void setSecondaryNodeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - secondaryNodeName_ = value.toStringUtf8(); + java.lang.Object ref = secondaryNodeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryNodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int UPDATE_AVAILABLE_FIELD_NUMBER = 4; private boolean updateAvailable_; /** - * optional bool update_available = 4; + * bool update_available = 4; + * @return The updateAvailable. */ + @java.lang.Override public boolean getUpdateAvailable() { return updateAvailable_; } - /** - * optional bool update_available = 4; - */ - private void setUpdateAvailable(boolean value) { - - updateAvailable_ = value; - } - /** - * optional bool update_available = 4; - */ - private void clearUpdateAvailable() { - - updateAvailable_ = false; - } public static final int CHAT_DELETE_MESSAGE_FOR_BOTH_PERIOD_FIELD_NUMBER = 5; private int chatDeleteMessageForBothPeriod_; /** - * optional uint32 chat_delete_message_for_both_period = 5; + * uint32 chat_delete_message_for_both_period = 5; + * @return The chatDeleteMessageForBothPeriod. */ + @java.lang.Override public int getChatDeleteMessageForBothPeriod() { return chatDeleteMessageForBothPeriod_; } - /** - * optional uint32 chat_delete_message_for_both_period = 5; - */ - private void setChatDeleteMessageForBothPeriod(int value) { - - chatDeleteMessageForBothPeriod_ = value; - } - /** - * optional uint32 chat_delete_message_for_both_period = 5; - */ - private void clearChatDeleteMessageForBothPeriod() { - - chatDeleteMessageForBothPeriod_ = 0; - } public static final int WALLET_ACTIVE_FIELD_NUMBER = 6; private boolean walletActive_; /** - * optional bool wallet_active = 6; + * bool wallet_active = 6; + * @return The walletActive. */ + @java.lang.Override public boolean getWalletActive() { return walletActive_; } - /** - * optional bool wallet_active = 6; - */ - private void setWalletActive(boolean value) { - - walletActive_ = value; - } - /** - * optional bool wallet_active = 6; - */ - private void clearWalletActive() { - - walletActive_ = false; - } public static final int MPL_ACTIVE_FIELD_NUMBER = 7; private boolean mplActive_; /** - * optional bool mpl_active = 7; + * bool mpl_active = 7; + * @return The mplActive. */ + @java.lang.Override public boolean getMplActive() { return mplActive_; } - /** - * optional bool mpl_active = 7; - */ - private void setMplActive(boolean value) { - - mplActive_ = value; - } - /** - * optional bool mpl_active = 7; - */ - private void clearMplActive() { - - mplActive_ = false; - } public static final int WALLET_AGREEMENT_ACCEPTED_FIELD_NUMBER = 8; private boolean walletAgreementAccepted_; /** - * optional bool wallet_agreement_accepted = 8; + * bool wallet_agreement_accepted = 8; + * @return The walletAgreementAccepted. */ + @java.lang.Override public boolean getWalletAgreementAccepted() { return walletAgreementAccepted_; } - /** - * optional bool wallet_agreement_accepted = 8; - */ - private void setWalletAgreementAccepted(boolean value) { - - walletAgreementAccepted_ = value; - } - /** - * optional bool wallet_agreement_accepted = 8; - */ - private void clearWalletAgreementAccepted() { - - walletAgreementAccepted_ = false; - } public static final int ACCESS_TOKEN_FIELD_NUMBER = 9; - private java.lang.String accessToken_; + private volatile java.lang.Object accessToken_; /** - * optional string access_token = 9; + * string access_token = 9; + * @return The accessToken. */ + @java.lang.Override public java.lang.String getAccessToken() { - return accessToken_; + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } } /** - * optional string access_token = 9; + * string access_token = 9; + * @return The bytes for accessToken. */ + @java.lang.Override public com.google.protobuf.ByteString getAccessTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(accessToken_); - } - /** - * optional string access_token = 9; - */ - private void setAccessToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accessToken_ = value; - } - /** - * optional string access_token = 9; - */ - private void clearAccessToken() { - - accessToken_ = getDefaultInstance().getAccessToken(); - } - /** - * optional string access_token = 9; - */ - private void setAccessTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accessToken_ = value.toStringUtf8(); + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CONTACT_HASH_FIELD_NUMBER = 10; - private java.lang.String contactHash_; + private volatile java.lang.Object contactHash_; /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @return The contactHash. */ + @java.lang.Override public java.lang.String getContactHash() { - return contactHash_; + java.lang.Object ref = contactHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactHash_ = s; + return s; + } } /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @return The bytes for contactHash. */ + @java.lang.Override public com.google.protobuf.ByteString getContactHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(contactHash_); - } - /** - * optional string contact_hash = 10; - */ - private void setContactHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contactHash_ = value; - } - /** - * optional string contact_hash = 10; - */ - private void clearContactHash() { - - contactHash_ = getDefaultInstance().getContactHash(); - } - /** - * optional string contact_hash = 10; - */ - private void setContactHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contactHash_ = value.toStringUtf8(); + java.lang.Object ref = contactHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contactHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ROLE_FIELD_NUMBER = 11; private int role_; /** - * optional int32 role = 11; + * int32 role = 11; + * @return The role. */ + @java.lang.Override public int getRole() { return role_; } - /** - * optional int32 role = 11; - */ - private void setRole(int value) { - - role_ = value; - } - /** - * optional int32 role = 11; - */ - private void clearRole() { - - role_ = 0; - } public static final int NEED_FCM_TOKEN_FIELD_NUMBER = 12; private boolean needFcmToken_; /** - * optional bool need_fcm_token = 12; + * bool need_fcm_token = 12; + * @return The needFcmToken. */ + @java.lang.Override public boolean getNeedFcmToken() { return needFcmToken_; } - /** - * optional bool need_fcm_token = 12; - */ - private void setNeedFcmToken(boolean value) { - - needFcmToken_ = value; - } - /** - * optional bool need_fcm_token = 12; - */ - private void clearNeedFcmToken() { - - needFcmToken_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1869,8 +2422,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (deprecatedClient_ != false) { output.writeBool(2, deprecatedClient_); } - if (!secondaryNodeName_.isEmpty()) { - output.writeString(3, getSecondaryNodeName()); + if (!getSecondaryNodeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secondaryNodeName_); } if (updateAvailable_ != false) { output.writeBool(4, updateAvailable_); @@ -1887,11 +2440,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (walletAgreementAccepted_ != false) { output.writeBool(8, walletAgreementAccepted_); } - if (!accessToken_.isEmpty()) { - output.writeString(9, getAccessToken()); + if (!getAccessTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, accessToken_); } - if (!contactHash_.isEmpty()) { - output.writeString(10, getContactHash()); + if (!getContactHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, contactHash_); } if (role_ != 0) { output.writeInt32(11, role_); @@ -1899,10 +2452,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (needFcmToken_ != false) { output.writeBool(12, needFcmToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1914,9 +2469,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, deprecatedClient_); } - if (!secondaryNodeName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getSecondaryNodeName()); + if (!getSecondaryNodeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secondaryNodeName_); } if (updateAvailable_ != false) { size += com.google.protobuf.CodedOutputStream @@ -1938,13 +2492,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, walletAgreementAccepted_); } - if (!accessToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getAccessToken()); + if (!getAccessTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, accessToken_); } - if (!contactHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getContactHash()); + if (!getContactHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, contactHash_); } if (role_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1954,628 +2506,1119 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, needFcmToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserLogin.UserLoginResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserLogin.UserLoginResponse other = (net.iGap.proto.ProtoUserLogin.UserLoginResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getDeprecatedClient() + != other.getDeprecatedClient()) return false; + if (!getSecondaryNodeName() + .equals(other.getSecondaryNodeName())) return false; + if (getUpdateAvailable() + != other.getUpdateAvailable()) return false; + if (getChatDeleteMessageForBothPeriod() + != other.getChatDeleteMessageForBothPeriod()) return false; + if (getWalletActive() + != other.getWalletActive()) return false; + if (getMplActive() + != other.getMplActive()) return false; + if (getWalletAgreementAccepted() + != other.getWalletAgreementAccepted()) return false; + if (!getAccessToken() + .equals(other.getAccessToken())) return false; + if (!getContactHash() + .equals(other.getContactHash())) return false; + if (getRole() + != other.getRole()) return false; + if (getNeedFcmToken() + != other.getNeedFcmToken()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + DEPRECATED_CLIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeprecatedClient()); + hash = (37 * hash) + SECONDARY_NODE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryNodeName().hashCode(); + hash = (37 * hash) + UPDATE_AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpdateAvailable()); + hash = (37 * hash) + CHAT_DELETE_MESSAGE_FOR_BOTH_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getChatDeleteMessageForBothPeriod(); + hash = (37 * hash) + WALLET_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWalletActive()); + hash = (37 * hash) + MPL_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMplActive()); + hash = (37 * hash) + WALLET_AGREEMENT_ACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWalletAgreementAccepted()); + hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAccessToken().hashCode(); + hash = (37 * hash) + CONTACT_HASH_FIELD_NUMBER; + hash = (53 * hash) + getContactHash().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole(); + hash = (37 * hash) + NEED_FCM_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNeedFcmToken()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserLogin.UserLoginResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserLoginResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserLogin.UserLoginResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserLoginResponse) net.iGap.proto.ProtoUserLogin.UserLoginResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLoginResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLoginResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserLogin.UserLoginResponse.class, net.iGap.proto.ProtoUserLogin.UserLoginResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserLogin.UserLoginResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + deprecatedClient_ = false; + + secondaryNodeName_ = ""; + + updateAvailable_ = false; + + chatDeleteMessageForBothPeriod_ = 0; + + walletActive_ = false; + + mplActive_ = false; + + walletAgreementAccepted_ = false; + + accessToken_ = ""; + + contactHash_ = ""; + + role_ = 0; + + needFcmToken_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserLogin.internal_static_proto_UserLoginResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLoginResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserLogin.UserLoginResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLoginResponse build() { + net.iGap.proto.ProtoUserLogin.UserLoginResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLoginResponse buildPartial() { + net.iGap.proto.ProtoUserLogin.UserLoginResponse result = new net.iGap.proto.ProtoUserLogin.UserLoginResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.deprecatedClient_ = deprecatedClient_; + result.secondaryNodeName_ = secondaryNodeName_; + result.updateAvailable_ = updateAvailable_; + result.chatDeleteMessageForBothPeriod_ = chatDeleteMessageForBothPeriod_; + result.walletActive_ = walletActive_; + result.mplActive_ = mplActive_; + result.walletAgreementAccepted_ = walletAgreementAccepted_; + result.accessToken_ = accessToken_; + result.contactHash_ = contactHash_; + result.role_ = role_; + result.needFcmToken_ = needFcmToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserLogin.UserLoginResponse) { + return mergeFrom((net.iGap.proto.ProtoUserLogin.UserLoginResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserLogin.UserLoginResponse other) { + if (other == net.iGap.proto.ProtoUserLogin.UserLoginResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getDeprecatedClient() != false) { + setDeprecatedClient(other.getDeprecatedClient()); + } + if (!other.getSecondaryNodeName().isEmpty()) { + secondaryNodeName_ = other.secondaryNodeName_; + onChanged(); + } + if (other.getUpdateAvailable() != false) { + setUpdateAvailable(other.getUpdateAvailable()); + } + if (other.getChatDeleteMessageForBothPeriod() != 0) { + setChatDeleteMessageForBothPeriod(other.getChatDeleteMessageForBothPeriod()); + } + if (other.getWalletActive() != false) { + setWalletActive(other.getWalletActive()); + } + if (other.getMplActive() != false) { + setMplActive(other.getMplActive()); + } + if (other.getWalletAgreementAccepted() != false) { + setWalletAgreementAccepted(other.getWalletAgreementAccepted()); + } + if (!other.getAccessToken().isEmpty()) { + accessToken_ = other.accessToken_; + onChanged(); + } + if (!other.getContactHash().isEmpty()) { + contactHash_ = other.contactHash_; + onChanged(); + } + if (other.getRole() != 0) { + setRole(other.getRole()); + } + if (other.getNeedFcmToken() != false) { + setNeedFcmToken(other.getNeedFcmToken()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserLogin.UserLoginResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserLogin.UserLoginResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private boolean deprecatedClient_ ; /** - * optional bool deprecated_client = 2; + * bool deprecated_client = 2; + * @return The deprecatedClient. */ + @java.lang.Override public boolean getDeprecatedClient() { - return instance.getDeprecatedClient(); + return deprecatedClient_; } /** - * optional bool deprecated_client = 2; + * bool deprecated_client = 2; + * @param value The deprecatedClient to set. + * @return This builder for chaining. */ public Builder setDeprecatedClient(boolean value) { - copyOnWrite(); - instance.setDeprecatedClient(value); + + deprecatedClient_ = value; + onChanged(); return this; } /** - * optional bool deprecated_client = 2; + * bool deprecated_client = 2; + * @return This builder for chaining. */ public Builder clearDeprecatedClient() { - copyOnWrite(); - instance.clearDeprecatedClient(); + + deprecatedClient_ = false; + onChanged(); return this; } + private java.lang.Object secondaryNodeName_ = ""; /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @return The secondaryNodeName. */ public java.lang.String getSecondaryNodeName() { - return instance.getSecondaryNodeName(); + java.lang.Object ref = secondaryNodeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryNodeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @return The bytes for secondaryNodeName. */ public com.google.protobuf.ByteString getSecondaryNodeNameBytes() { - return instance.getSecondaryNodeNameBytes(); + java.lang.Object ref = secondaryNodeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryNodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @param value The secondaryNodeName to set. + * @return This builder for chaining. */ public Builder setSecondaryNodeName( java.lang.String value) { - copyOnWrite(); - instance.setSecondaryNodeName(value); + if (value == null) { + throw new NullPointerException(); + } + + secondaryNodeName_ = value; + onChanged(); return this; } /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @return This builder for chaining. */ public Builder clearSecondaryNodeName() { - copyOnWrite(); - instance.clearSecondaryNodeName(); + + secondaryNodeName_ = getDefaultInstance().getSecondaryNodeName(); + onChanged(); return this; } /** - * optional string secondary_node_name = 3; + * string secondary_node_name = 3; + * @param value The bytes for secondaryNodeName to set. + * @return This builder for chaining. */ public Builder setSecondaryNodeNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSecondaryNodeNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryNodeName_ = value; + onChanged(); return this; } + private boolean updateAvailable_ ; /** - * optional bool update_available = 4; + * bool update_available = 4; + * @return The updateAvailable. */ + @java.lang.Override public boolean getUpdateAvailable() { - return instance.getUpdateAvailable(); + return updateAvailable_; } /** - * optional bool update_available = 4; + * bool update_available = 4; + * @param value The updateAvailable to set. + * @return This builder for chaining. */ public Builder setUpdateAvailable(boolean value) { - copyOnWrite(); - instance.setUpdateAvailable(value); + + updateAvailable_ = value; + onChanged(); return this; } /** - * optional bool update_available = 4; + * bool update_available = 4; + * @return This builder for chaining. */ public Builder clearUpdateAvailable() { - copyOnWrite(); - instance.clearUpdateAvailable(); + + updateAvailable_ = false; + onChanged(); return this; } + private int chatDeleteMessageForBothPeriod_ ; /** - * optional uint32 chat_delete_message_for_both_period = 5; + * uint32 chat_delete_message_for_both_period = 5; + * @return The chatDeleteMessageForBothPeriod. */ + @java.lang.Override public int getChatDeleteMessageForBothPeriod() { - return instance.getChatDeleteMessageForBothPeriod(); + return chatDeleteMessageForBothPeriod_; } /** - * optional uint32 chat_delete_message_for_both_period = 5; + * uint32 chat_delete_message_for_both_period = 5; + * @param value The chatDeleteMessageForBothPeriod to set. + * @return This builder for chaining. */ public Builder setChatDeleteMessageForBothPeriod(int value) { - copyOnWrite(); - instance.setChatDeleteMessageForBothPeriod(value); + + chatDeleteMessageForBothPeriod_ = value; + onChanged(); return this; } /** - * optional uint32 chat_delete_message_for_both_period = 5; + * uint32 chat_delete_message_for_both_period = 5; + * @return This builder for chaining. */ public Builder clearChatDeleteMessageForBothPeriod() { - copyOnWrite(); - instance.clearChatDeleteMessageForBothPeriod(); + + chatDeleteMessageForBothPeriod_ = 0; + onChanged(); return this; } + private boolean walletActive_ ; /** - * optional bool wallet_active = 6; + * bool wallet_active = 6; + * @return The walletActive. */ + @java.lang.Override public boolean getWalletActive() { - return instance.getWalletActive(); + return walletActive_; } /** - * optional bool wallet_active = 6; + * bool wallet_active = 6; + * @param value The walletActive to set. + * @return This builder for chaining. */ public Builder setWalletActive(boolean value) { - copyOnWrite(); - instance.setWalletActive(value); + + walletActive_ = value; + onChanged(); return this; } /** - * optional bool wallet_active = 6; + * bool wallet_active = 6; + * @return This builder for chaining. */ public Builder clearWalletActive() { - copyOnWrite(); - instance.clearWalletActive(); + + walletActive_ = false; + onChanged(); return this; } + private boolean mplActive_ ; /** - * optional bool mpl_active = 7; + * bool mpl_active = 7; + * @return The mplActive. */ + @java.lang.Override public boolean getMplActive() { - return instance.getMplActive(); + return mplActive_; } /** - * optional bool mpl_active = 7; + * bool mpl_active = 7; + * @param value The mplActive to set. + * @return This builder for chaining. */ public Builder setMplActive(boolean value) { - copyOnWrite(); - instance.setMplActive(value); + + mplActive_ = value; + onChanged(); return this; } /** - * optional bool mpl_active = 7; + * bool mpl_active = 7; + * @return This builder for chaining. */ public Builder clearMplActive() { - copyOnWrite(); - instance.clearMplActive(); + + mplActive_ = false; + onChanged(); return this; } + private boolean walletAgreementAccepted_ ; /** - * optional bool wallet_agreement_accepted = 8; + * bool wallet_agreement_accepted = 8; + * @return The walletAgreementAccepted. */ + @java.lang.Override public boolean getWalletAgreementAccepted() { - return instance.getWalletAgreementAccepted(); + return walletAgreementAccepted_; } /** - * optional bool wallet_agreement_accepted = 8; + * bool wallet_agreement_accepted = 8; + * @param value The walletAgreementAccepted to set. + * @return This builder for chaining. */ public Builder setWalletAgreementAccepted(boolean value) { - copyOnWrite(); - instance.setWalletAgreementAccepted(value); + + walletAgreementAccepted_ = value; + onChanged(); return this; } /** - * optional bool wallet_agreement_accepted = 8; + * bool wallet_agreement_accepted = 8; + * @return This builder for chaining. */ public Builder clearWalletAgreementAccepted() { - copyOnWrite(); - instance.clearWalletAgreementAccepted(); + + walletAgreementAccepted_ = false; + onChanged(); return this; } + private java.lang.Object accessToken_ = ""; /** - * optional string access_token = 9; + * string access_token = 9; + * @return The accessToken. */ public java.lang.String getAccessToken() { - return instance.getAccessToken(); + java.lang.Object ref = accessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string access_token = 9; + * string access_token = 9; + * @return The bytes for accessToken. */ public com.google.protobuf.ByteString getAccessTokenBytes() { - return instance.getAccessTokenBytes(); + java.lang.Object ref = accessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string access_token = 9; + * string access_token = 9; + * @param value The accessToken to set. + * @return This builder for chaining. */ public Builder setAccessToken( java.lang.String value) { - copyOnWrite(); - instance.setAccessToken(value); + if (value == null) { + throw new NullPointerException(); + } + + accessToken_ = value; + onChanged(); return this; } /** - * optional string access_token = 9; + * string access_token = 9; + * @return This builder for chaining. */ public Builder clearAccessToken() { - copyOnWrite(); - instance.clearAccessToken(); + + accessToken_ = getDefaultInstance().getAccessToken(); + onChanged(); return this; } /** - * optional string access_token = 9; + * string access_token = 9; + * @param value The bytes for accessToken to set. + * @return This builder for chaining. */ public Builder setAccessTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAccessTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + accessToken_ = value; + onChanged(); return this; } + private java.lang.Object contactHash_ = ""; /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @return The contactHash. */ public java.lang.String getContactHash() { - return instance.getContactHash(); + java.lang.Object ref = contactHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @return The bytes for contactHash. */ public com.google.protobuf.ByteString getContactHashBytes() { - return instance.getContactHashBytes(); + java.lang.Object ref = contactHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contactHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @param value The contactHash to set. + * @return This builder for chaining. */ public Builder setContactHash( java.lang.String value) { - copyOnWrite(); - instance.setContactHash(value); + if (value == null) { + throw new NullPointerException(); + } + + contactHash_ = value; + onChanged(); return this; } /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @return This builder for chaining. */ public Builder clearContactHash() { - copyOnWrite(); - instance.clearContactHash(); + + contactHash_ = getDefaultInstance().getContactHash(); + onChanged(); return this; } /** - * optional string contact_hash = 10; + * string contact_hash = 10; + * @param value The bytes for contactHash to set. + * @return This builder for chaining. */ public Builder setContactHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setContactHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contactHash_ = value; + onChanged(); return this; } + private int role_ ; /** - * optional int32 role = 11; + * int32 role = 11; + * @return The role. */ + @java.lang.Override public int getRole() { - return instance.getRole(); + return role_; } /** - * optional int32 role = 11; + * int32 role = 11; + * @param value The role to set. + * @return This builder for chaining. */ public Builder setRole(int value) { - copyOnWrite(); - instance.setRole(value); + + role_ = value; + onChanged(); return this; } /** - * optional int32 role = 11; + * int32 role = 11; + * @return This builder for chaining. */ public Builder clearRole() { - copyOnWrite(); - instance.clearRole(); + + role_ = 0; + onChanged(); return this; } + private boolean needFcmToken_ ; /** - * optional bool need_fcm_token = 12; + * bool need_fcm_token = 12; + * @return The needFcmToken. */ + @java.lang.Override public boolean getNeedFcmToken() { - return instance.getNeedFcmToken(); + return needFcmToken_; } /** - * optional bool need_fcm_token = 12; + * bool need_fcm_token = 12; + * @param value The needFcmToken to set. + * @return This builder for chaining. */ public Builder setNeedFcmToken(boolean value) { - copyOnWrite(); - instance.setNeedFcmToken(value); + + needFcmToken_ = value; + onChanged(); return this; } /** - * optional bool need_fcm_token = 12; + * bool need_fcm_token = 12; + * @return This builder for chaining. */ public Builder clearNeedFcmToken() { - copyOnWrite(); - instance.clearNeedFcmToken(); + + needFcmToken_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserLoginResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserLogin.UserLoginResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserLogin.UserLoginResponse other = (net.iGap.proto.ProtoUserLogin.UserLoginResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - deprecatedClient_ = visitor.visitBoolean(deprecatedClient_ != false, deprecatedClient_, - other.deprecatedClient_ != false, other.deprecatedClient_); - secondaryNodeName_ = visitor.visitString(!secondaryNodeName_.isEmpty(), secondaryNodeName_, - !other.secondaryNodeName_.isEmpty(), other.secondaryNodeName_); - updateAvailable_ = visitor.visitBoolean(updateAvailable_ != false, updateAvailable_, - other.updateAvailable_ != false, other.updateAvailable_); - chatDeleteMessageForBothPeriod_ = visitor.visitInt(chatDeleteMessageForBothPeriod_ != 0, chatDeleteMessageForBothPeriod_, - other.chatDeleteMessageForBothPeriod_ != 0, other.chatDeleteMessageForBothPeriod_); - walletActive_ = visitor.visitBoolean(walletActive_ != false, walletActive_, - other.walletActive_ != false, other.walletActive_); - mplActive_ = visitor.visitBoolean(mplActive_ != false, mplActive_, - other.mplActive_ != false, other.mplActive_); - walletAgreementAccepted_ = visitor.visitBoolean(walletAgreementAccepted_ != false, walletAgreementAccepted_, - other.walletAgreementAccepted_ != false, other.walletAgreementAccepted_); - accessToken_ = visitor.visitString(!accessToken_.isEmpty(), accessToken_, - !other.accessToken_.isEmpty(), other.accessToken_); - contactHash_ = visitor.visitString(!contactHash_.isEmpty(), contactHash_, - !other.contactHash_.isEmpty(), other.contactHash_); - role_ = visitor.visitInt(role_ != 0, role_, - other.role_ != 0, other.role_); - needFcmToken_ = visitor.visitBoolean(needFcmToken_ != false, needFcmToken_, - other.needFcmToken_ != false, other.needFcmToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - deprecatedClient_ = input.readBool(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - secondaryNodeName_ = s; - break; - } - case 32: { - - updateAvailable_ = input.readBool(); - break; - } - case 40: { - - chatDeleteMessageForBothPeriod_ = input.readUInt32(); - break; - } - case 48: { - - walletActive_ = input.readBool(); - break; - } - case 56: { - - mplActive_ = input.readBool(); - break; - } - case 64: { - - walletAgreementAccepted_ = input.readBool(); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - accessToken_ = s; - break; - } - case 82: { - String s = input.readStringRequireUtf8(); - - contactHash_ = s; - break; - } - case 88: { - - role_ = input.readInt32(); - break; - } - case 96: { - - needFcmToken_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserLogin.UserLoginResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserLoginResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserLoginResponse) private static final net.iGap.proto.ProtoUserLogin.UserLoginResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserLoginResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserLogin.UserLoginResponse(); } public static net.iGap.proto.ProtoUserLogin.UserLoginResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserLoginResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserLoginResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserLogin.UserLoginResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserLogin_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserLogin_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserLoginResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserLoginResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\017UserLogin.proto\022\005proto\032\rRequest.proto\032" + + "\016Response.proto\032\014Global.proto\"\270\002\n\tUserLo" + + "gin\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\r\n\005" + + "token\030\002 \001(\t\022\020\n\010app_name\030\003 \001(\t\022\016\n\006app_id\030" + + "\004 \001(\r\022\031\n\021app_build_version\030\005 \001(\r\022\023\n\013app_" + + "version\030\006 \001(\t\022!\n\010platform\030\007 \001(\0162\017.proto." + + "Platform\022\030\n\020platform_version\030\010 \001(\t\022\035\n\006de" + + "vice\030\t \001(\0162\r.proto.Device\022\023\n\013device_name" + + "\030\n \001(\t\022!\n\010language\030\013 \001(\0162\017.proto.Languag" + + "e\022\025\n\rsymmetric_key\030\014 \001(\014\"\325\002\n\021UserLoginRe" + + "sponse\022!\n\010response\030\001 \001(\0132\017.proto.Respons" + + "e\022\031\n\021deprecated_client\030\002 \001(\010\022\033\n\023secondar" + + "y_node_name\030\003 \001(\t\022\030\n\020update_available\030\004 " + + "\001(\010\022+\n#chat_delete_message_for_both_peri" + + "od\030\005 \001(\r\022\025\n\rwallet_active\030\006 \001(\010\022\022\n\nmpl_a" + + "ctive\030\007 \001(\010\022!\n\031wallet_agreement_accepted" + + "\030\010 \001(\010\022\024\n\014access_token\030\t \001(\t\022\024\n\014contact_" + + "hash\030\n \001(\t\022\014\n\004role\030\013 \001(\005\022\026\n\016need_fcm_tok" + + "en\030\014 \001(\010B \n\016net.iGap.protoB\016ProtoUserLog" + + "inb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserLogin_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserLogin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserLogin_descriptor, + new java.lang.String[] { "Request", "Token", "AppName", "AppId", "AppBuildVersion", "AppVersion", "Platform", "PlatformVersion", "Device", "DeviceName", "Language", "SymmetricKey", }); + internal_static_proto_UserLoginResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserLoginResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserLoginResponse_descriptor, + new java.lang.String[] { "Response", "DeprecatedClient", "SecondaryNodeName", "UpdateAvailable", "ChatDeleteMessageForBothPeriod", "WalletActive", "MplActive", "WalletAgreementAccepted", "AccessToken", "ContactHash", "Role", "NeedFcmToken", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserPrivacyGetRule.java b/src/main/java/net/iGap/proto/ProtoUserPrivacyGetRule.java index b139f22..b8f8035 100644 --- a/src/main/java/net/iGap/proto/ProtoUserPrivacyGetRule.java +++ b/src/main/java/net/iGap/proto/ProtoUserPrivacyGetRule.java @@ -8,129 +8,196 @@ private ProtoUserPrivacyGetRule() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserPrivacyGetRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserPrivacyGetRule) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ net.iGap.proto.ProtoGlobal.PrivacyType getType(); } /** * Protobuf type {@code proto.UserPrivacyGetRule} */ - public static final class UserPrivacyGetRule extends - com.google.protobuf.GeneratedMessageLite< - UserPrivacyGetRule, UserPrivacyGetRule.Builder> implements + public static final class UserPrivacyGetRule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserPrivacyGetRule) UserPrivacyGetRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserPrivacyGetRule.newBuilder() to construct. + private UserPrivacyGetRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserPrivacyGetRule() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserPrivacyGetRule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserPrivacyGetRule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.class, net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.PrivacyType getType() { - net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyType getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.PrivacyType.UNRECOGNIZED : result; } - /** - * optional .proto.PrivacyType type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.PrivacyType type = 2; - */ - private void setType(net.iGap.proto.ProtoGlobal.PrivacyType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.PrivacyType type = 2; - */ - private void clearType() { - - type_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -139,10 +206,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != net.iGap.proto.ProtoGlobal.PrivacyType.USER_STATUS.getNumber()) { output.writeEnum(2, type_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -154,409 +223,709 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule other = (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserPrivacyGetRule} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserPrivacyGetRule) net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.class, net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRule_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule build() { + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule buildPartial() { + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule result = new net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule) { + return mergeFrom((net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule other) { + if (other == net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int type_ = 0; /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyType getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.PrivacyType.UNRECOGNIZED : result; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.PrivacyType value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserPrivacyGetRule) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule other = (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule) arg1; - request_ = visitor.visitMessage(request_, other.request_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserPrivacyGetRule) + } + // @@protoc_insertion_point(class_scope:proto.UserPrivacyGetRule) private static final net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserPrivacyGetRule(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule(); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserPrivacyGetRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserPrivacyGetRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserPrivacyGetRuleResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserPrivacyGetRuleResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel(); } /** * Protobuf type {@code proto.UserPrivacyGetRuleResponse} */ - public static final class UserPrivacyGetRuleResponse extends - com.google.protobuf.GeneratedMessageLite< - UserPrivacyGetRuleResponse, UserPrivacyGetRuleResponse.Builder> implements + public static final class UserPrivacyGetRuleResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserPrivacyGetRuleResponse) UserPrivacyGetRuleResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserPrivacyGetRuleResponse.newBuilder() to construct. + private UserPrivacyGetRuleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserPrivacyGetRuleResponse() { + level_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserPrivacyGetRuleResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserPrivacyGetRuleResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + level_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRuleResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.class, net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int LEVEL_FIELD_NUMBER = 3; private int level_; /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ - public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { - net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.forNumber(level_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.valueOf(level_); return result == null ? net.iGap.proto.ProtoGlobal.PrivacyLevel.UNRECOGNIZED : result; } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void setLevelValue(int value) { - level_ = value; - } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void setLevel(net.iGap.proto.ProtoGlobal.PrivacyLevel value) { - if (value == null) { - throw new NullPointerException(); - } - - level_ = value.getNumber(); - } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void clearLevel() { - - level_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -565,10 +934,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (level_ != net.iGap.proto.ProtoGlobal.PrivacyLevel.ALLOW_ALL.getNumber()) { output.writeEnum(3, level_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -580,288 +951,575 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, level_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse other = (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (level_ != other.level_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserPrivacyGetRuleResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserPrivacyGetRuleResponse) net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.class, net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + level_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserPrivacyGetRule.internal_static_proto_UserPrivacyGetRuleResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse build() { + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse buildPartial() { + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse result = new net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.level_ = level_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse) { + return mergeFrom((net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse other) { + if (other == net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int level_ = 0; /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ - public int getLevelValue() { - return instance.getLevelValue(); + @java.lang.Override public int getLevelValue() { + return level_; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @param value The enum numeric value on the wire for level to set. + * @return This builder for chaining. */ public Builder setLevelValue(int value) { - copyOnWrite(); - instance.setLevelValue(value); + + level_ = value; + onChanged(); return this; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { - return instance.getLevel(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.valueOf(level_); + return result == null ? net.iGap.proto.ProtoGlobal.PrivacyLevel.UNRECOGNIZED : result; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @param value The level to set. + * @return This builder for chaining. */ public Builder setLevel(net.iGap.proto.ProtoGlobal.PrivacyLevel value) { - copyOnWrite(); - instance.setLevel(value); + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return This builder for chaining. */ public Builder clearLevel() { - copyOnWrite(); - instance.clearLevel(); + + level_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserPrivacyGetRuleResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse other = (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - level_ = visitor.visitInt(level_ != 0, level_, other.level_ != 0, other.level_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - level_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserPrivacyGetRuleResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserPrivacyGetRuleResponse) private static final net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserPrivacyGetRuleResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse(); } public static net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserPrivacyGetRuleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserPrivacyGetRuleResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacyGetRule.UserPrivacyGetRuleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserPrivacyGetRule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserPrivacyGetRule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserPrivacyGetRuleResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserPrivacyGetRuleResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030UserPrivacyGetRule.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"W" + + "\n\022UserPrivacyGetRule\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022 \n\004type\030\002 \001(\0162\022.proto.Priv" + + "acyType\"c\n\032UserPrivacyGetRuleResponse\022!\n" + + "\010response\030\001 \001(\0132\017.proto.Response\022\"\n\005leve" + + "l\030\003 \001(\0162\023.proto.PrivacyLevelB)\n\016net.iGap" + + ".protoB\027ProtoUserPrivacyGetRuleb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserPrivacyGetRule_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserPrivacyGetRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserPrivacyGetRule_descriptor, + new java.lang.String[] { "Request", "Type", }); + internal_static_proto_UserPrivacyGetRuleResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserPrivacyGetRuleResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserPrivacyGetRuleResponse_descriptor, + new java.lang.String[] { "Response", "Level", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserPrivacySetRule.java b/src/main/java/net/iGap/proto/ProtoUserPrivacySetRule.java index 9a2618b..dacc0d0 100644 --- a/src/main/java/net/iGap/proto/ProtoUserPrivacySetRule.java +++ b/src/main/java/net/iGap/proto/ProtoUserPrivacySetRule.java @@ -8,177 +8,233 @@ private ProtoUserPrivacySetRule() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserPrivacySetRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserPrivacySetRule) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ net.iGap.proto.ProtoGlobal.PrivacyType getType(); /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel(); } /** * Protobuf type {@code proto.UserPrivacySetRule} */ - public static final class UserPrivacySetRule extends - com.google.protobuf.GeneratedMessageLite< - UserPrivacySetRule, UserPrivacySetRule.Builder> implements + public static final class UserPrivacySetRule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserPrivacySetRule) UserPrivacySetRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserPrivacySetRule.newBuilder() to construct. + private UserPrivacySetRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserPrivacySetRule() { + type_ = 0; + level_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserPrivacySetRule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserPrivacySetRule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + level_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.class, net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.PrivacyType getType() { - net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyType getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.PrivacyType.UNRECOGNIZED : result; } - /** - * optional .proto.PrivacyType type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.PrivacyType type = 2; - */ - private void setType(net.iGap.proto.ProtoGlobal.PrivacyType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.PrivacyType type = 2; - */ - private void clearType() { - - type_ = 0; - } public static final int LEVEL_FIELD_NUMBER = 3; private int level_; /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ - public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { - net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.forNumber(level_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.valueOf(level_); return result == null ? net.iGap.proto.ProtoGlobal.PrivacyLevel.UNRECOGNIZED : result; } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void setLevelValue(int value) { - level_ = value; - } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void setLevel(net.iGap.proto.ProtoGlobal.PrivacyLevel value) { - if (value == null) { - throw new NullPointerException(); - } - - level_ = value.getNumber(); - } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void clearLevel() { - - level_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -190,10 +246,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (level_ != net.iGap.proto.ProtoGlobal.PrivacyLevel.ALLOW_ALL.getNumber()) { output.writeEnum(3, level_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -209,501 +267,809 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, level_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule other = (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (type_ != other.type_) return false; + if (level_ != other.level_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserPrivacySetRule} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserPrivacySetRule) net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.class, net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + type_ = 0; + + level_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRule_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule build() { + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule buildPartial() { + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule result = new net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.type_ = type_; + result.level_ = level_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule) { + return mergeFrom((net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule other) { + if (other == net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int type_ = 0; /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyType getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.PrivacyType.UNRECOGNIZED : result; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.PrivacyType value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private int level_ = 0; /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ - public int getLevelValue() { - return instance.getLevelValue(); + @java.lang.Override public int getLevelValue() { + return level_; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @param value The enum numeric value on the wire for level to set. + * @return This builder for chaining. */ public Builder setLevelValue(int value) { - copyOnWrite(); - instance.setLevelValue(value); + + level_ = value; + onChanged(); return this; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { - return instance.getLevel(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.valueOf(level_); + return result == null ? net.iGap.proto.ProtoGlobal.PrivacyLevel.UNRECOGNIZED : result; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @param value The level to set. + * @return This builder for chaining. */ public Builder setLevel(net.iGap.proto.ProtoGlobal.PrivacyLevel value) { - copyOnWrite(); - instance.setLevel(value); + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return This builder for chaining. */ public Builder clearLevel() { - copyOnWrite(); - instance.clearLevel(); + + level_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserPrivacySetRule) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule other = (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule) arg1; - request_ = visitor.visitMessage(request_, other.request_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - level_ = visitor.visitInt(level_ != 0, level_, other.level_ != 0, other.level_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - level_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserPrivacySetRule) + } + // @@protoc_insertion_point(class_scope:proto.UserPrivacySetRule) private static final net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserPrivacySetRule(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule(); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserPrivacySetRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserPrivacySetRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserPrivacySetRuleResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserPrivacySetRuleResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ net.iGap.proto.ProtoGlobal.PrivacyType getType(); /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel(); } /** * Protobuf type {@code proto.UserPrivacySetRuleResponse} */ - public static final class UserPrivacySetRuleResponse extends - com.google.protobuf.GeneratedMessageLite< - UserPrivacySetRuleResponse, UserPrivacySetRuleResponse.Builder> implements + public static final class UserPrivacySetRuleResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserPrivacySetRuleResponse) UserPrivacySetRuleResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserPrivacySetRuleResponse.newBuilder() to construct. + private UserPrivacySetRuleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserPrivacySetRuleResponse() { + type_ = 0; + level_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserPrivacySetRuleResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserPrivacySetRuleResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + level_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.class, net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.Builder.class); } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ - public net.iGap.proto.ProtoGlobal.PrivacyType getType() { - net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.forNumber(type_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyType getType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.valueOf(type_); return result == null ? net.iGap.proto.ProtoGlobal.PrivacyType.UNRECOGNIZED : result; } - /** - * optional .proto.PrivacyType type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * optional .proto.PrivacyType type = 2; - */ - private void setType(net.iGap.proto.ProtoGlobal.PrivacyType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - } - /** - * optional .proto.PrivacyType type = 2; - */ - private void clearType() { - - type_ = 0; - } public static final int LEVEL_FIELD_NUMBER = 3; private int level_; /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ - public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { - net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.forNumber(level_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.valueOf(level_); return result == null ? net.iGap.proto.ProtoGlobal.PrivacyLevel.UNRECOGNIZED : result; } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void setLevelValue(int value) { - level_ = value; - } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void setLevel(net.iGap.proto.ProtoGlobal.PrivacyLevel value) { - if (value == null) { - throw new NullPointerException(); - } - - level_ = value.getNumber(); - } - /** - * optional .proto.PrivacyLevel level = 3; - */ - private void clearLevel() { - - level_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -715,10 +1081,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (level_ != net.iGap.proto.ProtoGlobal.PrivacyLevel.ALLOW_ALL.getNumber()) { output.writeEnum(3, level_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -734,332 +1102,640 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, level_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse other = (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (type_ != other.type_) return false; + if (level_ != other.level_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserPrivacySetRuleResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserPrivacySetRuleResponse) net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.class, net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + type_ = 0; + level_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserPrivacySetRule.internal_static_proto_UserPrivacySetRuleResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse build() { + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse buildPartial() { + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse result = new net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.type_ = type_; + result.level_ = level_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse) { + return mergeFrom((net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse other) { + if (other == net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int type_ = 0; /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The enum numeric value on the wire for type. */ - public int getTypeValue() { - return instance.getTypeValue(); + @java.lang.Override public int getTypeValue() { + return type_; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); + + type_ = value; + onChanged(); return this; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return The type. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyType getType() { - return instance.getType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyType result = net.iGap.proto.ProtoGlobal.PrivacyType.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.PrivacyType.UNRECOGNIZED : result; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(net.iGap.proto.ProtoGlobal.PrivacyType value) { - copyOnWrite(); - instance.setType(value); + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.PrivacyType type = 2; + * .proto.PrivacyType type = 2; + * @return This builder for chaining. */ public Builder clearType() { - copyOnWrite(); - instance.clearType(); + + type_ = 0; + onChanged(); return this; } + private int level_ = 0; /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The enum numeric value on the wire for level. */ - public int getLevelValue() { - return instance.getLevelValue(); + @java.lang.Override public int getLevelValue() { + return level_; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @param value The enum numeric value on the wire for level to set. + * @return This builder for chaining. */ public Builder setLevelValue(int value) { - copyOnWrite(); - instance.setLevelValue(value); + + level_ = value; + onChanged(); return this; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return The level. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.PrivacyLevel getLevel() { - return instance.getLevel(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.PrivacyLevel result = net.iGap.proto.ProtoGlobal.PrivacyLevel.valueOf(level_); + return result == null ? net.iGap.proto.ProtoGlobal.PrivacyLevel.UNRECOGNIZED : result; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @param value The level to set. + * @return This builder for chaining. */ public Builder setLevel(net.iGap.proto.ProtoGlobal.PrivacyLevel value) { - copyOnWrite(); - instance.setLevel(value); + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.PrivacyLevel level = 3; + * .proto.PrivacyLevel level = 3; + * @return This builder for chaining. */ public Builder clearLevel() { - copyOnWrite(); - instance.clearLevel(); + + level_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserPrivacySetRuleResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse other = (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); - level_ = visitor.visitInt(level_ != 0, level_, other.level_ != 0, other.level_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - level_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserPrivacySetRuleResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserPrivacySetRuleResponse) private static final net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserPrivacySetRuleResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse(); } public static net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserPrivacySetRuleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserPrivacySetRuleResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserPrivacySetRule.UserPrivacySetRuleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserPrivacySetRule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserPrivacySetRule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserPrivacySetRuleResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserPrivacySetRuleResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030UserPrivacySetRule.proto\022\005proto\032\rReque" + + "st.proto\032\016Response.proto\032\014Global.proto\"{" + + "\n\022UserPrivacySetRule\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022 \n\004type\030\002 \001(\0162\022.proto.Priv" + + "acyType\022\"\n\005level\030\003 \001(\0162\023.proto.PrivacyLe" + + "vel\"\205\001\n\032UserPrivacySetRuleResponse\022!\n\010re" + + "sponse\030\001 \001(\0132\017.proto.Response\022 \n\004type\030\002 " + + "\001(\0162\022.proto.PrivacyType\022\"\n\005level\030\003 \001(\0162\023" + + ".proto.PrivacyLevelB)\n\016net.iGap.protoB\027P" + + "rotoUserPrivacySetRuleb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserPrivacySetRule_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserPrivacySetRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserPrivacySetRule_descriptor, + new java.lang.String[] { "Request", "Type", "Level", }); + internal_static_proto_UserPrivacySetRuleResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserPrivacySetRuleResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserPrivacySetRuleResponse_descriptor, + new java.lang.String[] { "Response", "Type", "Level", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileBio.java b/src/main/java/net/iGap/proto/ProtoUserProfileBio.java index b70ca2c..bda29a7 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileBio.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileBio.java @@ -8,25 +8,39 @@ private ProtoUserProfileBio() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileSetBioOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetBio) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ java.lang.String getBio(); /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ com.google.protobuf.ByteString getBioBytes(); @@ -34,124 +48,190 @@ public interface UserProfileSetBioOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetBio} */ - public static final class UserProfileSetBio extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetBio, UserProfileSetBio.Builder> implements + public static final class UserProfileSetBio extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetBio) UserProfileSetBioOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetBio.newBuilder() to construct. + private UserProfileSetBio(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetBio() { bio_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetBio(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetBio( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + bio_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.class, net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int BIO_FIELD_NUMBER = 2; - private java.lang.String bio_; + private volatile java.lang.Object bio_; /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ + @java.lang.Override public java.lang.String getBio() { - return bio_; + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } } /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ + @java.lang.Override public com.google.protobuf.ByteString getBioBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(bio_); - } - /** - * optional string bio = 2; - */ - private void setBio( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bio_ = value; - } - /** - * optional string bio = 2; - */ - private void clearBio() { - - bio_ = getDefaultInstance().getBio(); + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string bio = 2; - */ - private void setBioBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bio_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!bio_.isEmpty()) { - output.writeString(2, getBio()); + if (!getBioBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bio_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!bio_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getBio()); + if (!getBioBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bio_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio other = (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getBio() + .equals(other.getBio())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + BIO_FIELD_NUMBER; + hash = (53 * hash) + getBio().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetBio} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetBio) net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.class, net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + bio_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBio_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio build() { + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio buildPartial() { + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio result = new net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.bio_ = bio_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio) { + return mergeFrom((net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio other) { + if (other == net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getBio().isEmpty()) { + bio_ = other.bio_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object bio_ = ""; /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ public java.lang.String getBio() { - return instance.getBio(); + java.lang.Object ref = bio_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ public com.google.protobuf.ByteString getBioBytes() { - return instance.getBioBytes(); + java.lang.Object ref = bio_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bio = 2; + * string bio = 2; + * @param value The bio to set. + * @return This builder for chaining. */ public Builder setBio( java.lang.String value) { - copyOnWrite(); - instance.setBio(value); + if (value == null) { + throw new NullPointerException(); + } + + bio_ = value; + onChanged(); return this; } /** - * optional string bio = 2; + * string bio = 2; + * @return This builder for chaining. */ public Builder clearBio() { - copyOnWrite(); - instance.clearBio(); + + bio_ = getDefaultInstance().getBio(); + onChanged(); return this; } /** - * optional string bio = 2; + * string bio = 2; + * @param value The bytes for bio to set. + * @return This builder for chaining. */ public Builder setBioBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBioBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bio_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetBio) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio other = (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio) arg1; - request_ = visitor.visitMessage(request_, other.request_); - bio_ = visitor.visitString(!bio_.isEmpty(), bio_, - !other.bio_.isEmpty(), other.bio_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - bio_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetBio) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetBio) private static final net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetBio(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio(); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetBio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetBio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBio getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileSetBioResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetBioResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ java.lang.String getBio(); /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ com.google.protobuf.ByteString getBioBytes(); @@ -473,124 +819,190 @@ public interface UserProfileSetBioResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetBioResponse} */ - public static final class UserProfileSetBioResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetBioResponse, UserProfileSetBioResponse.Builder> implements + public static final class UserProfileSetBioResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetBioResponse) UserProfileSetBioResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetBioResponse.newBuilder() to construct. + private UserProfileSetBioResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetBioResponse() { bio_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetBioResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetBioResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + bio_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBioResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBioResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.class, net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int BIO_FIELD_NUMBER = 2; - private java.lang.String bio_; + private volatile java.lang.Object bio_; /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ + @java.lang.Override public java.lang.String getBio() { - return bio_; + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } } /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ + @java.lang.Override public com.google.protobuf.ByteString getBioBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(bio_); - } - /** - * optional string bio = 2; - */ - private void setBio( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bio_ = value; - } - /** - * optional string bio = 2; - */ - private void clearBio() { - - bio_ = getDefaultInstance().getBio(); + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string bio = 2; - */ - private void setBioBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bio_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!bio_.isEmpty()) { - output.writeString(2, getBio()); + if (!getBioBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bio_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!bio_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getBio()); + if (!getBioBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bio_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse other = (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getBio() + .equals(other.getBio())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + BIO_FIELD_NUMBER; + hash = (53 * hash) + getBio().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetBioResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetBioResponse) net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBioResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBioResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.class, net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + bio_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileBio.internal_static_proto_UserProfileSetBioResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse build() { + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse buildPartial() { + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse result = new net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.bio_ = bio_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse other) { + if (other == net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getBio().isEmpty()) { + bio_ = other.bio_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object bio_ = ""; /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ public java.lang.String getBio() { - return instance.getBio(); + java.lang.Object ref = bio_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ public com.google.protobuf.ByteString getBioBytes() { - return instance.getBioBytes(); + java.lang.Object ref = bio_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bio = 2; + * string bio = 2; + * @param value The bio to set. + * @return This builder for chaining. */ public Builder setBio( java.lang.String value) { - copyOnWrite(); - instance.setBio(value); + if (value == null) { + throw new NullPointerException(); + } + + bio_ = value; + onChanged(); return this; } /** - * optional string bio = 2; + * string bio = 2; + * @return This builder for chaining. */ public Builder clearBio() { - copyOnWrite(); - instance.clearBio(); + + bio_ = getDefaultInstance().getBio(); + onChanged(); return this; } /** - * optional string bio = 2; + * string bio = 2; + * @param value The bytes for bio to set. + * @return This builder for chaining. */ public Builder setBioBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBioBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bio_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetBioResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse other = (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - bio_ = visitor.visitString(!bio_.isEmpty(), bio_, - !other.bio_.isEmpty(), other.bio_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - bio_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetBioResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetBioResponse) private static final net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetBioResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse(); } public static net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetBioResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetBioResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileBio.UserProfileSetBioResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetBio_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetBio_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetBioResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetBioResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027UserProfileSetBio.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"A\n\021UserProfileSe" + + "tBio\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\013\n" + + "\003bio\030\002 \001(\t\"K\n\031UserProfileSetBioResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\022\013\n\003bi" + + "o\030\002 \001(\tB%\n\016net.iGap.protoB\023ProtoUserProf" + + "ileBiob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileSetBio_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileSetBio_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetBio_descriptor, + new java.lang.String[] { "Request", "Bio", }); + internal_static_proto_UserProfileSetBioResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileSetBioResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetBioResponse_descriptor, + new java.lang.String[] { "Response", "Bio", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileCheckUsername.java b/src/main/java/net/iGap/proto/ProtoUserProfileCheckUsername.java index 4456f5f..d34b9ab 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileCheckUsername.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileCheckUsername.java @@ -8,25 +8,39 @@ private ProtoUserProfileCheckUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileCheckUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileCheckUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -34,124 +48,190 @@ public interface UserProfileCheckUsernameOrBuilder extends /** * Protobuf type {@code proto.UserProfileCheckUsername} */ - public static final class UserProfileCheckUsername extends - com.google.protobuf.GeneratedMessageLite< - UserProfileCheckUsername, UserProfileCheckUsername.Builder> implements + public static final class UserProfileCheckUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileCheckUsername) UserProfileCheckUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileCheckUsername.newBuilder() to construct. + private UserProfileCheckUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileCheckUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileCheckUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileCheckUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.class, net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,331 +239,684 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername other = (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileCheckUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileCheckUsername) net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.class, net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername build() { + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername buildPartial() { + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername result = new net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername) { + return mergeFrom((net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername other) { + if (other == net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileCheckUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername other = (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileCheckUsername) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileCheckUsername) private static final net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileCheckUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername(); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileCheckUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileCheckUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileCheckUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileCheckUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status getStatus(); } /** * Protobuf type {@code proto.UserProfileCheckUsernameResponse} */ - public static final class UserProfileCheckUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileCheckUsernameResponse, UserProfileCheckUsernameResponse.Builder> implements + public static final class UserProfileCheckUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileCheckUsernameResponse) UserProfileCheckUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileCheckUsernameResponse.newBuilder() to construct. + private UserProfileCheckUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileCheckUsernameResponse() { + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileCheckUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileCheckUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsernameResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.class, net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Builder.class); + } + /** * Protobuf enum {@code proto.UserProfileCheckUsernameResponse.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * INVALID = 0; */ @@ -514,10 +947,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -525,6 +964,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return INVALID; @@ -546,6 +989,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -558,94 +1032,60 @@ private Status(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status getStatus() { - net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status result = net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status result = net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status.UNRECOGNIZED : result; } - /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -654,10 +1094,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status.INVALID.getNumber()) { output.writeEnum(2, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -669,288 +1111,575 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse other = (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (status_ != other.status_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileCheckUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileCheckUsernameResponse) net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.class, net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileCheckUsername.internal_static_proto_UserProfileCheckUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse build() { + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse buildPartial() { + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse result = new net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse other) { + if (other == net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ = 0; /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status result = net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status.UNRECOGNIZED : result; } /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.UserProfileCheckUsernameResponse.Status status = 2; + * .proto.UserProfileCheckUsernameResponse.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileCheckUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse other = (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileCheckUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileCheckUsernameResponse) private static final net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileCheckUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse(); } public static net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileCheckUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileCheckUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileCheckUsername.UserProfileCheckUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileCheckUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileCheckUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileCheckUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileCheckUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\036UserProfileCheckUsername.proto\022\005proto\032" + + "\rRequest.proto\032\016Response.proto\"M\n\030UserPr" + + "ofileCheckUsername\022\037\n\007request\030\001 \001(\0132\016.pr" + + "oto.Request\022\020\n\010username\030\002 \001(\t\"\266\001\n UserPr" + + "ofileCheckUsernameResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022>\n\006status\030\002 \001(\0162.." + + "proto.UserProfileCheckUsernameResponse.S" + + "tatus\"/\n\006Status\022\013\n\007INVALID\020\000\022\t\n\005TAKEN\020\001\022" + + "\r\n\tAVAILABLE\020\002B/\n\016net.iGap.protoB\035ProtoU" + + "serProfileCheckUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileCheckUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileCheckUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileCheckUsername_descriptor, + new java.lang.String[] { "Request", "Username", }); + internal_static_proto_UserProfileCheckUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileCheckUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileCheckUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Status", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileEmail.java b/src/main/java/net/iGap/proto/ProtoUserProfileEmail.java index 99aeb9c..eb0ad0e 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileEmail.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileEmail.java @@ -8,25 +8,39 @@ private ProtoUserProfileEmail() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileSetEmailOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetEmail) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string email = 2; + * string email = 2; + * @return The email. */ java.lang.String getEmail(); /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); @@ -34,124 +48,190 @@ public interface UserProfileSetEmailOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetEmail} */ - public static final class UserProfileSetEmail extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetEmail, UserProfileSetEmail.Builder> implements + public static final class UserProfileSetEmail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetEmail) UserProfileSetEmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetEmail.newBuilder() to construct. + private UserProfileSetEmail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetEmail() { email_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetEmail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetEmail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.class, net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int EMAIL_FIELD_NUMBER = 2; - private java.lang.String email_; + private volatile java.lang.Object email_; /** - * optional string email = 2; + * string email = 2; + * @return The email. */ + @java.lang.Override public java.lang.String getEmail() { - return email_; + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } } /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ + @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(email_); - } - /** - * optional string email = 2; - */ - private void setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - } - /** - * optional string email = 2; - */ - private void clearEmail() { - - email_ = getDefaultInstance().getEmail(); + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string email = 2; - */ - private void setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!email_.isEmpty()) { - output.writeString(2, getEmail()); + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!email_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getEmail()); + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail other = (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getEmail() + .equals(other.getEmail())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetEmail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetEmail) net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.class, net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + email_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmail_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail build() { + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail buildPartial() { + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail result = new net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.email_ = email_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail) { + return mergeFrom((net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail other) { + if (other == net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object email_ = ""; /** - * optional string email = 2; + * string email = 2; + * @return The email. */ public java.lang.String getEmail() { - return instance.getEmail(); + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { - return instance.getEmailBytes(); + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string email = 2; + * string email = 2; + * @param value The email to set. + * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { - copyOnWrite(); - instance.setEmail(value); + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); return this; } /** - * optional string email = 2; + * string email = 2; + * @return This builder for chaining. */ public Builder clearEmail() { - copyOnWrite(); - instance.clearEmail(); + + email_ = getDefaultInstance().getEmail(); + onChanged(); return this; } /** - * optional string email = 2; + * string email = 2; + * @param value The bytes for email to set. + * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setEmailBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetEmail) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail other = (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail) arg1; - request_ = visitor.visitMessage(request_, other.request_); - email_ = visitor.visitString(!email_.isEmpty(), email_, - !other.email_.isEmpty(), other.email_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - email_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetEmail) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetEmail) private static final net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetEmail(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail(); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetEmail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetEmail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileSetEmailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetEmailResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string email = 2; + * string email = 2; + * @return The email. */ java.lang.String getEmail(); /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); @@ -473,124 +819,190 @@ public interface UserProfileSetEmailResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetEmailResponse} */ - public static final class UserProfileSetEmailResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetEmailResponse, UserProfileSetEmailResponse.Builder> implements + public static final class UserProfileSetEmailResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetEmailResponse) UserProfileSetEmailResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetEmailResponse.newBuilder() to construct. + private UserProfileSetEmailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetEmailResponse() { email_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetEmailResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetEmailResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.class, net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int EMAIL_FIELD_NUMBER = 2; - private java.lang.String email_; + private volatile java.lang.Object email_; /** - * optional string email = 2; + * string email = 2; + * @return The email. */ + @java.lang.Override public java.lang.String getEmail() { - return email_; + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } } /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ + @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(email_); - } - /** - * optional string email = 2; - */ - private void setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - } - /** - * optional string email = 2; - */ - private void clearEmail() { - - email_ = getDefaultInstance().getEmail(); + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string email = 2; - */ - private void setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!email_.isEmpty()) { - output.writeString(2, getEmail()); + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!email_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getEmail()); + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse other = (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getEmail() + .equals(other.getEmail())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetEmailResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetEmailResponse) net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.class, net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + email_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileEmail.internal_static_proto_UserProfileSetEmailResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse build() { + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse buildPartial() { + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse result = new net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.email_ = email_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse other) { + if (other == net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object email_ = ""; /** - * optional string email = 2; + * string email = 2; + * @return The email. */ public java.lang.String getEmail() { - return instance.getEmail(); + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { - return instance.getEmailBytes(); + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string email = 2; + * string email = 2; + * @param value The email to set. + * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { - copyOnWrite(); - instance.setEmail(value); + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); return this; } /** - * optional string email = 2; + * string email = 2; + * @return This builder for chaining. */ public Builder clearEmail() { - copyOnWrite(); - instance.clearEmail(); + + email_ = getDefaultInstance().getEmail(); + onChanged(); return this; } /** - * optional string email = 2; + * string email = 2; + * @param value The bytes for email to set. + * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setEmailBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetEmailResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse other = (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - email_ = visitor.visitString(!email_.isEmpty(), email_, - !other.email_.isEmpty(), other.email_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - email_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetEmailResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetEmailResponse) private static final net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetEmailResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse(); } public static net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetEmailResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetEmailResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileEmail.UserProfileSetEmailResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetEmail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetEmail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetEmailResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetEmailResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031UserProfileSetEmail.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"E\n\023UserProfile" + + "SetEmail\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\022\r\n\005email\030\002 \001(\t\"O\n\033UserProfileSetEmailR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "se\022\r\n\005email\030\002 \001(\tB\'\n\016net.iGap.protoB\025Pro" + + "toUserProfileEmailb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileSetEmail_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileSetEmail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetEmail_descriptor, + new java.lang.String[] { "Request", "Email", }); + internal_static_proto_UserProfileSetEmailResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileSetEmailResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetEmailResponse_descriptor, + new java.lang.String[] { "Response", "Email", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGender.java b/src/main/java/net/iGap/proto/ProtoUserProfileGender.java index e871c1f..3f37a9f 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGender.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGender.java @@ -8,129 +8,196 @@ private ProtoUserProfileGender() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileSetGenderOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetGender) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ int getGenderValue(); /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ net.iGap.proto.ProtoGlobal.Gender getGender(); } /** * Protobuf type {@code proto.UserProfileSetGender} */ - public static final class UserProfileSetGender extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetGender, UserProfileSetGender.Builder> implements + public static final class UserProfileSetGender extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetGender) UserProfileSetGenderOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetGender.newBuilder() to construct. + private UserProfileSetGender(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetGender() { + gender_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetGender(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetGender( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + gender_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGender_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGender_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.class, net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int GENDER_FIELD_NUMBER = 2; private int gender_; /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ - public int getGenderValue() { + @java.lang.Override public int getGenderValue() { return gender_; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ - public net.iGap.proto.ProtoGlobal.Gender getGender() { - net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.forNumber(gender_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Gender getGender() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.valueOf(gender_); return result == null ? net.iGap.proto.ProtoGlobal.Gender.UNRECOGNIZED : result; } - /** - * optional .proto.Gender gender = 2; - */ - private void setGenderValue(int value) { - gender_ = value; - } - /** - * optional .proto.Gender gender = 2; - */ - private void setGender(net.iGap.proto.ProtoGlobal.Gender value) { - if (value == null) { - throw new NullPointerException(); - } - - gender_ = value.getNumber(); - } - /** - * optional .proto.Gender gender = 2; - */ - private void clearGender() { - - gender_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -139,10 +206,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (gender_ != net.iGap.proto.ProtoGlobal.Gender.UNKNOWN.getNumber()) { output.writeEnum(2, gender_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -154,409 +223,709 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, gender_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender other = (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (gender_ != other.gender_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + GENDER_FIELD_NUMBER; + hash = (53 * hash) + gender_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetGender} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetGender) net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGender_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGender_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.class, net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + gender_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGender_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender build() { + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender buildPartial() { + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender result = new net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.gender_ = gender_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender other) { + if (other == net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.gender_ != 0) { + setGenderValue(other.getGenderValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int gender_ = 0; /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ - public int getGenderValue() { - return instance.getGenderValue(); + @java.lang.Override public int getGenderValue() { + return gender_; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @param value The enum numeric value on the wire for gender to set. + * @return This builder for chaining. */ public Builder setGenderValue(int value) { - copyOnWrite(); - instance.setGenderValue(value); + + gender_ = value; + onChanged(); return this; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Gender getGender() { - return instance.getGender(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.valueOf(gender_); + return result == null ? net.iGap.proto.ProtoGlobal.Gender.UNRECOGNIZED : result; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @param value The gender to set. + * @return This builder for chaining. */ public Builder setGender(net.iGap.proto.ProtoGlobal.Gender value) { - copyOnWrite(); - instance.setGender(value); + if (value == null) { + throw new NullPointerException(); + } + + gender_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return This builder for chaining. */ public Builder clearGender() { - copyOnWrite(); - instance.clearGender(); + + gender_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetGender) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender other = (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender) arg1; - request_ = visitor.visitMessage(request_, other.request_); - gender_ = visitor.visitInt(gender_ != 0, gender_, other.gender_ != 0, other.gender_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - gender_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetGender) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetGender) private static final net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetGender(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender(); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetGender parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetGender(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGender getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileSetGenderResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetGenderResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ int getGenderValue(); /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ net.iGap.proto.ProtoGlobal.Gender getGender(); } /** * Protobuf type {@code proto.UserProfileSetGenderResponse} */ - public static final class UserProfileSetGenderResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetGenderResponse, UserProfileSetGenderResponse.Builder> implements + public static final class UserProfileSetGenderResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetGenderResponse) UserProfileSetGenderResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetGenderResponse.newBuilder() to construct. + private UserProfileSetGenderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetGenderResponse() { + gender_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetGenderResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetGenderResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + gender_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGenderResponse_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGenderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.class, net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int GENDER_FIELD_NUMBER = 2; private int gender_; /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ - public int getGenderValue() { + @java.lang.Override public int getGenderValue() { return gender_; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ - public net.iGap.proto.ProtoGlobal.Gender getGender() { - net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.forNumber(gender_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Gender getGender() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.valueOf(gender_); return result == null ? net.iGap.proto.ProtoGlobal.Gender.UNRECOGNIZED : result; } - /** - * optional .proto.Gender gender = 2; - */ - private void setGenderValue(int value) { - gender_ = value; - } - /** - * optional .proto.Gender gender = 2; - */ - private void setGender(net.iGap.proto.ProtoGlobal.Gender value) { - if (value == null) { - throw new NullPointerException(); - } - - gender_ = value.getNumber(); - } - /** - * optional .proto.Gender gender = 2; - */ - private void clearGender() { - - gender_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -565,10 +934,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (gender_ != net.iGap.proto.ProtoGlobal.Gender.UNKNOWN.getNumber()) { output.writeEnum(2, gender_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -580,288 +951,575 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, gender_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse other = (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (gender_ != other.gender_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + GENDER_FIELD_NUMBER; + hash = (53 * hash) + gender_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetGenderResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetGenderResponse) net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGenderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGenderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.class, net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + gender_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGender.internal_static_proto_UserProfileSetGenderResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse build() { + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse result = new net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.gender_ = gender_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.gender_ != 0) { + setGenderValue(other.getGenderValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int gender_ = 0; /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ - public int getGenderValue() { - return instance.getGenderValue(); + @java.lang.Override public int getGenderValue() { + return gender_; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @param value The enum numeric value on the wire for gender to set. + * @return This builder for chaining. */ public Builder setGenderValue(int value) { - copyOnWrite(); - instance.setGenderValue(value); + + gender_ = value; + onChanged(); return this; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Gender getGender() { - return instance.getGender(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.valueOf(gender_); + return result == null ? net.iGap.proto.ProtoGlobal.Gender.UNRECOGNIZED : result; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @param value The gender to set. + * @return This builder for chaining. */ public Builder setGender(net.iGap.proto.ProtoGlobal.Gender value) { - copyOnWrite(); - instance.setGender(value); + if (value == null) { + throw new NullPointerException(); + } + + gender_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return This builder for chaining. */ public Builder clearGender() { - copyOnWrite(); - instance.clearGender(); + + gender_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetGenderResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse other = (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - gender_ = visitor.visitInt(gender_ != 0, gender_, other.gender_ != 0, other.gender_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - gender_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetGenderResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetGenderResponse) private static final net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetGenderResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse(); } public static net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetGenderResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetGenderResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGender.UserProfileSetGenderResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetGender_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetGender_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetGenderResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetGenderResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032UserProfileSetGender.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\032\014Global.proto" + + "\"V\n\024UserProfileSetGender\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\035\n\006gender\030\002 \001(\0162\r.prot" + + "o.Gender\"`\n\034UserProfileSetGenderResponse" + + "\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\035\n\006g" + + "ender\030\002 \001(\0162\r.proto.GenderB(\n\016net.iGap.p" + + "rotoB\026ProtoUserProfileGenderb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserProfileSetGender_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileSetGender_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetGender_descriptor, + new java.lang.String[] { "Request", "Gender", }); + internal_static_proto_UserProfileSetGenderResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileSetGenderResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetGenderResponse_descriptor, + new java.lang.String[] { "Response", "Gender", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGetBio.java b/src/main/java/net/iGap/proto/ProtoUserProfileGetBio.java index 7c4a4ef..ce925aa 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGetBio.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGetBio.java @@ -8,90 +8,170 @@ private ProtoUserProfileGetBio() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileGetBioOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetBio) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserProfileGetBio} */ - public static final class UserProfileGetBio extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetBio, UserProfileGetBio.Builder> implements + public static final class UserProfileGetBio extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetBio) UserProfileGetBioOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetBio.newBuilder() to construct. + private UserProfileGetBio(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetBio() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetBio(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetBio( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.class, net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio other = (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetBio} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetBio) net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.class, net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBio_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio build() { + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio buildPartial() { + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio result = new net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio other) { + if (other == net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetBio) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio other = (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetBio) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetBio) private static final net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetBio(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio(); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetBio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetBio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBio getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserProfileGetBioResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetBioResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ java.lang.String getBio(); /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ com.google.protobuf.ByteString getBioBytes(); @@ -361,124 +669,190 @@ public interface UserProfileGetBioResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileGetBioResponse} */ - public static final class UserProfileGetBioResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetBioResponse, UserProfileGetBioResponse.Builder> implements + public static final class UserProfileGetBioResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetBioResponse) UserProfileGetBioResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetBioResponse.newBuilder() to construct. + private UserProfileGetBioResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetBioResponse() { bio_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetBioResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetBioResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + bio_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBioResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBioResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.class, net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int BIO_FIELD_NUMBER = 2; - private java.lang.String bio_; + private volatile java.lang.Object bio_; /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ + @java.lang.Override public java.lang.String getBio() { - return bio_; + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } } /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ + @java.lang.Override public com.google.protobuf.ByteString getBioBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(bio_); - } - /** - * optional string bio = 2; - */ - private void setBio( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bio_ = value; - } - /** - * optional string bio = 2; - */ - private void clearBio() { - - bio_ = getDefaultInstance().getBio(); + java.lang.Object ref = bio_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string bio = 2; - */ - private void setBioBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bio_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!bio_.isEmpty()) { - output.writeString(2, getBio()); + if (!getBioBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bio_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!bio_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getBio()); + if (!getBioBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bio_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse other = (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getBio() + .equals(other.getBio())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + BIO_FIELD_NUMBER; + hash = (53 * hash) + getBio().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetBioResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetBioResponse) net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBioResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBioResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.class, net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + bio_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetBio.internal_static_proto_UserProfileGetBioResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse build() { + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse result = new net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.bio_ = bio_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getBio().isEmpty()) { + bio_ = other.bio_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object bio_ = ""; /** - * optional string bio = 2; + * string bio = 2; + * @return The bio. */ public java.lang.String getBio() { - return instance.getBio(); + java.lang.Object ref = bio_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bio_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string bio = 2; + * string bio = 2; + * @return The bytes for bio. */ public com.google.protobuf.ByteString getBioBytes() { - return instance.getBioBytes(); + java.lang.Object ref = bio_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string bio = 2; + * string bio = 2; + * @param value The bio to set. + * @return This builder for chaining. */ public Builder setBio( java.lang.String value) { - copyOnWrite(); - instance.setBio(value); + if (value == null) { + throw new NullPointerException(); + } + + bio_ = value; + onChanged(); return this; } /** - * optional string bio = 2; + * string bio = 2; + * @return This builder for chaining. */ public Builder clearBio() { - copyOnWrite(); - instance.clearBio(); + + bio_ = getDefaultInstance().getBio(); + onChanged(); return this; } /** - * optional string bio = 2; + * string bio = 2; + * @param value The bytes for bio to set. + * @return This builder for chaining. */ public Builder setBioBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setBioBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bio_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetBioResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse other = (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - bio_ = visitor.visitString(!bio_.isEmpty(), bio_, - !other.bio_.isEmpty(), other.bio_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - bio_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetBioResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetBioResponse) private static final net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetBioResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse(); } public static net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetBioResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetBioResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetBio.UserProfileGetBioResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetBio_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetBio_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetBioResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetBioResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027UserProfileGetBio.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"4\n\021UserProfileGe" + + "tBio\022\037\n\007request\030\001 \001(\0132\016.proto.Request\"K\n" + + "\031UserProfileGetBioResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\013\n\003bio\030\002 \001(\tB(\n\016ne" + + "t.iGap.protoB\026ProtoUserProfileGetBiob\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileGetBio_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileGetBio_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetBio_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserProfileGetBioResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileGetBioResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetBioResponse_descriptor, + new java.lang.String[] { "Response", "Bio", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGetEmail.java b/src/main/java/net/iGap/proto/ProtoUserProfileGetEmail.java index d3bccbd..fcb232a 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGetEmail.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGetEmail.java @@ -8,90 +8,170 @@ private ProtoUserProfileGetEmail() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileGetEmailOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetEmail) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserProfileGetEmail} */ - public static final class UserProfileGetEmail extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetEmail, UserProfileGetEmail.Builder> implements + public static final class UserProfileGetEmail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetEmail) UserProfileGetEmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetEmail.newBuilder() to construct. + private UserProfileGetEmail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetEmail() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetEmail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetEmail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.class, net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail other = (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetEmail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetEmail) net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.class, net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmail_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail build() { + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail buildPartial() { + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail result = new net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail other) { + if (other == net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetEmail) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail other = (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetEmail) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetEmail) private static final net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetEmail(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail(); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetEmail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetEmail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserProfileGetEmailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetEmailResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string email = 2; + * string email = 2; + * @return The email. */ java.lang.String getEmail(); /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); @@ -361,124 +669,190 @@ public interface UserProfileGetEmailResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileGetEmailResponse} */ - public static final class UserProfileGetEmailResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetEmailResponse, UserProfileGetEmailResponse.Builder> implements + public static final class UserProfileGetEmailResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetEmailResponse) UserProfileGetEmailResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetEmailResponse.newBuilder() to construct. + private UserProfileGetEmailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetEmailResponse() { email_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetEmailResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetEmailResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.class, net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int EMAIL_FIELD_NUMBER = 2; - private java.lang.String email_; + private volatile java.lang.Object email_; /** - * optional string email = 2; + * string email = 2; + * @return The email. */ + @java.lang.Override public java.lang.String getEmail() { - return email_; + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } } /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ + @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(email_); - } - /** - * optional string email = 2; - */ - private void setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - } - /** - * optional string email = 2; - */ - private void clearEmail() { - - email_ = getDefaultInstance().getEmail(); + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string email = 2; - */ - private void setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!email_.isEmpty()) { - output.writeString(2, getEmail()); + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!email_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getEmail()); + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse other = (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getEmail() + .equals(other.getEmail())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetEmailResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetEmailResponse) net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.class, net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + email_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetEmail.internal_static_proto_UserProfileGetEmailResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse build() { + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse result = new net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.email_ = email_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object email_ = ""; /** - * optional string email = 2; + * string email = 2; + * @return The email. */ public java.lang.String getEmail() { - return instance.getEmail(); + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string email = 2; + * string email = 2; + * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { - return instance.getEmailBytes(); + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string email = 2; + * string email = 2; + * @param value The email to set. + * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { - copyOnWrite(); - instance.setEmail(value); + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); return this; } /** - * optional string email = 2; + * string email = 2; + * @return This builder for chaining. */ public Builder clearEmail() { - copyOnWrite(); - instance.clearEmail(); + + email_ = getDefaultInstance().getEmail(); + onChanged(); return this; } /** - * optional string email = 2; + * string email = 2; + * @param value The bytes for email to set. + * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setEmailBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetEmailResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse other = (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - email_ = visitor.visitString(!email_.isEmpty(), email_, - !other.email_.isEmpty(), other.email_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - email_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetEmailResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetEmailResponse) private static final net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetEmailResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse(); } public static net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetEmailResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetEmailResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetEmail.UserProfileGetEmailResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetEmail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetEmail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetEmailResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetEmailResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031UserProfileGetEmail.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\"6\n\023UserProfile" + + "GetEmail\022\037\n\007request\030\001 \001(\0132\016.proto.Reques" + + "t\"O\n\033UserProfileGetEmailResponse\022!\n\010resp" + + "onse\030\001 \001(\0132\017.proto.Response\022\r\n\005email\030\002 \001" + + "(\tB*\n\016net.iGap.protoB\030ProtoUserProfileGe" + + "tEmailb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileGetEmail_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileGetEmail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetEmail_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserProfileGetEmailResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileGetEmailResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetEmailResponse_descriptor, + new java.lang.String[] { "Response", "Email", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGetGender.java b/src/main/java/net/iGap/proto/ProtoUserProfileGetGender.java index 1c63f38..8bb852c 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGetGender.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGetGender.java @@ -8,90 +8,170 @@ private ProtoUserProfileGetGender() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileGetGenderOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetGender) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserProfileGetGender} */ - public static final class UserProfileGetGender extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetGender, UserProfileGetGender.Builder> implements + public static final class UserProfileGetGender extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetGender) UserProfileGetGenderOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetGender.newBuilder() to construct. + private UserProfileGetGender(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetGender() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetGender(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetGender( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGender_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGender_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.class, net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,365 +179,646 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender other = (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetGender} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetGender) net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGender_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGender_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.class, net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGender_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender build() { + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender buildPartial() { + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender result = new net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender other) { + if (other == net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetGender) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender other = (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetGender) + } // @@protoc_insertion_point(class_scope:proto.UserProfileGetGender) private static final net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetGender(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender(); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetGender parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetGender(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGender getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileGetGenderResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetGenderResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ int getGenderValue(); /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ net.iGap.proto.ProtoGlobal.Gender getGender(); } /** * Protobuf type {@code proto.UserProfileGetGenderResponse} */ - public static final class UserProfileGetGenderResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetGenderResponse, UserProfileGetGenderResponse.Builder> implements + public static final class UserProfileGetGenderResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetGenderResponse) UserProfileGetGenderResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetGenderResponse.newBuilder() to construct. + private UserProfileGetGenderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetGenderResponse() { + gender_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetGenderResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } + private UserProfileGetGenderResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + gender_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGenderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGenderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.class, net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int GENDER_FIELD_NUMBER = 2; private int gender_; /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ - public int getGenderValue() { + @java.lang.Override public int getGenderValue() { return gender_; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ - public net.iGap.proto.ProtoGlobal.Gender getGender() { - net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.forNumber(gender_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Gender getGender() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.valueOf(gender_); return result == null ? net.iGap.proto.ProtoGlobal.Gender.UNRECOGNIZED : result; } - /** - * optional .proto.Gender gender = 2; - */ - private void setGenderValue(int value) { - gender_ = value; - } - /** - * optional .proto.Gender gender = 2; - */ - private void setGender(net.iGap.proto.ProtoGlobal.Gender value) { - if (value == null) { - throw new NullPointerException(); - } - - gender_ = value.getNumber(); - } - /** - * optional .proto.Gender gender = 2; - */ - private void clearGender() { - - gender_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -466,10 +827,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (gender_ != net.iGap.proto.ProtoGlobal.Gender.UNKNOWN.getNumber()) { output.writeEnum(2, gender_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -481,288 +844,575 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, gender_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse other = (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (gender_ != other.gender_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + GENDER_FIELD_NUMBER; + hash = (53 * hash) + gender_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetGenderResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetGenderResponse) net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGenderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGenderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.class, net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + gender_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetGender.internal_static_proto_UserProfileGetGenderResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse build() { + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse result = new net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.gender_ = gender_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.gender_ != 0) { + setGenderValue(other.getGenderValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int gender_ = 0; /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The enum numeric value on the wire for gender. */ - public int getGenderValue() { - return instance.getGenderValue(); + @java.lang.Override public int getGenderValue() { + return gender_; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @param value The enum numeric value on the wire for gender to set. + * @return This builder for chaining. */ public Builder setGenderValue(int value) { - copyOnWrite(); - instance.setGenderValue(value); + + gender_ = value; + onChanged(); return this; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return The gender. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Gender getGender() { - return instance.getGender(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Gender result = net.iGap.proto.ProtoGlobal.Gender.valueOf(gender_); + return result == null ? net.iGap.proto.ProtoGlobal.Gender.UNRECOGNIZED : result; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @param value The gender to set. + * @return This builder for chaining. */ public Builder setGender(net.iGap.proto.ProtoGlobal.Gender value) { - copyOnWrite(); - instance.setGender(value); + if (value == null) { + throw new NullPointerException(); + } + + gender_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Gender gender = 2; + * .proto.Gender gender = 2; + * @return This builder for chaining. */ public Builder clearGender() { - copyOnWrite(); - instance.clearGender(); + + gender_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetGenderResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse other = (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - gender_ = visitor.visitInt(gender_ != 0, gender_, other.gender_ != 0, other.gender_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - gender_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetGenderResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetGenderResponse) private static final net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetGenderResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse(); } public static net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetGenderResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetGenderResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetGender.UserProfileGetGenderResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetGender_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetGender_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetGenderResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetGenderResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032UserProfileGetGender.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\032\014Global.proto" + + "\"7\n\024UserProfileGetGender\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\"`\n\034UserProfileGetGende" + + "rResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\035\n\006gender\030\002 \001(\0162\r.proto.GenderB+\n\016n" + + "et.iGap.protoB\031ProtoUserProfileGetGender" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserProfileGetGender_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileGetGender_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetGender_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserProfileGetGenderResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileGetGenderResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetGenderResponse_descriptor, + new java.lang.String[] { "Response", "Gender", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGetNationalCode.java b/src/main/java/net/iGap/proto/ProtoUserProfileGetNationalCode.java index e3c475b..11542b5 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGetNationalCode.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGetNationalCode.java @@ -8,90 +8,170 @@ private ProtoUserProfileGetNationalCode() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileGetNationalCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetNationalCode) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserProfileGetNationalCode} */ - public static final class UserProfileGetNationalCode extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetNationalCode, UserProfileGetNationalCode.Builder> implements + public static final class UserProfileGetNationalCode extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetNationalCode) UserProfileGetNationalCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetNationalCode.newBuilder() to construct. + private UserProfileGetNationalCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetNationalCode() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetNationalCode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetNationalCode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.class, net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode other = (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetNationalCode} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetNationalCode) net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.class, net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCode_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode build() { + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode buildPartial() { + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode result = new net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode other) { + if (other == net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNationalCode) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode other = (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNationalCode) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetNationalCode) private static final net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetNationalCode(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode(); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetNationalCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetNationalCode(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserProfileGetNationalCodeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetNationalCodeResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ java.lang.String getNationalCode(); /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ com.google.protobuf.ByteString getNationalCodeBytes(); @@ -361,124 +669,190 @@ public interface UserProfileGetNationalCodeResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileGetNationalCodeResponse} */ - public static final class UserProfileGetNationalCodeResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetNationalCodeResponse, UserProfileGetNationalCodeResponse.Builder> implements + public static final class UserProfileGetNationalCodeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetNationalCodeResponse) UserProfileGetNationalCodeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetNationalCodeResponse.newBuilder() to construct. + private UserProfileGetNationalCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetNationalCodeResponse() { nationalCode_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetNationalCodeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetNationalCodeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nationalCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCodeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCodeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.class, net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int NATIONAL_CODE_FIELD_NUMBER = 2; - private java.lang.String nationalCode_; + private volatile java.lang.Object nationalCode_; /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ + @java.lang.Override public java.lang.String getNationalCode() { - return nationalCode_; + java.lang.Object ref = nationalCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalCode_ = s; + return s; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ + @java.lang.Override public com.google.protobuf.ByteString getNationalCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nationalCode_); - } - /** - * optional string national_code = 2; - */ - private void setNationalCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nationalCode_ = value; - } - /** - * optional string national_code = 2; - */ - private void clearNationalCode() { - - nationalCode_ = getDefaultInstance().getNationalCode(); + java.lang.Object ref = nationalCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nationalCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string national_code = 2; - */ - private void setNationalCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nationalCode_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!nationalCode_.isEmpty()) { - output.writeString(2, getNationalCode()); + if (!getNationalCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nationalCode_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,600 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!nationalCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNationalCode()); + if (!getNationalCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nationalCode_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse other = (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getNationalCode() + .equals(other.getNationalCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + NATIONAL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getNationalCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetNationalCodeResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetNationalCodeResponse) net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCodeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCodeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.class, net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + nationalCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.internal_static_proto_UserProfileGetNationalCodeResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse build() { + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse result = new net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.nationalCode_ = nationalCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getNationalCode().isEmpty()) { + nationalCode_ = other.nationalCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object nationalCode_ = ""; /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ public java.lang.String getNationalCode() { - return instance.getNationalCode(); + java.lang.Object ref = nationalCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ public com.google.protobuf.ByteString getNationalCodeBytes() { - return instance.getNationalCodeBytes(); + java.lang.Object ref = nationalCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nationalCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @param value The nationalCode to set. + * @return This builder for chaining. */ public Builder setNationalCode( java.lang.String value) { - copyOnWrite(); - instance.setNationalCode(value); + if (value == null) { + throw new NullPointerException(); + } + + nationalCode_ = value; + onChanged(); return this; } /** - * optional string national_code = 2; + * string national_code = 2; + * @return This builder for chaining. */ public Builder clearNationalCode() { - copyOnWrite(); - instance.clearNationalCode(); + + nationalCode_ = getDefaultInstance().getNationalCode(); + onChanged(); return this; } /** - * optional string national_code = 2; + * string national_code = 2; + * @param value The bytes for nationalCode to set. + * @return This builder for chaining. */ public Builder setNationalCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNationalCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nationalCode_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNationalCodeResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse other = (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - nationalCode_ = visitor.visitString(!nationalCode_.isEmpty(), nationalCode_, - !other.nationalCode_.isEmpty(), other.nationalCode_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - nationalCode_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNationalCodeResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetNationalCodeResponse) private static final net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetNationalCodeResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse(); } public static net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetNationalCodeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetNationalCodeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNationalCode.UserProfileGetNationalCodeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetNationalCode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetNationalCode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetNationalCodeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetNationalCodeResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n UserProfileGetNationalCode.proto\022\005prot" + + "o\032\rRequest.proto\032\016Response.proto\"=\n\032User" + + "ProfileGetNationalCode\022\037\n\007request\030\001 \001(\0132" + + "\016.proto.Request\"^\n\"UserProfileGetNationa" + + "lCodeResponse\022!\n\010response\030\001 \001(\0132\017.proto." + + "Response\022\025\n\rnational_code\030\002 \001(\tB1\n\016net.i" + + "Gap.protoB\037ProtoUserProfileGetNationalCo" + + "deb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileGetNationalCode_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileGetNationalCode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetNationalCode_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserProfileGetNationalCodeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileGetNationalCodeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetNationalCodeResponse_descriptor, + new java.lang.String[] { "Response", "NationalCode", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGetNickname.java b/src/main/java/net/iGap/proto/ProtoUserProfileGetNickname.java index fbaaac8..eb11b84 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGetNickname.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGetNickname.java @@ -8,90 +8,170 @@ private ProtoUserProfileGetNickname() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileGetNicknameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetNickname) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserProfileGetNickname} */ - public static final class UserProfileGetNickname extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetNickname, UserProfileGetNickname.Builder> implements + public static final class UserProfileGetNickname extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetNickname) UserProfileGetNicknameOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetNickname.newBuilder() to construct. + private UserProfileGetNickname(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetNickname() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetNickname(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetNickname( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNickname_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNickname_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.class, net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname other = (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetNickname} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetNickname) net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNickname_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNickname_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.class, net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNickname_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname build() { + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname buildPartial() { + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname result = new net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname other) { + if (other == net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNickname) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname other = (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNickname) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetNickname) private static final net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetNickname(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname(); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetNickname parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetNickname(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNickname getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserProfileGetNicknameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetNicknameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ java.lang.String getNickname(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ com.google.protobuf.ByteString getNicknameBytes(); @@ -361,124 +669,190 @@ public interface UserProfileGetNicknameResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileGetNicknameResponse} */ - public static final class UserProfileGetNicknameResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetNicknameResponse, UserProfileGetNicknameResponse.Builder> implements + public static final class UserProfileGetNicknameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetNicknameResponse) UserProfileGetNicknameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetNicknameResponse.newBuilder() to construct. + private UserProfileGetNicknameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetNicknameResponse() { nickname_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetNicknameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetNicknameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nickname_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNicknameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNicknameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.class, net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int NICKNAME_FIELD_NUMBER = 2; - private java.lang.String nickname_; + private volatile java.lang.Object nickname_; /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ + @java.lang.Override public java.lang.String getNickname() { - return nickname_; + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ + @java.lang.Override public com.google.protobuf.ByteString getNicknameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nickname_); - } - /** - * optional string nickname = 2; - */ - private void setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; - } - /** - * optional string nickname = 2; - */ - private void clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string nickname = 2; - */ - private void setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!nickname_.isEmpty()) { - output.writeString(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!nickname_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse other = (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getNickname() + .equals(other.getNickname())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + NICKNAME_FIELD_NUMBER; + hash = (53 * hash) + getNickname().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetNicknameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetNicknameResponse) net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNicknameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNicknameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.class, net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + nickname_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetNickname.internal_static_proto_UserProfileGetNicknameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse build() { + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse result = new net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.nickname_ = nickname_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getNickname().isEmpty()) { + nickname_ = other.nickname_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object nickname_ = ""; /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ public java.lang.String getNickname() { - return instance.getNickname(); + java.lang.Object ref = nickname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ public com.google.protobuf.ByteString getNicknameBytes() { - return instance.getNicknameBytes(); + java.lang.Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The nickname to set. + * @return This builder for chaining. */ public Builder setNickname( java.lang.String value) { - copyOnWrite(); - instance.setNickname(value); + if (value == null) { + throw new NullPointerException(); + } + + nickname_ = value; + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @return This builder for chaining. */ public Builder clearNickname() { - copyOnWrite(); - instance.clearNickname(); + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The bytes for nickname to set. + * @return This builder for chaining. */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNicknameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nickname_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNicknameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse other = (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - nickname_ = visitor.visitString(!nickname_.isEmpty(), nickname_, - !other.nickname_.isEmpty(), other.nickname_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - nickname_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetNicknameResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetNicknameResponse) private static final net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetNicknameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse(); } public static net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetNicknameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetNicknameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetNickname.UserProfileGetNicknameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetNickname_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetNickname_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetNicknameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetNicknameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034UserProfileGetNickname.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"9\n\026UserProf" + + "ileGetNickname\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\"U\n\036UserProfileGetNicknameRespons" + + "e\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\020\n\010" + + "nickname\030\002 \001(\tB-\n\016net.iGap.protoB\033ProtoU" + + "serProfileGetNicknameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileGetNickname_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileGetNickname_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetNickname_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserProfileGetNicknameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileGetNicknameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetNicknameResponse_descriptor, + new java.lang.String[] { "Response", "Nickname", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGetRepresentative.java b/src/main/java/net/iGap/proto/ProtoUserProfileGetRepresentative.java index 680ae49..75ff05f 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGetRepresentative.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGetRepresentative.java @@ -8,90 +8,170 @@ private ProtoUserProfileGetRepresentative() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileGetRepresentativeOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetRepresentative) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserProfileGetRepresentative} */ - public static final class UserProfileGetRepresentative extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetRepresentative, UserProfileGetRepresentative.Builder> implements + public static final class UserProfileGetRepresentative extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetRepresentative) UserProfileGetRepresentativeOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetRepresentative.newBuilder() to construct. + private UserProfileGetRepresentative(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetRepresentative() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetRepresentative(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetRepresentative( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentative_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.class, net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative other = (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetRepresentative} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetRepresentative) net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentative_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.class, net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentative_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative build() { + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative buildPartial() { + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative result = new net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative other) { + if (other == net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetRepresentative) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative other = (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetRepresentative) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetRepresentative) private static final net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetRepresentative(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative(); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetRepresentative parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetRepresentative(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentative getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserProfileGetRepresentativeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetRepresentativeResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ com.google.protobuf.ByteString getPhoneNumberBytes(); @@ -361,124 +669,190 @@ public interface UserProfileGetRepresentativeResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileGetRepresentativeResponse} */ - public static final class UserProfileGetRepresentativeResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetRepresentativeResponse, UserProfileGetRepresentativeResponse.Builder> implements + public static final class UserProfileGetRepresentativeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetRepresentativeResponse) UserProfileGetRepresentativeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetRepresentativeResponse.newBuilder() to construct. + private UserProfileGetRepresentativeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetRepresentativeResponse() { phoneNumber_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetRepresentativeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetRepresentativeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + phoneNumber_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentativeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentativeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.class, net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; - private java.lang.String phoneNumber_; + private volatile java.lang.Object phoneNumber_; /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public java.lang.String getPhoneNumber() { - return phoneNumber_; + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getPhoneNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phoneNumber_); - } - /** - * optional string phone_number = 2; - */ - private void setPhoneNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phoneNumber_ = value; - } - /** - * optional string phone_number = 2; - */ - private void clearPhoneNumber() { - - phoneNumber_ = getDefaultInstance().getPhoneNumber(); + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string phone_number = 2; - */ - private void setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phoneNumber_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!phoneNumber_.isEmpty()) { - output.writeString(2, getPhoneNumber()); + if (!getPhoneNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phoneNumber_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,600 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!phoneNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPhoneNumber()); + if (!getPhoneNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phoneNumber_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse other = (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetRepresentativeResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetRepresentativeResponse) net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentativeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentativeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.class, net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + phoneNumber_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.internal_static_proto_UserProfileGetRepresentativeResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse build() { + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse result = new net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object phoneNumber_ = ""; /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { - return instance.getPhoneNumber(); + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ public com.google.protobuf.ByteString getPhoneNumberBytes() { - return instance.getPhoneNumberBytes(); + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @param value The phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumber( java.lang.String value) { - copyOnWrite(); - instance.setPhoneNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + phoneNumber_ = value; + onChanged(); return this; } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return This builder for chaining. */ public Builder clearPhoneNumber() { - copyOnWrite(); - instance.clearPhoneNumber(); + + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + onChanged(); return this; } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phoneNumber_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetRepresentativeResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse other = (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - phoneNumber_ = visitor.visitString(!phoneNumber_.isEmpty(), phoneNumber_, - !other.phoneNumber_.isEmpty(), other.phoneNumber_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - phoneNumber_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetRepresentativeResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetRepresentativeResponse) private static final net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetRepresentativeResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse(); } public static net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetRepresentativeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetRepresentativeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetRepresentative.UserProfileGetRepresentativeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetRepresentative_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetRepresentative_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetRepresentativeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetRepresentativeResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\"UserProfileGetRepresentative.proto\022\005pr" + + "oto\032\rRequest.proto\032\016Response.proto\"?\n\034Us" + + "erProfileGetRepresentative\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\"_\n$UserProfileGetRep" + + "resentativeResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\024\n\014phone_number\030\002 \001(\tB3\n\016" + + "net.iGap.protoB!ProtoUserProfileGetRepre" + + "sentativeb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileGetRepresentative_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileGetRepresentative_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetRepresentative_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserProfileGetRepresentativeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileGetRepresentativeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetRepresentativeResponse_descriptor, + new java.lang.String[] { "Response", "PhoneNumber", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileGetSelfRemove.java b/src/main/java/net/iGap/proto/ProtoUserProfileGetSelfRemove.java index 1c0706a..9d70726 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileGetSelfRemove.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileGetSelfRemove.java @@ -8,90 +8,170 @@ private ProtoUserProfileGetSelfRemove() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileGetSelfRemoveOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetSelfRemove) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserProfileGetSelfRemove} */ - public static final class UserProfileGetSelfRemove extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetSelfRemove, UserProfileGetSelfRemove.Builder> implements + public static final class UserProfileGetSelfRemove extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetSelfRemove) UserProfileGetSelfRemoveOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetSelfRemove.newBuilder() to construct. + private UserProfileGetSelfRemove(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetSelfRemove() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetSelfRemove(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetSelfRemove( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemove_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemove_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.class, net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,345 +179,631 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove other = (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetSelfRemove} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetSelfRemove) net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemove_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemove_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.class, net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemove_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove build() { + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove buildPartial() { + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove result = new net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove other) { + if (other == net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetSelfRemove) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove other = (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetSelfRemove) + } // @@protoc_insertion_point(class_scope:proto.UserProfileGetSelfRemove) private static final net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetSelfRemove(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove(); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetSelfRemove parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetSelfRemove(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemove getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserProfileGetSelfRemoveResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileGetSelfRemoveResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ int getSelfRemove(); } /** * Protobuf type {@code proto.UserProfileGetSelfRemoveResponse} */ - public static final class UserProfileGetSelfRemoveResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileGetSelfRemoveResponse, UserProfileGetSelfRemoveResponse.Builder> implements + public static final class UserProfileGetSelfRemoveResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileGetSelfRemoveResponse) UserProfileGetSelfRemoveResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileGetSelfRemoveResponse.newBuilder() to construct. + private UserProfileGetSelfRemoveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileGetSelfRemoveResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileGetSelfRemoveResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileGetSelfRemoveResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + selfRemove_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemoveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemoveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.class, net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SELF_REMOVE_FIELD_NUMBER = 2; private int selfRemove_; /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ + @java.lang.Override public int getSelfRemove() { return selfRemove_; } - /** - * optional uint32 self_remove = 2; - */ - private void setSelfRemove(int value) { - - selfRemove_ = value; - } - /** - * optional uint32 self_remove = 2; - */ - private void clearSelfRemove() { - - selfRemove_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -446,10 +812,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (selfRemove_ != 0) { output.writeUInt32(2, selfRemove_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -461,274 +829,550 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, selfRemove_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse other = (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getSelfRemove() + != other.getSelfRemove()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + SELF_REMOVE_FIELD_NUMBER; + hash = (53 * hash) + getSelfRemove(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileGetSelfRemoveResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileGetSelfRemoveResponse) net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemoveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemoveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.class, net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + selfRemove_ = 0; + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.internal_static_proto_UserProfileGetSelfRemoveResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse build() { + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse buildPartial() { + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse result = new net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.selfRemove_ = selfRemove_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse other) { + if (other == net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getSelfRemove() != 0) { + setSelfRemove(other.getSelfRemove()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int selfRemove_ ; /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ + @java.lang.Override public int getSelfRemove() { - return instance.getSelfRemove(); + return selfRemove_; } /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @param value The selfRemove to set. + * @return This builder for chaining. */ public Builder setSelfRemove(int value) { - copyOnWrite(); - instance.setSelfRemove(value); + + selfRemove_ = value; + onChanged(); return this; } /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return This builder for chaining. */ public Builder clearSelfRemove() { - copyOnWrite(); - instance.clearSelfRemove(); + + selfRemove_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileGetSelfRemoveResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse other = (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - selfRemove_ = visitor.visitInt(selfRemove_ != 0, selfRemove_, - other.selfRemove_ != 0, other.selfRemove_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - selfRemove_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileGetSelfRemoveResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileGetSelfRemoveResponse) private static final net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileGetSelfRemoveResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse(); } public static net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileGetSelfRemoveResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileGetSelfRemoveResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileGetSelfRemove.UserProfileGetSelfRemoveResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetSelfRemove_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetSelfRemove_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileGetSelfRemoveResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileGetSelfRemoveResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\036UserProfileGetSelfRemove.proto\022\005proto\032" + + "\rRequest.proto\032\016Response.proto\";\n\030UserPr" + + "ofileGetSelfRemove\022\037\n\007request\030\001 \001(\0132\016.pr" + + "oto.Request\"Z\n UserProfileGetSelfRemoveR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "se\022\023\n\013self_remove\030\002 \001(\rB/\n\016net.iGap.prot" + + "oB\035ProtoUserProfileGetSelfRemoveb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileGetSelfRemove_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileGetSelfRemove_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetSelfRemove_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserProfileGetSelfRemoveResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileGetSelfRemoveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileGetSelfRemoveResponse_descriptor, + new java.lang.String[] { "Response", "SelfRemove", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileNickname.java b/src/main/java/net/iGap/proto/ProtoUserProfileNickname.java index f511fb9..56bbd95 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileNickname.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileNickname.java @@ -8,25 +8,39 @@ private ProtoUserProfileNickname() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileSetNicknameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetNickname) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ java.lang.String getNickname(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ com.google.protobuf.ByteString getNicknameBytes(); @@ -34,124 +48,190 @@ public interface UserProfileSetNicknameOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetNickname} */ - public static final class UserProfileSetNickname extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetNickname, UserProfileSetNickname.Builder> implements + public static final class UserProfileSetNickname extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetNickname) UserProfileSetNicknameOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetNickname.newBuilder() to construct. + private UserProfileSetNickname(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetNickname() { nickname_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetNickname(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetNickname( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nickname_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNickname_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNickname_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.class, net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int NICKNAME_FIELD_NUMBER = 2; - private java.lang.String nickname_; + private volatile java.lang.Object nickname_; /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ + @java.lang.Override public java.lang.String getNickname() { - return nickname_; + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ + @java.lang.Override public com.google.protobuf.ByteString getNicknameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nickname_); - } - /** - * optional string nickname = 2; - */ - private void setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; - } - /** - * optional string nickname = 2; - */ - private void clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string nickname = 2; - */ - private void setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!nickname_.isEmpty()) { - output.writeString(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,323 +239,591 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!nickname_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname other = (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getNickname() + .equals(other.getNickname())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + NICKNAME_FIELD_NUMBER; + hash = (53 * hash) + getNickname().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetNickname} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetNickname) net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNickname_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNickname_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.class, net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + nickname_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNickname_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname build() { + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname buildPartial() { + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname result = new net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.nickname_ = nickname_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname) { + return mergeFrom((net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname other) { + if (other == net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getNickname().isEmpty()) { + nickname_ = other.nickname_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object nickname_ = ""; /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ public java.lang.String getNickname() { - return instance.getNickname(); + java.lang.Object ref = nickname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ public com.google.protobuf.ByteString getNicknameBytes() { - return instance.getNicknameBytes(); + java.lang.Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The nickname to set. + * @return This builder for chaining. */ public Builder setNickname( java.lang.String value) { - copyOnWrite(); - instance.setNickname(value); + if (value == null) { + throw new NullPointerException(); + } + + nickname_ = value; + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @return This builder for chaining. */ public Builder clearNickname() { - copyOnWrite(); - instance.clearNickname(); + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The bytes for nickname to set. + * @return This builder for chaining. */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNicknameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nickname_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNickname) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname other = (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname) arg1; - request_ = visitor.visitMessage(request_, other.request_); - nickname_ = visitor.visitString(!nickname_.isEmpty(), nickname_, - !other.nickname_.isEmpty(), other.nickname_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - nickname_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNickname) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetNickname) private static final net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetNickname(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname(); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetNickname parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetNickname(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNickname getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileSetNicknameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetNicknameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ java.lang.String getNickname(); /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ com.google.protobuf.ByteString getNicknameBytes(); /** - * optional string initials = 3; + * string initials = 3; + * @return The initials. */ java.lang.String getInitials(); /** - * optional string initials = 3; + * string initials = 3; + * @return The bytes for initials. */ com.google.protobuf.ByteString getInitialsBytes(); @@ -483,174 +831,238 @@ public interface UserProfileSetNicknameResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetNicknameResponse} */ - public static final class UserProfileSetNicknameResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetNicknameResponse, UserProfileSetNicknameResponse.Builder> implements + public static final class UserProfileSetNicknameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetNicknameResponse) UserProfileSetNicknameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetNicknameResponse.newBuilder() to construct. + private UserProfileSetNicknameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetNicknameResponse() { nickname_ = ""; initials_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetNicknameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetNicknameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nickname_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + initials_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNicknameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNicknameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.class, net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int NICKNAME_FIELD_NUMBER = 2; - private java.lang.String nickname_; + private volatile java.lang.Object nickname_; /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ + @java.lang.Override public java.lang.String getNickname() { - return nickname_; + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ + @java.lang.Override public com.google.protobuf.ByteString getNicknameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nickname_); - } - /** - * optional string nickname = 2; - */ - private void setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; - } - /** - * optional string nickname = 2; - */ - private void clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); - } - /** - * optional string nickname = 2; - */ - private void setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value.toStringUtf8(); + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INITIALS_FIELD_NUMBER = 3; - private java.lang.String initials_; + private volatile java.lang.Object initials_; /** - * optional string initials = 3; + * string initials = 3; + * @return The initials. */ + @java.lang.Override public java.lang.String getInitials() { - return initials_; + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } } /** - * optional string initials = 3; + * string initials = 3; + * @return The bytes for initials. */ + @java.lang.Override public com.google.protobuf.ByteString getInitialsBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(initials_); - } - /** - * optional string initials = 3; - */ - private void setInitials( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initials_ = value; - } - /** - * optional string initials = 3; - */ - private void clearInitials() { - - initials_ = getDefaultInstance().getInitials(); + java.lang.Object ref = initials_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string initials = 3; - */ - private void setInitialsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initials_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!nickname_.isEmpty()) { - output.writeString(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); } - if (!initials_.isEmpty()) { - output.writeString(3, getInitials()); + if (!getInitialsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, initials_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -658,348 +1070,690 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!nickname_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNickname()); + if (!getNicknameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); } - if (!initials_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getInitials()); + if (!getInitialsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, initials_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse other = (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getNickname() + .equals(other.getNickname())) return false; + if (!getInitials() + .equals(other.getInitials())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + NICKNAME_FIELD_NUMBER; + hash = (53 * hash) + getNickname().hashCode(); + hash = (37 * hash) + INITIALS_FIELD_NUMBER; + hash = (53 * hash) + getInitials().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetNicknameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetNicknameResponse) net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNicknameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNicknameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.class, net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + nickname_ = ""; + + initials_ = ""; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileNickname.internal_static_proto_UserProfileSetNicknameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse build() { + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse buildPartial() { + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse result = new net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.nickname_ = nickname_; + result.initials_ = initials_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse other) { + if (other == net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getNickname().isEmpty()) { + nickname_ = other.nickname_; + onChanged(); + } + if (!other.getInitials().isEmpty()) { + initials_ = other.initials_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object nickname_ = ""; /** - * optional string nickname = 2; + * string nickname = 2; + * @return The nickname. */ public java.lang.String getNickname() { - return instance.getNickname(); + java.lang.Object ref = nickname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @return The bytes for nickname. */ public com.google.protobuf.ByteString getNicknameBytes() { - return instance.getNicknameBytes(); + java.lang.Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The nickname to set. + * @return This builder for chaining. */ public Builder setNickname( java.lang.String value) { - copyOnWrite(); - instance.setNickname(value); + if (value == null) { + throw new NullPointerException(); + } + + nickname_ = value; + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @return This builder for chaining. */ public Builder clearNickname() { - copyOnWrite(); - instance.clearNickname(); + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); return this; } /** - * optional string nickname = 2; + * string nickname = 2; + * @param value The bytes for nickname to set. + * @return This builder for chaining. */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNicknameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nickname_ = value; + onChanged(); return this; } + private java.lang.Object initials_ = ""; /** - * optional string initials = 3; + * string initials = 3; + * @return The initials. */ public java.lang.String getInitials() { - return instance.getInitials(); + java.lang.Object ref = initials_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initials_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string initials = 3; + * string initials = 3; + * @return The bytes for initials. */ public com.google.protobuf.ByteString getInitialsBytes() { - return instance.getInitialsBytes(); + java.lang.Object ref = initials_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string initials = 3; + * string initials = 3; + * @param value The initials to set. + * @return This builder for chaining. */ public Builder setInitials( java.lang.String value) { - copyOnWrite(); - instance.setInitials(value); + if (value == null) { + throw new NullPointerException(); + } + + initials_ = value; + onChanged(); return this; } /** - * optional string initials = 3; + * string initials = 3; + * @return This builder for chaining. */ public Builder clearInitials() { - copyOnWrite(); - instance.clearInitials(); + + initials_ = getDefaultInstance().getInitials(); + onChanged(); return this; } /** - * optional string initials = 3; + * string initials = 3; + * @param value The bytes for initials to set. + * @return This builder for chaining. */ public Builder setInitialsBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInitialsBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initials_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNicknameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse other = (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - nickname_ = visitor.visitString(!nickname_.isEmpty(), nickname_, - !other.nickname_.isEmpty(), other.nickname_); - initials_ = visitor.visitString(!initials_.isEmpty(), initials_, - !other.initials_.isEmpty(), other.initials_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - nickname_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - initials_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNicknameResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetNicknameResponse) private static final net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetNicknameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse(); } public static net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetNicknameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetNicknameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileNickname.UserProfileSetNicknameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetNickname_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetNickname_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetNicknameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetNicknameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\034UserProfileSetNickname.proto\022\005proto\032\rR" + + "equest.proto\032\016Response.proto\"K\n\026UserProf" + + "ileSetNickname\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\020\n\010nickname\030\002 \001(\t\"g\n\036UserProfile" + + "SetNicknameResponse\022!\n\010response\030\001 \001(\0132\017." + + "proto.Response\022\020\n\010nickname\030\002 \001(\t\022\020\n\010init" + + "ials\030\003 \001(\tB*\n\016net.iGap.protoB\030ProtoUserP" + + "rofileNicknameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileSetNickname_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileSetNickname_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetNickname_descriptor, + new java.lang.String[] { "Request", "Nickname", }); + internal_static_proto_UserProfileSetNicknameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileSetNicknameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetNicknameResponse_descriptor, + new java.lang.String[] { "Response", "Nickname", "Initials", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileRepresentative.java b/src/main/java/net/iGap/proto/ProtoUserProfileRepresentative.java index 6894dea..821c222 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileRepresentative.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileRepresentative.java @@ -8,25 +8,39 @@ private ProtoUserProfileRepresentative() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileSetRepresentativeOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetRepresentative) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ com.google.protobuf.ByteString getPhoneNumberBytes(); @@ -34,124 +48,190 @@ public interface UserProfileSetRepresentativeOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetRepresentative} */ - public static final class UserProfileSetRepresentative extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetRepresentative, UserProfileSetRepresentative.Builder> implements + public static final class UserProfileSetRepresentative extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetRepresentative) UserProfileSetRepresentativeOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetRepresentative.newBuilder() to construct. + private UserProfileSetRepresentative(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetRepresentative() { phoneNumber_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetRepresentative(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetRepresentative( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + phoneNumber_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentative_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.class, net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; - private java.lang.String phoneNumber_; + private volatile java.lang.Object phoneNumber_; /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public java.lang.String getPhoneNumber() { - return phoneNumber_; + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getPhoneNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phoneNumber_); - } - /** - * optional string phone_number = 2; - */ - private void setPhoneNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phoneNumber_ = value; - } - /** - * optional string phone_number = 2; - */ - private void clearPhoneNumber() { - - phoneNumber_ = getDefaultInstance().getPhoneNumber(); + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string phone_number = 2; - */ - private void setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phoneNumber_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!phoneNumber_.isEmpty()) { - output.writeString(2, getPhoneNumber()); + if (!getPhoneNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phoneNumber_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!phoneNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPhoneNumber()); + if (!getPhoneNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phoneNumber_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative other = (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetRepresentative} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetRepresentative) net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentative_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.class, net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phoneNumber_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentative_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative build() { + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative buildPartial() { + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative result = new net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative) { + return mergeFrom((net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative other) { + if (other == net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object phoneNumber_ = ""; /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { - return instance.getPhoneNumber(); + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ public com.google.protobuf.ByteString getPhoneNumberBytes() { - return instance.getPhoneNumberBytes(); + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @param value The phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumber( java.lang.String value) { - copyOnWrite(); - instance.setPhoneNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + phoneNumber_ = value; + onChanged(); return this; } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return This builder for chaining. */ public Builder clearPhoneNumber() { - copyOnWrite(); - instance.clearPhoneNumber(); + + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + onChanged(); return this; } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phoneNumber_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetRepresentative) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative other = (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phoneNumber_ = visitor.visitString(!phoneNumber_.isEmpty(), phoneNumber_, - !other.phoneNumber_.isEmpty(), other.phoneNumber_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - phoneNumber_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetRepresentative) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetRepresentative) private static final net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetRepresentative(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative(); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetRepresentative parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetRepresentative(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentative getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileSetRepresentativeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetRepresentativeResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ com.google.protobuf.ByteString getPhoneNumberBytes(); @@ -473,124 +819,190 @@ public interface UserProfileSetRepresentativeResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetRepresentativeResponse} */ - public static final class UserProfileSetRepresentativeResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetRepresentativeResponse, UserProfileSetRepresentativeResponse.Builder> implements + public static final class UserProfileSetRepresentativeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetRepresentativeResponse) UserProfileSetRepresentativeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetRepresentativeResponse.newBuilder() to construct. + private UserProfileSetRepresentativeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetRepresentativeResponse() { phoneNumber_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetRepresentativeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetRepresentativeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + phoneNumber_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentativeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentativeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.class, net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; - private java.lang.String phoneNumber_; + private volatile java.lang.Object phoneNumber_; /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public java.lang.String getPhoneNumber() { - return phoneNumber_; + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getPhoneNumberBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phoneNumber_); - } - /** - * optional string phone_number = 2; - */ - private void setPhoneNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phoneNumber_ = value; - } - /** - * optional string phone_number = 2; - */ - private void clearPhoneNumber() { - - phoneNumber_ = getDefaultInstance().getPhoneNumber(); + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string phone_number = 2; - */ - private void setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phoneNumber_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!phoneNumber_.isEmpty()) { - output.writeString(2, getPhoneNumber()); + if (!getPhoneNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phoneNumber_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,600 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!phoneNumber_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPhoneNumber()); + if (!getPhoneNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phoneNumber_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse other = (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetRepresentativeResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetRepresentativeResponse) net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentativeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentativeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.class, net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + phoneNumber_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileRepresentative.internal_static_proto_UserProfileSetRepresentativeResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse build() { + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse buildPartial() { + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse result = new net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse other) { + if (other == net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object phoneNumber_ = ""; /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { - return instance.getPhoneNumber(); + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return The bytes for phoneNumber. */ public com.google.protobuf.ByteString getPhoneNumberBytes() { - return instance.getPhoneNumberBytes(); + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @param value The phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumber( java.lang.String value) { - copyOnWrite(); - instance.setPhoneNumber(value); + if (value == null) { + throw new NullPointerException(); + } + + phoneNumber_ = value; + onChanged(); return this; } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @return This builder for chaining. */ public Builder clearPhoneNumber() { - copyOnWrite(); - instance.clearPhoneNumber(); + + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + onChanged(); return this; } /** - * optional string phone_number = 2; + * string phone_number = 2; + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumberBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneNumberBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phoneNumber_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetRepresentativeResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse other = (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - phoneNumber_ = visitor.visitString(!phoneNumber_.isEmpty(), phoneNumber_, - !other.phoneNumber_.isEmpty(), other.phoneNumber_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - phoneNumber_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetRepresentativeResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetRepresentativeResponse) private static final net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetRepresentativeResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse(); } public static net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetRepresentativeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetRepresentativeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileRepresentative.UserProfileSetRepresentativeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetRepresentative_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetRepresentative_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetRepresentativeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetRepresentativeResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\"UserProfileSetRepresentative.proto\022\005pr" + + "oto\032\rRequest.proto\032\016Response.proto\"U\n\034Us" + + "erProfileSetRepresentative\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022\024\n\014phone_number\030\002 \001(" + + "\t\"_\n$UserProfileSetRepresentativeRespons" + + "e\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\024\n\014" + + "phone_number\030\002 \001(\tB0\n\016net.iGap.protoB\036Pr" + + "otoUserProfileRepresentativeb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileSetRepresentative_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileSetRepresentative_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetRepresentative_descriptor, + new java.lang.String[] { "Request", "PhoneNumber", }); + internal_static_proto_UserProfileSetRepresentativeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileSetRepresentativeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetRepresentativeResponse_descriptor, + new java.lang.String[] { "Response", "PhoneNumber", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileSetNationalCode.java b/src/main/java/net/iGap/proto/ProtoUserProfileSetNationalCode.java index f678db2..c2d11a9 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileSetNationalCode.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileSetNationalCode.java @@ -8,25 +8,39 @@ private ProtoUserProfileSetNationalCode() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileSetNationalCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetNationalCode) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ java.lang.String getNationalCode(); /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ com.google.protobuf.ByteString getNationalCodeBytes(); @@ -34,124 +48,190 @@ public interface UserProfileSetNationalCodeOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetNationalCode} */ - public static final class UserProfileSetNationalCode extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetNationalCode, UserProfileSetNationalCode.Builder> implements + public static final class UserProfileSetNationalCode extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetNationalCode) UserProfileSetNationalCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetNationalCode.newBuilder() to construct. + private UserProfileSetNationalCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetNationalCode() { nationalCode_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetNationalCode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetNationalCode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nationalCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.class, net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int NATIONAL_CODE_FIELD_NUMBER = 2; - private java.lang.String nationalCode_; + private volatile java.lang.Object nationalCode_; /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ + @java.lang.Override public java.lang.String getNationalCode() { - return nationalCode_; + java.lang.Object ref = nationalCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalCode_ = s; + return s; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ + @java.lang.Override public com.google.protobuf.ByteString getNationalCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nationalCode_); - } - /** - * optional string national_code = 2; - */ - private void setNationalCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nationalCode_ = value; - } - /** - * optional string national_code = 2; - */ - private void clearNationalCode() { - - nationalCode_ = getDefaultInstance().getNationalCode(); + java.lang.Object ref = nationalCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nationalCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string national_code = 2; - */ - private void setNationalCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nationalCode_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!nationalCode_.isEmpty()) { - output.writeString(2, getNationalCode()); + if (!getNationalCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nationalCode_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!nationalCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNationalCode()); + if (!getNationalCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nationalCode_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode other = (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getNationalCode() + .equals(other.getNationalCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + NATIONAL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getNationalCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetNationalCode} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetNationalCode) net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.class, net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + nationalCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCode_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode build() { + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode buildPartial() { + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode result = new net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.nationalCode_ = nationalCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode) { + return mergeFrom((net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode other) { + if (other == net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getNationalCode().isEmpty()) { + nationalCode_ = other.nationalCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object nationalCode_ = ""; /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ public java.lang.String getNationalCode() { - return instance.getNationalCode(); + java.lang.Object ref = nationalCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ public com.google.protobuf.ByteString getNationalCodeBytes() { - return instance.getNationalCodeBytes(); + java.lang.Object ref = nationalCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nationalCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @param value The nationalCode to set. + * @return This builder for chaining. */ public Builder setNationalCode( java.lang.String value) { - copyOnWrite(); - instance.setNationalCode(value); + if (value == null) { + throw new NullPointerException(); + } + + nationalCode_ = value; + onChanged(); return this; } /** - * optional string national_code = 2; + * string national_code = 2; + * @return This builder for chaining. */ public Builder clearNationalCode() { - copyOnWrite(); - instance.clearNationalCode(); + + nationalCode_ = getDefaultInstance().getNationalCode(); + onChanged(); return this; } /** - * optional string national_code = 2; + * string national_code = 2; + * @param value The bytes for nationalCode to set. + * @return This builder for chaining. */ public Builder setNationalCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNationalCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nationalCode_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNationalCode) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode other = (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode) arg1; - request_ = visitor.visitMessage(request_, other.request_); - nationalCode_ = visitor.visitString(!nationalCode_.isEmpty(), nationalCode_, - !other.nationalCode_.isEmpty(), other.nationalCode_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - nationalCode_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNationalCode) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetNationalCode) private static final net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetNationalCode(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode(); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetNationalCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetNationalCode(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileSetNationalCodeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetNationalCodeResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ java.lang.String getNationalCode(); /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ com.google.protobuf.ByteString getNationalCodeBytes(); @@ -473,124 +819,190 @@ public interface UserProfileSetNationalCodeResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileSetNationalCodeResponse} */ - public static final class UserProfileSetNationalCodeResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetNationalCodeResponse, UserProfileSetNationalCodeResponse.Builder> implements + public static final class UserProfileSetNationalCodeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetNationalCodeResponse) UserProfileSetNationalCodeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetNationalCodeResponse.newBuilder() to construct. + private UserProfileSetNationalCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetNationalCodeResponse() { nationalCode_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetNationalCodeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetNationalCodeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nationalCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCodeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCodeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.class, net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int NATIONAL_CODE_FIELD_NUMBER = 2; - private java.lang.String nationalCode_; + private volatile java.lang.Object nationalCode_; /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ + @java.lang.Override public java.lang.String getNationalCode() { - return nationalCode_; + java.lang.Object ref = nationalCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalCode_ = s; + return s; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ + @java.lang.Override public com.google.protobuf.ByteString getNationalCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nationalCode_); - } - /** - * optional string national_code = 2; - */ - private void setNationalCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nationalCode_ = value; - } - /** - * optional string national_code = 2; - */ - private void clearNationalCode() { - - nationalCode_ = getDefaultInstance().getNationalCode(); + java.lang.Object ref = nationalCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nationalCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string national_code = 2; - */ - private void setNationalCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nationalCode_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!nationalCode_.isEmpty()) { - output.writeString(2, getNationalCode()); + if (!getNationalCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nationalCode_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,600 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!nationalCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNationalCode()); + if (!getNationalCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nationalCode_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse other = (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getNationalCode() + .equals(other.getNationalCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + NATIONAL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getNationalCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetNationalCodeResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetNationalCodeResponse) net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCodeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCodeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.class, net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + nationalCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.internal_static_proto_UserProfileSetNationalCodeResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse build() { + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse buildPartial() { + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse result = new net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.nationalCode_ = nationalCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse other) { + if (other == net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getNationalCode().isEmpty()) { + nationalCode_ = other.nationalCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object nationalCode_ = ""; /** - * optional string national_code = 2; + * string national_code = 2; + * @return The nationalCode. */ public java.lang.String getNationalCode() { - return instance.getNationalCode(); + java.lang.Object ref = nationalCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @return The bytes for nationalCode. */ public com.google.protobuf.ByteString getNationalCodeBytes() { - return instance.getNationalCodeBytes(); + java.lang.Object ref = nationalCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nationalCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string national_code = 2; + * string national_code = 2; + * @param value The nationalCode to set. + * @return This builder for chaining. */ public Builder setNationalCode( java.lang.String value) { - copyOnWrite(); - instance.setNationalCode(value); + if (value == null) { + throw new NullPointerException(); + } + + nationalCode_ = value; + onChanged(); return this; } /** - * optional string national_code = 2; + * string national_code = 2; + * @return This builder for chaining. */ public Builder clearNationalCode() { - copyOnWrite(); - instance.clearNationalCode(); + + nationalCode_ = getDefaultInstance().getNationalCode(); + onChanged(); return this; } /** - * optional string national_code = 2; + * string national_code = 2; + * @param value The bytes for nationalCode to set. + * @return This builder for chaining. */ public Builder setNationalCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNationalCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nationalCode_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNationalCodeResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse other = (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - nationalCode_ = visitor.visitString(!nationalCode_.isEmpty(), nationalCode_, - !other.nationalCode_.isEmpty(), other.nationalCode_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - nationalCode_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetNationalCodeResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetNationalCodeResponse) private static final net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetNationalCodeResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse(); } public static net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetNationalCodeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetNationalCodeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetNationalCode.UserProfileSetNationalCodeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetNationalCode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetNationalCode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetNationalCodeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetNationalCodeResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n UserProfileSetNationalCode.proto\022\005prot" + + "o\032\rRequest.proto\032\016Response.proto\"T\n\032User" + + "ProfileSetNationalCode\022\037\n\007request\030\001 \001(\0132" + + "\016.proto.Request\022\025\n\rnational_code\030\002 \001(\t\"^" + + "\n\"UserProfileSetNationalCodeResponse\022!\n\010" + + "response\030\001 \001(\0132\017.proto.Response\022\025\n\rnatio" + + "nal_code\030\002 \001(\tB1\n\016net.iGap.protoB\037ProtoU" + + "serProfileSetNationalCodeb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileSetNationalCode_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileSetNationalCode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetNationalCode_descriptor, + new java.lang.String[] { "Request", "NationalCode", }); + internal_static_proto_UserProfileSetNationalCodeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileSetNationalCodeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetNationalCodeResponse_descriptor, + new java.lang.String[] { "Response", "NationalCode", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileSetSelfRemove.java b/src/main/java/net/iGap/proto/ProtoUserProfileSetSelfRemove.java index 0e8662a..81a7993 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileSetSelfRemove.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileSetSelfRemove.java @@ -8,109 +8,181 @@ private ProtoUserProfileSetSelfRemove() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileSetSelfRemoveOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetSelfRemove) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ int getSelfRemove(); } /** * Protobuf type {@code proto.UserProfileSetSelfRemove} */ - public static final class UserProfileSetSelfRemove extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetSelfRemove, UserProfileSetSelfRemove.Builder> implements + public static final class UserProfileSetSelfRemove extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetSelfRemove) UserProfileSetSelfRemoveOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetSelfRemove.newBuilder() to construct. + private UserProfileSetSelfRemove(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetSelfRemove() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetSelfRemove(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetSelfRemove( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + selfRemove_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemove_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemove_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.class, net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int SELF_REMOVE_FIELD_NUMBER = 2; private int selfRemove_; /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ + @java.lang.Override public int getSelfRemove() { return selfRemove_; } - /** - * optional uint32 self_remove = 2; - */ - private void setSelfRemove(int value) { - - selfRemove_ = value; - } - /** - * optional uint32 self_remove = 2; - */ - private void clearSelfRemove() { - - selfRemove_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (selfRemove_ != 0) { output.writeUInt32(2, selfRemove_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,672 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, selfRemove_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove other = (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getSelfRemove() + != other.getSelfRemove()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + SELF_REMOVE_FIELD_NUMBER; + hash = (53 * hash) + getSelfRemove(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetSelfRemove} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetSelfRemove) net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemove_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemove_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.class, net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + selfRemove_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemove_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove build() { + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove buildPartial() { + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove result = new net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.selfRemove_ = selfRemove_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove) { + return mergeFrom((net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove other) { + if (other == net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getSelfRemove() != 0) { + setSelfRemove(other.getSelfRemove()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int selfRemove_ ; /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ + @java.lang.Override public int getSelfRemove() { - return instance.getSelfRemove(); + return selfRemove_; } /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @param value The selfRemove to set. + * @return This builder for chaining. */ public Builder setSelfRemove(int value) { - copyOnWrite(); - instance.setSelfRemove(value); + + selfRemove_ = value; + onChanged(); return this; } /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return This builder for chaining. */ public Builder clearSelfRemove() { - copyOnWrite(); - instance.clearSelfRemove(); + + selfRemove_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetSelfRemove) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove other = (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove) arg1; - request_ = visitor.visitMessage(request_, other.request_); - selfRemove_ = visitor.visitInt(selfRemove_ != 0, selfRemove_, - other.selfRemove_ != 0, other.selfRemove_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - selfRemove_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetSelfRemove) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetSelfRemove) private static final net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetSelfRemove(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove(); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetSelfRemove parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetSelfRemove(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemove getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileSetSelfRemoveResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileSetSelfRemoveResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ int getSelfRemove(); } /** * Protobuf type {@code proto.UserProfileSetSelfRemoveResponse} */ - public static final class UserProfileSetSelfRemoveResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileSetSelfRemoveResponse, UserProfileSetSelfRemoveResponse.Builder> implements + public static final class UserProfileSetSelfRemoveResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileSetSelfRemoveResponse) UserProfileSetSelfRemoveResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileSetSelfRemoveResponse.newBuilder() to construct. + private UserProfileSetSelfRemoveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileSetSelfRemoveResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileSetSelfRemoveResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileSetSelfRemoveResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + selfRemove_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemoveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemoveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.class, net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SELF_REMOVE_FIELD_NUMBER = 2; private int selfRemove_; /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ + @java.lang.Override public int getSelfRemove() { return selfRemove_; } - /** - * optional uint32 self_remove = 2; - */ - private void setSelfRemove(int value) { - - selfRemove_ = value; - } - /** - * optional uint32 self_remove = 2; - */ - private void clearSelfRemove() { - - selfRemove_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +882,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (selfRemove_ != 0) { output.writeUInt32(2, selfRemove_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +899,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, selfRemove_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse other = (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getSelfRemove() + != other.getSelfRemove()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + SELF_REMOVE_FIELD_NUMBER; + hash = (53 * hash) + getSelfRemove(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileSetSelfRemoveResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileSetSelfRemoveResponse) net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemoveResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemoveResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.class, net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + selfRemove_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.internal_static_proto_UserProfileSetSelfRemoveResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse build() { + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse buildPartial() { + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse result = new net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.selfRemove_ = selfRemove_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse other) { + if (other == net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getSelfRemove() != 0) { + setSelfRemove(other.getSelfRemove()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int selfRemove_ ; /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return The selfRemove. */ + @java.lang.Override public int getSelfRemove() { - return instance.getSelfRemove(); + return selfRemove_; } /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @param value The selfRemove to set. + * @return This builder for chaining. */ public Builder setSelfRemove(int value) { - copyOnWrite(); - instance.setSelfRemove(value); + + selfRemove_ = value; + onChanged(); return this; } /** - * optional uint32 self_remove = 2; + * uint32 self_remove = 2; + * @return This builder for chaining. */ public Builder clearSelfRemove() { - copyOnWrite(); - instance.clearSelfRemove(); + + selfRemove_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileSetSelfRemoveResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse other = (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - selfRemove_ = visitor.visitInt(selfRemove_ != 0, selfRemove_, - other.selfRemove_ != 0, other.selfRemove_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - selfRemove_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileSetSelfRemoveResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileSetSelfRemoveResponse) private static final net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileSetSelfRemoveResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse(); } public static net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileSetSelfRemoveResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileSetSelfRemoveResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileSetSelfRemove.UserProfileSetSelfRemoveResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetSelfRemove_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetSelfRemove_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileSetSelfRemoveResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileSetSelfRemoveResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\036UserProfileSetSelfRemove.proto\022\005proto\032" + + "\rRequest.proto\032\016Response.proto\"P\n\030UserPr" + + "ofileSetSelfRemove\022\037\n\007request\030\001 \001(\0132\016.pr" + + "oto.Request\022\023\n\013self_remove\030\002 \001(\r\"Z\n User" + + "ProfileSetSelfRemoveResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\023\n\013self_remove\030\002" + + " \001(\rB/\n\016net.iGap.protoB\035ProtoUserProfile" + + "SetSelfRemoveb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileSetSelfRemove_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileSetSelfRemove_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetSelfRemove_descriptor, + new java.lang.String[] { "Request", "SelfRemove", }); + internal_static_proto_UserProfileSetSelfRemoveResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileSetSelfRemoveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileSetSelfRemoveResponse_descriptor, + new java.lang.String[] { "Response", "SelfRemove", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserProfileUpdateUsername.java b/src/main/java/net/iGap/proto/ProtoUserProfileUpdateUsername.java index 85a3417..75ed0c7 100644 --- a/src/main/java/net/iGap/proto/ProtoUserProfileUpdateUsername.java +++ b/src/main/java/net/iGap/proto/ProtoUserProfileUpdateUsername.java @@ -8,25 +8,39 @@ private ProtoUserProfileUpdateUsername() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserProfileUpdateUsernameOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileUpdateUsername) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -34,124 +48,190 @@ public interface UserProfileUpdateUsernameOrBuilder extends /** * Protobuf type {@code proto.UserProfileUpdateUsername} */ - public static final class UserProfileUpdateUsername extends - com.google.protobuf.GeneratedMessageLite< - UserProfileUpdateUsername, UserProfileUpdateUsername.Builder> implements + public static final class UserProfileUpdateUsername extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileUpdateUsername) UserProfileUpdateUsernameOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileUpdateUsername.newBuilder() to construct. + private UserProfileUpdateUsername(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileUpdateUsername() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileUpdateUsername(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileUpdateUsername( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.class, net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername other = (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileUpdateUsername} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileUpdateUsername) net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsername_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsername_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.class, net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsername_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername build() { + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername buildPartial() { + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername result = new net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername) { + return mergeFrom((net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername other) { + if (other == net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileUpdateUsername) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername other = (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileUpdateUsername) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileUpdateUsername) private static final net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileUpdateUsername(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername(); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileUpdateUsername parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileUpdateUsername(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsername getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserProfileUpdateUsernameResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserProfileUpdateUsernameResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -473,124 +819,190 @@ public interface UserProfileUpdateUsernameResponseOrBuilder extends /** * Protobuf type {@code proto.UserProfileUpdateUsernameResponse} */ - public static final class UserProfileUpdateUsernameResponse extends - com.google.protobuf.GeneratedMessageLite< - UserProfileUpdateUsernameResponse, UserProfileUpdateUsernameResponse.Builder> implements + public static final class UserProfileUpdateUsernameResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserProfileUpdateUsernameResponse) UserProfileUpdateUsernameResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserProfileUpdateUsernameResponse.newBuilder() to construct. + private UserProfileUpdateUsernameResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserProfileUpdateUsernameResponse() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserProfileUpdateUsernameResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserProfileUpdateUsernameResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.class, net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,600 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse other = (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserProfileUpdateUsernameResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserProfileUpdateUsernameResponse) net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsernameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsernameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.class, net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.internal_static_proto_UserProfileUpdateUsernameResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse build() { + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse buildPartial() { + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse result = new net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse) { + return mergeFrom((net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse other) { + if (other == net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserProfileUpdateUsernameResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse other = (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserProfileUpdateUsernameResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserProfileUpdateUsernameResponse) private static final net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserProfileUpdateUsernameResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse(); } public static net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProfileUpdateUsernameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserProfileUpdateUsernameResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserProfileUpdateUsername.UserProfileUpdateUsernameResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileUpdateUsername_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileUpdateUsername_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserProfileUpdateUsernameResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserProfileUpdateUsernameResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\037UserProfileUpdateUsername.proto\022\005proto" + + "\032\rRequest.proto\032\016Response.proto\"N\n\031UserP" + + "rofileUpdateUsername\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\020\n\010username\030\002 \001(\t\"X\n!UserP" + + "rofileUpdateUsernameResponse\022!\n\010response" + + "\030\001 \001(\0132\017.proto.Response\022\020\n\010username\030\002 \001(" + + "\tB0\n\016net.iGap.protoB\036ProtoUserProfileUpd" + + "ateUsernameb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserProfileUpdateUsername_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserProfileUpdateUsername_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileUpdateUsername_descriptor, + new java.lang.String[] { "Request", "Username", }); + internal_static_proto_UserProfileUpdateUsernameResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserProfileUpdateUsernameResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserProfileUpdateUsernameResponse_descriptor, + new java.lang.String[] { "Response", "Username", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserRefreshToken.java b/src/main/java/net/iGap/proto/ProtoUserRefreshToken.java index 0b40ec9..3b18f84 100644 --- a/src/main/java/net/iGap/proto/ProtoUserRefreshToken.java +++ b/src/main/java/net/iGap/proto/ProtoUserRefreshToken.java @@ -8,90 +8,170 @@ private ProtoUserRefreshToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserRefreshTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserRefreshToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserRefreshToken} */ - public static final class UserRefreshToken extends - com.google.protobuf.GeneratedMessageLite< - UserRefreshToken, UserRefreshToken.Builder> implements + public static final class UserRefreshToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserRefreshToken) UserRefreshTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserRefreshToken.newBuilder() to construct. + private UserRefreshToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserRefreshToken() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserRefreshToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserRefreshToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.class, net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken other = (net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserRefreshToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserRefreshToken) net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.class, net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken build() { + net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken buildPartial() { + net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken result = new net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken) { + return mergeFrom((net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken other) { + if (other == net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserRefreshToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken other = (net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserRefreshToken) + } + // @@protoc_insertion_point(class_scope:proto.UserRefreshToken) private static final net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserRefreshToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken(); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserRefreshToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserRefreshToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserRefreshTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserRefreshTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string access_token = 2; + * string access_token = 2; + * @return The accessToken. */ java.lang.String getAccessToken(); /** - * optional string access_token = 2; + * string access_token = 2; + * @return The bytes for accessToken. */ com.google.protobuf.ByteString getAccessTokenBytes(); @@ -361,124 +669,190 @@ public interface UserRefreshTokenResponseOrBuilder extends /** * Protobuf type {@code proto.UserRefreshTokenResponse} */ - public static final class UserRefreshTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - UserRefreshTokenResponse, UserRefreshTokenResponse.Builder> implements + public static final class UserRefreshTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserRefreshTokenResponse) UserRefreshTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserRefreshTokenResponse.newBuilder() to construct. + private UserRefreshTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserRefreshTokenResponse() { accessToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserRefreshTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserRefreshTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + accessToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.class, net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 2; - private java.lang.String accessToken_; + private volatile java.lang.Object accessToken_; /** - * optional string access_token = 2; + * string access_token = 2; + * @return The accessToken. */ + @java.lang.Override public java.lang.String getAccessToken() { - return accessToken_; + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } } /** - * optional string access_token = 2; + * string access_token = 2; + * @return The bytes for accessToken. */ + @java.lang.Override public com.google.protobuf.ByteString getAccessTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(accessToken_); - } - /** - * optional string access_token = 2; - */ - private void setAccessToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accessToken_ = value; - } - /** - * optional string access_token = 2; - */ - private void clearAccessToken() { - - accessToken_ = getDefaultInstance().getAccessToken(); + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string access_token = 2; - */ - private void setAccessTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accessToken_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!accessToken_.isEmpty()) { - output.writeString(2, getAccessToken()); + if (!getAccessTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accessToken_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,599 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!accessToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAccessToken()); + if (!getAccessTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accessToken_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse other = (net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getAccessToken() + .equals(other.getAccessToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAccessToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserRefreshTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserRefreshTokenResponse) net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.class, net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + accessToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserRefreshToken.internal_static_proto_UserRefreshTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse build() { + net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse buildPartial() { + net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse result = new net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.accessToken_ = accessToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse other) { + if (other == net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getAccessToken().isEmpty()) { + accessToken_ = other.accessToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object accessToken_ = ""; /** - * optional string access_token = 2; + * string access_token = 2; + * @return The accessToken. */ public java.lang.String getAccessToken() { - return instance.getAccessToken(); + java.lang.Object ref = accessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string access_token = 2; + * string access_token = 2; + * @return The bytes for accessToken. */ public com.google.protobuf.ByteString getAccessTokenBytes() { - return instance.getAccessTokenBytes(); + java.lang.Object ref = accessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string access_token = 2; + * string access_token = 2; + * @param value The accessToken to set. + * @return This builder for chaining. */ public Builder setAccessToken( java.lang.String value) { - copyOnWrite(); - instance.setAccessToken(value); + if (value == null) { + throw new NullPointerException(); + } + + accessToken_ = value; + onChanged(); return this; } /** - * optional string access_token = 2; + * string access_token = 2; + * @return This builder for chaining. */ public Builder clearAccessToken() { - copyOnWrite(); - instance.clearAccessToken(); + + accessToken_ = getDefaultInstance().getAccessToken(); + onChanged(); return this; } /** - * optional string access_token = 2; + * string access_token = 2; + * @param value The bytes for accessToken to set. + * @return This builder for chaining. */ public Builder setAccessTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAccessTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + accessToken_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserRefreshTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse other = (net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - accessToken_ = visitor.visitString(!accessToken_.isEmpty(), accessToken_, - !other.accessToken_.isEmpty(), other.accessToken_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - accessToken_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserRefreshTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserRefreshTokenResponse) private static final net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserRefreshTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse(); } public static net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserRefreshTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserRefreshTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserRefreshToken.UserRefreshTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserRefreshToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserRefreshToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserRefreshTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserRefreshTokenResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026UserRefreshToken.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"3\n\020UserRefreshTok" + + "en\022\037\n\007request\030\001 \001(\0132\016.proto.Request\"S\n\030U" + + "serRefreshTokenResponse\022!\n\010response\030\001 \001(" + + "\0132\017.proto.Response\022\024\n\014access_token\030\002 \001(\t" + + "B\'\n\016net.iGap.protoB\025ProtoUserRefreshToke" + + "nb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserRefreshToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserRefreshToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserRefreshToken_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserRefreshTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserRefreshTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserRefreshTokenResponse_descriptor, + new java.lang.String[] { "Response", "AccessToken", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserRegister.java b/src/main/java/net/iGap/proto/ProtoUserRegister.java index b7aa0f9..94d132d 100644 --- a/src/main/java/net/iGap/proto/ProtoUserRegister.java +++ b/src/main/java/net/iGap/proto/ProtoUserRegister.java @@ -8,64 +8,185 @@ private ProtoUserRegister() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserRegisterOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserRegister) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return The phoneNumber. */ long getPhoneNumber(); /** - * optional string country_code = 3; + * string country_code = 3; + * @return The countryCode. */ java.lang.String getCountryCode(); /** - * optional string country_code = 3; + * string country_code = 3; + * @return The bytes for countryCode. */ com.google.protobuf.ByteString getCountryCodeBytes(); /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @return The enum numeric value on the wire for preferenceMethod. */ int getPreferenceMethodValue(); /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @return The preferenceMethod. */ net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod getPreferenceMethod(); /** - * optional uint32 app_id = 5; + * uint32 app_id = 5; + * @return The appId. */ int getAppId(); } /** * Protobuf type {@code proto.UserRegister} */ - public static final class UserRegister extends - com.google.protobuf.GeneratedMessageLite< - UserRegister, UserRegister.Builder> implements + public static final class UserRegister extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserRegister) UserRegisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserRegister.newBuilder() to construct. + private UserRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserRegister() { countryCode_ = ""; + preferenceMethod_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserRegister(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserRegister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phoneNumber_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + countryCode_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + preferenceMethod_ = rawValue; + break; + } + case 40: { + + appId_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegister_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRegister.UserRegister.class, net.iGap.proto.ProtoUserRegister.UserRegister.Builder.class); + } + /** * Protobuf enum {@code proto.UserRegister.PreferenceMethod} */ public enum PreferenceMethod - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * VERIFY_CODE_AUTO = 0; */ @@ -96,10 +217,16 @@ public enum PreferenceMethod public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -107,6 +234,10 @@ public static PreferenceMethod valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static PreferenceMethod forNumber(int value) { switch (value) { case 0: return VERIFY_CODE_AUTO; @@ -128,6 +259,37 @@ public PreferenceMethod findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRegister.UserRegister.getDescriptor().getEnumTypes().get(0); + } + + private static final PreferenceMethod[] VALUES = values(); + + public static PreferenceMethod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private PreferenceMethod(int value) { @@ -140,186 +302,120 @@ private PreferenceMethod(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; private long phoneNumber_; /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { return phoneNumber_; } - /** - * optional uint64 phone_number = 2; - */ - private void setPhoneNumber(long value) { - - phoneNumber_ = value; - } - /** - * optional uint64 phone_number = 2; - */ - private void clearPhoneNumber() { - - phoneNumber_ = 0L; - } public static final int COUNTRY_CODE_FIELD_NUMBER = 3; - private java.lang.String countryCode_; + private volatile java.lang.Object countryCode_; /** - * optional string country_code = 3; + * string country_code = 3; + * @return The countryCode. */ + @java.lang.Override public java.lang.String getCountryCode() { - return countryCode_; + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } } /** - * optional string country_code = 3; + * string country_code = 3; + * @return The bytes for countryCode. */ + @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(countryCode_); - } - /** - * optional string country_code = 3; - */ - private void setCountryCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - countryCode_ = value; - } - /** - * optional string country_code = 3; - */ - private void clearCountryCode() { - - countryCode_ = getDefaultInstance().getCountryCode(); - } - /** - * optional string country_code = 3; - */ - private void setCountryCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - countryCode_ = value.toStringUtf8(); + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PREFERENCE_METHOD_FIELD_NUMBER = 4; private int preferenceMethod_; /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @return The enum numeric value on the wire for preferenceMethod. */ - public int getPreferenceMethodValue() { + @java.lang.Override public int getPreferenceMethodValue() { return preferenceMethod_; } /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @return The preferenceMethod. */ - public net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod getPreferenceMethod() { - net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod result = net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.forNumber(preferenceMethod_); + @java.lang.Override public net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod getPreferenceMethod() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod result = net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.valueOf(preferenceMethod_); return result == null ? net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.UNRECOGNIZED : result; } - /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; - */ - private void setPreferenceMethodValue(int value) { - preferenceMethod_ = value; - } - /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; - */ - private void setPreferenceMethod(net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - preferenceMethod_ = value.getNumber(); - } - /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; - */ - private void clearPreferenceMethod() { - - preferenceMethod_ = 0; - } public static final int APP_ID_FIELD_NUMBER = 5; private int appId_; /** - * optional uint32 app_id = 5; + * uint32 app_id = 5; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 5; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 5; - */ - private void clearAppId() { - - appId_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -328,8 +424,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (phoneNumber_ != 0L) { output.writeUInt64(2, phoneNumber_); } - if (!countryCode_.isEmpty()) { - output.writeString(3, getCountryCode()); + if (!getCountryCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, countryCode_); } if (preferenceMethod_ != net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.VERIFY_CODE_AUTO.getNumber()) { output.writeEnum(4, preferenceMethod_); @@ -337,10 +433,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (appId_ != 0) { output.writeUInt32(5, appId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -352,9 +450,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, phoneNumber_); } - if (!countryCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getCountryCode()); + if (!getCountryCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, countryCode_); } if (preferenceMethod_ != net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.VERIFY_CODE_AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -364,540 +461,1019 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, appId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserRegister.UserRegister)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserRegister.UserRegister other = (net.iGap.proto.ProtoUserRegister.UserRegister) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getPhoneNumber() + != other.getPhoneNumber()) return false; + if (!getCountryCode() + .equals(other.getCountryCode())) return false; + if (preferenceMethod_ != other.preferenceMethod_) return false; + if (getAppId() + != other.getAppId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhoneNumber()); + hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCountryCode().hashCode(); + hash = (37 * hash) + PREFERENCE_METHOD_FIELD_NUMBER; + hash = (53 * hash) + preferenceMethod_; + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRegister.UserRegister parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserRegister.UserRegister prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserRegister} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserRegister.UserRegister, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserRegister) net.iGap.proto.ProtoUserRegister.UserRegisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegister_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRegister.UserRegister.class, net.iGap.proto.ProtoUserRegister.UserRegister.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserRegister.UserRegister.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phoneNumber_ = 0L; + + countryCode_ = ""; + + preferenceMethod_ = 0; + + appId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegister_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegister getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserRegister.UserRegister.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegister build() { + net.iGap.proto.ProtoUserRegister.UserRegister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegister buildPartial() { + net.iGap.proto.ProtoUserRegister.UserRegister result = new net.iGap.proto.ProtoUserRegister.UserRegister(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + result.countryCode_ = countryCode_; + result.preferenceMethod_ = preferenceMethod_; + result.appId_ = appId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserRegister.UserRegister) { + return mergeFrom((net.iGap.proto.ProtoUserRegister.UserRegister)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserRegister.UserRegister other) { + if (other == net.iGap.proto.ProtoUserRegister.UserRegister.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPhoneNumber() != 0L) { + setPhoneNumber(other.getPhoneNumber()); + } + if (!other.getCountryCode().isEmpty()) { + countryCode_ = other.countryCode_; + onChanged(); + } + if (other.preferenceMethod_ != 0) { + setPreferenceMethodValue(other.getPreferenceMethodValue()); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserRegister.UserRegister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserRegister.UserRegister) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long phoneNumber_ ; /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return The phoneNumber. */ + @java.lang.Override public long getPhoneNumber() { - return instance.getPhoneNumber(); + return phoneNumber_; } /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @param value The phoneNumber to set. + * @return This builder for chaining. */ public Builder setPhoneNumber(long value) { - copyOnWrite(); - instance.setPhoneNumber(value); + + phoneNumber_ = value; + onChanged(); return this; } /** - * optional uint64 phone_number = 2; + * uint64 phone_number = 2; + * @return This builder for chaining. */ public Builder clearPhoneNumber() { - copyOnWrite(); - instance.clearPhoneNumber(); + + phoneNumber_ = 0L; + onChanged(); return this; } + private java.lang.Object countryCode_ = ""; /** - * optional string country_code = 3; + * string country_code = 3; + * @return The countryCode. */ public java.lang.String getCountryCode() { - return instance.getCountryCode(); + java.lang.Object ref = countryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string country_code = 3; + * string country_code = 3; + * @return The bytes for countryCode. */ public com.google.protobuf.ByteString getCountryCodeBytes() { - return instance.getCountryCodeBytes(); + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string country_code = 3; + * string country_code = 3; + * @param value The countryCode to set. + * @return This builder for chaining. */ public Builder setCountryCode( java.lang.String value) { - copyOnWrite(); - instance.setCountryCode(value); + if (value == null) { + throw new NullPointerException(); + } + + countryCode_ = value; + onChanged(); return this; } /** - * optional string country_code = 3; + * string country_code = 3; + * @return This builder for chaining. */ public Builder clearCountryCode() { - copyOnWrite(); - instance.clearCountryCode(); + + countryCode_ = getDefaultInstance().getCountryCode(); + onChanged(); return this; } /** - * optional string country_code = 3; + * string country_code = 3; + * @param value The bytes for countryCode to set. + * @return This builder for chaining. */ public Builder setCountryCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCountryCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + countryCode_ = value; + onChanged(); return this; } + private int preferenceMethod_ = 0; /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @return The enum numeric value on the wire for preferenceMethod. */ - public int getPreferenceMethodValue() { - return instance.getPreferenceMethodValue(); + @java.lang.Override public int getPreferenceMethodValue() { + return preferenceMethod_; } /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @param value The enum numeric value on the wire for preferenceMethod to set. + * @return This builder for chaining. */ public Builder setPreferenceMethodValue(int value) { - copyOnWrite(); - instance.setPreferenceMethodValue(value); + + preferenceMethod_ = value; + onChanged(); return this; } /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @return The preferenceMethod. */ + @java.lang.Override public net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod getPreferenceMethod() { - return instance.getPreferenceMethod(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod result = net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.valueOf(preferenceMethod_); + return result == null ? net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod.UNRECOGNIZED : result; } /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @param value The preferenceMethod to set. + * @return This builder for chaining. */ public Builder setPreferenceMethod(net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod value) { - copyOnWrite(); - instance.setPreferenceMethod(value); + if (value == null) { + throw new NullPointerException(); + } + + preferenceMethod_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.UserRegister.PreferenceMethod preference_method = 4; + * .proto.UserRegister.PreferenceMethod preference_method = 4; + * @return This builder for chaining. */ public Builder clearPreferenceMethod() { - copyOnWrite(); - instance.clearPreferenceMethod(); + + preferenceMethod_ = 0; + onChanged(); return this; } + private int appId_ ; /** - * optional uint32 app_id = 5; + * uint32 app_id = 5; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 5; + * uint32 app_id = 5; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 5; + * uint32 app_id = 5; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserRegister) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserRegister.UserRegister(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserRegister.UserRegister other = (net.iGap.proto.ProtoUserRegister.UserRegister) arg1; - request_ = visitor.visitMessage(request_, other.request_); - phoneNumber_ = visitor.visitLong(phoneNumber_ != 0L, phoneNumber_, - other.phoneNumber_ != 0L, other.phoneNumber_); - countryCode_ = visitor.visitString(!countryCode_.isEmpty(), countryCode_, - !other.countryCode_.isEmpty(), other.countryCode_); - preferenceMethod_ = visitor.visitInt(preferenceMethod_ != 0, preferenceMethod_, other.preferenceMethod_ != 0, other.preferenceMethod_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - phoneNumber_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - countryCode_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - preferenceMethod_ = rawValue; - break; - } - case 40: { - - appId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserRegister.UserRegister.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserRegister) + } + // @@protoc_insertion_point(class_scope:proto.UserRegister) private static final net.iGap.proto.ProtoUserRegister.UserRegister DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserRegister(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserRegister.UserRegister(); } public static net.iGap.proto.ProtoUserRegister.UserRegister getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserRegister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserRegister(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserRegisterResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserRegisterResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ java.lang.String getAuthorHash(); /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ com.google.protobuf.ByteString getAuthorHashBytes(); /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @return The enum numeric value on the wire for method. */ int getMethodValue(); /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @return The method. */ net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method getMethod(); /** - * optional uint32 resend_delay = 6; + * uint32 resend_delay = 6; + * @return The resendDelay. */ int getResendDelay(); /** * repeated uint64 sms_number = 7; + * @return A list containing the smsNumber. */ java.util.List getSmsNumberList(); /** * repeated uint64 sms_number = 7; + * @return The count of smsNumber. */ int getSmsNumberCount(); /** * repeated uint64 sms_number = 7; + * @param index The index of the element to return. + * @return The smsNumber at the given index. */ long getSmsNumber(int index); /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @return The verifyCodeRegex. */ java.lang.String getVerifyCodeRegex(); /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @return The bytes for verifyCodeRegex. */ com.google.protobuf.ByteString getVerifyCodeRegexBytes(); /** - * optional uint32 verify_code_digit_count = 9; + * uint32 verify_code_digit_count = 9; + * @return The verifyCodeDigitCount. */ int getVerifyCodeDigitCount(); /** - * optional bool call_method_supported = 10; + * bool call_method_supported = 10; + * @return The callMethodSupported. */ boolean getCallMethodSupported(); } /** * Protobuf type {@code proto.UserRegisterResponse} */ - public static final class UserRegisterResponse extends - com.google.protobuf.GeneratedMessageLite< - UserRegisterResponse, UserRegisterResponse.Builder> implements + public static final class UserRegisterResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserRegisterResponse) UserRegisterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserRegisterResponse.newBuilder() to construct. + private UserRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserRegisterResponse() { username_ = ""; authorHash_ = ""; + method_ = 0; smsNumber_ = emptyLongList(); verifyCodeRegex_ = ""; } - /** - * Protobuf enum {@code proto.UserRegisterResponse.Method} - */ - public enum Method - implements com.google.protobuf.Internal.EnumLite { - /** - * VERIFY_CODE_SMS = 0; - */ - VERIFY_CODE_SMS(0), - /** - * VERIFY_CODE_SOCKET = 1; - */ - VERIFY_CODE_SOCKET(1), - /** - * VERIFY_CODE_SMS_SOCKET = 2; - */ - VERIFY_CODE_SMS_SOCKET(2), - /** - * VERIFY_CODE_CALL = 3; - */ - VERIFY_CODE_CALL(3), - UNRECOGNIZED(-1), - ; - /** - * VERIFY_CODE_SMS = 0; - */ - public static final int VERIFY_CODE_SMS_VALUE = 0; - /** - * VERIFY_CODE_SOCKET = 1; - */ - public static final int VERIFY_CODE_SOCKET_VALUE = 1; - /** - * VERIFY_CODE_SMS_SOCKET = 2; - */ - public static final int VERIFY_CODE_SMS_SOCKET_VALUE = 2; - /** - * VERIFY_CODE_CALL = 3; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserRegisterResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserRegisterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + authorHash_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + method_ = rawValue; + break; + } + case 48: { + + resendDelay_ = input.readUInt32(); + break; + } + case 56: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + smsNumber_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + smsNumber_.addLong(input.readUInt64()); + break; + } + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + smsNumber_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + smsNumber_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + verifyCodeRegex_ = s; + break; + } + case 72: { + + verifyCodeDigitCount_ = input.readUInt32(); + break; + } + case 80: { + + callMethodSupported_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + smsNumber_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRegister.UserRegisterResponse.class, net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Builder.class); + } + + /** + * Protobuf enum {@code proto.UserRegisterResponse.Method} + */ + public enum Method + implements com.google.protobuf.ProtocolMessageEnum { + /** + * VERIFY_CODE_SMS = 0; + */ + VERIFY_CODE_SMS(0), + /** + * VERIFY_CODE_SOCKET = 1; + */ + VERIFY_CODE_SOCKET(1), + /** + * VERIFY_CODE_SMS_SOCKET = 2; + */ + VERIFY_CODE_SMS_SOCKET(2), + /** + * VERIFY_CODE_CALL = 3; + */ + VERIFY_CODE_CALL(3), + UNRECOGNIZED(-1), + ; + + /** + * VERIFY_CODE_SMS = 0; + */ + public static final int VERIFY_CODE_SMS_VALUE = 0; + /** + * VERIFY_CODE_SOCKET = 1; + */ + public static final int VERIFY_CODE_SOCKET_VALUE = 1; + /** + * VERIFY_CODE_SMS_SOCKET = 2; + */ + public static final int VERIFY_CODE_SMS_SOCKET_VALUE = 2; + /** + * VERIFY_CODE_CALL = 3; */ public static final int VERIFY_CODE_CALL_VALUE = 3; public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -905,6 +1481,10 @@ public static Method valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Method forNumber(int value) { switch (value) { case 0: return VERIFY_CODE_SMS; @@ -927,6 +1507,37 @@ public Method findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRegister.UserRegisterResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Method[] VALUES = values(); + + public static Method valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Method(int value) { @@ -936,400 +1547,263 @@ private Method(int value) { // @@protoc_insertion_point(enum_scope:proto.UserRegisterResponse.Method) } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int AUTHOR_HASH_FIELD_NUMBER = 4; - private java.lang.String authorHash_; + private volatile java.lang.Object authorHash_; /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ + @java.lang.Override public java.lang.String getAuthorHash() { - return authorHash_; + java.lang.Object ref = authorHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorHash_ = s; + return s; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(authorHash_); - } - /** - * optional string author_hash = 4; - */ - private void setAuthorHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authorHash_ = value; - } - /** - * optional string author_hash = 4; - */ - private void clearAuthorHash() { - - authorHash_ = getDefaultInstance().getAuthorHash(); - } - /** - * optional string author_hash = 4; - */ - private void setAuthorHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authorHash_ = value.toStringUtf8(); + java.lang.Object ref = authorHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int METHOD_FIELD_NUMBER = 5; private int method_; /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @return The enum numeric value on the wire for method. */ - public int getMethodValue() { + @java.lang.Override public int getMethodValue() { return method_; } /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @return The method. */ - public net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method getMethod() { - net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method result = net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method.forNumber(method_); + @java.lang.Override public net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method getMethod() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method result = net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method.valueOf(method_); return result == null ? net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method.UNRECOGNIZED : result; } - /** - * optional .proto.UserRegisterResponse.Method method = 5; - */ - private void setMethodValue(int value) { - method_ = value; - } - /** - * optional .proto.UserRegisterResponse.Method method = 5; - */ - private void setMethod(net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method value) { - if (value == null) { - throw new NullPointerException(); - } - - method_ = value.getNumber(); - } - /** - * optional .proto.UserRegisterResponse.Method method = 5; - */ - private void clearMethod() { - - method_ = 0; - } public static final int RESEND_DELAY_FIELD_NUMBER = 6; private int resendDelay_; /** - * optional uint32 resend_delay = 6; + * uint32 resend_delay = 6; + * @return The resendDelay. */ + @java.lang.Override public int getResendDelay() { return resendDelay_; } - /** - * optional uint32 resend_delay = 6; - */ - private void setResendDelay(int value) { - - resendDelay_ = value; - } - /** - * optional uint32 resend_delay = 6; - */ - private void clearResendDelay() { - - resendDelay_ = 0; - } public static final int SMS_NUMBER_FIELD_NUMBER = 7; private com.google.protobuf.Internal.LongList smsNumber_; /** * repeated uint64 sms_number = 7; + * @return A list containing the smsNumber. */ + @java.lang.Override public java.util.List getSmsNumberList() { return smsNumber_; } /** * repeated uint64 sms_number = 7; + * @return The count of smsNumber. */ public int getSmsNumberCount() { return smsNumber_.size(); } /** * repeated uint64 sms_number = 7; + * @param index The index of the element to return. + * @return The smsNumber at the given index. */ public long getSmsNumber(int index) { return smsNumber_.getLong(index); } - private void ensureSmsNumberIsMutable() { - if (!smsNumber_.isModifiable()) { - smsNumber_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(smsNumber_); - } - } - /** - * repeated uint64 sms_number = 7; - */ - private void setSmsNumber( - int index, long value) { - ensureSmsNumberIsMutable(); - smsNumber_.setLong(index, value); - } - /** - * repeated uint64 sms_number = 7; - */ - private void addSmsNumber(long value) { - ensureSmsNumberIsMutable(); - smsNumber_.addLong(value); - } - /** - * repeated uint64 sms_number = 7; - */ - private void addAllSmsNumber( - java.lang.Iterable values) { - ensureSmsNumberIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, smsNumber_); - } - /** - * repeated uint64 sms_number = 7; - */ - private void clearSmsNumber() { - smsNumber_ = emptyLongList(); - } + private int smsNumberMemoizedSerializedSize = -1; public static final int VERIFY_CODE_REGEX_FIELD_NUMBER = 8; - private java.lang.String verifyCodeRegex_; + private volatile java.lang.Object verifyCodeRegex_; /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @return The verifyCodeRegex. */ + @java.lang.Override public java.lang.String getVerifyCodeRegex() { - return verifyCodeRegex_; + java.lang.Object ref = verifyCodeRegex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verifyCodeRegex_ = s; + return s; + } } /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @return The bytes for verifyCodeRegex. */ + @java.lang.Override public com.google.protobuf.ByteString getVerifyCodeRegexBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(verifyCodeRegex_); - } - /** - * optional string verify_code_regex = 8; - */ - private void setVerifyCodeRegex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verifyCodeRegex_ = value; - } - /** - * optional string verify_code_regex = 8; - */ - private void clearVerifyCodeRegex() { - - verifyCodeRegex_ = getDefaultInstance().getVerifyCodeRegex(); - } - /** - * optional string verify_code_regex = 8; - */ - private void setVerifyCodeRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verifyCodeRegex_ = value.toStringUtf8(); + java.lang.Object ref = verifyCodeRegex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verifyCodeRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VERIFY_CODE_DIGIT_COUNT_FIELD_NUMBER = 9; private int verifyCodeDigitCount_; /** - * optional uint32 verify_code_digit_count = 9; + * uint32 verify_code_digit_count = 9; + * @return The verifyCodeDigitCount. */ + @java.lang.Override public int getVerifyCodeDigitCount() { return verifyCodeDigitCount_; } - /** - * optional uint32 verify_code_digit_count = 9; - */ - private void setVerifyCodeDigitCount(int value) { - - verifyCodeDigitCount_ = value; - } - /** - * optional uint32 verify_code_digit_count = 9; - */ - private void clearVerifyCodeDigitCount() { - - verifyCodeDigitCount_ = 0; - } public static final int CALL_METHOD_SUPPORTED_FIELD_NUMBER = 10; private boolean callMethodSupported_; /** - * optional bool call_method_supported = 10; + * bool call_method_supported = 10; + * @return The callMethodSupported. */ + @java.lang.Override public boolean getCallMethodSupported() { return callMethodSupported_; } - /** - * optional bool call_method_supported = 10; - */ - private void setCallMethodSupported(boolean value) { - - callMethodSupported_ = value; - } - /** - * optional bool call_method_supported = 10; - */ - private void clearCallMethodSupported() { - - callMethodSupported_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (userId_ != 0L) { output.writeUInt64(3, userId_); } - if (!authorHash_.isEmpty()) { - output.writeString(4, getAuthorHash()); + if (!getAuthorHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorHash_); } if (method_ != net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method.VERIFY_CODE_SMS.getNumber()) { output.writeEnum(5, method_); @@ -1337,11 +1811,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (resendDelay_ != 0) { output.writeUInt32(6, resendDelay_); } + if (getSmsNumberList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(smsNumberMemoizedSerializedSize); + } for (int i = 0; i < smsNumber_.size(); i++) { - output.writeUInt64(7, smsNumber_.getLong(i)); + output.writeUInt64NoTag(smsNumber_.getLong(i)); } - if (!verifyCodeRegex_.isEmpty()) { - output.writeString(8, getVerifyCodeRegex()); + if (!getVerifyCodeRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, verifyCodeRegex_); } if (verifyCodeDigitCount_ != 0) { output.writeUInt32(9, verifyCodeDigitCount_); @@ -1349,10 +1827,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (callMethodSupported_ != false) { output.writeBool(10, callMethodSupported_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1360,17 +1840,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (userId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - if (!authorHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getAuthorHash()); + if (!getAuthorHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorHash_); } if (method_ != net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method.VERIFY_CODE_SMS.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -1387,11 +1865,15 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(smsNumber_.getLong(i)); } size += dataSize; - size += 1 * getSmsNumberList().size(); + if (!getSmsNumberList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + smsNumberMemoizedSerializedSize = dataSize; } - if (!verifyCodeRegex_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getVerifyCodeRegex()); + if (!getVerifyCodeRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, verifyCodeRegex_); } if (verifyCodeDigitCount_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1401,631 +1883,1116 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, callMethodSupported_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserRegister.UserRegisterResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserRegister.UserRegisterResponse other = (net.iGap.proto.ProtoUserRegister.UserRegisterResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (getUserId() + != other.getUserId()) return false; + if (!getAuthorHash() + .equals(other.getAuthorHash())) return false; + if (method_ != other.method_) return false; + if (getResendDelay() + != other.getResendDelay()) return false; + if (!getSmsNumberList() + .equals(other.getSmsNumberList())) return false; + if (!getVerifyCodeRegex() + .equals(other.getVerifyCodeRegex())) return false; + if (getVerifyCodeDigitCount() + != other.getVerifyCodeDigitCount()) return false; + if (getCallMethodSupported() + != other.getCallMethodSupported()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + AUTHOR_HASH_FIELD_NUMBER; + hash = (53 * hash) + getAuthorHash().hashCode(); + hash = (37 * hash) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + method_; + hash = (37 * hash) + RESEND_DELAY_FIELD_NUMBER; + hash = (53 * hash) + getResendDelay(); + if (getSmsNumberCount() > 0) { + hash = (37 * hash) + SMS_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSmsNumberList().hashCode(); + } + hash = (37 * hash) + VERIFY_CODE_REGEX_FIELD_NUMBER; + hash = (53 * hash) + getVerifyCodeRegex().hashCode(); + hash = (37 * hash) + VERIFY_CODE_DIGIT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVerifyCodeDigitCount(); + hash = (37 * hash) + CALL_METHOD_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCallMethodSupported()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserRegister.UserRegisterResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserRegisterResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserRegister.UserRegisterResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserRegisterResponse) net.iGap.proto.ProtoUserRegister.UserRegisterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserRegister.UserRegisterResponse.class, net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserRegister.UserRegisterResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + username_ = ""; + + userId_ = 0L; + + authorHash_ = ""; + + method_ = 0; + + resendDelay_ = 0; + + smsNumber_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + verifyCodeRegex_ = ""; + + verifyCodeDigitCount_ = 0; + + callMethodSupported_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserRegister.internal_static_proto_UserRegisterResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegisterResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserRegister.UserRegisterResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegisterResponse build() { + net.iGap.proto.ProtoUserRegister.UserRegisterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegisterResponse buildPartial() { + net.iGap.proto.ProtoUserRegister.UserRegisterResponse result = new net.iGap.proto.ProtoUserRegister.UserRegisterResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.username_ = username_; + result.userId_ = userId_; + result.authorHash_ = authorHash_; + result.method_ = method_; + result.resendDelay_ = resendDelay_; + if (((bitField0_ & 0x00000001) != 0)) { + smsNumber_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.smsNumber_ = smsNumber_; + result.verifyCodeRegex_ = verifyCodeRegex_; + result.verifyCodeDigitCount_ = verifyCodeDigitCount_; + result.callMethodSupported_ = callMethodSupported_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserRegister.UserRegisterResponse) { + return mergeFrom((net.iGap.proto.ProtoUserRegister.UserRegisterResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserRegister.UserRegisterResponse other) { + if (other == net.iGap.proto.ProtoUserRegister.UserRegisterResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (!other.getAuthorHash().isEmpty()) { + authorHash_ = other.authorHash_; + onChanged(); + } + if (other.method_ != 0) { + setMethodValue(other.getMethodValue()); + } + if (other.getResendDelay() != 0) { + setResendDelay(other.getResendDelay()); + } + if (!other.smsNumber_.isEmpty()) { + if (smsNumber_.isEmpty()) { + smsNumber_ = other.smsNumber_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSmsNumberIsMutable(); + smsNumber_.addAll(other.smsNumber_); + } + onChanged(); + } + if (!other.getVerifyCodeRegex().isEmpty()) { + verifyCodeRegex_ = other.verifyCodeRegex_; + onChanged(); + } + if (other.getVerifyCodeDigitCount() != 0) { + setVerifyCodeDigitCount(other.getVerifyCodeDigitCount()); + } + if (other.getCallMethodSupported() != false) { + setCallMethodSupported(other.getCallMethodSupported()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserRegister.UserRegisterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserRegister.UserRegisterResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private java.lang.Object authorHash_ = ""; /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The authorHash. */ public java.lang.String getAuthorHash() { - return instance.getAuthorHash(); + java.lang.Object ref = authorHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return The bytes for authorHash. */ public com.google.protobuf.ByteString getAuthorHashBytes() { - return instance.getAuthorHashBytes(); + java.lang.Object ref = authorHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @param value The authorHash to set. + * @return This builder for chaining. */ public Builder setAuthorHash( java.lang.String value) { - copyOnWrite(); - instance.setAuthorHash(value); + if (value == null) { + throw new NullPointerException(); + } + + authorHash_ = value; + onChanged(); return this; } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @return This builder for chaining. */ public Builder clearAuthorHash() { - copyOnWrite(); - instance.clearAuthorHash(); + + authorHash_ = getDefaultInstance().getAuthorHash(); + onChanged(); return this; } /** - * optional string author_hash = 4; + * string author_hash = 4; + * @param value The bytes for authorHash to set. + * @return This builder for chaining. */ public Builder setAuthorHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAuthorHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authorHash_ = value; + onChanged(); return this; } + private int method_ = 0; /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @return The enum numeric value on the wire for method. */ - public int getMethodValue() { - return instance.getMethodValue(); + @java.lang.Override public int getMethodValue() { + return method_; } /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @param value The enum numeric value on the wire for method to set. + * @return This builder for chaining. */ public Builder setMethodValue(int value) { - copyOnWrite(); - instance.setMethodValue(value); + + method_ = value; + onChanged(); return this; } /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @return The method. */ + @java.lang.Override public net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method getMethod() { - return instance.getMethod(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method result = net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method.valueOf(method_); + return result == null ? net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method.UNRECOGNIZED : result; } /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @param value The method to set. + * @return This builder for chaining. */ public Builder setMethod(net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method value) { - copyOnWrite(); - instance.setMethod(value); + if (value == null) { + throw new NullPointerException(); + } + + method_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.UserRegisterResponse.Method method = 5; + * .proto.UserRegisterResponse.Method method = 5; + * @return This builder for chaining. */ public Builder clearMethod() { - copyOnWrite(); - instance.clearMethod(); + + method_ = 0; + onChanged(); return this; } + private int resendDelay_ ; /** - * optional uint32 resend_delay = 6; + * uint32 resend_delay = 6; + * @return The resendDelay. */ + @java.lang.Override public int getResendDelay() { - return instance.getResendDelay(); + return resendDelay_; } /** - * optional uint32 resend_delay = 6; + * uint32 resend_delay = 6; + * @param value The resendDelay to set. + * @return This builder for chaining. */ public Builder setResendDelay(int value) { - copyOnWrite(); - instance.setResendDelay(value); + + resendDelay_ = value; + onChanged(); return this; } /** - * optional uint32 resend_delay = 6; + * uint32 resend_delay = 6; + * @return This builder for chaining. */ public Builder clearResendDelay() { - copyOnWrite(); - instance.clearResendDelay(); + + resendDelay_ = 0; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList smsNumber_ = emptyLongList(); + private void ensureSmsNumberIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + smsNumber_ = mutableCopy(smsNumber_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 sms_number = 7; + * @return A list containing the smsNumber. */ public java.util.List getSmsNumberList() { - return java.util.Collections.unmodifiableList( - instance.getSmsNumberList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(smsNumber_) : smsNumber_; } /** * repeated uint64 sms_number = 7; + * @return The count of smsNumber. */ public int getSmsNumberCount() { - return instance.getSmsNumberCount(); + return smsNumber_.size(); } /** * repeated uint64 sms_number = 7; + * @param index The index of the element to return. + * @return The smsNumber at the given index. */ public long getSmsNumber(int index) { - return instance.getSmsNumber(index); + return smsNumber_.getLong(index); } /** * repeated uint64 sms_number = 7; + * @param index The index to set the value at. + * @param value The smsNumber to set. + * @return This builder for chaining. */ public Builder setSmsNumber( int index, long value) { - copyOnWrite(); - instance.setSmsNumber(index, value); + ensureSmsNumberIsMutable(); + smsNumber_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 sms_number = 7; + * @param value The smsNumber to add. + * @return This builder for chaining. */ public Builder addSmsNumber(long value) { - copyOnWrite(); - instance.addSmsNumber(value); + ensureSmsNumberIsMutable(); + smsNumber_.addLong(value); + onChanged(); return this; } /** * repeated uint64 sms_number = 7; + * @param values The smsNumber to add. + * @return This builder for chaining. */ public Builder addAllSmsNumber( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSmsNumber(values); + ensureSmsNumberIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, smsNumber_); + onChanged(); return this; } /** * repeated uint64 sms_number = 7; + * @return This builder for chaining. */ public Builder clearSmsNumber() { - copyOnWrite(); - instance.clearSmsNumber(); + smsNumber_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + private java.lang.Object verifyCodeRegex_ = ""; /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @return The verifyCodeRegex. */ public java.lang.String getVerifyCodeRegex() { - return instance.getVerifyCodeRegex(); + java.lang.Object ref = verifyCodeRegex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verifyCodeRegex_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @return The bytes for verifyCodeRegex. */ public com.google.protobuf.ByteString getVerifyCodeRegexBytes() { - return instance.getVerifyCodeRegexBytes(); + java.lang.Object ref = verifyCodeRegex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verifyCodeRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @param value The verifyCodeRegex to set. + * @return This builder for chaining. */ public Builder setVerifyCodeRegex( java.lang.String value) { - copyOnWrite(); - instance.setVerifyCodeRegex(value); + if (value == null) { + throw new NullPointerException(); + } + + verifyCodeRegex_ = value; + onChanged(); return this; } /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @return This builder for chaining. */ public Builder clearVerifyCodeRegex() { - copyOnWrite(); - instance.clearVerifyCodeRegex(); + + verifyCodeRegex_ = getDefaultInstance().getVerifyCodeRegex(); + onChanged(); return this; } /** - * optional string verify_code_regex = 8; + * string verify_code_regex = 8; + * @param value The bytes for verifyCodeRegex to set. + * @return This builder for chaining. */ public Builder setVerifyCodeRegexBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setVerifyCodeRegexBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + verifyCodeRegex_ = value; + onChanged(); return this; } + private int verifyCodeDigitCount_ ; /** - * optional uint32 verify_code_digit_count = 9; + * uint32 verify_code_digit_count = 9; + * @return The verifyCodeDigitCount. */ + @java.lang.Override public int getVerifyCodeDigitCount() { - return instance.getVerifyCodeDigitCount(); + return verifyCodeDigitCount_; } /** - * optional uint32 verify_code_digit_count = 9; + * uint32 verify_code_digit_count = 9; + * @param value The verifyCodeDigitCount to set. + * @return This builder for chaining. */ public Builder setVerifyCodeDigitCount(int value) { - copyOnWrite(); - instance.setVerifyCodeDigitCount(value); + + verifyCodeDigitCount_ = value; + onChanged(); return this; } /** - * optional uint32 verify_code_digit_count = 9; + * uint32 verify_code_digit_count = 9; + * @return This builder for chaining. */ public Builder clearVerifyCodeDigitCount() { - copyOnWrite(); - instance.clearVerifyCodeDigitCount(); + + verifyCodeDigitCount_ = 0; + onChanged(); return this; } + private boolean callMethodSupported_ ; /** - * optional bool call_method_supported = 10; + * bool call_method_supported = 10; + * @return The callMethodSupported. */ + @java.lang.Override public boolean getCallMethodSupported() { - return instance.getCallMethodSupported(); + return callMethodSupported_; } /** - * optional bool call_method_supported = 10; + * bool call_method_supported = 10; + * @param value The callMethodSupported to set. + * @return This builder for chaining. */ public Builder setCallMethodSupported(boolean value) { - copyOnWrite(); - instance.setCallMethodSupported(value); + + callMethodSupported_ = value; + onChanged(); return this; } /** - * optional bool call_method_supported = 10; + * bool call_method_supported = 10; + * @return This builder for chaining. */ public Builder clearCallMethodSupported() { - copyOnWrite(); - instance.clearCallMethodSupported(); + + callMethodSupported_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserRegisterResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserRegister.UserRegisterResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - smsNumber_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserRegister.UserRegisterResponse other = (net.iGap.proto.ProtoUserRegister.UserRegisterResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - authorHash_ = visitor.visitString(!authorHash_.isEmpty(), authorHash_, - !other.authorHash_.isEmpty(), other.authorHash_); - method_ = visitor.visitInt(method_ != 0, method_, other.method_ != 0, other.method_); - resendDelay_ = visitor.visitInt(resendDelay_ != 0, resendDelay_, - other.resendDelay_ != 0, other.resendDelay_); - smsNumber_= visitor.visitLongList(smsNumber_, other.smsNumber_); - verifyCodeRegex_ = visitor.visitString(!verifyCodeRegex_.isEmpty(), verifyCodeRegex_, - !other.verifyCodeRegex_.isEmpty(), other.verifyCodeRegex_); - verifyCodeDigitCount_ = visitor.visitInt(verifyCodeDigitCount_ != 0, verifyCodeDigitCount_, - other.verifyCodeDigitCount_ != 0, other.verifyCodeDigitCount_); - callMethodSupported_ = visitor.visitBoolean(callMethodSupported_ != false, callMethodSupported_, - other.callMethodSupported_ != false, other.callMethodSupported_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - authorHash_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - method_ = rawValue; - break; - } - case 48: { - - resendDelay_ = input.readUInt32(); - break; - } - case 56: { - if (!smsNumber_.isModifiable()) { - smsNumber_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(smsNumber_); - } - smsNumber_.addLong(input.readUInt64()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!smsNumber_.isModifiable() && input.getBytesUntilLimit() > 0) { - smsNumber_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(smsNumber_); - } - while (input.getBytesUntilLimit() > 0) { - smsNumber_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - verifyCodeRegex_ = s; - break; - } - case 72: { - - verifyCodeDigitCount_ = input.readUInt32(); - break; - } - case 80: { - - callMethodSupported_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserRegister.UserRegisterResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserRegisterResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserRegisterResponse) private static final net.iGap.proto.ProtoUserRegister.UserRegisterResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserRegisterResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserRegister.UserRegisterResponse(); } public static net.iGap.proto.ProtoUserRegister.UserRegisterResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserRegisterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserRegisterResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoUserRegister.UserRegisterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserRegister_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserRegister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserRegisterResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserRegisterResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\022UserRegister.proto\022\005proto\032\rRequest.pro" + + "to\032\016Response.proto\"\201\002\n\014UserRegister\022\037\n\007r" + + "equest\030\001 \001(\0132\016.proto.Request\022\024\n\014phone_nu" + + "mber\030\002 \001(\004\022\024\n\014country_code\030\003 \001(\t\022?\n\021pref" + + "erence_method\030\004 \001(\0162$.proto.UserRegister" + + ".PreferenceMethod\022\016\n\006app_id\030\005 \001(\r\"S\n\020Pre" + + "ferenceMethod\022\024\n\020VERIFY_CODE_AUTO\020\000\022\023\n\017V" + + "ERIFY_CODE_SMS\020\001\022\024\n\020VERIFY_CODE_CALL\020\002\"\223" + + "\003\n\024UserRegisterResponse\022!\n\010response\030\001 \001(" + + "\0132\017.proto.Response\022\020\n\010username\030\002 \001(\t\022\017\n\007" + + "user_id\030\003 \001(\004\022\023\n\013author_hash\030\004 \001(\t\0222\n\006me" + + "thod\030\005 \001(\0162\".proto.UserRegisterResponse." + + "Method\022\024\n\014resend_delay\030\006 \001(\r\022\022\n\nsms_numb" + + "er\030\007 \003(\004\022\031\n\021verify_code_regex\030\010 \001(\t\022\037\n\027v" + + "erify_code_digit_count\030\t \001(\r\022\035\n\025call_met" + + "hod_supported\030\n \001(\010\"g\n\006Method\022\023\n\017VERIFY_" + + "CODE_SMS\020\000\022\026\n\022VERIFY_CODE_SOCKET\020\001\022\032\n\026VE" + + "RIFY_CODE_SMS_SOCKET\020\002\022\024\n\020VERIFY_CODE_CA" + + "LL\020\003B#\n\016net.iGap.protoB\021ProtoUserRegiste" + + "rb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserRegister_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserRegister_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserRegister_descriptor, + new java.lang.String[] { "Request", "PhoneNumber", "CountryCode", "PreferenceMethod", "AppId", }); + internal_static_proto_UserRegisterResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserRegisterResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserRegisterResponse_descriptor, + new java.lang.String[] { "Response", "Username", "UserId", "AuthorHash", "Method", "ResendDelay", "SmsNumber", "VerifyCodeRegex", "VerifyCodeDigitCount", "CallMethodSupported", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserReport.java b/src/main/java/net/iGap/proto/ProtoUserReport.java index a19a63e..58de0fd 100644 --- a/src/main/java/net/iGap/proto/ProtoUserReport.java +++ b/src/main/java/net/iGap/proto/ProtoUserReport.java @@ -8,39 +8,56 @@ private ProtoUserReport() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserReportOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserReport) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @return The reason. */ net.iGap.proto.ProtoUserReport.UserReport.Reason getReason(); /** - * optional string description = 4; + * string description = 4; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -48,19 +65,117 @@ public interface UserReportOrBuilder extends /** * Protobuf type {@code proto.UserReport} */ - public static final class UserReport extends - com.google.protobuf.GeneratedMessageLite< - UserReport, UserReport.Builder> implements + public static final class UserReport extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserReport) UserReportOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserReport.newBuilder() to construct. + private UserReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserReport() { + reason_ = 0; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserReport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserReport( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + reason_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserReport.UserReport.class, net.iGap.proto.ProtoUserReport.UserReport.Builder.class); + } + /** * Protobuf enum {@code proto.UserReport.Reason} */ public enum Reason - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * OTHER = 0; */ @@ -99,10 +214,16 @@ public enum Reason public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -110,6 +231,10 @@ public static Reason valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Reason forNumber(int value) { switch (value) { case 0: return OTHER; @@ -132,6 +257,37 @@ public Reason findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoUserReport.UserReport.getDescriptor().getEnumTypes().get(0); + } + + private static final Reason[] VALUES = values(); + + public static Reason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Reason(int value) { @@ -144,163 +300,109 @@ private Reason(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; - } public static final int REASON_FIELD_NUMBER = 3; private int reason_; /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @return The enum numeric value on the wire for reason. */ - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @return The reason. */ - public net.iGap.proto.ProtoUserReport.UserReport.Reason getReason() { - net.iGap.proto.ProtoUserReport.UserReport.Reason result = net.iGap.proto.ProtoUserReport.UserReport.Reason.forNumber(reason_); + @java.lang.Override public net.iGap.proto.ProtoUserReport.UserReport.Reason getReason() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserReport.UserReport.Reason result = net.iGap.proto.ProtoUserReport.UserReport.Reason.valueOf(reason_); return result == null ? net.iGap.proto.ProtoUserReport.UserReport.Reason.UNRECOGNIZED : result; } - /** - * optional .proto.UserReport.Reason reason = 3; - */ - private void setReasonValue(int value) { - reason_ = value; - } - /** - * optional .proto.UserReport.Reason reason = 3; - */ - private void setReason(net.iGap.proto.ProtoUserReport.UserReport.Reason value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value.getNumber(); - } - /** - * optional .proto.UserReport.Reason reason = 3; - */ - private void clearReason() { - - reason_ = 0; - } public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 4; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 4; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 4; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -312,13 +414,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reason_ != net.iGap.proto.ProtoUserReport.UserReport.Reason.OTHER.getNumber()) { output.writeEnum(3, reason_); } - if (!description_.isEmpty()) { - output.writeString(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -334,452 +438,815 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, reason_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserReport.UserReport)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserReport.UserReport other = (net.iGap.proto.ProtoUserReport.UserReport) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (reason_ != other.reason_) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + reason_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserReport.UserReport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserReport.UserReport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserReport.UserReport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserReport} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserReport.UserReport, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserReport) net.iGap.proto.ProtoUserReport.UserReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserReport.UserReport.class, net.iGap.proto.ProtoUserReport.UserReport.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserReport.UserReport.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + userId_ = 0L; + + reason_ = 0; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReport_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReport getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserReport.UserReport.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReport build() { + net.iGap.proto.ProtoUserReport.UserReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReport buildPartial() { + net.iGap.proto.ProtoUserReport.UserReport result = new net.iGap.proto.ProtoUserReport.UserReport(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + result.reason_ = reason_; + result.description_ = description_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserReport.UserReport) { + return mergeFrom((net.iGap.proto.ProtoUserReport.UserReport)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserReport.UserReport other) { + if (other == net.iGap.proto.ProtoUserReport.UserReport.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (other.reason_ != 0) { + setReasonValue(other.getReasonValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserReport.UserReport parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserReport.UserReport) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + private int reason_ = 0; /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @return The enum numeric value on the wire for reason. */ - public int getReasonValue() { - return instance.getReasonValue(); + @java.lang.Override public int getReasonValue() { + return reason_; } /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @param value The enum numeric value on the wire for reason to set. + * @return This builder for chaining. */ public Builder setReasonValue(int value) { - copyOnWrite(); - instance.setReasonValue(value); + + reason_ = value; + onChanged(); return this; } /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @return The reason. */ + @java.lang.Override public net.iGap.proto.ProtoUserReport.UserReport.Reason getReason() { - return instance.getReason(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserReport.UserReport.Reason result = net.iGap.proto.ProtoUserReport.UserReport.Reason.valueOf(reason_); + return result == null ? net.iGap.proto.ProtoUserReport.UserReport.Reason.UNRECOGNIZED : result; } /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @param value The reason to set. + * @return This builder for chaining. */ public Builder setReason(net.iGap.proto.ProtoUserReport.UserReport.Reason value) { - copyOnWrite(); - instance.setReason(value); + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.UserReport.Reason reason = 3; + * .proto.UserReport.Reason reason = 3; + * @return This builder for chaining. */ public Builder clearReason() { - copyOnWrite(); - instance.clearReason(); + + reason_ = 0; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 4; + * string description = 4; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 4; + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 4; + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserReport) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserReport.UserReport(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserReport.UserReport other = (net.iGap.proto.ProtoUserReport.UserReport) arg1; - request_ = visitor.visitMessage(request_, other.request_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - reason_ = visitor.visitInt(reason_ != 0, reason_, other.reason_ != 0, other.reason_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserReport.UserReport.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserReport) + } + // @@protoc_insertion_point(class_scope:proto.UserReport) private static final net.iGap.proto.ProtoUserReport.UserReport DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserReport(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserReport.UserReport(); } public static net.iGap.proto.ProtoUserReport.UserReport getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserReport(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserReportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserReportResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserReportResponse} */ - public static final class UserReportResponse extends - com.google.protobuf.GeneratedMessageLite< - UserReportResponse, UserReportResponse.Builder> implements + public static final class UserReportResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserReportResponse) UserReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserReportResponse.newBuilder() to construct. + private UserReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserReportResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserReportResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserReportResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserReport.UserReportResponse.class, net.iGap.proto.ProtoUserReport.UserReportResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -787,244 +1254,511 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserReport.UserReportResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserReport.UserReportResponse other = (net.iGap.proto.ProtoUserReport.UserReportResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserReport.UserReportResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserReport.UserReportResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserReportResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserReport.UserReportResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserReportResponse) net.iGap.proto.ProtoUserReport.UserReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserReport.UserReportResponse.class, net.iGap.proto.ProtoUserReport.UserReportResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserReport.UserReportResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserReport.internal_static_proto_UserReportResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReportResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserReport.UserReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReportResponse build() { + net.iGap.proto.ProtoUserReport.UserReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReportResponse buildPartial() { + net.iGap.proto.ProtoUserReport.UserReportResponse result = new net.iGap.proto.ProtoUserReport.UserReportResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserReport.UserReportResponse) { + return mergeFrom((net.iGap.proto.ProtoUserReport.UserReportResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserReport.UserReportResponse other) { + if (other == net.iGap.proto.ProtoUserReport.UserReportResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserReport.UserReportResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserReport.UserReportResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserReportResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserReport.UserReportResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserReport.UserReportResponse other = (net.iGap.proto.ProtoUserReport.UserReportResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserReport.UserReportResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserReportResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserReportResponse) private static final net.iGap.proto.ProtoUserReport.UserReportResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserReportResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserReport.UserReportResponse(); } public static net.iGap.proto.ProtoUserReport.UserReportResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserReportResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserReport.UserReportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserReport_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserReport_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserReportResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserReportResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020UserReport.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"\271\001\n\nUserReport\022\037\n\007reque" + + "st\030\001 \001(\0132\016.proto.Request\022\017\n\007user_id\030\002 \001(" + + "\004\022(\n\006reason\030\003 \001(\0162\030.proto.UserReport.Rea" + + "son\022\023\n\013description\030\004 \001(\t\":\n\006Reason\022\t\n\005OT" + + "HER\020\000\022\010\n\004SPAM\020\001\022\t\n\005ABUSE\020\002\022\020\n\014FAKE_ACCOU" + + "NT\020\003\"7\n\022UserReportResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.ResponseB!\n\016net.iGap.protoB" + + "\017ProtoUserReportb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserReport_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserReport_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserReport_descriptor, + new java.lang.String[] { "Request", "UserId", "Reason", "Description", }); + internal_static_proto_UserReportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserReportResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserReportResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserSessionGetActiveList.java b/src/main/java/net/iGap/proto/ProtoUserSessionGetActiveList.java index 542793f..35ef5f7 100644 --- a/src/main/java/net/iGap/proto/ProtoUserSessionGetActiveList.java +++ b/src/main/java/net/iGap/proto/ProtoUserSessionGetActiveList.java @@ -8,90 +8,170 @@ private ProtoUserSessionGetActiveList() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserSessionGetActiveListOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSessionGetActiveList) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserSessionGetActiveList} */ - public static final class UserSessionGetActiveList extends - com.google.protobuf.GeneratedMessageLite< - UserSessionGetActiveList, UserSessionGetActiveList.Builder> implements + public static final class UserSessionGetActiveList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSessionGetActiveList) UserSessionGetActiveListOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSessionGetActiveList.newBuilder() to construct. + private UserSessionGetActiveList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSessionGetActiveList() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSessionGetActiveList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSessionGetActiveList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.class, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,254 +179,480 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList other = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSessionGetActiveList} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSessionGetActiveList) net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.class, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveList_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList build() { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList buildPartial() { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList result = new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList) { + return mergeFrom((net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList other) { + if (other == net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserSessionGetActiveList) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList other = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.UserSessionGetActiveList) + } // @@protoc_insertion_point(class_scope:proto.UserSessionGetActiveList) private static final net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSessionGetActiveList(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList(); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSessionGetActiveList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSessionGetActiveList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserSessionGetActiveListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSessionGetActiveListResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; @@ -361,135 +667,262 @@ public interface UserSessionGetActiveListResponseOrBuilder extends * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ int getSessionCount(); + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + java.util.List + getSessionOrBuilderList(); + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.SessionOrBuilder getSessionOrBuilder( + int index); } /** * Protobuf type {@code proto.UserSessionGetActiveListResponse} */ - public static final class UserSessionGetActiveListResponse extends - com.google.protobuf.GeneratedMessageLite< - UserSessionGetActiveListResponse, UserSessionGetActiveListResponse.Builder> implements + public static final class UserSessionGetActiveListResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSessionGetActiveListResponse) UserSessionGetActiveListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSessionGetActiveListResponse.newBuilder() to construct. + private UserSessionGetActiveListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSessionGetActiveListResponse() { - session_ = emptyProtobufList(); + session_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSessionGetActiveListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSessionGetActiveListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + session_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + session_.add( + input.readMessage(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + session_ = java.util.Collections.unmodifiableList(session_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.class, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Builder.class); } + public interface SessionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSessionGetActiveListResponse.Session) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 session_id = 1; + * uint64 session_id = 1; + * @return The sessionId. */ long getSessionId(); /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ java.lang.String getAppName(); /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ com.google.protobuf.ByteString getAppNameBytes(); /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ int getAppId(); /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ int getAppBuildVersion(); /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ java.lang.String getAppVersion(); /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ com.google.protobuf.ByteString getAppVersionBytes(); /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ int getPlatformValue(); /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ net.iGap.proto.ProtoGlobal.Platform getPlatform(); /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ java.lang.String getPlatformVersion(); /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ com.google.protobuf.ByteString getPlatformVersionBytes(); /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ int getDeviceValue(); /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ net.iGap.proto.ProtoGlobal.Device getDevice(); /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ java.lang.String getDeviceName(); /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @return The enum numeric value on the wire for language. */ int getLanguageValue(); /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @return The language. */ net.iGap.proto.ProtoGlobal.Language getLanguage(); /** - * optional string country = 11; + * string country = 11; + * @return The country. */ java.lang.String getCountry(); /** - * optional string country = 11; + * string country = 11; + * @return The bytes for country. */ com.google.protobuf.ByteString getCountryBytes(); /** - * optional bool current = 12; + * bool current = 12; + * @return The current. */ boolean getCurrent(); /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return The createTime. */ int getCreateTime(); /** - * optional uint32 active_time = 14; + * uint32 active_time = 14; + * @return The activeTime. */ int getActiveTime(); /** - * optional string ip = 15; + * string ip = 15; + * @return The ip. */ java.lang.String getIp(); /** - * optional string ip = 15; + * string ip = 15; + * @return The bytes for ip. */ com.google.protobuf.ByteString getIpBytes(); @@ -497,557 +930,543 @@ public interface SessionOrBuilder extends /** * Protobuf type {@code proto.UserSessionGetActiveListResponse.Session} */ - public static final class Session extends - com.google.protobuf.GeneratedMessageLite< - Session, Session.Builder> implements + public static final class Session extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSessionGetActiveListResponse.Session) SessionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Session.newBuilder() to construct. + private Session(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private Session() { appName_ = ""; appVersion_ = ""; + platform_ = 0; platformVersion_ = ""; + device_ = 0; deviceName_ = ""; + language_ = 0; country_ = ""; ip_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Session(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Session( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + sessionId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + appName_ = s; + break; + } + case 24: { + + appId_ = input.readUInt32(); + break; + } + case 32: { + + appBuildVersion_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + appVersion_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + platform_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + platformVersion_ = s; + break; + } + case 64: { + int rawValue = input.readEnum(); + + device_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + deviceName_ = s; + break; + } + case 80: { + int rawValue = input.readEnum(); + + language_ = rawValue; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + country_ = s; + break; + } + case 96: { + + current_ = input.readBool(); + break; + } + case 104: { + + createTime_ = input.readUInt32(); + break; + } + case 112: { + + activeTime_ = input.readUInt32(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + ip_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_Session_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_Session_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.class, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder.class); + } + public static final int SESSION_ID_FIELD_NUMBER = 1; private long sessionId_; /** - * optional uint64 session_id = 1; + * uint64 session_id = 1; + * @return The sessionId. */ + @java.lang.Override public long getSessionId() { return sessionId_; } - /** - * optional uint64 session_id = 1; - */ - private void setSessionId(long value) { - - sessionId_ = value; - } - /** - * optional uint64 session_id = 1; - */ - private void clearSessionId() { - - sessionId_ = 0L; - } public static final int APP_NAME_FIELD_NUMBER = 2; - private java.lang.String appName_; + private volatile java.lang.Object appName_; /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ + @java.lang.Override public java.lang.String getAppName() { - return appName_; + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ + @java.lang.Override public com.google.protobuf.ByteString getAppNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appName_); - } - /** - * optional string app_name = 2; - */ - private void setAppName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appName_ = value; - } - /** - * optional string app_name = 2; - */ - private void clearAppName() { - - appName_ = getDefaultInstance().getAppName(); - } - /** - * optional string app_name = 2; - */ - private void setAppNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appName_ = value.toStringUtf8(); + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int APP_ID_FIELD_NUMBER = 3; private int appId_; /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 3; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 3; - */ - private void clearAppId() { - - appId_ = 0; - } public static final int APP_BUILD_VERSION_FIELD_NUMBER = 4; private int appBuildVersion_; /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { return appBuildVersion_; } - /** - * optional uint32 app_build_version = 4; - */ - private void setAppBuildVersion(int value) { - - appBuildVersion_ = value; - } - /** - * optional uint32 app_build_version = 4; - */ - private void clearAppBuildVersion() { - - appBuildVersion_ = 0; - } public static final int APP_VERSION_FIELD_NUMBER = 5; - private java.lang.String appVersion_; + private volatile java.lang.Object appVersion_; /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ + @java.lang.Override public java.lang.String getAppVersion() { - return appVersion_; + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getAppVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appVersion_); - } - /** - * optional string app_version = 5; - */ - private void setAppVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appVersion_ = value; - } - /** - * optional string app_version = 5; - */ - private void clearAppVersion() { - - appVersion_ = getDefaultInstance().getAppVersion(); - } - /** - * optional string app_version = 5; - */ - private void setAppVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appVersion_ = value.toStringUtf8(); + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PLATFORM_FIELD_NUMBER = 6; private int platform_; /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { + @java.lang.Override public int getPlatformValue() { return platform_; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ - public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.forNumber(platform_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } - /** - * optional .proto.Platform platform = 6; - */ - private void setPlatformValue(int value) { - platform_ = value; - } - /** - * optional .proto.Platform platform = 6; - */ - private void setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - if (value == null) { - throw new NullPointerException(); - } - - platform_ = value.getNumber(); - } - /** - * optional .proto.Platform platform = 6; - */ - private void clearPlatform() { - - platform_ = 0; - } public static final int PLATFORM_VERSION_FIELD_NUMBER = 7; - private java.lang.String platformVersion_; + private volatile java.lang.Object platformVersion_; /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ + @java.lang.Override public java.lang.String getPlatformVersion() { - return platformVersion_; + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getPlatformVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(platformVersion_); - } - /** - * optional string platform_version = 7; - */ - private void setPlatformVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - platformVersion_ = value; - } - /** - * optional string platform_version = 7; - */ - private void clearPlatformVersion() { - - platformVersion_ = getDefaultInstance().getPlatformVersion(); - } - /** - * optional string platform_version = 7; - */ - private void setPlatformVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - platformVersion_ = value.toStringUtf8(); + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DEVICE_FIELD_NUMBER = 8; private int device_; /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { + @java.lang.Override public int getDeviceValue() { return device_; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ - public net.iGap.proto.ProtoGlobal.Device getDevice() { - net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.forNumber(device_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } - /** - * optional .proto.Device device = 8; - */ - private void setDeviceValue(int value) { - device_ = value; - } - /** - * optional .proto.Device device = 8; - */ - private void setDevice(net.iGap.proto.ProtoGlobal.Device value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value.getNumber(); - } - /** - * optional .proto.Device device = 8; - */ - private void clearDevice() { - - device_ = 0; - } public static final int DEVICE_NAME_FIELD_NUMBER = 9; - private java.lang.String deviceName_; + private volatile java.lang.Object deviceName_; /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ + @java.lang.Override public java.lang.String getDeviceName() { - return deviceName_; + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(deviceName_); - } - /** - * optional string device_name = 9; - */ - private void setDeviceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceName_ = value; - } - /** - * optional string device_name = 9; - */ - private void clearDeviceName() { - - deviceName_ = getDefaultInstance().getDeviceName(); - } - /** - * optional string device_name = 9; - */ - private void setDeviceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceName_ = value.toStringUtf8(); + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LANGUAGE_FIELD_NUMBER = 10; private int language_; /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @return The enum numeric value on the wire for language. */ - public int getLanguageValue() { + @java.lang.Override public int getLanguageValue() { return language_; } /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @return The language. */ - public net.iGap.proto.ProtoGlobal.Language getLanguage() { - net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.forNumber(language_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Language getLanguage() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; } - /** - * optional .proto.Language language = 10; - */ - private void setLanguageValue(int value) { - language_ = value; - } - /** - * optional .proto.Language language = 10; - */ - private void setLanguage(net.iGap.proto.ProtoGlobal.Language value) { - if (value == null) { - throw new NullPointerException(); - } - - language_ = value.getNumber(); - } - /** - * optional .proto.Language language = 10; - */ - private void clearLanguage() { - - language_ = 0; - } public static final int COUNTRY_FIELD_NUMBER = 11; - private java.lang.String country_; + private volatile java.lang.Object country_; /** - * optional string country = 11; + * string country = 11; + * @return The country. */ + @java.lang.Override public java.lang.String getCountry() { - return country_; + java.lang.Object ref = country_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + country_ = s; + return s; + } } /** - * optional string country = 11; + * string country = 11; + * @return The bytes for country. */ + @java.lang.Override public com.google.protobuf.ByteString getCountryBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(country_); - } - /** - * optional string country = 11; - */ - private void setCountry( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - country_ = value; - } - /** - * optional string country = 11; - */ - private void clearCountry() { - - country_ = getDefaultInstance().getCountry(); - } - /** - * optional string country = 11; - */ - private void setCountryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - country_ = value.toStringUtf8(); + java.lang.Object ref = country_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + country_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CURRENT_FIELD_NUMBER = 12; private boolean current_; /** - * optional bool current = 12; + * bool current = 12; + * @return The current. */ + @java.lang.Override public boolean getCurrent() { return current_; } - /** - * optional bool current = 12; - */ - private void setCurrent(boolean value) { - - current_ = value; - } - /** - * optional bool current = 12; - */ - private void clearCurrent() { - - current_ = false; - } public static final int CREATE_TIME_FIELD_NUMBER = 13; private int createTime_; /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return The createTime. */ + @java.lang.Override public int getCreateTime() { return createTime_; } - /** - * optional uint32 create_time = 13; - */ - private void setCreateTime(int value) { - - createTime_ = value; - } - /** - * optional uint32 create_time = 13; - */ - private void clearCreateTime() { - - createTime_ = 0; - } public static final int ACTIVE_TIME_FIELD_NUMBER = 14; private int activeTime_; /** - * optional uint32 active_time = 14; + * uint32 active_time = 14; + * @return The activeTime. */ + @java.lang.Override public int getActiveTime() { return activeTime_; } - /** - * optional uint32 active_time = 14; - */ - private void setActiveTime(int value) { - - activeTime_ = value; - } - /** - * optional uint32 active_time = 14; - */ - private void clearActiveTime() { - - activeTime_ = 0; - } public static final int IP_FIELD_NUMBER = 15; - private java.lang.String ip_; + private volatile java.lang.Object ip_; /** - * optional string ip = 15; + * string ip = 15; + * @return The ip. */ + @java.lang.Override public java.lang.String getIp() { - return ip_; + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } } /** - * optional string ip = 15; + * string ip = 15; + * @return The bytes for ip. */ + @java.lang.Override public com.google.protobuf.ByteString getIpBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(ip_); - } - /** - * optional string ip = 15; - */ - private void setIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ip_ = value; - } - /** - * optional string ip = 15; - */ - private void clearIp() { - - ip_ = getDefaultInstance().getIp(); + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string ip = 15; - */ - private void setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ip_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sessionId_ != 0L) { output.writeUInt64(1, sessionId_); } - if (!appName_.isEmpty()) { - output.writeString(2, getAppName()); + if (!getAppNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appName_); } if (appId_ != 0) { output.writeUInt32(3, appId_); @@ -1055,26 +1474,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (appBuildVersion_ != 0) { output.writeUInt32(4, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - output.writeString(5, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { output.writeEnum(6, platform_); } - if (!platformVersion_.isEmpty()) { - output.writeString(7, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { output.writeEnum(8, device_); } - if (!deviceName_.isEmpty()) { - output.writeString(9, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, deviceName_); } if (language_ != net.iGap.proto.ProtoGlobal.Language.EN_US.getNumber()) { output.writeEnum(10, language_); } - if (!country_.isEmpty()) { - output.writeString(11, getCountry()); + if (!getCountryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, country_); } if (current_ != false) { output.writeBool(12, current_); @@ -1085,13 +1504,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (activeTime_ != 0) { output.writeUInt32(14, activeTime_); } - if (!ip_.isEmpty()) { - output.writeString(15, getIp()); + if (!getIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, ip_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1099,9 +1520,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, sessionId_); } - if (!appName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAppName()); + if (!getAppNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appName_); } if (appId_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1111,33 +1531,29 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, platform_); } - if (!platformVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, device_); } - if (!deviceName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, deviceName_); } if (language_ != net.iGap.proto.ProtoGlobal.Language.EN_US.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, language_); } - if (!country_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(11, getCountry()); + if (!getCountryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, country_); } if (current_ != false) { size += com.google.protobuf.CodedOutputStream @@ -1151,851 +1567,1321 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(14, activeTime_); } - if (!ip_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(15, getIp()); + if (!getIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, ip_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session other = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session) obj; + + if (getSessionId() + != other.getSessionId()) return false; + if (!getAppName() + .equals(other.getAppName())) return false; + if (getAppId() + != other.getAppId()) return false; + if (getAppBuildVersion() + != other.getAppBuildVersion()) return false; + if (!getAppVersion() + .equals(other.getAppVersion())) return false; + if (platform_ != other.platform_) return false; + if (!getPlatformVersion() + .equals(other.getPlatformVersion())) return false; + if (device_ != other.device_) return false; + if (!getDeviceName() + .equals(other.getDeviceName())) return false; + if (language_ != other.language_) return false; + if (!getCountry() + .equals(other.getCountry())) return false; + if (getCurrent() + != other.getCurrent()) return false; + if (getCreateTime() + != other.getCreateTime()) return false; + if (getActiveTime() + != other.getActiveTime()) return false; + if (!getIp() + .equals(other.getIp())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSessionId()); + hash = (37 * hash) + APP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAppName().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + hash = (37 * hash) + APP_BUILD_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppBuildVersion(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + platform_; + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + device_; + hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceName().hashCode(); + hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + hash = (37 * hash) + COUNTRY_FIELD_NUMBER; + hash = (53 * hash) + getCountry().hashCode(); + hash = (37 * hash) + CURRENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCurrent()); + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime(); + hash = (37 * hash) + ACTIVE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getActiveTime(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSessionGetActiveListResponse.Session} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSessionGetActiveListResponse.Session) net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.SessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_Session_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_Session_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.class, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sessionId_ = 0L; + + appName_ = ""; + + appId_ = 0; + + appBuildVersion_ = 0; + + appVersion_ = ""; + + platform_ = 0; + + platformVersion_ = ""; + + device_ = 0; + + deviceName_ = ""; + + language_ = 0; + + country_ = ""; + + current_ = false; + + createTime_ = 0; + + activeTime_ = 0; + + ip_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_Session_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session build() { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session buildPartial() { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session result = new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session(this); + result.sessionId_ = sessionId_; + result.appName_ = appName_; + result.appId_ = appId_; + result.appBuildVersion_ = appBuildVersion_; + result.appVersion_ = appVersion_; + result.platform_ = platform_; + result.platformVersion_ = platformVersion_; + result.device_ = device_; + result.deviceName_ = deviceName_; + result.language_ = language_; + result.country_ = country_; + result.current_ = current_; + result.createTime_ = createTime_; + result.activeTime_ = activeTime_; + result.ip_ = ip_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session) { + return mergeFrom((net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session other) { + if (other == net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.getDefaultInstance()) return this; + if (other.getSessionId() != 0L) { + setSessionId(other.getSessionId()); + } + if (!other.getAppName().isEmpty()) { + appName_ = other.appName_; + onChanged(); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + if (other.getAppBuildVersion() != 0) { + setAppBuildVersion(other.getAppBuildVersion()); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + onChanged(); + } + if (other.platform_ != 0) { + setPlatformValue(other.getPlatformValue()); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + onChanged(); + } + if (other.device_ != 0) { + setDeviceValue(other.getDeviceValue()); + } + if (!other.getDeviceName().isEmpty()) { + deviceName_ = other.deviceName_; + onChanged(); + } + if (other.language_ != 0) { + setLanguageValue(other.getLanguageValue()); + } + if (!other.getCountry().isEmpty()) { + country_ = other.country_; + onChanged(); + } + if (other.getCurrent() != false) { + setCurrent(other.getCurrent()); + } + if (other.getCreateTime() != 0) { + setCreateTime(other.getCreateTime()); + } + if (other.getActiveTime() != 0) { + setActiveTime(other.getActiveTime()); + } + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long sessionId_ ; /** - * optional uint64 session_id = 1; + * uint64 session_id = 1; + * @return The sessionId. */ + @java.lang.Override public long getSessionId() { - return instance.getSessionId(); + return sessionId_; } /** - * optional uint64 session_id = 1; + * uint64 session_id = 1; + * @param value The sessionId to set. + * @return This builder for chaining. */ public Builder setSessionId(long value) { - copyOnWrite(); - instance.setSessionId(value); + + sessionId_ = value; + onChanged(); return this; } /** - * optional uint64 session_id = 1; + * uint64 session_id = 1; + * @return This builder for chaining. */ public Builder clearSessionId() { - copyOnWrite(); - instance.clearSessionId(); + + sessionId_ = 0L; + onChanged(); return this; } + private java.lang.Object appName_ = ""; /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ public java.lang.String getAppName() { - return instance.getAppName(); + java.lang.Object ref = appName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ public com.google.protobuf.ByteString getAppNameBytes() { - return instance.getAppNameBytes(); + java.lang.Object ref = appName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @param value The appName to set. + * @return This builder for chaining. */ public Builder setAppName( java.lang.String value) { - copyOnWrite(); - instance.setAppName(value); + if (value == null) { + throw new NullPointerException(); + } + + appName_ = value; + onChanged(); return this; } /** - * optional string app_name = 2; + * string app_name = 2; + * @return This builder for chaining. */ public Builder clearAppName() { - copyOnWrite(); - instance.clearAppName(); + + appName_ = getDefaultInstance().getAppName(); + onChanged(); return this; } /** - * optional string app_name = 2; + * string app_name = 2; + * @param value The bytes for appName to set. + * @return This builder for chaining. */ public Builder setAppNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appName_ = value; + onChanged(); return this; } + private int appId_ ; /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + private int appBuildVersion_ ; /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { - return instance.getAppBuildVersion(); + return appBuildVersion_; } /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @param value The appBuildVersion to set. + * @return This builder for chaining. */ public Builder setAppBuildVersion(int value) { - copyOnWrite(); - instance.setAppBuildVersion(value); + + appBuildVersion_ = value; + onChanged(); return this; } /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return This builder for chaining. */ public Builder clearAppBuildVersion() { - copyOnWrite(); - instance.clearAppBuildVersion(); + + appBuildVersion_ = 0; + onChanged(); return this; } + private java.lang.Object appVersion_ = ""; /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ public java.lang.String getAppVersion() { - return instance.getAppVersion(); + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ public com.google.protobuf.ByteString getAppVersionBytes() { - return instance.getAppVersionBytes(); + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @param value The appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersion( java.lang.String value) { - copyOnWrite(); - instance.setAppVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + appVersion_ = value; + onChanged(); return this; } /** - * optional string app_version = 5; + * string app_version = 5; + * @return This builder for chaining. */ public Builder clearAppVersion() { - copyOnWrite(); - instance.clearAppVersion(); + + appVersion_ = getDefaultInstance().getAppVersion(); + onChanged(); return this; } /** - * optional string app_version = 5; + * string app_version = 5; + * @param value The bytes for appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appVersion_ = value; + onChanged(); return this; } + private int platform_ = 0; /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { - return instance.getPlatformValue(); + @java.lang.Override public int getPlatformValue() { + return platform_; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @param value The enum numeric value on the wire for platform to set. + * @return This builder for chaining. */ public Builder setPlatformValue(int value) { - copyOnWrite(); - instance.setPlatformValue(value); + + platform_ = value; + onChanged(); return this; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - return instance.getPlatform(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); + return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @param value The platform to set. + * @return This builder for chaining. */ public Builder setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - copyOnWrite(); - instance.setPlatform(value); + if (value == null) { + throw new NullPointerException(); + } + + platform_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return This builder for chaining. */ public Builder clearPlatform() { - copyOnWrite(); - instance.clearPlatform(); + + platform_ = 0; + onChanged(); return this; } + private java.lang.Object platformVersion_ = ""; /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ public java.lang.String getPlatformVersion() { - return instance.getPlatformVersion(); + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ public com.google.protobuf.ByteString getPlatformVersionBytes() { - return instance.getPlatformVersionBytes(); + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @param value The platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersion( java.lang.String value) { - copyOnWrite(); - instance.setPlatformVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); return this; } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return This builder for chaining. */ public Builder clearPlatformVersion() { - copyOnWrite(); - instance.clearPlatformVersion(); + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); return this; } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPlatformVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); return this; } + private int device_ = 0; /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { - return instance.getDeviceValue(); + @java.lang.Override public int getDeviceValue() { + return device_; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @param value The enum numeric value on the wire for device to set. + * @return This builder for chaining. */ public Builder setDeviceValue(int value) { - copyOnWrite(); - instance.setDeviceValue(value); + + device_ = value; + onChanged(); return this; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { - return instance.getDevice(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); + return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @param value The device to set. + * @return This builder for chaining. */ public Builder setDevice(net.iGap.proto.ProtoGlobal.Device value) { - copyOnWrite(); - instance.setDevice(value); + if (value == null) { + throw new NullPointerException(); + } + + device_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return This builder for chaining. */ public Builder clearDevice() { - copyOnWrite(); - instance.clearDevice(); + + device_ = 0; + onChanged(); return this; } + private java.lang.Object deviceName_ = ""; /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ public java.lang.String getDeviceName() { - return instance.getDeviceName(); + java.lang.Object ref = deviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { - return instance.getDeviceNameBytes(); + java.lang.Object ref = deviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @param value The deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { - copyOnWrite(); - instance.setDeviceName(value); + if (value == null) { + throw new NullPointerException(); + } + + deviceName_ = value; + onChanged(); return this; } /** - * optional string device_name = 9; + * string device_name = 9; + * @return This builder for chaining. */ public Builder clearDeviceName() { - copyOnWrite(); - instance.clearDeviceName(); + + deviceName_ = getDefaultInstance().getDeviceName(); + onChanged(); return this; } /** - * optional string device_name = 9; + * string device_name = 9; + * @param value The bytes for deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDeviceNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceName_ = value; + onChanged(); return this; } + private int language_ = 0; /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @return The enum numeric value on the wire for language. */ - public int getLanguageValue() { - return instance.getLanguageValue(); + @java.lang.Override public int getLanguageValue() { + return language_; } /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @param value The enum numeric value on the wire for language to set. + * @return This builder for chaining. */ public Builder setLanguageValue(int value) { - copyOnWrite(); - instance.setLanguageValue(value); + + language_ = value; + onChanged(); return this; } /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @return The language. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Language getLanguage() { - return instance.getLanguage(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); + return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; } /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @param value The language to set. + * @return This builder for chaining. */ public Builder setLanguage(net.iGap.proto.ProtoGlobal.Language value) { - copyOnWrite(); - instance.setLanguage(value); + if (value == null) { + throw new NullPointerException(); + } + + language_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Language language = 10; + * .proto.Language language = 10; + * @return This builder for chaining. */ public Builder clearLanguage() { - copyOnWrite(); - instance.clearLanguage(); + + language_ = 0; + onChanged(); return this; } + private java.lang.Object country_ = ""; /** - * optional string country = 11; + * string country = 11; + * @return The country. */ public java.lang.String getCountry() { - return instance.getCountry(); + java.lang.Object ref = country_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + country_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string country = 11; + * string country = 11; + * @return The bytes for country. */ public com.google.protobuf.ByteString getCountryBytes() { - return instance.getCountryBytes(); + java.lang.Object ref = country_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + country_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string country = 11; + * string country = 11; + * @param value The country to set. + * @return This builder for chaining. */ public Builder setCountry( java.lang.String value) { - copyOnWrite(); - instance.setCountry(value); + if (value == null) { + throw new NullPointerException(); + } + + country_ = value; + onChanged(); return this; } /** - * optional string country = 11; + * string country = 11; + * @return This builder for chaining. */ public Builder clearCountry() { - copyOnWrite(); - instance.clearCountry(); + + country_ = getDefaultInstance().getCountry(); + onChanged(); return this; } /** - * optional string country = 11; + * string country = 11; + * @param value The bytes for country to set. + * @return This builder for chaining. */ public Builder setCountryBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCountryBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + country_ = value; + onChanged(); return this; } + private boolean current_ ; /** - * optional bool current = 12; + * bool current = 12; + * @return The current. */ + @java.lang.Override public boolean getCurrent() { - return instance.getCurrent(); + return current_; } /** - * optional bool current = 12; + * bool current = 12; + * @param value The current to set. + * @return This builder for chaining. */ public Builder setCurrent(boolean value) { - copyOnWrite(); - instance.setCurrent(value); + + current_ = value; + onChanged(); return this; } /** - * optional bool current = 12; + * bool current = 12; + * @return This builder for chaining. */ public Builder clearCurrent() { - copyOnWrite(); - instance.clearCurrent(); + + current_ = false; + onChanged(); return this; } + private int createTime_ ; /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return The createTime. */ + @java.lang.Override public int getCreateTime() { - return instance.getCreateTime(); + return createTime_; } /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @param value The createTime to set. + * @return This builder for chaining. */ public Builder setCreateTime(int value) { - copyOnWrite(); - instance.setCreateTime(value); + + createTime_ = value; + onChanged(); return this; } /** - * optional uint32 create_time = 13; + * uint32 create_time = 13; + * @return This builder for chaining. */ public Builder clearCreateTime() { - copyOnWrite(); - instance.clearCreateTime(); + + createTime_ = 0; + onChanged(); return this; } + private int activeTime_ ; /** - * optional uint32 active_time = 14; + * uint32 active_time = 14; + * @return The activeTime. */ + @java.lang.Override public int getActiveTime() { - return instance.getActiveTime(); + return activeTime_; } /** - * optional uint32 active_time = 14; + * uint32 active_time = 14; + * @param value The activeTime to set. + * @return This builder for chaining. */ public Builder setActiveTime(int value) { - copyOnWrite(); - instance.setActiveTime(value); + + activeTime_ = value; + onChanged(); return this; } /** - * optional uint32 active_time = 14; + * uint32 active_time = 14; + * @return This builder for chaining. */ public Builder clearActiveTime() { - copyOnWrite(); - instance.clearActiveTime(); + + activeTime_ = 0; + onChanged(); return this; } + private java.lang.Object ip_ = ""; /** - * optional string ip = 15; + * string ip = 15; + * @return The ip. */ public java.lang.String getIp() { - return instance.getIp(); + java.lang.Object ref = ip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string ip = 15; + * string ip = 15; + * @return The bytes for ip. */ public com.google.protobuf.ByteString getIpBytes() { - return instance.getIpBytes(); + java.lang.Object ref = ip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string ip = 15; + * string ip = 15; + * @param value The ip to set. + * @return This builder for chaining. */ public Builder setIp( java.lang.String value) { - copyOnWrite(); - instance.setIp(value); + if (value == null) { + throw new NullPointerException(); + } + + ip_ = value; + onChanged(); return this; } /** - * optional string ip = 15; + * string ip = 15; + * @return This builder for chaining. */ public Builder clearIp() { - copyOnWrite(); - instance.clearIp(); + + ip_ = getDefaultInstance().getIp(); + onChanged(); return this; } /** - * optional string ip = 15; + * string ip = 15; + * @param value The bytes for ip to set. + * @return This builder for chaining. */ public Builder setIpBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setIpBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ip_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserSessionGetActiveListResponse.Session) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session other = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session) arg1; - sessionId_ = visitor.visitLong(sessionId_ != 0L, sessionId_, - other.sessionId_ != 0L, other.sessionId_); - appName_ = visitor.visitString(!appName_.isEmpty(), appName_, - !other.appName_.isEmpty(), other.appName_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - appBuildVersion_ = visitor.visitInt(appBuildVersion_ != 0, appBuildVersion_, - other.appBuildVersion_ != 0, other.appBuildVersion_); - appVersion_ = visitor.visitString(!appVersion_.isEmpty(), appVersion_, - !other.appVersion_.isEmpty(), other.appVersion_); - platform_ = visitor.visitInt(platform_ != 0, platform_, other.platform_ != 0, other.platform_); - platformVersion_ = visitor.visitString(!platformVersion_.isEmpty(), platformVersion_, - !other.platformVersion_.isEmpty(), other.platformVersion_); - device_ = visitor.visitInt(device_ != 0, device_, other.device_ != 0, other.device_); - deviceName_ = visitor.visitString(!deviceName_.isEmpty(), deviceName_, - !other.deviceName_.isEmpty(), other.deviceName_); - language_ = visitor.visitInt(language_ != 0, language_, other.language_ != 0, other.language_); - country_ = visitor.visitString(!country_.isEmpty(), country_, - !other.country_.isEmpty(), other.country_); - current_ = visitor.visitBoolean(current_ != false, current_, - other.current_ != false, other.current_); - createTime_ = visitor.visitInt(createTime_ != 0, createTime_, - other.createTime_ != 0, other.createTime_); - activeTime_ = visitor.visitInt(activeTime_ != 0, activeTime_, - other.activeTime_ != 0, other.activeTime_); - ip_ = visitor.visitString(!ip_.isEmpty(), ip_, - !other.ip_.isEmpty(), other.ip_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - sessionId_ = input.readUInt64(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - appName_ = s; - break; - } - case 24: { - - appId_ = input.readUInt32(); - break; - } - case 32: { - - appBuildVersion_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - appVersion_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - - platform_ = rawValue; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - platformVersion_ = s; - break; - } - case 64: { - int rawValue = input.readEnum(); - - device_ = rawValue; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - deviceName_ = s; - break; - } - case 80: { - int rawValue = input.readEnum(); - - language_ = rawValue; - break; - } - case 90: { - String s = input.readStringRequireUtf8(); - - country_ = s; - break; - } - case 96: { - - current_ = input.readBool(); - break; - } - case 104: { - - createTime_ = input.readUInt32(); - break; - } - case 112: { - - activeTime_ = input.readUInt32(); - break; - } - case 122: { - String s = input.readStringRequireUtf8(); - - ip_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserSessionGetActiveListResponse.Session) + } + // @@protoc_insertion_point(class_scope:proto.UserSessionGetActiveListResponse.Session) private static final net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new Session(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session(); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Session parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Session(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private int bitField0_; public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int SESSION_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList session_; + private java.util.List session_; /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ + @java.lang.Override public java.util.List getSessionList() { return session_; } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ + @java.lang.Override public java.util.List getSessionOrBuilderList() { return session_; @@ -2003,108 +2889,38 @@ public java.util.Listrepeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ + @java.lang.Override public int getSessionCount() { return session_.size(); } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session getSession(int index) { return session_.get(index); } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ + @java.lang.Override public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.SessionOrBuilder getSessionOrBuilder( int index) { return session_.get(index); } - private void ensureSessionIsMutable() { - if (!session_.isModifiable()) { - session_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(session_); - } - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void setSession( - int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSessionIsMutable(); - session_.set(index, value); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void setSession( - int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder builderForValue) { - ensureSessionIsMutable(); - session_.set(index, builderForValue.build()); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void addSession(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSessionIsMutable(); - session_.add(value); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void addSession( - int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSessionIsMutable(); - session_.add(index, value); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void addSession( - net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder builderForValue) { - ensureSessionIsMutable(); - session_.add(builderForValue.build()); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void addSession( - int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder builderForValue) { - ensureSessionIsMutable(); - session_.add(index, builderForValue.build()); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void addAllSession( - java.lang.Iterable values) { - ensureSessionIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, session_); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void clearSession() { - session_ = emptyProtobufList(); - } - /** - * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - */ - private void removeSession(int index) { - ensureSessionIsMutable(); - session_.remove(index); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -2113,10 +2929,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < session_.size(); i++) { output.writeMessage(2, session_.get(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2128,162 +2946,517 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, session_.get(i)); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse other = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getSessionList() + .equals(other.getSessionList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getSessionCount() > 0) { + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSessionList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSessionGetActiveListResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSessionGetActiveListResponse) net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.class, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSessionFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (sessionBuilder_ == null) { + session_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sessionBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSessionGetActiveList.internal_static_proto_UserSessionGetActiveListResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse build() { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse buildPartial() { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse result = new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse(this); + int from_bitField0_ = bitField0_; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (sessionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + session_ = java.util.Collections.unmodifiableList(session_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.session_ = session_; + } else { + result.session_ = sessionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse) { + return mergeFrom((net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse other) { + if (other == net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (sessionBuilder_ == null) { + if (!other.session_.isEmpty()) { + if (session_.isEmpty()) { + session_ = other.session_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSessionIsMutable(); + session_.addAll(other.session_); + } + onChanged(); + } + } else { + if (!other.session_.isEmpty()) { + if (sessionBuilder_.isEmpty()) { + sessionBuilder_.dispose(); + sessionBuilder_ = null; + session_ = other.session_; + bitField0_ = (bitField0_ & ~0x00000001); + sessionBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSessionFieldBuilder() : null; + } else { + sessionBuilder_.addAllMessages(other.session_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List session_ = + java.util.Collections.emptyList(); + private void ensureSessionIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + session_ = new java.util.ArrayList(session_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.SessionOrBuilder> sessionBuilder_; /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ public java.util.List getSessionList() { - return java.util.Collections.unmodifiableList( - instance.getSessionList()); + if (sessionBuilder_ == null) { + return java.util.Collections.unmodifiableList(session_); + } else { + return sessionBuilder_.getMessageList(); + } } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ public int getSessionCount() { - return instance.getSessionCount(); - }/** + if (sessionBuilder_ == null) { + return session_.size(); + } else { + return sessionBuilder_.getCount(); + } + } + /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session getSession(int index) { - return instance.getSession(index); + if (sessionBuilder_ == null) { + return session_.get(index); + } else { + return sessionBuilder_.getMessage(index); + } } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ public Builder setSession( int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session value) { - copyOnWrite(); - instance.setSession(index, value); + if (sessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionIsMutable(); + session_.set(index, value); + onChanged(); + } else { + sessionBuilder_.setMessage(index, value); + } return this; } /** @@ -2291,16 +3464,29 @@ public Builder setSession( */ public Builder setSession( int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder builderForValue) { - copyOnWrite(); - instance.setSession(index, builderForValue); + if (sessionBuilder_ == null) { + ensureSessionIsMutable(); + session_.set(index, builderForValue.build()); + onChanged(); + } else { + sessionBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ public Builder addSession(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session value) { - copyOnWrite(); - instance.addSession(value); + if (sessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionIsMutable(); + session_.add(value); + onChanged(); + } else { + sessionBuilder_.addMessage(value); + } return this; } /** @@ -2308,8 +3494,16 @@ public Builder addSession(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessi */ public Builder addSession( int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session value) { - copyOnWrite(); - instance.addSession(index, value); + if (sessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionIsMutable(); + session_.add(index, value); + onChanged(); + } else { + sessionBuilder_.addMessage(index, value); + } return this; } /** @@ -2317,8 +3511,13 @@ public Builder addSession( */ public Builder addSession( net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder builderForValue) { - copyOnWrite(); - instance.addSession(builderForValue); + if (sessionBuilder_ == null) { + ensureSessionIsMutable(); + session_.add(builderForValue.build()); + onChanged(); + } else { + sessionBuilder_.addMessage(builderForValue.build()); + } return this; } /** @@ -2326,8 +3525,13 @@ public Builder addSession( */ public Builder addSession( int index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder builderForValue) { - copyOnWrite(); - instance.addSession(index, builderForValue); + if (sessionBuilder_ == null) { + ensureSessionIsMutable(); + session_.add(index, builderForValue.build()); + onChanged(); + } else { + sessionBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** @@ -2335,146 +3539,230 @@ public Builder addSession( */ public Builder addAllSession( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSession(values); + if (sessionBuilder_ == null) { + ensureSessionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, session_); + onChanged(); + } else { + sessionBuilder_.addAllMessages(values); + } return this; } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ public Builder clearSession() { - copyOnWrite(); - instance.clearSession(); + if (sessionBuilder_ == null) { + session_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sessionBuilder_.clear(); + } return this; } /** * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; */ public Builder removeSession(int index) { - copyOnWrite(); - instance.removeSession(index); + if (sessionBuilder_ == null) { + ensureSessionIsMutable(); + session_.remove(index); + onChanged(); + } else { + sessionBuilder_.remove(index); + } return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserSessionGetActiveListResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - session_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse other = (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - session_= visitor.visitList(session_, other.session_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!session_.isModifiable()) { - session_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(session_); - } - session_.add( - input.readMessage(net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder getSessionBuilder( + int index) { + return getSessionFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.SessionOrBuilder getSessionOrBuilder( + int index) { + if (sessionBuilder_ == null) { + return session_.get(index); } else { + return sessionBuilder_.getMessageOrBuilder(index); } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + } + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + public java.util.List + getSessionOrBuilderList() { + if (sessionBuilder_ != null) { + return sessionBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(session_); } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder addSessionBuilder() { + return getSessionFieldBuilder().addBuilder( + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.getDefaultInstance()); + } + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder addSessionBuilder( + int index) { + return getSessionFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.getDefaultInstance()); + } + /** + * repeated .proto.UserSessionGetActiveListResponse.Session session = 2; + */ + public java.util.List + getSessionBuilderList() { + return getSessionFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.SessionOrBuilder> + getSessionFieldBuilder() { + if (sessionBuilder_ == null) { + sessionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.Session.Builder, net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse.SessionOrBuilder>( + session_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + session_ = null; } + return sessionBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.UserSessionGetActiveListResponse) + } // @@protoc_insertion_point(class_scope:proto.UserSessionGetActiveListResponse) private static final net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSessionGetActiveListResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse(); } public static net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSessionGetActiveListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSessionGetActiveListResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionGetActiveList.UserSessionGetActiveListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSessionGetActiveList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSessionGetActiveList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSessionGetActiveListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSessionGetActiveListResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSessionGetActiveListResponse_Session_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSessionGetActiveListResponse_Session_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\036UserSessionGetActiveList.proto\022\005proto\032" + + "\rRequest.proto\032\016Response.proto\032\014Global.p" + + "roto\";\n\030UserSessionGetActiveList\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\"\345\003\n UserSessio" + + "nGetActiveListResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022@\n\007session\030\002 \003(\0132/.pro" + + "to.UserSessionGetActiveListResponse.Sess" + + "ion\032\333\002\n\007Session\022\022\n\nsession_id\030\001 \001(\004\022\020\n\010a" + + "pp_name\030\002 \001(\t\022\016\n\006app_id\030\003 \001(\r\022\031\n\021app_bui" + + "ld_version\030\004 \001(\r\022\023\n\013app_version\030\005 \001(\t\022!\n" + + "\010platform\030\006 \001(\0162\017.proto.Platform\022\030\n\020plat" + + "form_version\030\007 \001(\t\022\035\n\006device\030\010 \001(\0162\r.pro" + + "to.Device\022\023\n\013device_name\030\t \001(\t\022!\n\010langua" + + "ge\030\n \001(\0162\017.proto.Language\022\017\n\007country\030\013 \001" + + "(\t\022\017\n\007current\030\014 \001(\010\022\023\n\013create_time\030\r \001(\r" + + "\022\023\n\013active_time\030\016 \001(\r\022\n\n\002ip\030\017 \001(\tB/\n\016net" + + ".iGap.protoB\035ProtoUserSessionGetActiveLi" + + "stb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserSessionGetActiveList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserSessionGetActiveList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSessionGetActiveList_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserSessionGetActiveListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserSessionGetActiveListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSessionGetActiveListResponse_descriptor, + new java.lang.String[] { "Response", "Session", }); + internal_static_proto_UserSessionGetActiveListResponse_Session_descriptor = + internal_static_proto_UserSessionGetActiveListResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_UserSessionGetActiveListResponse_Session_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSessionGetActiveListResponse_Session_descriptor, + new java.lang.String[] { "SessionId", "AppName", "AppId", "AppBuildVersion", "AppVersion", "Platform", "PlatformVersion", "Device", "DeviceName", "Language", "Country", "Current", "CreateTime", "ActiveTime", "Ip", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserSessionLogout.java b/src/main/java/net/iGap/proto/ProtoUserSessionLogout.java index 890fab3..7bb82f6 100644 --- a/src/main/java/net/iGap/proto/ProtoUserSessionLogout.java +++ b/src/main/java/net/iGap/proto/ProtoUserSessionLogout.java @@ -8,90 +8,170 @@ private ProtoUserSessionLogout() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserSessionLogoutOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSessionLogout) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserSessionLogout} */ - public static final class UserSessionLogout extends - com.google.protobuf.GeneratedMessageLite< - UserSessionLogout, UserSessionLogout.Builder> implements + public static final class UserSessionLogout extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSessionLogout) UserSessionLogoutOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSessionLogout.newBuilder() to construct. + private UserSessionLogout(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSessionLogout() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSessionLogout(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSessionLogout( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.class, net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,326 +179,620 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout other = (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSessionLogout} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSessionLogout) net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.class, net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogout_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout build() { + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout buildPartial() { + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout result = new net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout) { + return mergeFrom((net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout other) { + if (other == net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserSessionLogout) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout other = (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserSessionLogout) + } + // @@protoc_insertion_point(class_scope:proto.UserSessionLogout) private static final net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSessionLogout(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout(); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSessionLogout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSessionLogout(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogout getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserSessionLogoutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSessionLogoutResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserSessionLogoutResponse} */ - public static final class UserSessionLogoutResponse extends - com.google.protobuf.GeneratedMessageLite< - UserSessionLogoutResponse, UserSessionLogoutResponse.Builder> implements + public static final class UserSessionLogoutResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSessionLogoutResponse) UserSessionLogoutResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSessionLogoutResponse.newBuilder() to construct. + private UserSessionLogoutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSessionLogoutResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSessionLogoutResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSessionLogoutResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogoutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogoutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.class, net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -426,244 +800,508 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse other = (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSessionLogoutResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSessionLogoutResponse) net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogoutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogoutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.class, net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSessionLogout.internal_static_proto_UserSessionLogoutResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse build() { + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse buildPartial() { + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse result = new net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse) { + return mergeFrom((net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse other) { + if (other == net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserSessionLogoutResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse other = (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.UserSessionLogoutResponse) + } // @@protoc_insertion_point(class_scope:proto.UserSessionLogoutResponse) private static final net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSessionLogoutResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse(); } public static net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSessionLogoutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSessionLogoutResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionLogout.UserSessionLogoutResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSessionLogout_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSessionLogout_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSessionLogoutResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSessionLogoutResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027UserSessionLogout.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\"4\n\021UserSessionLo" + + "gout\022\037\n\007request\030\001 \001(\0132\016.proto.Request\">\n" + + "\031UserSessionLogoutResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.ResponseB(\n\016net.iGap.protoB" + + "\026ProtoUserSessionLogoutb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserSessionLogout_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserSessionLogout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSessionLogout_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserSessionLogoutResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserSessionLogoutResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSessionLogoutResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserSessionTerminate.java b/src/main/java/net/iGap/proto/ProtoUserSessionTerminate.java index b82415f..0bf3d39 100644 --- a/src/main/java/net/iGap/proto/ProtoUserSessionTerminate.java +++ b/src/main/java/net/iGap/proto/ProtoUserSessionTerminate.java @@ -8,109 +8,181 @@ private ProtoUserSessionTerminate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserSessionTerminateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSessionTerminate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint64 session_id = 2; + * uint64 session_id = 2; + * @return The sessionId. */ long getSessionId(); } /** * Protobuf type {@code proto.UserSessionTerminate} */ - public static final class UserSessionTerminate extends - com.google.protobuf.GeneratedMessageLite< - UserSessionTerminate, UserSessionTerminate.Builder> implements + public static final class UserSessionTerminate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSessionTerminate) UserSessionTerminateOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSessionTerminate.newBuilder() to construct. + private UserSessionTerminate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSessionTerminate() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSessionTerminate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSessionTerminate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + sessionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.class, net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int SESSION_ID_FIELD_NUMBER = 2; private long sessionId_; /** - * optional uint64 session_id = 2; + * uint64 session_id = 2; + * @return The sessionId. */ + @java.lang.Override public long getSessionId() { return sessionId_; } - /** - * optional uint64 session_id = 2; - */ - private void setSessionId(long value) { - - sessionId_ = value; - } - /** - * optional uint64 session_id = 2; - */ - private void clearSessionId() { - - sessionId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sessionId_ != 0L) { output.writeUInt64(2, sessionId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,356 +208,662 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, sessionId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate other = (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getSessionId() + != other.getSessionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSessionId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSessionTerminate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSessionTerminate) net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.class, net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + sessionId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate build() { + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate buildPartial() { + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate result = new net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.sessionId_ = sessionId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate) { + return mergeFrom((net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate other) { + if (other == net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getSessionId() != 0L) { + setSessionId(other.getSessionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private long sessionId_ ; /** - * optional uint64 session_id = 2; + * uint64 session_id = 2; + * @return The sessionId. */ + @java.lang.Override public long getSessionId() { - return instance.getSessionId(); + return sessionId_; } /** - * optional uint64 session_id = 2; + * uint64 session_id = 2; + * @param value The sessionId to set. + * @return This builder for chaining. */ public Builder setSessionId(long value) { - copyOnWrite(); - instance.setSessionId(value); + + sessionId_ = value; + onChanged(); return this; } /** - * optional uint64 session_id = 2; + * uint64 session_id = 2; + * @return This builder for chaining. */ public Builder clearSessionId() { - copyOnWrite(); - instance.clearSessionId(); + + sessionId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserSessionTerminate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate other = (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate) arg1; - request_ = visitor.visitMessage(request_, other.request_); - sessionId_ = visitor.visitLong(sessionId_ != 0L, sessionId_, - other.sessionId_ != 0L, other.sessionId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - sessionId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserSessionTerminate) + } + // @@protoc_insertion_point(class_scope:proto.UserSessionTerminate) private static final net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSessionTerminate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate(); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSessionTerminate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSessionTerminate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserSessionTerminateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSessionTerminateResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserSessionTerminateResponse} */ - public static final class UserSessionTerminateResponse extends - com.google.protobuf.GeneratedMessageLite< - UserSessionTerminateResponse, UserSessionTerminateResponse.Builder> implements + public static final class UserSessionTerminateResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSessionTerminateResponse) UserSessionTerminateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSessionTerminateResponse.newBuilder() to construct. + private UserSessionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSessionTerminateResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSessionTerminateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSessionTerminateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.class, net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -491,244 +871,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse other = (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSessionTerminateResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSessionTerminateResponse) net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.class, net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSessionTerminate.internal_static_proto_UserSessionTerminateResponse_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse build() { + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse buildPartial() { + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse result = new net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse) { + return mergeFrom((net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse other) { + if (other == net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserSessionTerminateResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse other = (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserSessionTerminateResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserSessionTerminateResponse) private static final net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSessionTerminateResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse(); } public static net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSessionTerminateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSessionTerminateResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSessionTerminate.UserSessionTerminateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSessionTerminate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSessionTerminate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSessionTerminateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSessionTerminateResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032UserSessionTerminate.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"K\n\024UserSessio" + + "nTerminate\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\022\n\nsession_id\030\002 \001(\004\"A\n\034UserSessionTe" + + "rminateResponse\022!\n\010response\030\001 \001(\0132\017.prot" + + "o.ResponseB+\n\016net.iGap.protoB\031ProtoUserS" + + "essionTerminateb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserSessionTerminate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserSessionTerminate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSessionTerminate_descriptor, + new java.lang.String[] { "Request", "SessionId", }); + internal_static_proto_UserSessionTerminateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserSessionTerminateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSessionTerminateResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserSetBot.java b/src/main/java/net/iGap/proto/ProtoUserSetBot.java index 46f166e..aa98b07 100644 --- a/src/main/java/net/iGap/proto/ProtoUserSetBot.java +++ b/src/main/java/net/iGap/proto/ProtoUserSetBot.java @@ -8,109 +8,181 @@ private ProtoUserSetBot() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserSetBotOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSetBot) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional bool status = 2; + * bool status = 2; + * @return The status. */ boolean getStatus(); } /** * Protobuf type {@code proto.UserSetBot} */ - public static final class UserSetBot extends - com.google.protobuf.GeneratedMessageLite< - UserSetBot, UserSetBot.Builder> implements + public static final class UserSetBot extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSetBot) UserSetBotOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSetBot.newBuilder() to construct. + private UserSetBot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSetBot() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSetBot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSetBot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSetBot.UserSetBot.class, net.iGap.proto.ProtoUserSetBot.UserSetBot.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int STATUS_FIELD_NUMBER = 2; private boolean status_; /** - * optional bool status = 2; + * bool status = 2; + * @return The status. */ + @java.lang.Override public boolean getStatus() { return status_; } - /** - * optional bool status = 2; - */ - private void setStatus(boolean value) { - - status_ = value; - } - /** - * optional bool status = 2; - */ - private void clearStatus() { - - status_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -119,10 +191,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != false) { output.writeBool(2, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -134,375 +208,673 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSetBot.UserSetBot)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSetBot.UserSetBot other = (net.iGap.proto.ProtoUserSetBot.UserSetBot) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStatus()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSetBot.UserSetBot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSetBot} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSetBot.UserSetBot, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSetBot) net.iGap.proto.ProtoUserSetBot.UserSetBotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSetBot.UserSetBot.class, net.iGap.proto.ProtoUserSetBot.UserSetBot.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSetBot.UserSetBot.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + status_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBot_descriptor; + } + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBot getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSetBot.UserSetBot.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBot build() { + net.iGap.proto.ProtoUserSetBot.UserSetBot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBot buildPartial() { + net.iGap.proto.ProtoUserSetBot.UserSetBot result = new net.iGap.proto.ProtoUserSetBot.UserSetBot(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSetBot.UserSetBot) { + return mergeFrom((net.iGap.proto.ProtoUserSetBot.UserSetBot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSetBot.UserSetBot other) { + if (other == net.iGap.proto.ProtoUserSetBot.UserSetBot.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getStatus() != false) { + setStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSetBot.UserSetBot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSetBot.UserSetBot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private boolean status_ ; /** - * optional bool status = 2; + * bool status = 2; + * @return The status. */ + @java.lang.Override public boolean getStatus() { - return instance.getStatus(); + return status_; } /** - * optional bool status = 2; + * bool status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(boolean value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional bool status = 2; + * bool status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserSetBot) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSetBot.UserSetBot(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSetBot.UserSetBot other = (net.iGap.proto.ProtoUserSetBot.UserSetBot) arg1; - request_ = visitor.visitMessage(request_, other.request_); - status_ = visitor.visitBoolean(status_ != false, status_, - other.status_ != false, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - status_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSetBot.UserSetBot.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserSetBot) + } + // @@protoc_insertion_point(class_scope:proto.UserSetBot) private static final net.iGap.proto.ProtoUserSetBot.UserSetBot DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSetBot(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSetBot.UserSetBot(); } public static net.iGap.proto.ProtoUserSetBot.UserSetBot getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSetBot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSetBot(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserSetBotResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserSetBotResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional bool status = 2; + * bool status = 2; + * @return The status. */ boolean getStatus(); } /** * Protobuf type {@code proto.UserSetBotResponse} */ - public static final class UserSetBotResponse extends - com.google.protobuf.GeneratedMessageLite< - UserSetBotResponse, UserSetBotResponse.Builder> implements + public static final class UserSetBotResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserSetBotResponse) UserSetBotResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSetBotResponse.newBuilder() to construct. + private UserSetBotResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserSetBotResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserSetBotResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSetBotResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.class, net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private boolean status_; /** - * optional bool status = 2; + * bool status = 2; + * @return The status. */ + @java.lang.Override public boolean getStatus() { return status_; } - /** - * optional bool status = 2; - */ - private void setStatus(boolean value) { - - status_ = value; - } - /** - * optional bool status = 2; - */ - private void clearStatus() { - - status_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -511,10 +883,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != false) { output.writeBool(2, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -526,274 +900,550 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserSetBot.UserSetBotResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserSetBot.UserSetBotResponse other = (net.iGap.proto.ProtoUserSetBot.UserSetBotResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getStatus() + != other.getStatus()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStatus()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserSetBot.UserSetBotResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserSetBotResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserSetBot.UserSetBotResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserSetBotResponse) net.iGap.proto.ProtoUserSetBot.UserSetBotResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.class, net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = false; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserSetBot.internal_static_proto_UserSetBotResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBotResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBotResponse build() { + net.iGap.proto.ProtoUserSetBot.UserSetBotResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBotResponse buildPartial() { + net.iGap.proto.ProtoUserSetBot.UserSetBotResponse result = new net.iGap.proto.ProtoUserSetBot.UserSetBotResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserSetBot.UserSetBotResponse) { + return mergeFrom((net.iGap.proto.ProtoUserSetBot.UserSetBotResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserSetBot.UserSetBotResponse other) { + if (other == net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getStatus() != false) { + setStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserSetBot.UserSetBotResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserSetBot.UserSetBotResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private boolean status_ ; /** - * optional bool status = 2; + * bool status = 2; + * @return The status. */ + @java.lang.Override public boolean getStatus() { - return instance.getStatus(); + return status_; } /** - * optional bool status = 2; + * bool status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(boolean value) { - copyOnWrite(); - instance.setStatus(value); + + status_ = value; + onChanged(); return this; } /** - * optional bool status = 2; + * bool status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserSetBotResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserSetBot.UserSetBotResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserSetBot.UserSetBotResponse other = (net.iGap.proto.ProtoUserSetBot.UserSetBotResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitBoolean(status_ != false, status_, - other.status_ != false, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - status_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserSetBot.UserSetBotResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserSetBotResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserSetBotResponse) private static final net.iGap.proto.ProtoUserSetBot.UserSetBotResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserSetBotResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserSetBot.UserSetBotResponse(); } public static net.iGap.proto.ProtoUserSetBot.UserSetBotResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSetBotResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSetBotResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserSetBot.UserSetBotResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSetBot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSetBot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserSetBotResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserSetBotResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020UserSetBot.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"=\n\nUserSetBot\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\022\016\n\006status\030\002 \001(\010\"" + + "G\n\022UserSetBotResponse\022!\n\010response\030\001 \001(\0132" + + "\017.proto.Response\022\016\n\006status\030\002 \001(\010B!\n\016net." + + "iGap.protoB\017ProtoUserSetBotb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserSetBot_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserSetBot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSetBot_descriptor, + new java.lang.String[] { "Request", "Status", }); + internal_static_proto_UserSetBotResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserSetBotResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserSetBotResponse_descriptor, + new java.lang.String[] { "Response", "Status", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeHint.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeHint.java index d9285ab..48164ac 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeHint.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeHint.java @@ -8,35 +8,51 @@ private ProtoUserTwoStepVerificationChangeHint() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationChangeHintOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationChangeHint) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string password = 2; + * string password = 2; + * @return The password. */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); /** - * optional string hint = 3; + * string hint = 3; + * @return The hint. */ java.lang.String getHint(); /** - * optional string hint = 3; + * string hint = 3; + * @return The bytes for hint. */ com.google.protobuf.ByteString getHintBytes(); @@ -44,174 +60,238 @@ public interface UserTwoStepVerificationChangeHintOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationChangeHint} */ - public static final class UserTwoStepVerificationChangeHint extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationChangeHint, UserTwoStepVerificationChangeHint.Builder> implements + public static final class UserTwoStepVerificationChangeHint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationChangeHint) UserTwoStepVerificationChangeHintOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationChangeHint.newBuilder() to construct. + private UserTwoStepVerificationChangeHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationChangeHint() { password_ = ""; hint_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationChangeHint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationChangeHint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + hint_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; + private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ + @java.lang.Override public java.lang.String getPassword() { - return password_; + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); - } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - - password_ = getDefaultInstance().getPassword(); - } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value.toStringUtf8(); + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int HINT_FIELD_NUMBER = 3; - private java.lang.String hint_; + private volatile java.lang.Object hint_; /** - * optional string hint = 3; + * string hint = 3; + * @return The hint. */ + @java.lang.Override public java.lang.String getHint() { - return hint_; + java.lang.Object ref = hint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hint_ = s; + return s; + } } /** - * optional string hint = 3; + * string hint = 3; + * @return The bytes for hint. */ + @java.lang.Override public com.google.protobuf.ByteString getHintBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(hint_); - } - /** - * optional string hint = 3; - */ - private void setHint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hint_ = value; - } - /** - * optional string hint = 3; - */ - private void clearHint() { - - hint_ = getDefaultInstance().getHint(); + java.lang.Object ref = hint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string hint = 3; - */ - private void setHintBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hint_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!password_.isEmpty()) { - output.writeString(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } - if (!hint_.isEmpty()) { - output.writeString(3, getHint()); + if (!getHintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hint_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -219,430 +299,800 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!password_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - if (!hint_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getHint()); + if (!getHintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hint_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getHint() + .equals(other.getHint())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + HINT_FIELD_NUMBER; + hash = (53 * hash) + getHint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeHint} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationChangeHint) net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + password_ = ""; + + hint_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHint_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.getDefaultInstance(); } + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint build() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint result = new net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.password_ = password_; + result.hint_ = hint_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (!other.getHint().isEmpty()) { + hint_ = other.hint_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ public java.lang.String getPassword() { - return instance.getPassword(); + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { - return instance.getPasswordBytes(); + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @return This builder for chaining. */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + + password_ = getDefaultInstance().getPassword(); + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); return this; } + private java.lang.Object hint_ = ""; /** - * optional string hint = 3; + * string hint = 3; + * @return The hint. */ public java.lang.String getHint() { - return instance.getHint(); + java.lang.Object ref = hint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hint_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string hint = 3; + * string hint = 3; + * @return The bytes for hint. */ public com.google.protobuf.ByteString getHintBytes() { - return instance.getHintBytes(); + java.lang.Object ref = hint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string hint = 3; + * string hint = 3; + * @param value The hint to set. + * @return This builder for chaining. */ public Builder setHint( java.lang.String value) { - copyOnWrite(); - instance.setHint(value); + if (value == null) { + throw new NullPointerException(); + } + + hint_ = value; + onChanged(); return this; } /** - * optional string hint = 3; + * string hint = 3; + * @return This builder for chaining. */ public Builder clearHint() { - copyOnWrite(); - instance.clearHint(); + + hint_ = getDefaultInstance().getHint(); + onChanged(); return this; } /** - * optional string hint = 3; + * string hint = 3; + * @param value The bytes for hint to set. + * @return This builder for chaining. */ public Builder setHintBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setHintBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hint_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeHint) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint) arg1; - request_ = visitor.visitMessage(request_, other.request_); - password_ = visitor.visitString(!password_.isEmpty(), password_, - !other.password_.isEmpty(), other.password_); - hint_ = visitor.visitString(!hint_.isEmpty(), hint_, - !other.hint_.isEmpty(), other.hint_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - hint_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeHint) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationChangeHint) private static final net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationChangeHint(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint(); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationChangeHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationChangeHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserTwoStepVerificationChangeHintResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationChangeHintResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeHintResponse} */ - public static final class UserTwoStepVerificationChangeHintResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationChangeHintResponse, UserTwoStepVerificationChangeHintResponse.Builder> implements + public static final class UserTwoStepVerificationChangeHintResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationChangeHintResponse) UserTwoStepVerificationChangeHintResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationChangeHintResponse.newBuilder() to construct. + private UserTwoStepVerificationChangeHintResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationChangeHintResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationChangeHintResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationChangeHintResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHintResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHintResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -650,244 +1100,511 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeHintResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationChangeHintResponse) net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHintResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHintResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.internal_static_proto_UserTwoStepVerificationChangeHintResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeHintResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeHintResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationChangeHintResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationChangeHintResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationChangeHintResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationChangeHintResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeHint.UserTwoStepVerificationChangeHintResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationChangeHint_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationChangeHint_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationChangeHintResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationChangeHintResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\'UserTwoStepVerificationChangeHint.prot" + + "o\022\005proto\032\rRequest.proto\032\016Response.proto\"" + + "d\n!UserTwoStepVerificationChangeHint\022\037\n\007" + + "request\030\001 \001(\0132\016.proto.Request\022\020\n\010passwor" + + "d\030\002 \001(\t\022\014\n\004hint\030\003 \001(\t\"N\n)UserTwoStepVeri" + + "ficationChangeHintResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.ResponseB8\n\016net.iGap.protoB" + + "&ProtoUserTwoStepVerificationChangeHintb" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationChangeHint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationChangeHint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationChangeHint_descriptor, + new java.lang.String[] { "Request", "Password", "Hint", }); + internal_static_proto_UserTwoStepVerificationChangeHintResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationChangeHintResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationChangeHintResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryEmail.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryEmail.java index bce8d65..4c2db0d 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryEmail.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryEmail.java @@ -8,35 +8,51 @@ private ProtoUserTwoStepVerificationChangeRecoveryEmail() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationChangeRecoveryEmailOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationChangeRecoveryEmail) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string password = 2; + * string password = 2; + * @return The password. */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); /** - * optional string email = 3; + * string email = 3; + * @return The email. */ java.lang.String getEmail(); /** - * optional string email = 3; + * string email = 3; + * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); @@ -44,174 +60,238 @@ public interface UserTwoStepVerificationChangeRecoveryEmailOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryEmail} */ - public static final class UserTwoStepVerificationChangeRecoveryEmail extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationChangeRecoveryEmail, UserTwoStepVerificationChangeRecoveryEmail.Builder> implements + public static final class UserTwoStepVerificationChangeRecoveryEmail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationChangeRecoveryEmail) UserTwoStepVerificationChangeRecoveryEmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationChangeRecoveryEmail.newBuilder() to construct. + private UserTwoStepVerificationChangeRecoveryEmail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationChangeRecoveryEmail() { password_ = ""; email_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationChangeRecoveryEmail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationChangeRecoveryEmail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; + private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ + @java.lang.Override public java.lang.String getPassword() { - return password_; + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); - } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - - password_ = getDefaultInstance().getPassword(); - } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value.toStringUtf8(); + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EMAIL_FIELD_NUMBER = 3; - private java.lang.String email_; + private volatile java.lang.Object email_; /** - * optional string email = 3; + * string email = 3; + * @return The email. */ + @java.lang.Override public java.lang.String getEmail() { - return email_; + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } } /** - * optional string email = 3; + * string email = 3; + * @return The bytes for email. */ + @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(email_); - } - /** - * optional string email = 3; - */ - private void setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - } - /** - * optional string email = 3; - */ - private void clearEmail() { - - email_ = getDefaultInstance().getEmail(); + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string email = 3; - */ - private void setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!password_.isEmpty()) { - output.writeString(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } - if (!email_.isEmpty()) { - output.writeString(3, getEmail()); + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -219,365 +299,669 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!password_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - if (!email_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getEmail()); + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryEmail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationChangeRecoveryEmail) net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + password_ = ""; + + email_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail build() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail result = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.password_ = password_; + result.email_ = email_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ public java.lang.String getPassword() { - return instance.getPassword(); + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { - return instance.getPasswordBytes(); + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @return This builder for chaining. */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + + password_ = getDefaultInstance().getPassword(); + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); return this; } + private java.lang.Object email_ = ""; /** - * optional string email = 3; + * string email = 3; + * @return The email. */ public java.lang.String getEmail() { - return instance.getEmail(); + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string email = 3; + * string email = 3; + * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { - return instance.getEmailBytes(); + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string email = 3; + * string email = 3; + * @param value The email to set. + * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { - copyOnWrite(); - instance.setEmail(value); + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); return this; } /** - * optional string email = 3; + * string email = 3; + * @return This builder for chaining. */ public Builder clearEmail() { - copyOnWrite(); - instance.clearEmail(); + + email_ = getDefaultInstance().getEmail(); + onChanged(); return this; } /** - * optional string email = 3; + * string email = 3; + * @param value The bytes for email to set. + * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setEmailBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryEmail) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail) arg1; - request_ = visitor.visitMessage(request_, other.request_); - password_ = visitor.visitString(!password_.isEmpty(), password_, - !other.password_.isEmpty(), other.password_); - email_ = visitor.visitString(!email_.isEmpty(), email_, - !other.email_.isEmpty(), other.email_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - email_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryEmail) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationChangeRecoveryEmail) private static final net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationChangeRecoveryEmail(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail(); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationChangeRecoveryEmail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationChangeRecoveryEmail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationChangeRecoveryEmailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationChangeRecoveryEmailResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ java.lang.String getUnconfirmedEmailPattern(); /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes(); @@ -585,124 +969,190 @@ public interface UserTwoStepVerificationChangeRecoveryEmailResponseOrBuilder ext /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryEmailResponse} */ - public static final class UserTwoStepVerificationChangeRecoveryEmailResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationChangeRecoveryEmailResponse, UserTwoStepVerificationChangeRecoveryEmailResponse.Builder> implements + public static final class UserTwoStepVerificationChangeRecoveryEmailResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationChangeRecoveryEmailResponse) UserTwoStepVerificationChangeRecoveryEmailResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationChangeRecoveryEmailResponse.newBuilder() to construct. + private UserTwoStepVerificationChangeRecoveryEmailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationChangeRecoveryEmailResponse() { unconfirmedEmailPattern_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationChangeRecoveryEmailResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationChangeRecoveryEmailResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + unconfirmedEmailPattern_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER = 2; - private java.lang.String unconfirmedEmailPattern_; + private volatile java.lang.Object unconfirmedEmailPattern_; /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ + @java.lang.Override public java.lang.String getUnconfirmedEmailPattern() { - return unconfirmedEmailPattern_; + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ + @java.lang.Override public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(unconfirmedEmailPattern_); - } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void setUnconfirmedEmailPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - unconfirmedEmailPattern_ = value; - } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void clearUnconfirmedEmailPattern() { - - unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void setUnconfirmedEmailPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - unconfirmedEmailPattern_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!unconfirmedEmailPattern_.isEmpty()) { - output.writeString(2, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unconfirmedEmailPattern_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -710,296 +1160,602 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!unconfirmedEmailPattern_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unconfirmedEmailPattern_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUnconfirmedEmailPattern() + .equals(other.getUnconfirmedEmailPattern())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getUnconfirmedEmailPattern().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryEmailResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationChangeRecoveryEmailResponse) net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + unconfirmedEmailPattern_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.unconfirmedEmailPattern_ = unconfirmedEmailPattern_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUnconfirmedEmailPattern().isEmpty()) { + unconfirmedEmailPattern_ = other.unconfirmedEmailPattern_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object unconfirmedEmailPattern_ = ""; /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ public java.lang.String getUnconfirmedEmailPattern() { - return instance.getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return instance.getUnconfirmedEmailPatternBytes(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @param value The unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPattern( java.lang.String value) { - copyOnWrite(); - instance.setUnconfirmedEmailPattern(value); + if (value == null) { + throw new NullPointerException(); + } + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return This builder for chaining. */ public Builder clearUnconfirmedEmailPattern() { - copyOnWrite(); - instance.clearUnconfirmedEmailPattern(); + + unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @param value The bytes for unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPatternBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUnconfirmedEmailPatternBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryEmailResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - unconfirmedEmailPattern_ = visitor.visitString(!unconfirmedEmailPattern_.isEmpty(), unconfirmedEmailPattern_, - !other.unconfirmedEmailPattern_.isEmpty(), other.unconfirmedEmailPattern_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - unconfirmedEmailPattern_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryEmailResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationChangeRecoveryEmailResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationChangeRecoveryEmailResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationChangeRecoveryEmailResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationChangeRecoveryEmailResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryEmail.UserTwoStepVerificationChangeRecoveryEmailResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n0UserTwoStepVerificationChangeRecoveryE" + + "mail.proto\022\005proto\032\rRequest.proto\032\016Respon" + + "se.proto\"n\n*UserTwoStepVerificationChang" + + "eRecoveryEmail\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\020\n\010password\030\002 \001(\t\022\r\n\005email\030\003 \001(\t" + + "\"z\n2UserTwoStepVerificationChangeRecover" + + "yEmailResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022!\n\031unconfirmed_email_pattern\030\002" + + " \001(\tBA\n\016net.iGap.protoB/ProtoUserTwoStep" + + "VerificationChangeRecoveryEmailb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmail_descriptor, + new java.lang.String[] { "Request", "Password", "Email", }); + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationChangeRecoveryEmailResponse_descriptor, + new java.lang.String[] { "Response", "UnconfirmedEmailPattern", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryQuestion.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryQuestion.java index 5af32f9..38a97f5 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryQuestion.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationChangeRecoveryQuestion.java @@ -8,65 +8,87 @@ private ProtoUserTwoStepVerificationChangeRecoveryQuestion() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationChangeRecoveryQuestionOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationChangeRecoveryQuestion) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string password = 2; + * string password = 2; + * @return The password. */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); /** - * optional string question_one = 3; + * string question_one = 3; + * @return The questionOne. */ java.lang.String getQuestionOne(); /** - * optional string question_one = 3; + * string question_one = 3; + * @return The bytes for questionOne. */ com.google.protobuf.ByteString getQuestionOneBytes(); /** - * optional string answer_one = 4; + * string answer_one = 4; + * @return The answerOne. */ java.lang.String getAnswerOne(); /** - * optional string answer_one = 4; + * string answer_one = 4; + * @return The bytes for answerOne. */ com.google.protobuf.ByteString getAnswerOneBytes(); /** - * optional string question_two = 5; + * string question_two = 5; + * @return The questionTwo. */ java.lang.String getQuestionTwo(); /** - * optional string question_two = 5; + * string question_two = 5; + * @return The bytes for questionTwo. */ com.google.protobuf.ByteString getQuestionTwoBytes(); /** - * optional string answer_two = 6; + * string answer_two = 6; + * @return The answerTwo. */ java.lang.String getAnswerTwo(); /** - * optional string answer_two = 6; + * string answer_two = 6; + * @return The bytes for answerTwo. */ com.google.protobuf.ByteString getAnswerTwoBytes(); @@ -74,11 +96,15 @@ public interface UserTwoStepVerificationChangeRecoveryQuestionOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryQuestion} */ - public static final class UserTwoStepVerificationChangeRecoveryQuestion extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationChangeRecoveryQuestion, UserTwoStepVerificationChangeRecoveryQuestion.Builder> implements + public static final class UserTwoStepVerificationChangeRecoveryQuestion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationChangeRecoveryQuestion) UserTwoStepVerificationChangeRecoveryQuestionOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationChangeRecoveryQuestion.newBuilder() to construct. + private UserTwoStepVerificationChangeRecoveryQuestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationChangeRecoveryQuestion() { password_ = ""; questionOne_ = ""; @@ -86,312 +112,366 @@ private UserTwoStepVerificationChangeRecoveryQuestion() { questionTwo_ = ""; answerTwo_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationChangeRecoveryQuestion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationChangeRecoveryQuestion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + questionOne_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + answerOne_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + questionTwo_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + answerTwo_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; + private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ + @java.lang.Override public java.lang.String getPassword() { - return password_; + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); - } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - - password_ = getDefaultInstance().getPassword(); - } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value.toStringUtf8(); + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int QUESTION_ONE_FIELD_NUMBER = 3; - private java.lang.String questionOne_; + private volatile java.lang.Object questionOne_; /** - * optional string question_one = 3; + * string question_one = 3; + * @return The questionOne. */ + @java.lang.Override public java.lang.String getQuestionOne() { - return questionOne_; + java.lang.Object ref = questionOne_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionOne_ = s; + return s; + } } /** - * optional string question_one = 3; + * string question_one = 3; + * @return The bytes for questionOne. */ + @java.lang.Override public com.google.protobuf.ByteString getQuestionOneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(questionOne_); - } - /** - * optional string question_one = 3; - */ - private void setQuestionOne( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - questionOne_ = value; - } - /** - * optional string question_one = 3; - */ - private void clearQuestionOne() { - - questionOne_ = getDefaultInstance().getQuestionOne(); - } - /** - * optional string question_one = 3; - */ - private void setQuestionOneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - questionOne_ = value.toStringUtf8(); + java.lang.Object ref = questionOne_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ANSWER_ONE_FIELD_NUMBER = 4; - private java.lang.String answerOne_; + private volatile java.lang.Object answerOne_; /** - * optional string answer_one = 4; + * string answer_one = 4; + * @return The answerOne. */ + @java.lang.Override public java.lang.String getAnswerOne() { - return answerOne_; + java.lang.Object ref = answerOne_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerOne_ = s; + return s; + } } /** - * optional string answer_one = 4; + * string answer_one = 4; + * @return The bytes for answerOne. */ + @java.lang.Override public com.google.protobuf.ByteString getAnswerOneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(answerOne_); - } - /** - * optional string answer_one = 4; - */ - private void setAnswerOne( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - answerOne_ = value; - } - /** - * optional string answer_one = 4; - */ - private void clearAnswerOne() { - - answerOne_ = getDefaultInstance().getAnswerOne(); - } - /** - * optional string answer_one = 4; - */ - private void setAnswerOneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - answerOne_ = value.toStringUtf8(); + java.lang.Object ref = answerOne_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int QUESTION_TWO_FIELD_NUMBER = 5; - private java.lang.String questionTwo_; + private volatile java.lang.Object questionTwo_; /** - * optional string question_two = 5; + * string question_two = 5; + * @return The questionTwo. */ + @java.lang.Override public java.lang.String getQuestionTwo() { - return questionTwo_; + java.lang.Object ref = questionTwo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionTwo_ = s; + return s; + } } /** - * optional string question_two = 5; + * string question_two = 5; + * @return The bytes for questionTwo. */ + @java.lang.Override public com.google.protobuf.ByteString getQuestionTwoBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(questionTwo_); - } - /** - * optional string question_two = 5; - */ - private void setQuestionTwo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - questionTwo_ = value; - } - /** - * optional string question_two = 5; - */ - private void clearQuestionTwo() { - - questionTwo_ = getDefaultInstance().getQuestionTwo(); - } - /** - * optional string question_two = 5; - */ - private void setQuestionTwoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - questionTwo_ = value.toStringUtf8(); + java.lang.Object ref = questionTwo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ANSWER_TWO_FIELD_NUMBER = 6; - private java.lang.String answerTwo_; + private volatile java.lang.Object answerTwo_; /** - * optional string answer_two = 6; + * string answer_two = 6; + * @return The answerTwo. */ + @java.lang.Override public java.lang.String getAnswerTwo() { - return answerTwo_; + java.lang.Object ref = answerTwo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerTwo_ = s; + return s; + } } /** - * optional string answer_two = 6; + * string answer_two = 6; + * @return The bytes for answerTwo. */ + @java.lang.Override public com.google.protobuf.ByteString getAnswerTwoBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(answerTwo_); - } - /** - * optional string answer_two = 6; - */ - private void setAnswerTwo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - answerTwo_ = value; - } - /** - * optional string answer_two = 6; - */ - private void clearAnswerTwo() { - - answerTwo_ = getDefaultInstance().getAnswerTwo(); + java.lang.Object ref = answerTwo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string answer_two = 6; - */ - private void setAnswerTwoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - answerTwo_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!password_.isEmpty()) { - output.writeString(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } - if (!questionOne_.isEmpty()) { - output.writeString(3, getQuestionOne()); + if (!getQuestionOneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, questionOne_); } - if (!answerOne_.isEmpty()) { - output.writeString(4, getAnswerOne()); + if (!getAnswerOneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, answerOne_); } - if (!questionTwo_.isEmpty()) { - output.writeString(5, getQuestionTwo()); + if (!getQuestionTwoBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, questionTwo_); } - if (!answerTwo_.isEmpty()) { - output.writeString(6, getAnswerTwo()); + if (!getAnswerTwoBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, answerTwo_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -399,586 +479,1070 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!password_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - if (!questionOne_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getQuestionOne()); + if (!getQuestionOneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, questionOne_); } - if (!answerOne_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getAnswerOne()); + if (!getAnswerOneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, answerOne_); } - if (!questionTwo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getQuestionTwo()); + if (!getQuestionTwoBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, questionTwo_); } - if (!answerTwo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getAnswerTwo()); + if (!getAnswerTwoBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, answerTwo_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getQuestionOne() + .equals(other.getQuestionOne())) return false; + if (!getAnswerOne() + .equals(other.getAnswerOne())) return false; + if (!getQuestionTwo() + .equals(other.getQuestionTwo())) return false; + if (!getAnswerTwo() + .equals(other.getAnswerTwo())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + QUESTION_ONE_FIELD_NUMBER; + hash = (53 * hash) + getQuestionOne().hashCode(); + hash = (37 * hash) + ANSWER_ONE_FIELD_NUMBER; + hash = (53 * hash) + getAnswerOne().hashCode(); + hash = (37 * hash) + QUESTION_TWO_FIELD_NUMBER; + hash = (53 * hash) + getQuestionTwo().hashCode(); + hash = (37 * hash) + ANSWER_TWO_FIELD_NUMBER; + hash = (53 * hash) + getAnswerTwo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryQuestion} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationChangeRecoveryQuestion) net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + password_ = ""; + + questionOne_ = ""; + + answerOne_ = ""; + + questionTwo_ = ""; + + answerTwo_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion build() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion result = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.password_ = password_; + result.questionOne_ = questionOne_; + result.answerOne_ = answerOne_; + result.questionTwo_ = questionTwo_; + result.answerTwo_ = answerTwo_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (!other.getQuestionOne().isEmpty()) { + questionOne_ = other.questionOne_; + onChanged(); + } + if (!other.getAnswerOne().isEmpty()) { + answerOne_ = other.answerOne_; + onChanged(); + } + if (!other.getQuestionTwo().isEmpty()) { + questionTwo_ = other.questionTwo_; + onChanged(); + } + if (!other.getAnswerTwo().isEmpty()) { + answerTwo_ = other.answerTwo_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ public java.lang.String getPassword() { - return instance.getPassword(); + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { - return instance.getPasswordBytes(); + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @return This builder for chaining. */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + + password_ = getDefaultInstance().getPassword(); + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); return this; } + private java.lang.Object questionOne_ = ""; /** - * optional string question_one = 3; + * string question_one = 3; + * @return The questionOne. */ public java.lang.String getQuestionOne() { - return instance.getQuestionOne(); + java.lang.Object ref = questionOne_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionOne_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string question_one = 3; + * string question_one = 3; + * @return The bytes for questionOne. */ public com.google.protobuf.ByteString getQuestionOneBytes() { - return instance.getQuestionOneBytes(); + java.lang.Object ref = questionOne_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string question_one = 3; + * string question_one = 3; + * @param value The questionOne to set. + * @return This builder for chaining. */ public Builder setQuestionOne( java.lang.String value) { - copyOnWrite(); - instance.setQuestionOne(value); + if (value == null) { + throw new NullPointerException(); + } + + questionOne_ = value; + onChanged(); return this; } /** - * optional string question_one = 3; + * string question_one = 3; + * @return This builder for chaining. */ public Builder clearQuestionOne() { - copyOnWrite(); - instance.clearQuestionOne(); + + questionOne_ = getDefaultInstance().getQuestionOne(); + onChanged(); return this; } /** - * optional string question_one = 3; + * string question_one = 3; + * @param value The bytes for questionOne to set. + * @return This builder for chaining. */ public Builder setQuestionOneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQuestionOneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + questionOne_ = value; + onChanged(); return this; } + private java.lang.Object answerOne_ = ""; /** - * optional string answer_one = 4; + * string answer_one = 4; + * @return The answerOne. */ public java.lang.String getAnswerOne() { - return instance.getAnswerOne(); + java.lang.Object ref = answerOne_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerOne_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string answer_one = 4; + * string answer_one = 4; + * @return The bytes for answerOne. */ public com.google.protobuf.ByteString getAnswerOneBytes() { - return instance.getAnswerOneBytes(); + java.lang.Object ref = answerOne_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string answer_one = 4; + * string answer_one = 4; + * @param value The answerOne to set. + * @return This builder for chaining. */ public Builder setAnswerOne( java.lang.String value) { - copyOnWrite(); - instance.setAnswerOne(value); + if (value == null) { + throw new NullPointerException(); + } + + answerOne_ = value; + onChanged(); return this; } /** - * optional string answer_one = 4; + * string answer_one = 4; + * @return This builder for chaining. */ public Builder clearAnswerOne() { - copyOnWrite(); - instance.clearAnswerOne(); + + answerOne_ = getDefaultInstance().getAnswerOne(); + onChanged(); return this; } /** - * optional string answer_one = 4; + * string answer_one = 4; + * @param value The bytes for answerOne to set. + * @return This builder for chaining. */ public Builder setAnswerOneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAnswerOneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + answerOne_ = value; + onChanged(); return this; } + private java.lang.Object questionTwo_ = ""; /** - * optional string question_two = 5; + * string question_two = 5; + * @return The questionTwo. */ public java.lang.String getQuestionTwo() { - return instance.getQuestionTwo(); + java.lang.Object ref = questionTwo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionTwo_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string question_two = 5; + * string question_two = 5; + * @return The bytes for questionTwo. */ public com.google.protobuf.ByteString getQuestionTwoBytes() { - return instance.getQuestionTwoBytes(); + java.lang.Object ref = questionTwo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string question_two = 5; + * string question_two = 5; + * @param value The questionTwo to set. + * @return This builder for chaining. */ public Builder setQuestionTwo( java.lang.String value) { - copyOnWrite(); - instance.setQuestionTwo(value); + if (value == null) { + throw new NullPointerException(); + } + + questionTwo_ = value; + onChanged(); return this; } /** - * optional string question_two = 5; + * string question_two = 5; + * @return This builder for chaining. */ public Builder clearQuestionTwo() { - copyOnWrite(); - instance.clearQuestionTwo(); + + questionTwo_ = getDefaultInstance().getQuestionTwo(); + onChanged(); return this; } /** - * optional string question_two = 5; + * string question_two = 5; + * @param value The bytes for questionTwo to set. + * @return This builder for chaining. */ public Builder setQuestionTwoBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQuestionTwoBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + questionTwo_ = value; + onChanged(); return this; } + private java.lang.Object answerTwo_ = ""; /** - * optional string answer_two = 6; + * string answer_two = 6; + * @return The answerTwo. */ public java.lang.String getAnswerTwo() { - return instance.getAnswerTwo(); + java.lang.Object ref = answerTwo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerTwo_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string answer_two = 6; + * string answer_two = 6; + * @return The bytes for answerTwo. */ public com.google.protobuf.ByteString getAnswerTwoBytes() { - return instance.getAnswerTwoBytes(); + java.lang.Object ref = answerTwo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string answer_two = 6; + * string answer_two = 6; + * @param value The answerTwo to set. + * @return This builder for chaining. */ public Builder setAnswerTwo( java.lang.String value) { - copyOnWrite(); - instance.setAnswerTwo(value); + if (value == null) { + throw new NullPointerException(); + } + + answerTwo_ = value; + onChanged(); return this; } /** - * optional string answer_two = 6; + * string answer_two = 6; + * @return This builder for chaining. */ public Builder clearAnswerTwo() { - copyOnWrite(); - instance.clearAnswerTwo(); + + answerTwo_ = getDefaultInstance().getAnswerTwo(); + onChanged(); return this; } /** - * optional string answer_two = 6; + * string answer_two = 6; + * @param value The bytes for answerTwo to set. + * @return This builder for chaining. */ public Builder setAnswerTwoBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAnswerTwoBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + answerTwo_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryQuestion) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion) arg1; - request_ = visitor.visitMessage(request_, other.request_); - password_ = visitor.visitString(!password_.isEmpty(), password_, - !other.password_.isEmpty(), other.password_); - questionOne_ = visitor.visitString(!questionOne_.isEmpty(), questionOne_, - !other.questionOne_.isEmpty(), other.questionOne_); - answerOne_ = visitor.visitString(!answerOne_.isEmpty(), answerOne_, - !other.answerOne_.isEmpty(), other.answerOne_); - questionTwo_ = visitor.visitString(!questionTwo_.isEmpty(), questionTwo_, - !other.questionTwo_.isEmpty(), other.questionTwo_); - answerTwo_ = visitor.visitString(!answerTwo_.isEmpty(), answerTwo_, - !other.answerTwo_.isEmpty(), other.answerTwo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - questionOne_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - answerOne_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - questionTwo_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - answerTwo_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryQuestion) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationChangeRecoveryQuestion) private static final net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationChangeRecoveryQuestion(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion(); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationChangeRecoveryQuestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationChangeRecoveryQuestion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserTwoStepVerificationChangeRecoveryQuestionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationChangeRecoveryQuestionResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryQuestionResponse} */ - public static final class UserTwoStepVerificationChangeRecoveryQuestionResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationChangeRecoveryQuestionResponse, UserTwoStepVerificationChangeRecoveryQuestionResponse.Builder> implements + public static final class UserTwoStepVerificationChangeRecoveryQuestionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationChangeRecoveryQuestionResponse) UserTwoStepVerificationChangeRecoveryQuestionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationChangeRecoveryQuestionResponse.newBuilder() to construct. + private UserTwoStepVerificationChangeRecoveryQuestionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationChangeRecoveryQuestionResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationChangeRecoveryQuestionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationChangeRecoveryQuestionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -986,244 +1550,514 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationChangeRecoveryQuestionResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationChangeRecoveryQuestionResponse) net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryQuestionResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationChangeRecoveryQuestionResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationChangeRecoveryQuestionResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationChangeRecoveryQuestionResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationChangeRecoveryQuestionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationChangeRecoveryQuestionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationChangeRecoveryQuestion.UserTwoStepVerificationChangeRecoveryQuestionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n3UserTwoStepVerificationChangeRecoveryQ" + + "uestion.proto\022\005proto\032\rRequest.proto\032\016Res" + + "ponse.proto\"\266\001\n-UserTwoStepVerificationC" + + "hangeRecoveryQuestion\022\037\n\007request\030\001 \001(\0132\016" + + ".proto.Request\022\020\n\010password\030\002 \001(\t\022\024\n\014ques" + + "tion_one\030\003 \001(\t\022\022\n\nanswer_one\030\004 \001(\t\022\024\n\014qu" + + "estion_two\030\005 \001(\t\022\022\n\nanswer_two\030\006 \001(\t\"Z\n5" + + "UserTwoStepVerificationChangeRecoveryQue" + + "stionResponse\022!\n\010response\030\001 \001(\0132\017.proto." + + "ResponseBD\n\016net.iGap.protoB2ProtoUserTwo" + + "StepVerificationChangeRecoveryQuestionb\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestion_descriptor, + new java.lang.String[] { "Request", "Password", "QuestionOne", "AnswerOne", "QuestionTwo", "AnswerTwo", }); + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationChangeRecoveryQuestionResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationCheckPassword.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationCheckPassword.java index 3a86ecc..d99c95d 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationCheckPassword.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationCheckPassword.java @@ -8,25 +8,39 @@ private ProtoUserTwoStepVerificationCheckPassword() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationCheckPasswordOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationCheckPassword) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string password = 2; + * string password = 2; + * @return The password. */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); @@ -34,124 +48,190 @@ public interface UserTwoStepVerificationCheckPasswordOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationCheckPassword} */ - public static final class UserTwoStepVerificationCheckPassword extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationCheckPassword, UserTwoStepVerificationCheckPassword.Builder> implements + public static final class UserTwoStepVerificationCheckPassword extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationCheckPassword) UserTwoStepVerificationCheckPasswordOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationCheckPassword.newBuilder() to construct. + private UserTwoStepVerificationCheckPassword(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationCheckPassword() { password_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationCheckPassword(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationCheckPassword( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; + private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ + @java.lang.Override public java.lang.String getPassword() { - return password_; + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); - } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - - password_ = getDefaultInstance().getPassword(); + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!password_.isEmpty()) { - output.writeString(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,378 +239,710 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!password_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPassword() + .equals(other.getPassword())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationCheckPassword} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationCheckPassword) net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + password_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPassword_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword build() { + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword result = new net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.password_ = password_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ public java.lang.String getPassword() { - return instance.getPassword(); + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { - return instance.getPasswordBytes(); + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @return This builder for chaining. */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + + password_ = getDefaultInstance().getPassword(); + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationCheckPassword) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword) arg1; - request_ = visitor.visitMessage(request_, other.request_); - password_ = visitor.visitString(!password_.isEmpty(), password_, - !other.password_.isEmpty(), other.password_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationCheckPassword) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationCheckPassword) private static final net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationCheckPassword(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword(); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationCheckPassword parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationCheckPassword(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPassword getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationCheckPasswordResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationCheckPasswordResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationCheckPasswordResponse} */ - public static final class UserTwoStepVerificationCheckPasswordResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationCheckPasswordResponse, UserTwoStepVerificationCheckPasswordResponse.Builder> implements + public static final class UserTwoStepVerificationCheckPasswordResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationCheckPasswordResponse) UserTwoStepVerificationCheckPasswordResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationCheckPasswordResponse.newBuilder() to construct. + private UserTwoStepVerificationCheckPasswordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationCheckPasswordResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationCheckPasswordResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationCheckPasswordResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -538,244 +950,511 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationCheckPasswordResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationCheckPasswordResponse) net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationCheckPasswordResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationCheckPasswordResponse) + } // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationCheckPasswordResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationCheckPasswordResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationCheckPasswordResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationCheckPasswordResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationCheckPassword.UserTwoStepVerificationCheckPasswordResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationCheckPassword_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationCheckPassword_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n*UserTwoStepVerificationCheckPassword.p" + + "roto\022\005proto\032\rRequest.proto\032\016Response.pro" + + "to\"Y\n$UserTwoStepVerificationCheckPasswo" + + "rd\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\020\n\010p" + + "assword\030\002 \001(\t\"Q\n,UserTwoStepVerification" + + "CheckPasswordResponse\022!\n\010response\030\001 \001(\0132" + + "\017.proto.ResponseB;\n\016net.iGap.protoB)Prot" + + "oUserTwoStepVerificationCheckPasswordb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationCheckPassword_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationCheckPassword_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationCheckPassword_descriptor, + new java.lang.String[] { "Request", "Password", }); + internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationCheckPasswordResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationGetPasswordDetail.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationGetPasswordDetail.java index 5f1f066..e3f1612 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationGetPasswordDetail.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationGetPasswordDetail.java @@ -8,90 +8,170 @@ private ProtoUserTwoStepVerificationGetPasswordDetail() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationGetPasswordDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationGetPasswordDetail) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationGetPasswordDetail} */ - public static final class UserTwoStepVerificationGetPasswordDetail extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationGetPasswordDetail, UserTwoStepVerificationGetPasswordDetail.Builder> implements + public static final class UserTwoStepVerificationGetPasswordDetail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationGetPasswordDetail) UserTwoStepVerificationGetPasswordDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationGetPasswordDetail.newBuilder() to construct. + private UserTwoStepVerificationGetPasswordDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationGetPasswordDetail() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationGetPasswordDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationGetPasswordDetail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.class, net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,296 +179,531 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail other = (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationGetPasswordDetail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationGetPasswordDetail) net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.class, net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetail_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail build() { + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail result = new net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationGetPasswordDetail) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail other = (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationGetPasswordDetail) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationGetPasswordDetail) private static final net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationGetPasswordDetail(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail(); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationGetPasswordDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationGetPasswordDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationGetPasswordDetailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationGetPasswordDetailResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string question_one = 2; + * string question_one = 2; + * @return The questionOne. */ java.lang.String getQuestionOne(); /** - * optional string question_one = 2; + * string question_one = 2; + * @return The bytes for questionOne. */ com.google.protobuf.ByteString getQuestionOneBytes(); /** - * optional string question_two = 3; + * string question_two = 3; + * @return The questionTwo. */ java.lang.String getQuestionTwo(); /** - * optional string question_two = 3; + * string question_two = 3; + * @return The bytes for questionTwo. */ com.google.protobuf.ByteString getQuestionTwoBytes(); /** - * optional string hint = 4; + * string hint = 4; + * @return The hint. */ java.lang.String getHint(); /** - * optional string hint = 4; + * string hint = 4; + * @return The bytes for hint. */ com.google.protobuf.ByteString getHintBytes(); /** - * optional bool has_confirmed_recovery_email = 5; + * bool has_confirmed_recovery_email = 5; + * @return The hasConfirmedRecoveryEmail. */ boolean getHasConfirmedRecoveryEmail(); /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @return The unconfirmedEmailPattern. */ java.lang.String getUnconfirmedEmailPattern(); /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @return The bytes for unconfirmedEmailPattern. */ com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes(); @@ -396,300 +711,353 @@ public interface UserTwoStepVerificationGetPasswordDetailResponseOrBuilder exten /** * Protobuf type {@code proto.UserTwoStepVerificationGetPasswordDetailResponse} */ - public static final class UserTwoStepVerificationGetPasswordDetailResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationGetPasswordDetailResponse, UserTwoStepVerificationGetPasswordDetailResponse.Builder> implements + public static final class UserTwoStepVerificationGetPasswordDetailResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationGetPasswordDetailResponse) UserTwoStepVerificationGetPasswordDetailResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationGetPasswordDetailResponse.newBuilder() to construct. + private UserTwoStepVerificationGetPasswordDetailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationGetPasswordDetailResponse() { questionOne_ = ""; questionTwo_ = ""; hint_ = ""; unconfirmedEmailPattern_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationGetPasswordDetailResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationGetPasswordDetailResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + questionOne_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + questionTwo_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + hint_ = s; + break; + } + case 40: { + + hasConfirmedRecoveryEmail_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + unconfirmedEmailPattern_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int QUESTION_ONE_FIELD_NUMBER = 2; - private java.lang.String questionOne_; + private volatile java.lang.Object questionOne_; /** - * optional string question_one = 2; + * string question_one = 2; + * @return The questionOne. */ + @java.lang.Override public java.lang.String getQuestionOne() { - return questionOne_; + java.lang.Object ref = questionOne_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionOne_ = s; + return s; + } } /** - * optional string question_one = 2; + * string question_one = 2; + * @return The bytes for questionOne. */ + @java.lang.Override public com.google.protobuf.ByteString getQuestionOneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(questionOne_); - } - /** - * optional string question_one = 2; - */ - private void setQuestionOne( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - questionOne_ = value; - } - /** - * optional string question_one = 2; - */ - private void clearQuestionOne() { - - questionOne_ = getDefaultInstance().getQuestionOne(); - } - /** - * optional string question_one = 2; - */ - private void setQuestionOneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - questionOne_ = value.toStringUtf8(); + java.lang.Object ref = questionOne_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int QUESTION_TWO_FIELD_NUMBER = 3; - private java.lang.String questionTwo_; + private volatile java.lang.Object questionTwo_; /** - * optional string question_two = 3; + * string question_two = 3; + * @return The questionTwo. */ + @java.lang.Override public java.lang.String getQuestionTwo() { - return questionTwo_; + java.lang.Object ref = questionTwo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionTwo_ = s; + return s; + } } /** - * optional string question_two = 3; + * string question_two = 3; + * @return The bytes for questionTwo. */ + @java.lang.Override public com.google.protobuf.ByteString getQuestionTwoBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(questionTwo_); - } - /** - * optional string question_two = 3; - */ - private void setQuestionTwo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - questionTwo_ = value; - } - /** - * optional string question_two = 3; - */ - private void clearQuestionTwo() { - - questionTwo_ = getDefaultInstance().getQuestionTwo(); - } - /** - * optional string question_two = 3; - */ - private void setQuestionTwoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - questionTwo_ = value.toStringUtf8(); + java.lang.Object ref = questionTwo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int HINT_FIELD_NUMBER = 4; - private java.lang.String hint_; + private volatile java.lang.Object hint_; /** - * optional string hint = 4; + * string hint = 4; + * @return The hint. */ + @java.lang.Override public java.lang.String getHint() { - return hint_; + java.lang.Object ref = hint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hint_ = s; + return s; + } } /** - * optional string hint = 4; + * string hint = 4; + * @return The bytes for hint. */ + @java.lang.Override public com.google.protobuf.ByteString getHintBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(hint_); - } - /** - * optional string hint = 4; - */ - private void setHint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hint_ = value; - } - /** - * optional string hint = 4; - */ - private void clearHint() { - - hint_ = getDefaultInstance().getHint(); - } - /** - * optional string hint = 4; - */ - private void setHintBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hint_ = value.toStringUtf8(); + java.lang.Object ref = hint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int HAS_CONFIRMED_RECOVERY_EMAIL_FIELD_NUMBER = 5; private boolean hasConfirmedRecoveryEmail_; /** - * optional bool has_confirmed_recovery_email = 5; + * bool has_confirmed_recovery_email = 5; + * @return The hasConfirmedRecoveryEmail. */ + @java.lang.Override public boolean getHasConfirmedRecoveryEmail() { return hasConfirmedRecoveryEmail_; } - /** - * optional bool has_confirmed_recovery_email = 5; - */ - private void setHasConfirmedRecoveryEmail(boolean value) { - - hasConfirmedRecoveryEmail_ = value; - } - /** - * optional bool has_confirmed_recovery_email = 5; - */ - private void clearHasConfirmedRecoveryEmail() { - - hasConfirmedRecoveryEmail_ = false; - } public static final int UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER = 6; - private java.lang.String unconfirmedEmailPattern_; + private volatile java.lang.Object unconfirmedEmailPattern_; /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @return The unconfirmedEmailPattern. */ + @java.lang.Override public java.lang.String getUnconfirmedEmailPattern() { - return unconfirmedEmailPattern_; + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } } /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @return The bytes for unconfirmedEmailPattern. */ + @java.lang.Override public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(unconfirmedEmailPattern_); - } - /** - * optional string unconfirmed_email_pattern = 6; - */ - private void setUnconfirmedEmailPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - unconfirmedEmailPattern_ = value; - } - /** - * optional string unconfirmed_email_pattern = 6; - */ - private void clearUnconfirmedEmailPattern() { - - unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string unconfirmed_email_pattern = 6; - */ - private void setUnconfirmedEmailPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - unconfirmedEmailPattern_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!questionOne_.isEmpty()) { - output.writeString(2, getQuestionOne()); + if (!getQuestionOneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, questionOne_); } - if (!questionTwo_.isEmpty()) { - output.writeString(3, getQuestionTwo()); + if (!getQuestionTwoBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, questionTwo_); } - if (!hint_.isEmpty()) { - output.writeString(4, getHint()); + if (!getHintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hint_); } if (hasConfirmedRecoveryEmail_ != false) { output.writeBool(5, hasConfirmedRecoveryEmail_); } - if (!unconfirmedEmailPattern_.isEmpty()) { - output.writeString(6, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, unconfirmedEmailPattern_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -697,486 +1065,920 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!questionOne_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getQuestionOne()); + if (!getQuestionOneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, questionOne_); } - if (!questionTwo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getQuestionTwo()); + if (!getQuestionTwoBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, questionTwo_); } - if (!hint_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getHint()); + if (!getHintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hint_); } if (hasConfirmedRecoveryEmail_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, hasConfirmedRecoveryEmail_); } - if (!unconfirmedEmailPattern_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, unconfirmedEmailPattern_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getQuestionOne() + .equals(other.getQuestionOne())) return false; + if (!getQuestionTwo() + .equals(other.getQuestionTwo())) return false; + if (!getHint() + .equals(other.getHint())) return false; + if (getHasConfirmedRecoveryEmail() + != other.getHasConfirmedRecoveryEmail()) return false; + if (!getUnconfirmedEmailPattern() + .equals(other.getUnconfirmedEmailPattern())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + QUESTION_ONE_FIELD_NUMBER; + hash = (53 * hash) + getQuestionOne().hashCode(); + hash = (37 * hash) + QUESTION_TWO_FIELD_NUMBER; + hash = (53 * hash) + getQuestionTwo().hashCode(); + hash = (37 * hash) + HINT_FIELD_NUMBER; + hash = (53 * hash) + getHint().hashCode(); + hash = (37 * hash) + HAS_CONFIRMED_RECOVERY_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasConfirmedRecoveryEmail()); + hash = (37 * hash) + UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getUnconfirmedEmailPattern().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationGetPasswordDetailResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationGetPasswordDetailResponse) net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + questionOne_ = ""; + + questionTwo_ = ""; + + hint_ = ""; + + hasConfirmedRecoveryEmail_ = false; + + unconfirmedEmailPattern_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.questionOne_ = questionOne_; + result.questionTwo_ = questionTwo_; + result.hint_ = hint_; + result.hasConfirmedRecoveryEmail_ = hasConfirmedRecoveryEmail_; + result.unconfirmedEmailPattern_ = unconfirmedEmailPattern_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getQuestionOne().isEmpty()) { + questionOne_ = other.questionOne_; + onChanged(); + } + if (!other.getQuestionTwo().isEmpty()) { + questionTwo_ = other.questionTwo_; + onChanged(); + } + if (!other.getHint().isEmpty()) { + hint_ = other.hint_; + onChanged(); + } + if (other.getHasConfirmedRecoveryEmail() != false) { + setHasConfirmedRecoveryEmail(other.getHasConfirmedRecoveryEmail()); + } + if (!other.getUnconfirmedEmailPattern().isEmpty()) { + unconfirmedEmailPattern_ = other.unconfirmedEmailPattern_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object questionOne_ = ""; /** - * optional string question_one = 2; + * string question_one = 2; + * @return The questionOne. */ public java.lang.String getQuestionOne() { - return instance.getQuestionOne(); + java.lang.Object ref = questionOne_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionOne_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string question_one = 2; + * string question_one = 2; + * @return The bytes for questionOne. */ public com.google.protobuf.ByteString getQuestionOneBytes() { - return instance.getQuestionOneBytes(); + java.lang.Object ref = questionOne_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string question_one = 2; + * string question_one = 2; + * @param value The questionOne to set. + * @return This builder for chaining. */ public Builder setQuestionOne( java.lang.String value) { - copyOnWrite(); - instance.setQuestionOne(value); + if (value == null) { + throw new NullPointerException(); + } + + questionOne_ = value; + onChanged(); return this; } /** - * optional string question_one = 2; + * string question_one = 2; + * @return This builder for chaining. */ public Builder clearQuestionOne() { - copyOnWrite(); - instance.clearQuestionOne(); + + questionOne_ = getDefaultInstance().getQuestionOne(); + onChanged(); return this; } /** - * optional string question_one = 2; + * string question_one = 2; + * @param value The bytes for questionOne to set. + * @return This builder for chaining. */ public Builder setQuestionOneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQuestionOneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + questionOne_ = value; + onChanged(); return this; } + private java.lang.Object questionTwo_ = ""; /** - * optional string question_two = 3; + * string question_two = 3; + * @return The questionTwo. */ public java.lang.String getQuestionTwo() { - return instance.getQuestionTwo(); + java.lang.Object ref = questionTwo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionTwo_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string question_two = 3; + * string question_two = 3; + * @return The bytes for questionTwo. */ public com.google.protobuf.ByteString getQuestionTwoBytes() { - return instance.getQuestionTwoBytes(); + java.lang.Object ref = questionTwo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string question_two = 3; + * string question_two = 3; + * @param value The questionTwo to set. + * @return This builder for chaining. */ public Builder setQuestionTwo( java.lang.String value) { - copyOnWrite(); - instance.setQuestionTwo(value); + if (value == null) { + throw new NullPointerException(); + } + + questionTwo_ = value; + onChanged(); return this; } /** - * optional string question_two = 3; + * string question_two = 3; + * @return This builder for chaining. */ public Builder clearQuestionTwo() { - copyOnWrite(); - instance.clearQuestionTwo(); + + questionTwo_ = getDefaultInstance().getQuestionTwo(); + onChanged(); return this; } /** - * optional string question_two = 3; + * string question_two = 3; + * @param value The bytes for questionTwo to set. + * @return This builder for chaining. */ public Builder setQuestionTwoBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQuestionTwoBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + questionTwo_ = value; + onChanged(); return this; } + private java.lang.Object hint_ = ""; /** - * optional string hint = 4; + * string hint = 4; + * @return The hint. */ public java.lang.String getHint() { - return instance.getHint(); + java.lang.Object ref = hint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hint_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string hint = 4; + * string hint = 4; + * @return The bytes for hint. */ public com.google.protobuf.ByteString getHintBytes() { - return instance.getHintBytes(); + java.lang.Object ref = hint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string hint = 4; + * string hint = 4; + * @param value The hint to set. + * @return This builder for chaining. */ public Builder setHint( java.lang.String value) { - copyOnWrite(); - instance.setHint(value); + if (value == null) { + throw new NullPointerException(); + } + + hint_ = value; + onChanged(); return this; } /** - * optional string hint = 4; + * string hint = 4; + * @return This builder for chaining. */ public Builder clearHint() { - copyOnWrite(); - instance.clearHint(); + + hint_ = getDefaultInstance().getHint(); + onChanged(); return this; } /** - * optional string hint = 4; + * string hint = 4; + * @param value The bytes for hint to set. + * @return This builder for chaining. */ public Builder setHintBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setHintBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hint_ = value; + onChanged(); return this; } + private boolean hasConfirmedRecoveryEmail_ ; /** - * optional bool has_confirmed_recovery_email = 5; + * bool has_confirmed_recovery_email = 5; + * @return The hasConfirmedRecoveryEmail. */ + @java.lang.Override public boolean getHasConfirmedRecoveryEmail() { - return instance.getHasConfirmedRecoveryEmail(); + return hasConfirmedRecoveryEmail_; } /** - * optional bool has_confirmed_recovery_email = 5; + * bool has_confirmed_recovery_email = 5; + * @param value The hasConfirmedRecoveryEmail to set. + * @return This builder for chaining. */ public Builder setHasConfirmedRecoveryEmail(boolean value) { - copyOnWrite(); - instance.setHasConfirmedRecoveryEmail(value); + + hasConfirmedRecoveryEmail_ = value; + onChanged(); return this; } /** - * optional bool has_confirmed_recovery_email = 5; + * bool has_confirmed_recovery_email = 5; + * @return This builder for chaining. */ public Builder clearHasConfirmedRecoveryEmail() { - copyOnWrite(); - instance.clearHasConfirmedRecoveryEmail(); + + hasConfirmedRecoveryEmail_ = false; + onChanged(); return this; } + private java.lang.Object unconfirmedEmailPattern_ = ""; /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @return The unconfirmedEmailPattern. */ public java.lang.String getUnconfirmedEmailPattern() { - return instance.getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @return The bytes for unconfirmedEmailPattern. */ public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return instance.getUnconfirmedEmailPatternBytes(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @param value The unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPattern( java.lang.String value) { - copyOnWrite(); - instance.setUnconfirmedEmailPattern(value); + if (value == null) { + throw new NullPointerException(); + } + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @return This builder for chaining. */ public Builder clearUnconfirmedEmailPattern() { - copyOnWrite(); - instance.clearUnconfirmedEmailPattern(); + + unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 6; + * string unconfirmed_email_pattern = 6; + * @param value The bytes for unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPatternBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUnconfirmedEmailPatternBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationGetPasswordDetailResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - questionOne_ = visitor.visitString(!questionOne_.isEmpty(), questionOne_, - !other.questionOne_.isEmpty(), other.questionOne_); - questionTwo_ = visitor.visitString(!questionTwo_.isEmpty(), questionTwo_, - !other.questionTwo_.isEmpty(), other.questionTwo_); - hint_ = visitor.visitString(!hint_.isEmpty(), hint_, - !other.hint_.isEmpty(), other.hint_); - hasConfirmedRecoveryEmail_ = visitor.visitBoolean(hasConfirmedRecoveryEmail_ != false, hasConfirmedRecoveryEmail_, - other.hasConfirmedRecoveryEmail_ != false, other.hasConfirmedRecoveryEmail_); - unconfirmedEmailPattern_ = visitor.visitString(!unconfirmedEmailPattern_.isEmpty(), unconfirmedEmailPattern_, - !other.unconfirmedEmailPattern_.isEmpty(), other.unconfirmedEmailPattern_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - questionOne_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - questionTwo_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - hint_ = s; - break; - } - case 40: { - - hasConfirmedRecoveryEmail_ = input.readBool(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - unconfirmedEmailPattern_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationGetPasswordDetailResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationGetPasswordDetailResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationGetPasswordDetailResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationGetPasswordDetailResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationGetPasswordDetailResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationGetPasswordDetail.UserTwoStepVerificationGetPasswordDetailResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationGetPasswordDetail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationGetPasswordDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n.UserTwoStepVerificationGetPasswordDeta" + + "il.proto\022\005proto\032\rRequest.proto\032\016Response" + + ".proto\"K\n(UserTwoStepVerificationGetPass" + + "wordDetail\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\"\330\001\n0UserTwoStepVerificationGetPasswo" + + "rdDetailResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.Response\022\024\n\014question_one\030\002 \001(\t\022\024\n\014que" + + "stion_two\030\003 \001(\t\022\014\n\004hint\030\004 \001(\t\022$\n\034has_con" + + "firmed_recovery_email\030\005 \001(\010\022!\n\031unconfirm" + + "ed_email_pattern\030\006 \001(\tB?\n\016net.iGap.proto" + + "B-ProtoUserTwoStepVerificationGetPasswor" + + "dDetailb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationGetPasswordDetail_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationGetPasswordDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationGetPasswordDetail_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationGetPasswordDetailResponse_descriptor, + new java.lang.String[] { "Response", "QuestionOne", "QuestionTwo", "Hint", "HasConfirmedRecoveryEmail", "UnconfirmedEmailPattern", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByAnswers.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByAnswers.java index 710b81c..34d4b61 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByAnswers.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByAnswers.java @@ -8,35 +8,51 @@ private ProtoUserTwoStepVerificationRecoverPasswordByAnswers() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationRecoverPasswordByAnswersOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationRecoverPasswordByAnswers) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string answer_one = 2; + * string answer_one = 2; + * @return The answerOne. */ java.lang.String getAnswerOne(); /** - * optional string answer_one = 2; + * string answer_one = 2; + * @return The bytes for answerOne. */ com.google.protobuf.ByteString getAnswerOneBytes(); /** - * optional string answer_two = 3; + * string answer_two = 3; + * @return The answerTwo. */ java.lang.String getAnswerTwo(); /** - * optional string answer_two = 3; + * string answer_two = 3; + * @return The bytes for answerTwo. */ com.google.protobuf.ByteString getAnswerTwoBytes(); @@ -44,174 +60,238 @@ public interface UserTwoStepVerificationRecoverPasswordByAnswersOrBuilder extend /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByAnswers} */ - public static final class UserTwoStepVerificationRecoverPasswordByAnswers extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationRecoverPasswordByAnswers, UserTwoStepVerificationRecoverPasswordByAnswers.Builder> implements + public static final class UserTwoStepVerificationRecoverPasswordByAnswers extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationRecoverPasswordByAnswers) UserTwoStepVerificationRecoverPasswordByAnswersOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationRecoverPasswordByAnswers.newBuilder() to construct. + private UserTwoStepVerificationRecoverPasswordByAnswers(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationRecoverPasswordByAnswers() { answerOne_ = ""; answerTwo_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationRecoverPasswordByAnswers(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationRecoverPasswordByAnswers( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + answerOne_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + answerTwo_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int ANSWER_ONE_FIELD_NUMBER = 2; - private java.lang.String answerOne_; + private volatile java.lang.Object answerOne_; /** - * optional string answer_one = 2; + * string answer_one = 2; + * @return The answerOne. */ + @java.lang.Override public java.lang.String getAnswerOne() { - return answerOne_; + java.lang.Object ref = answerOne_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerOne_ = s; + return s; + } } /** - * optional string answer_one = 2; + * string answer_one = 2; + * @return The bytes for answerOne. */ + @java.lang.Override public com.google.protobuf.ByteString getAnswerOneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(answerOne_); - } - /** - * optional string answer_one = 2; - */ - private void setAnswerOne( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - answerOne_ = value; - } - /** - * optional string answer_one = 2; - */ - private void clearAnswerOne() { - - answerOne_ = getDefaultInstance().getAnswerOne(); - } - /** - * optional string answer_one = 2; - */ - private void setAnswerOneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - answerOne_ = value.toStringUtf8(); + java.lang.Object ref = answerOne_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ANSWER_TWO_FIELD_NUMBER = 3; - private java.lang.String answerTwo_; + private volatile java.lang.Object answerTwo_; /** - * optional string answer_two = 3; + * string answer_two = 3; + * @return The answerTwo. */ + @java.lang.Override public java.lang.String getAnswerTwo() { - return answerTwo_; + java.lang.Object ref = answerTwo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerTwo_ = s; + return s; + } } /** - * optional string answer_two = 3; + * string answer_two = 3; + * @return The bytes for answerTwo. */ + @java.lang.Override public com.google.protobuf.ByteString getAnswerTwoBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(answerTwo_); - } - /** - * optional string answer_two = 3; - */ - private void setAnswerTwo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - answerTwo_ = value; - } - /** - * optional string answer_two = 3; - */ - private void clearAnswerTwo() { - - answerTwo_ = getDefaultInstance().getAnswerTwo(); + java.lang.Object ref = answerTwo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string answer_two = 3; - */ - private void setAnswerTwoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - answerTwo_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!answerOne_.isEmpty()) { - output.writeString(2, getAnswerOne()); + if (!getAnswerOneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, answerOne_); } - if (!answerTwo_.isEmpty()) { - output.writeString(3, getAnswerTwo()); + if (!getAnswerTwoBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, answerTwo_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -219,365 +299,669 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!answerOne_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAnswerOne()); + if (!getAnswerOneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, answerOne_); } - if (!answerTwo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getAnswerTwo()); + if (!getAnswerTwoBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, answerTwo_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getAnswerOne() + .equals(other.getAnswerOne())) return false; + if (!getAnswerTwo() + .equals(other.getAnswerTwo())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ANSWER_ONE_FIELD_NUMBER; + hash = (53 * hash) + getAnswerOne().hashCode(); + hash = (37 * hash) + ANSWER_TWO_FIELD_NUMBER; + hash = (53 * hash) + getAnswerTwo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByAnswers} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationRecoverPasswordByAnswers) net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + answerOne_ = ""; + + answerTwo_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers build() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers result = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.answerOne_ = answerOne_; + result.answerTwo_ = answerTwo_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getAnswerOne().isEmpty()) { + answerOne_ = other.answerOne_; + onChanged(); + } + if (!other.getAnswerTwo().isEmpty()) { + answerTwo_ = other.answerTwo_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object answerOne_ = ""; /** - * optional string answer_one = 2; + * string answer_one = 2; + * @return The answerOne. */ public java.lang.String getAnswerOne() { - return instance.getAnswerOne(); + java.lang.Object ref = answerOne_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerOne_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string answer_one = 2; + * string answer_one = 2; + * @return The bytes for answerOne. */ public com.google.protobuf.ByteString getAnswerOneBytes() { - return instance.getAnswerOneBytes(); + java.lang.Object ref = answerOne_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string answer_one = 2; + * string answer_one = 2; + * @param value The answerOne to set. + * @return This builder for chaining. */ public Builder setAnswerOne( java.lang.String value) { - copyOnWrite(); - instance.setAnswerOne(value); + if (value == null) { + throw new NullPointerException(); + } + + answerOne_ = value; + onChanged(); return this; } /** - * optional string answer_one = 2; + * string answer_one = 2; + * @return This builder for chaining. */ public Builder clearAnswerOne() { - copyOnWrite(); - instance.clearAnswerOne(); + + answerOne_ = getDefaultInstance().getAnswerOne(); + onChanged(); return this; } /** - * optional string answer_one = 2; + * string answer_one = 2; + * @param value The bytes for answerOne to set. + * @return This builder for chaining. */ public Builder setAnswerOneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAnswerOneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + answerOne_ = value; + onChanged(); return this; } + private java.lang.Object answerTwo_ = ""; /** - * optional string answer_two = 3; + * string answer_two = 3; + * @return The answerTwo. */ public java.lang.String getAnswerTwo() { - return instance.getAnswerTwo(); + java.lang.Object ref = answerTwo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerTwo_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string answer_two = 3; + * string answer_two = 3; + * @return The bytes for answerTwo. */ public com.google.protobuf.ByteString getAnswerTwoBytes() { - return instance.getAnswerTwoBytes(); + java.lang.Object ref = answerTwo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string answer_two = 3; + * string answer_two = 3; + * @param value The answerTwo to set. + * @return This builder for chaining. */ public Builder setAnswerTwo( java.lang.String value) { - copyOnWrite(); - instance.setAnswerTwo(value); + if (value == null) { + throw new NullPointerException(); + } + + answerTwo_ = value; + onChanged(); return this; } /** - * optional string answer_two = 3; + * string answer_two = 3; + * @return This builder for chaining. */ public Builder clearAnswerTwo() { - copyOnWrite(); - instance.clearAnswerTwo(); + + answerTwo_ = getDefaultInstance().getAnswerTwo(); + onChanged(); return this; } /** - * optional string answer_two = 3; + * string answer_two = 3; + * @param value The bytes for answerTwo to set. + * @return This builder for chaining. */ public Builder setAnswerTwoBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAnswerTwoBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + answerTwo_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByAnswers) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers) arg1; - request_ = visitor.visitMessage(request_, other.request_); - answerOne_ = visitor.visitString(!answerOne_.isEmpty(), answerOne_, - !other.answerOne_.isEmpty(), other.answerOne_); - answerTwo_ = visitor.visitString(!answerTwo_.isEmpty(), answerTwo_, - !other.answerTwo_.isEmpty(), other.answerTwo_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - answerOne_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - answerTwo_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByAnswers) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationRecoverPasswordByAnswers) private static final net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationRecoverPasswordByAnswers(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers(); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationRecoverPasswordByAnswers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationRecoverPasswordByAnswers(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationRecoverPasswordByAnswersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -585,124 +969,190 @@ public interface UserTwoStepVerificationRecoverPasswordByAnswersResponseOrBuilde /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse} */ - public static final class UserTwoStepVerificationRecoverPasswordByAnswersResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationRecoverPasswordByAnswersResponse, UserTwoStepVerificationRecoverPasswordByAnswersResponse.Builder> implements + public static final class UserTwoStepVerificationRecoverPasswordByAnswersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse) UserTwoStepVerificationRecoverPasswordByAnswersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationRecoverPasswordByAnswersResponse.newBuilder() to construct. + private UserTwoStepVerificationRecoverPasswordByAnswersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationRecoverPasswordByAnswersResponse() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationRecoverPasswordByAnswersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationRecoverPasswordByAnswersResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -710,296 +1160,603 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse) net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationRecoverPasswordByAnswersResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationRecoverPasswordByAnswersResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationRecoverPasswordByAnswersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationRecoverPasswordByAnswersResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByAnswers.UserTwoStepVerificationRecoverPasswordByAnswersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n5UserTwoStepVerificationRecoverPassword" + + "ByAnswers.proto\022\005proto\032\rRequest.proto\032\016R" + + "esponse.proto\"z\n/UserTwoStepVerification" + + "RecoverPasswordByAnswers\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\022\n\nanswer_one\030\002 \001(\t\022\022\n" + + "\nanswer_two\030\003 \001(\t\"k\n7UserTwoStepVerifica" + + "tionRecoverPasswordByAnswersResponse\022!\n\010" + + "response\030\001 \001(\0132\017.proto.Response\022\r\n\005token" + + "\030\002 \001(\tBF\n\016net.iGap.protoB4ProtoUserTwoSt" + + "epVerificationRecoverPasswordByAnswersb\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswers_descriptor, + new java.lang.String[] { "Request", "AnswerOne", "AnswerTwo", }); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationRecoverPasswordByAnswersResponse_descriptor, + new java.lang.String[] { "Response", "Token", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByToken.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByToken.java index a084c46..61256f0 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByToken.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRecoverPasswordByToken.java @@ -8,25 +8,39 @@ private ProtoUserTwoStepVerificationRecoverPasswordByToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationRecoverPasswordByTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationRecoverPasswordByToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -34,124 +48,190 @@ public interface UserTwoStepVerificationRecoverPasswordByTokenOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByToken} */ - public static final class UserTwoStepVerificationRecoverPasswordByToken extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationRecoverPasswordByToken, UserTwoStepVerificationRecoverPasswordByToken.Builder> implements + public static final class UserTwoStepVerificationRecoverPasswordByToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationRecoverPasswordByToken) UserTwoStepVerificationRecoverPasswordByTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationRecoverPasswordByToken.newBuilder() to construct. + private UserTwoStepVerificationRecoverPasswordByToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationRecoverPasswordByToken() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationRecoverPasswordByToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationRecoverPasswordByToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationRecoverPasswordByToken) net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken build() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken result = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByToken) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationRecoverPasswordByToken) private static final net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationRecoverPasswordByToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken(); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationRecoverPasswordByToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationRecoverPasswordByToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserTwoStepVerificationRecoverPasswordByTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationRecoverPasswordByTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -473,124 +819,190 @@ public interface UserTwoStepVerificationRecoverPasswordByTokenResponseOrBuilder /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByTokenResponse} */ - public static final class UserTwoStepVerificationRecoverPasswordByTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationRecoverPasswordByTokenResponse, UserTwoStepVerificationRecoverPasswordByTokenResponse.Builder> implements + public static final class UserTwoStepVerificationRecoverPasswordByTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationRecoverPasswordByTokenResponse) UserTwoStepVerificationRecoverPasswordByTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationRecoverPasswordByTokenResponse.newBuilder() to construct. + private UserTwoStepVerificationRecoverPasswordByTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationRecoverPasswordByTokenResponse() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationRecoverPasswordByTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationRecoverPasswordByTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,602 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationRecoverPasswordByTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationRecoverPasswordByTokenResponse) net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRecoverPasswordByTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationRecoverPasswordByTokenResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationRecoverPasswordByTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationRecoverPasswordByTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationRecoverPasswordByTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRecoverPasswordByToken.UserTwoStepVerificationRecoverPasswordByTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n3UserTwoStepVerificationRecoverPassword" + + "ByToken.proto\022\005proto\032\rRequest.proto\032\016Res" + + "ponse.proto\"_\n-UserTwoStepVerificationRe" + + "coverPasswordByToken\022\037\n\007request\030\001 \001(\0132\016." + + "proto.Request\022\r\n\005token\030\002 \001(\t\"i\n5UserTwoS" + + "tepVerificationRecoverPasswordByTokenRes" + + "ponse\022!\n\010response\030\001 \001(\0132\017.proto.Response" + + "\022\r\n\005token\030\002 \001(\tBD\n\016net.iGap.protoB2Proto" + + "UserTwoStepVerificationRecoverPasswordBy" + + "Tokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationRecoverPasswordByToken_descriptor, + new java.lang.String[] { "Request", "Token", }); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationRecoverPasswordByTokenResponse_descriptor, + new java.lang.String[] { "Response", "Token", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRequestRecoveryToken.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRequestRecoveryToken.java index f841042..afe7cc9 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRequestRecoveryToken.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationRequestRecoveryToken.java @@ -8,90 +8,170 @@ private ProtoUserTwoStepVerificationRequestRecoveryToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationRequestRecoveryTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationRequestRecoveryToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationRequestRecoveryToken} */ - public static final class UserTwoStepVerificationRequestRecoveryToken extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationRequestRecoveryToken, UserTwoStepVerificationRequestRecoveryToken.Builder> implements + public static final class UserTwoStepVerificationRequestRecoveryToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationRequestRecoveryToken) UserTwoStepVerificationRequestRecoveryTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationRequestRecoveryToken.newBuilder() to construct. + private UserTwoStepVerificationRequestRecoveryToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationRequestRecoveryToken() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationRequestRecoveryToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationRequestRecoveryToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.class, net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken other = (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationRequestRecoveryToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationRequestRecoveryToken) net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.class, net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken build() { + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken result = new net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRequestRecoveryToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken other = (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRequestRecoveryToken) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationRequestRecoveryToken) private static final net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationRequestRecoveryToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken(); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationRequestRecoveryToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationRequestRecoveryToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationRequestRecoveryTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationRequestRecoveryTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @return The emailPattern. */ java.lang.String getEmailPattern(); /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @return The bytes for emailPattern. */ com.google.protobuf.ByteString getEmailPatternBytes(); @@ -361,124 +669,190 @@ public interface UserTwoStepVerificationRequestRecoveryTokenResponseOrBuilder ex /** * Protobuf type {@code proto.UserTwoStepVerificationRequestRecoveryTokenResponse} */ - public static final class UserTwoStepVerificationRequestRecoveryTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationRequestRecoveryTokenResponse, UserTwoStepVerificationRequestRecoveryTokenResponse.Builder> implements + public static final class UserTwoStepVerificationRequestRecoveryTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationRequestRecoveryTokenResponse) UserTwoStepVerificationRequestRecoveryTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationRequestRecoveryTokenResponse.newBuilder() to construct. + private UserTwoStepVerificationRequestRecoveryTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationRequestRecoveryTokenResponse() { emailPattern_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationRequestRecoveryTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationRequestRecoveryTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + emailPattern_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int EMAIL_PATTERN_FIELD_NUMBER = 2; - private java.lang.String emailPattern_; + private volatile java.lang.Object emailPattern_; /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @return The emailPattern. */ + @java.lang.Override public java.lang.String getEmailPattern() { - return emailPattern_; + java.lang.Object ref = emailPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailPattern_ = s; + return s; + } } /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @return The bytes for emailPattern. */ + @java.lang.Override public com.google.protobuf.ByteString getEmailPatternBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(emailPattern_); - } - /** - * optional string email_pattern = 2; - */ - private void setEmailPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - emailPattern_ = value; - } - /** - * optional string email_pattern = 2; - */ - private void clearEmailPattern() { - - emailPattern_ = getDefaultInstance().getEmailPattern(); + java.lang.Object ref = emailPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string email_pattern = 2; - */ - private void setEmailPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - emailPattern_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!emailPattern_.isEmpty()) { - output.writeString(2, getEmailPattern()); + if (!getEmailPatternBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailPattern_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,601 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!emailPattern_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getEmailPattern()); + if (!getEmailPatternBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailPattern_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getEmailPattern() + .equals(other.getEmailPattern())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + EMAIL_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getEmailPattern().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationRequestRecoveryTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationRequestRecoveryTokenResponse) net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + emailPattern_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.emailPattern_ = emailPattern_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getEmailPattern().isEmpty()) { + emailPattern_ = other.emailPattern_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object emailPattern_ = ""; /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @return The emailPattern. */ public java.lang.String getEmailPattern() { - return instance.getEmailPattern(); + java.lang.Object ref = emailPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @return The bytes for emailPattern. */ public com.google.protobuf.ByteString getEmailPatternBytes() { - return instance.getEmailPatternBytes(); + java.lang.Object ref = emailPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @param value The emailPattern to set. + * @return This builder for chaining. */ public Builder setEmailPattern( java.lang.String value) { - copyOnWrite(); - instance.setEmailPattern(value); + if (value == null) { + throw new NullPointerException(); + } + + emailPattern_ = value; + onChanged(); return this; } /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @return This builder for chaining. */ public Builder clearEmailPattern() { - copyOnWrite(); - instance.clearEmailPattern(); + + emailPattern_ = getDefaultInstance().getEmailPattern(); + onChanged(); return this; } /** - * optional string email_pattern = 2; + * string email_pattern = 2; + * @param value The bytes for emailPattern to set. + * @return This builder for chaining. */ public Builder setEmailPatternBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setEmailPatternBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + emailPattern_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRequestRecoveryTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - emailPattern_ = visitor.visitString(!emailPattern_.isEmpty(), emailPattern_, - !other.emailPattern_.isEmpty(), other.emailPattern_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - emailPattern_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationRequestRecoveryTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationRequestRecoveryTokenResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationRequestRecoveryTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationRequestRecoveryTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationRequestRecoveryTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationRequestRecoveryToken.UserTwoStepVerificationRequestRecoveryTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n1UserTwoStepVerificationRequestRecovery" + + "Token.proto\022\005proto\032\rRequest.proto\032\016Respo" + + "nse.proto\"N\n+UserTwoStepVerificationRequ" + + "estRecoveryToken\022\037\n\007request\030\001 \001(\0132\016.prot" + + "o.Request\"o\n3UserTwoStepVerificationRequ" + + "estRecoveryTokenResponse\022!\n\010response\030\001 \001" + + "(\0132\017.proto.Response\022\025\n\remail_pattern\030\002 \001" + + "(\tBB\n\016net.iGap.protoB0ProtoUserTwoStepVe" + + "rificationRequestRecoveryTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationRequestRecoveryToken_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationRequestRecoveryTokenResponse_descriptor, + new java.lang.String[] { "Response", "EmailPattern", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationResendVerifyEmail.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationResendVerifyEmail.java index b6a1954..ca77138 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationResendVerifyEmail.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationResendVerifyEmail.java @@ -8,90 +8,170 @@ private ProtoUserTwoStepVerificationResendVerifyEmail() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationResendVerifyEmailOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationResendVerifyEmail) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationResendVerifyEmail} */ - public static final class UserTwoStepVerificationResendVerifyEmail extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationResendVerifyEmail, UserTwoStepVerificationResendVerifyEmail.Builder> implements + public static final class UserTwoStepVerificationResendVerifyEmail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationResendVerifyEmail) UserTwoStepVerificationResendVerifyEmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationResendVerifyEmail.newBuilder() to construct. + private UserTwoStepVerificationResendVerifyEmail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationResendVerifyEmail() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationResendVerifyEmail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationResendVerifyEmail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.class, net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,261 +179,489 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail other = (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationResendVerifyEmail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationResendVerifyEmail) net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.class, net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmail_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail build() { + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail result = new net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationResendVerifyEmail) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail other = (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationResendVerifyEmail) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationResendVerifyEmail) private static final net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationResendVerifyEmail(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail(); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationResendVerifyEmail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationResendVerifyEmail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationResendVerifyEmailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationResendVerifyEmailResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ java.lang.String getUnconfirmedEmailPattern(); /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes(); @@ -361,124 +669,190 @@ public interface UserTwoStepVerificationResendVerifyEmailResponseOrBuilder exten /** * Protobuf type {@code proto.UserTwoStepVerificationResendVerifyEmailResponse} */ - public static final class UserTwoStepVerificationResendVerifyEmailResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationResendVerifyEmailResponse, UserTwoStepVerificationResendVerifyEmailResponse.Builder> implements + public static final class UserTwoStepVerificationResendVerifyEmailResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationResendVerifyEmailResponse) UserTwoStepVerificationResendVerifyEmailResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationResendVerifyEmailResponse.newBuilder() to construct. + private UserTwoStepVerificationResendVerifyEmailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationResendVerifyEmailResponse() { unconfirmedEmailPattern_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationResendVerifyEmailResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationResendVerifyEmailResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + unconfirmedEmailPattern_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER = 2; - private java.lang.String unconfirmedEmailPattern_; + private volatile java.lang.Object unconfirmedEmailPattern_; /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ + @java.lang.Override public java.lang.String getUnconfirmedEmailPattern() { - return unconfirmedEmailPattern_; + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ + @java.lang.Override public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(unconfirmedEmailPattern_); - } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void setUnconfirmedEmailPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - unconfirmedEmailPattern_ = value; - } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void clearUnconfirmedEmailPattern() { - - unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void setUnconfirmedEmailPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - unconfirmedEmailPattern_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!unconfirmedEmailPattern_.isEmpty()) { - output.writeString(2, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unconfirmedEmailPattern_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -486,296 +860,601 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!unconfirmedEmailPattern_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unconfirmedEmailPattern_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUnconfirmedEmailPattern() + .equals(other.getUnconfirmedEmailPattern())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getUnconfirmedEmailPattern().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationResendVerifyEmailResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationResendVerifyEmailResponse) net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + unconfirmedEmailPattern_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.unconfirmedEmailPattern_ = unconfirmedEmailPattern_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUnconfirmedEmailPattern().isEmpty()) { + unconfirmedEmailPattern_ = other.unconfirmedEmailPattern_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object unconfirmedEmailPattern_ = ""; /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ public java.lang.String getUnconfirmedEmailPattern() { - return instance.getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return instance.getUnconfirmedEmailPatternBytes(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @param value The unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPattern( java.lang.String value) { - copyOnWrite(); - instance.setUnconfirmedEmailPattern(value); + if (value == null) { + throw new NullPointerException(); + } + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return This builder for chaining. */ public Builder clearUnconfirmedEmailPattern() { - copyOnWrite(); - instance.clearUnconfirmedEmailPattern(); + + unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @param value The bytes for unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPatternBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUnconfirmedEmailPatternBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationResendVerifyEmailResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - unconfirmedEmailPattern_ = visitor.visitString(!unconfirmedEmailPattern_.isEmpty(), unconfirmedEmailPattern_, - !other.unconfirmedEmailPattern_.isEmpty(), other.unconfirmedEmailPattern_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - unconfirmedEmailPattern_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationResendVerifyEmailResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationResendVerifyEmailResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationResendVerifyEmailResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationResendVerifyEmailResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationResendVerifyEmailResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationResendVerifyEmail.UserTwoStepVerificationResendVerifyEmailResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationResendVerifyEmail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationResendVerifyEmail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n.UserTwoStepVerificationResendVerifyEma" + + "il.proto\022\005proto\032\rRequest.proto\032\016Response" + + ".proto\"K\n(UserTwoStepVerificationResendV" + + "erifyEmail\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\"x\n0UserTwoStepVerificationResendVeri" + + "fyEmailResponse\022!\n\010response\030\001 \001(\0132\017.prot" + + "o.Response\022!\n\031unconfirmed_email_pattern\030" + + "\002 \001(\tB?\n\016net.iGap.protoB-ProtoUserTwoSte" + + "pVerificationResendVerifyEmailb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationResendVerifyEmail_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationResendVerifyEmail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationResendVerifyEmail_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationResendVerifyEmailResponse_descriptor, + new java.lang.String[] { "Response", "UnconfirmedEmailPattern", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationSetPassword.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationSetPassword.java index 070b04d..5d1d883 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationSetPassword.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationSetPassword.java @@ -8,95 +8,123 @@ private ProtoUserTwoStepVerificationSetPassword() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationSetPasswordOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationSetPassword) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string old_password = 2; + * string old_password = 2; + * @return The oldPassword. */ java.lang.String getOldPassword(); /** - * optional string old_password = 2; + * string old_password = 2; + * @return The bytes for oldPassword. */ com.google.protobuf.ByteString getOldPasswordBytes(); /** - * optional string new_password = 3; + * string new_password = 3; + * @return The newPassword. */ java.lang.String getNewPassword(); /** - * optional string new_password = 3; + * string new_password = 3; + * @return The bytes for newPassword. */ com.google.protobuf.ByteString getNewPasswordBytes(); /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @return The recoveryEmail. */ java.lang.String getRecoveryEmail(); /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @return The bytes for recoveryEmail. */ com.google.protobuf.ByteString getRecoveryEmailBytes(); /** - * optional string question_one = 5; + * string question_one = 5; + * @return The questionOne. */ java.lang.String getQuestionOne(); /** - * optional string question_one = 5; + * string question_one = 5; + * @return The bytes for questionOne. */ com.google.protobuf.ByteString getQuestionOneBytes(); /** - * optional string answer_one = 6; + * string answer_one = 6; + * @return The answerOne. */ java.lang.String getAnswerOne(); /** - * optional string answer_one = 6; + * string answer_one = 6; + * @return The bytes for answerOne. */ com.google.protobuf.ByteString getAnswerOneBytes(); /** - * optional string question_two = 7; + * string question_two = 7; + * @return The questionTwo. */ java.lang.String getQuestionTwo(); /** - * optional string question_two = 7; + * string question_two = 7; + * @return The bytes for questionTwo. */ com.google.protobuf.ByteString getQuestionTwoBytes(); /** - * optional string answer_two = 8; + * string answer_two = 8; + * @return The answerTwo. */ java.lang.String getAnswerTwo(); /** - * optional string answer_two = 8; + * string answer_two = 8; + * @return The bytes for answerTwo. */ com.google.protobuf.ByteString getAnswerTwoBytes(); /** - * optional string hint = 9; + * string hint = 9; + * @return The hint. */ java.lang.String getHint(); /** - * optional string hint = 9; + * string hint = 9; + * @return The bytes for hint. */ com.google.protobuf.ByteString getHintBytes(); @@ -104,11 +132,15 @@ public interface UserTwoStepVerificationSetPasswordOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationSetPassword} */ - public static final class UserTwoStepVerificationSetPassword extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationSetPassword, UserTwoStepVerificationSetPassword.Builder> implements + public static final class UserTwoStepVerificationSetPassword extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationSetPassword) UserTwoStepVerificationSetPasswordOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationSetPassword.newBuilder() to construct. + private UserTwoStepVerificationSetPassword(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationSetPassword() { oldPassword_ = ""; newPassword_ = ""; @@ -119,459 +151,507 @@ private UserTwoStepVerificationSetPassword() { answerTwo_ = ""; hint_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationSetPassword(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationSetPassword( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + oldPassword_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + newPassword_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + recoveryEmail_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + questionOne_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + answerOne_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + questionTwo_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + answerTwo_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + hint_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int OLD_PASSWORD_FIELD_NUMBER = 2; - private java.lang.String oldPassword_; + private volatile java.lang.Object oldPassword_; /** - * optional string old_password = 2; + * string old_password = 2; + * @return The oldPassword. */ + @java.lang.Override public java.lang.String getOldPassword() { - return oldPassword_; + java.lang.Object ref = oldPassword_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldPassword_ = s; + return s; + } } /** - * optional string old_password = 2; + * string old_password = 2; + * @return The bytes for oldPassword. */ + @java.lang.Override public com.google.protobuf.ByteString getOldPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(oldPassword_); - } - /** - * optional string old_password = 2; - */ - private void setOldPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - oldPassword_ = value; - } - /** - * optional string old_password = 2; - */ - private void clearOldPassword() { - - oldPassword_ = getDefaultInstance().getOldPassword(); - } - /** - * optional string old_password = 2; - */ - private void setOldPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - oldPassword_ = value.toStringUtf8(); + java.lang.Object ref = oldPassword_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int NEW_PASSWORD_FIELD_NUMBER = 3; - private java.lang.String newPassword_; + private volatile java.lang.Object newPassword_; /** - * optional string new_password = 3; + * string new_password = 3; + * @return The newPassword. */ + @java.lang.Override public java.lang.String getNewPassword() { - return newPassword_; + java.lang.Object ref = newPassword_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newPassword_ = s; + return s; + } } /** - * optional string new_password = 3; + * string new_password = 3; + * @return The bytes for newPassword. */ + @java.lang.Override public com.google.protobuf.ByteString getNewPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(newPassword_); - } - /** - * optional string new_password = 3; - */ - private void setNewPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - newPassword_ = value; - } - /** - * optional string new_password = 3; - */ - private void clearNewPassword() { - - newPassword_ = getDefaultInstance().getNewPassword(); - } - /** - * optional string new_password = 3; - */ - private void setNewPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - newPassword_ = value.toStringUtf8(); + java.lang.Object ref = newPassword_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int RECOVERY_EMAIL_FIELD_NUMBER = 4; - private java.lang.String recoveryEmail_; + private volatile java.lang.Object recoveryEmail_; /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @return The recoveryEmail. */ + @java.lang.Override public java.lang.String getRecoveryEmail() { - return recoveryEmail_; + java.lang.Object ref = recoveryEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recoveryEmail_ = s; + return s; + } } /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @return The bytes for recoveryEmail. */ + @java.lang.Override public com.google.protobuf.ByteString getRecoveryEmailBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(recoveryEmail_); - } - /** - * optional string recovery_email = 4; - */ - private void setRecoveryEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - recoveryEmail_ = value; - } - /** - * optional string recovery_email = 4; - */ - private void clearRecoveryEmail() { - - recoveryEmail_ = getDefaultInstance().getRecoveryEmail(); - } - /** - * optional string recovery_email = 4; - */ - private void setRecoveryEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - recoveryEmail_ = value.toStringUtf8(); + java.lang.Object ref = recoveryEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recoveryEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int QUESTION_ONE_FIELD_NUMBER = 5; - private java.lang.String questionOne_; + private volatile java.lang.Object questionOne_; /** - * optional string question_one = 5; + * string question_one = 5; + * @return The questionOne. */ + @java.lang.Override public java.lang.String getQuestionOne() { - return questionOne_; + java.lang.Object ref = questionOne_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionOne_ = s; + return s; + } } /** - * optional string question_one = 5; + * string question_one = 5; + * @return The bytes for questionOne. */ + @java.lang.Override public com.google.protobuf.ByteString getQuestionOneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(questionOne_); - } - /** - * optional string question_one = 5; - */ - private void setQuestionOne( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - questionOne_ = value; - } - /** - * optional string question_one = 5; - */ - private void clearQuestionOne() { - - questionOne_ = getDefaultInstance().getQuestionOne(); - } - /** - * optional string question_one = 5; - */ - private void setQuestionOneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - questionOne_ = value.toStringUtf8(); + java.lang.Object ref = questionOne_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ANSWER_ONE_FIELD_NUMBER = 6; - private java.lang.String answerOne_; + private volatile java.lang.Object answerOne_; /** - * optional string answer_one = 6; + * string answer_one = 6; + * @return The answerOne. */ + @java.lang.Override public java.lang.String getAnswerOne() { - return answerOne_; + java.lang.Object ref = answerOne_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerOne_ = s; + return s; + } } /** - * optional string answer_one = 6; + * string answer_one = 6; + * @return The bytes for answerOne. */ + @java.lang.Override public com.google.protobuf.ByteString getAnswerOneBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(answerOne_); - } - /** - * optional string answer_one = 6; - */ - private void setAnswerOne( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - answerOne_ = value; - } - /** - * optional string answer_one = 6; - */ - private void clearAnswerOne() { - - answerOne_ = getDefaultInstance().getAnswerOne(); - } - /** - * optional string answer_one = 6; - */ - private void setAnswerOneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - answerOne_ = value.toStringUtf8(); + java.lang.Object ref = answerOne_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int QUESTION_TWO_FIELD_NUMBER = 7; - private java.lang.String questionTwo_; + private volatile java.lang.Object questionTwo_; /** - * optional string question_two = 7; + * string question_two = 7; + * @return The questionTwo. */ + @java.lang.Override public java.lang.String getQuestionTwo() { - return questionTwo_; + java.lang.Object ref = questionTwo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionTwo_ = s; + return s; + } } /** - * optional string question_two = 7; + * string question_two = 7; + * @return The bytes for questionTwo. */ + @java.lang.Override public com.google.protobuf.ByteString getQuestionTwoBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(questionTwo_); - } - /** - * optional string question_two = 7; - */ - private void setQuestionTwo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - questionTwo_ = value; - } - /** - * optional string question_two = 7; - */ - private void clearQuestionTwo() { - - questionTwo_ = getDefaultInstance().getQuestionTwo(); - } - /** - * optional string question_two = 7; - */ - private void setQuestionTwoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - questionTwo_ = value.toStringUtf8(); + java.lang.Object ref = questionTwo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ANSWER_TWO_FIELD_NUMBER = 8; - private java.lang.String answerTwo_; + private volatile java.lang.Object answerTwo_; /** - * optional string answer_two = 8; + * string answer_two = 8; + * @return The answerTwo. */ + @java.lang.Override public java.lang.String getAnswerTwo() { - return answerTwo_; + java.lang.Object ref = answerTwo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerTwo_ = s; + return s; + } } /** - * optional string answer_two = 8; + * string answer_two = 8; + * @return The bytes for answerTwo. */ + @java.lang.Override public com.google.protobuf.ByteString getAnswerTwoBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(answerTwo_); - } - /** - * optional string answer_two = 8; - */ - private void setAnswerTwo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - answerTwo_ = value; - } - /** - * optional string answer_two = 8; - */ - private void clearAnswerTwo() { - - answerTwo_ = getDefaultInstance().getAnswerTwo(); - } - /** - * optional string answer_two = 8; - */ - private void setAnswerTwoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - answerTwo_ = value.toStringUtf8(); + java.lang.Object ref = answerTwo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int HINT_FIELD_NUMBER = 9; - private java.lang.String hint_; + private volatile java.lang.Object hint_; /** - * optional string hint = 9; + * string hint = 9; + * @return The hint. */ + @java.lang.Override public java.lang.String getHint() { - return hint_; + java.lang.Object ref = hint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hint_ = s; + return s; + } } /** - * optional string hint = 9; + * string hint = 9; + * @return The bytes for hint. */ + @java.lang.Override public com.google.protobuf.ByteString getHintBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(hint_); - } - /** - * optional string hint = 9; - */ - private void setHint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hint_ = value; - } - /** - * optional string hint = 9; - */ - private void clearHint() { - - hint_ = getDefaultInstance().getHint(); + java.lang.Object ref = hint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string hint = 9; - */ - private void setHintBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hint_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!oldPassword_.isEmpty()) { - output.writeString(2, getOldPassword()); + if (!getOldPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oldPassword_); } - if (!newPassword_.isEmpty()) { - output.writeString(3, getNewPassword()); + if (!getNewPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newPassword_); } - if (!recoveryEmail_.isEmpty()) { - output.writeString(4, getRecoveryEmail()); + if (!getRecoveryEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, recoveryEmail_); } - if (!questionOne_.isEmpty()) { - output.writeString(5, getQuestionOne()); + if (!getQuestionOneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, questionOne_); } - if (!answerOne_.isEmpty()) { - output.writeString(6, getAnswerOne()); + if (!getAnswerOneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, answerOne_); } - if (!questionTwo_.isEmpty()) { - output.writeString(7, getQuestionTwo()); + if (!getQuestionTwoBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, questionTwo_); } - if (!answerTwo_.isEmpty()) { - output.writeString(8, getAnswerTwo()); + if (!getAnswerTwoBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, answerTwo_); } - if (!hint_.isEmpty()) { - output.writeString(9, getHint()); + if (!getHintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, hint_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -579,677 +659,1209 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!oldPassword_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getOldPassword()); + if (!getOldPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oldPassword_); } - if (!newPassword_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getNewPassword()); + if (!getNewPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newPassword_); } - if (!recoveryEmail_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getRecoveryEmail()); + if (!getRecoveryEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, recoveryEmail_); } - if (!questionOne_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getQuestionOne()); + if (!getQuestionOneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, questionOne_); } - if (!answerOne_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getAnswerOne()); + if (!getAnswerOneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, answerOne_); } - if (!questionTwo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getQuestionTwo()); + if (!getQuestionTwoBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, questionTwo_); } - if (!answerTwo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(8, getAnswerTwo()); + if (!getAnswerTwoBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, answerTwo_); } - if (!hint_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getHint()); + if (!getHintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, hint_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getOldPassword() + .equals(other.getOldPassword())) return false; + if (!getNewPassword() + .equals(other.getNewPassword())) return false; + if (!getRecoveryEmail() + .equals(other.getRecoveryEmail())) return false; + if (!getQuestionOne() + .equals(other.getQuestionOne())) return false; + if (!getAnswerOne() + .equals(other.getAnswerOne())) return false; + if (!getQuestionTwo() + .equals(other.getQuestionTwo())) return false; + if (!getAnswerTwo() + .equals(other.getAnswerTwo())) return false; + if (!getHint() + .equals(other.getHint())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + OLD_PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getOldPassword().hashCode(); + hash = (37 * hash) + NEW_PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getNewPassword().hashCode(); + hash = (37 * hash) + RECOVERY_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecoveryEmail().hashCode(); + hash = (37 * hash) + QUESTION_ONE_FIELD_NUMBER; + hash = (53 * hash) + getQuestionOne().hashCode(); + hash = (37 * hash) + ANSWER_ONE_FIELD_NUMBER; + hash = (53 * hash) + getAnswerOne().hashCode(); + hash = (37 * hash) + QUESTION_TWO_FIELD_NUMBER; + hash = (53 * hash) + getQuestionTwo().hashCode(); + hash = (37 * hash) + ANSWER_TWO_FIELD_NUMBER; + hash = (53 * hash) + getAnswerTwo().hashCode(); + hash = (37 * hash) + HINT_FIELD_NUMBER; + hash = (53 * hash) + getHint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationSetPassword} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationSetPassword) net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + oldPassword_ = ""; + + newPassword_ = ""; + + recoveryEmail_ = ""; + + questionOne_ = ""; + + answerOne_ = ""; + + questionTwo_ = ""; + + answerTwo_ = ""; + + hint_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPassword_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword build() { + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword result = new net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.oldPassword_ = oldPassword_; + result.newPassword_ = newPassword_; + result.recoveryEmail_ = recoveryEmail_; + result.questionOne_ = questionOne_; + result.answerOne_ = answerOne_; + result.questionTwo_ = questionTwo_; + result.answerTwo_ = answerTwo_; + result.hint_ = hint_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getOldPassword().isEmpty()) { + oldPassword_ = other.oldPassword_; + onChanged(); + } + if (!other.getNewPassword().isEmpty()) { + newPassword_ = other.newPassword_; + onChanged(); + } + if (!other.getRecoveryEmail().isEmpty()) { + recoveryEmail_ = other.recoveryEmail_; + onChanged(); + } + if (!other.getQuestionOne().isEmpty()) { + questionOne_ = other.questionOne_; + onChanged(); + } + if (!other.getAnswerOne().isEmpty()) { + answerOne_ = other.answerOne_; + onChanged(); + } + if (!other.getQuestionTwo().isEmpty()) { + questionTwo_ = other.questionTwo_; + onChanged(); + } + if (!other.getAnswerTwo().isEmpty()) { + answerTwo_ = other.answerTwo_; + onChanged(); + } + if (!other.getHint().isEmpty()) { + hint_ = other.hint_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object oldPassword_ = ""; /** - * optional string old_password = 2; + * string old_password = 2; + * @return The oldPassword. */ public java.lang.String getOldPassword() { - return instance.getOldPassword(); + java.lang.Object ref = oldPassword_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldPassword_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string old_password = 2; + * string old_password = 2; + * @return The bytes for oldPassword. */ public com.google.protobuf.ByteString getOldPasswordBytes() { - return instance.getOldPasswordBytes(); + java.lang.Object ref = oldPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string old_password = 2; + * string old_password = 2; + * @param value The oldPassword to set. + * @return This builder for chaining. */ public Builder setOldPassword( java.lang.String value) { - copyOnWrite(); - instance.setOldPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + oldPassword_ = value; + onChanged(); return this; } /** - * optional string old_password = 2; + * string old_password = 2; + * @return This builder for chaining. */ public Builder clearOldPassword() { - copyOnWrite(); - instance.clearOldPassword(); + + oldPassword_ = getDefaultInstance().getOldPassword(); + onChanged(); return this; } /** - * optional string old_password = 2; + * string old_password = 2; + * @param value The bytes for oldPassword to set. + * @return This builder for chaining. */ public Builder setOldPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setOldPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + oldPassword_ = value; + onChanged(); return this; } + private java.lang.Object newPassword_ = ""; /** - * optional string new_password = 3; + * string new_password = 3; + * @return The newPassword. */ public java.lang.String getNewPassword() { - return instance.getNewPassword(); + java.lang.Object ref = newPassword_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newPassword_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string new_password = 3; + * string new_password = 3; + * @return The bytes for newPassword. */ public com.google.protobuf.ByteString getNewPasswordBytes() { - return instance.getNewPasswordBytes(); + java.lang.Object ref = newPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string new_password = 3; + * string new_password = 3; + * @param value The newPassword to set. + * @return This builder for chaining. */ public Builder setNewPassword( java.lang.String value) { - copyOnWrite(); - instance.setNewPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + newPassword_ = value; + onChanged(); return this; } /** - * optional string new_password = 3; + * string new_password = 3; + * @return This builder for chaining. */ public Builder clearNewPassword() { - copyOnWrite(); - instance.clearNewPassword(); + + newPassword_ = getDefaultInstance().getNewPassword(); + onChanged(); return this; } /** - * optional string new_password = 3; + * string new_password = 3; + * @param value The bytes for newPassword to set. + * @return This builder for chaining. */ public Builder setNewPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNewPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + newPassword_ = value; + onChanged(); return this; } + private java.lang.Object recoveryEmail_ = ""; /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @return The recoveryEmail. */ public java.lang.String getRecoveryEmail() { - return instance.getRecoveryEmail(); + java.lang.Object ref = recoveryEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recoveryEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @return The bytes for recoveryEmail. */ public com.google.protobuf.ByteString getRecoveryEmailBytes() { - return instance.getRecoveryEmailBytes(); + java.lang.Object ref = recoveryEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recoveryEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @param value The recoveryEmail to set. + * @return This builder for chaining. */ public Builder setRecoveryEmail( java.lang.String value) { - copyOnWrite(); - instance.setRecoveryEmail(value); + if (value == null) { + throw new NullPointerException(); + } + + recoveryEmail_ = value; + onChanged(); return this; } /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @return This builder for chaining. */ public Builder clearRecoveryEmail() { - copyOnWrite(); - instance.clearRecoveryEmail(); + + recoveryEmail_ = getDefaultInstance().getRecoveryEmail(); + onChanged(); return this; } /** - * optional string recovery_email = 4; + * string recovery_email = 4; + * @param value The bytes for recoveryEmail to set. + * @return This builder for chaining. */ public Builder setRecoveryEmailBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setRecoveryEmailBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + recoveryEmail_ = value; + onChanged(); return this; } + private java.lang.Object questionOne_ = ""; /** - * optional string question_one = 5; + * string question_one = 5; + * @return The questionOne. */ public java.lang.String getQuestionOne() { - return instance.getQuestionOne(); + java.lang.Object ref = questionOne_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionOne_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string question_one = 5; + * string question_one = 5; + * @return The bytes for questionOne. */ public com.google.protobuf.ByteString getQuestionOneBytes() { - return instance.getQuestionOneBytes(); + java.lang.Object ref = questionOne_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string question_one = 5; + * string question_one = 5; + * @param value The questionOne to set. + * @return This builder for chaining. */ public Builder setQuestionOne( java.lang.String value) { - copyOnWrite(); - instance.setQuestionOne(value); + if (value == null) { + throw new NullPointerException(); + } + + questionOne_ = value; + onChanged(); return this; } /** - * optional string question_one = 5; + * string question_one = 5; + * @return This builder for chaining. */ public Builder clearQuestionOne() { - copyOnWrite(); - instance.clearQuestionOne(); + + questionOne_ = getDefaultInstance().getQuestionOne(); + onChanged(); return this; } /** - * optional string question_one = 5; + * string question_one = 5; + * @param value The bytes for questionOne to set. + * @return This builder for chaining. */ public Builder setQuestionOneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQuestionOneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + questionOne_ = value; + onChanged(); return this; } + private java.lang.Object answerOne_ = ""; /** - * optional string answer_one = 6; + * string answer_one = 6; + * @return The answerOne. */ public java.lang.String getAnswerOne() { - return instance.getAnswerOne(); + java.lang.Object ref = answerOne_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerOne_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string answer_one = 6; + * string answer_one = 6; + * @return The bytes for answerOne. */ public com.google.protobuf.ByteString getAnswerOneBytes() { - return instance.getAnswerOneBytes(); + java.lang.Object ref = answerOne_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerOne_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string answer_one = 6; + * string answer_one = 6; + * @param value The answerOne to set. + * @return This builder for chaining. */ public Builder setAnswerOne( java.lang.String value) { - copyOnWrite(); - instance.setAnswerOne(value); + if (value == null) { + throw new NullPointerException(); + } + + answerOne_ = value; + onChanged(); return this; } /** - * optional string answer_one = 6; + * string answer_one = 6; + * @return This builder for chaining. */ public Builder clearAnswerOne() { - copyOnWrite(); - instance.clearAnswerOne(); + + answerOne_ = getDefaultInstance().getAnswerOne(); + onChanged(); return this; } /** - * optional string answer_one = 6; + * string answer_one = 6; + * @param value The bytes for answerOne to set. + * @return This builder for chaining. */ public Builder setAnswerOneBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAnswerOneBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + answerOne_ = value; + onChanged(); return this; } + private java.lang.Object questionTwo_ = ""; /** - * optional string question_two = 7; + * string question_two = 7; + * @return The questionTwo. */ public java.lang.String getQuestionTwo() { - return instance.getQuestionTwo(); + java.lang.Object ref = questionTwo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + questionTwo_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string question_two = 7; + * string question_two = 7; + * @return The bytes for questionTwo. */ public com.google.protobuf.ByteString getQuestionTwoBytes() { - return instance.getQuestionTwoBytes(); + java.lang.Object ref = questionTwo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + questionTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string question_two = 7; + * string question_two = 7; + * @param value The questionTwo to set. + * @return This builder for chaining. */ public Builder setQuestionTwo( java.lang.String value) { - copyOnWrite(); - instance.setQuestionTwo(value); + if (value == null) { + throw new NullPointerException(); + } + + questionTwo_ = value; + onChanged(); return this; } /** - * optional string question_two = 7; + * string question_two = 7; + * @return This builder for chaining. */ public Builder clearQuestionTwo() { - copyOnWrite(); - instance.clearQuestionTwo(); + + questionTwo_ = getDefaultInstance().getQuestionTwo(); + onChanged(); return this; } /** - * optional string question_two = 7; + * string question_two = 7; + * @param value The bytes for questionTwo to set. + * @return This builder for chaining. */ public Builder setQuestionTwoBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setQuestionTwoBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + questionTwo_ = value; + onChanged(); return this; } + private java.lang.Object answerTwo_ = ""; /** - * optional string answer_two = 8; + * string answer_two = 8; + * @return The answerTwo. */ public java.lang.String getAnswerTwo() { - return instance.getAnswerTwo(); + java.lang.Object ref = answerTwo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerTwo_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string answer_two = 8; + * string answer_two = 8; + * @return The bytes for answerTwo. */ public com.google.protobuf.ByteString getAnswerTwoBytes() { - return instance.getAnswerTwoBytes(); + java.lang.Object ref = answerTwo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answerTwo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string answer_two = 8; + * string answer_two = 8; + * @param value The answerTwo to set. + * @return This builder for chaining. */ public Builder setAnswerTwo( java.lang.String value) { - copyOnWrite(); - instance.setAnswerTwo(value); + if (value == null) { + throw new NullPointerException(); + } + + answerTwo_ = value; + onChanged(); return this; } /** - * optional string answer_two = 8; + * string answer_two = 8; + * @return This builder for chaining. */ public Builder clearAnswerTwo() { - copyOnWrite(); - instance.clearAnswerTwo(); + + answerTwo_ = getDefaultInstance().getAnswerTwo(); + onChanged(); return this; } /** - * optional string answer_two = 8; + * string answer_two = 8; + * @param value The bytes for answerTwo to set. + * @return This builder for chaining. */ public Builder setAnswerTwoBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAnswerTwoBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + answerTwo_ = value; + onChanged(); return this; } + private java.lang.Object hint_ = ""; /** - * optional string hint = 9; + * string hint = 9; + * @return The hint. */ public java.lang.String getHint() { - return instance.getHint(); + java.lang.Object ref = hint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hint_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string hint = 9; + * string hint = 9; + * @return The bytes for hint. */ public com.google.protobuf.ByteString getHintBytes() { - return instance.getHintBytes(); + java.lang.Object ref = hint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string hint = 9; + * string hint = 9; + * @param value The hint to set. + * @return This builder for chaining. */ public Builder setHint( java.lang.String value) { - copyOnWrite(); - instance.setHint(value); + if (value == null) { + throw new NullPointerException(); + } + + hint_ = value; + onChanged(); return this; } /** - * optional string hint = 9; + * string hint = 9; + * @return This builder for chaining. */ public Builder clearHint() { - copyOnWrite(); - instance.clearHint(); + + hint_ = getDefaultInstance().getHint(); + onChanged(); return this; } /** - * optional string hint = 9; + * string hint = 9; + * @param value The bytes for hint to set. + * @return This builder for chaining. */ public Builder setHintBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setHintBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hint_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationSetPassword) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword) arg1; - request_ = visitor.visitMessage(request_, other.request_); - oldPassword_ = visitor.visitString(!oldPassword_.isEmpty(), oldPassword_, - !other.oldPassword_.isEmpty(), other.oldPassword_); - newPassword_ = visitor.visitString(!newPassword_.isEmpty(), newPassword_, - !other.newPassword_.isEmpty(), other.newPassword_); - recoveryEmail_ = visitor.visitString(!recoveryEmail_.isEmpty(), recoveryEmail_, - !other.recoveryEmail_.isEmpty(), other.recoveryEmail_); - questionOne_ = visitor.visitString(!questionOne_.isEmpty(), questionOne_, - !other.questionOne_.isEmpty(), other.questionOne_); - answerOne_ = visitor.visitString(!answerOne_.isEmpty(), answerOne_, - !other.answerOne_.isEmpty(), other.answerOne_); - questionTwo_ = visitor.visitString(!questionTwo_.isEmpty(), questionTwo_, - !other.questionTwo_.isEmpty(), other.questionTwo_); - answerTwo_ = visitor.visitString(!answerTwo_.isEmpty(), answerTwo_, - !other.answerTwo_.isEmpty(), other.answerTwo_); - hint_ = visitor.visitString(!hint_.isEmpty(), hint_, - !other.hint_.isEmpty(), other.hint_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - oldPassword_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - newPassword_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - recoveryEmail_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - questionOne_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - answerOne_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - questionTwo_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - answerTwo_ = s; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - hint_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationSetPassword) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationSetPassword) private static final net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationSetPassword(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword(); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationSetPassword parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationSetPassword(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPassword getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserTwoStepVerificationSetPasswordResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationSetPasswordResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ java.lang.String getUnconfirmedEmailPattern(); /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes(); @@ -1257,124 +1869,190 @@ public interface UserTwoStepVerificationSetPasswordResponseOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationSetPasswordResponse} */ - public static final class UserTwoStepVerificationSetPasswordResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationSetPasswordResponse, UserTwoStepVerificationSetPasswordResponse.Builder> implements + public static final class UserTwoStepVerificationSetPasswordResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationSetPasswordResponse) UserTwoStepVerificationSetPasswordResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationSetPasswordResponse.newBuilder() to construct. + private UserTwoStepVerificationSetPasswordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationSetPasswordResponse() { unconfirmedEmailPattern_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationSetPasswordResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationSetPasswordResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + unconfirmedEmailPattern_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER = 2; - private java.lang.String unconfirmedEmailPattern_; + private volatile java.lang.Object unconfirmedEmailPattern_; /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ + @java.lang.Override public java.lang.String getUnconfirmedEmailPattern() { - return unconfirmedEmailPattern_; + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ + @java.lang.Override public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(unconfirmedEmailPattern_); - } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void setUnconfirmedEmailPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - unconfirmedEmailPattern_ = value; - } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void clearUnconfirmedEmailPattern() { - - unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string unconfirmed_email_pattern = 2; - */ - private void setUnconfirmedEmailPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - unconfirmedEmailPattern_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!unconfirmedEmailPattern_.isEmpty()) { - output.writeString(2, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unconfirmedEmailPattern_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1382,296 +2060,605 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!unconfirmedEmailPattern_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUnconfirmedEmailPattern()); + if (!getUnconfirmedEmailPatternBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unconfirmedEmailPattern_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getUnconfirmedEmailPattern() + .equals(other.getUnconfirmedEmailPattern())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + UNCONFIRMED_EMAIL_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getUnconfirmedEmailPattern().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationSetPasswordResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationSetPasswordResponse) net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + unconfirmedEmailPattern_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.internal_static_proto_UserTwoStepVerificationSetPasswordResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.unconfirmedEmailPattern_ = unconfirmedEmailPattern_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getUnconfirmedEmailPattern().isEmpty()) { + unconfirmedEmailPattern_ = other.unconfirmedEmailPattern_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object unconfirmedEmailPattern_ = ""; /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The unconfirmedEmailPattern. */ public java.lang.String getUnconfirmedEmailPattern() { - return instance.getUnconfirmedEmailPattern(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unconfirmedEmailPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return The bytes for unconfirmedEmailPattern. */ public com.google.protobuf.ByteString getUnconfirmedEmailPatternBytes() { - return instance.getUnconfirmedEmailPatternBytes(); + java.lang.Object ref = unconfirmedEmailPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unconfirmedEmailPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @param value The unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPattern( java.lang.String value) { - copyOnWrite(); - instance.setUnconfirmedEmailPattern(value); + if (value == null) { + throw new NullPointerException(); + } + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @return This builder for chaining. */ public Builder clearUnconfirmedEmailPattern() { - copyOnWrite(); - instance.clearUnconfirmedEmailPattern(); + + unconfirmedEmailPattern_ = getDefaultInstance().getUnconfirmedEmailPattern(); + onChanged(); return this; } /** - * optional string unconfirmed_email_pattern = 2; + * string unconfirmed_email_pattern = 2; + * @param value The bytes for unconfirmedEmailPattern to set. + * @return This builder for chaining. */ public Builder setUnconfirmedEmailPatternBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUnconfirmedEmailPatternBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + unconfirmedEmailPattern_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationSetPasswordResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - unconfirmedEmailPattern_ = visitor.visitString(!unconfirmedEmailPattern_.isEmpty(), unconfirmedEmailPattern_, - !other.unconfirmedEmailPattern_.isEmpty(), other.unconfirmedEmailPattern_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - unconfirmedEmailPattern_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationSetPasswordResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationSetPasswordResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationSetPasswordResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationSetPasswordResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationSetPasswordResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationSetPassword.UserTwoStepVerificationSetPasswordResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationSetPassword_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationSetPassword_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationSetPasswordResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationSetPasswordResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n(UserTwoStepVerificationSetPassword.pro" + + "to\022\005proto\032\rRequest.proto\032\016Response.proto" + + "\"\353\001\n\"UserTwoStepVerificationSetPassword\022" + + "\037\n\007request\030\001 \001(\0132\016.proto.Request\022\024\n\014old_" + + "password\030\002 \001(\t\022\024\n\014new_password\030\003 \001(\t\022\026\n\016" + + "recovery_email\030\004 \001(\t\022\024\n\014question_one\030\005 \001" + + "(\t\022\022\n\nanswer_one\030\006 \001(\t\022\024\n\014question_two\030\007" + + " \001(\t\022\022\n\nanswer_two\030\010 \001(\t\022\014\n\004hint\030\t \001(\t\"r" + + "\n*UserTwoStepVerificationSetPasswordResp" + + "onse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022" + + "!\n\031unconfirmed_email_pattern\030\002 \001(\tB9\n\016ne" + + "t.iGap.protoB\'ProtoUserTwoStepVerificati" + + "onSetPasswordb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationSetPassword_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationSetPassword_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationSetPassword_descriptor, + new java.lang.String[] { "Request", "OldPassword", "NewPassword", "RecoveryEmail", "QuestionOne", "AnswerOne", "QuestionTwo", "AnswerTwo", "Hint", }); + internal_static_proto_UserTwoStepVerificationSetPasswordResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationSetPasswordResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationSetPasswordResponse_descriptor, + new java.lang.String[] { "Response", "UnconfirmedEmailPattern", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationUnsetPassword.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationUnsetPassword.java index 681fd6f..b198d3f 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationUnsetPassword.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationUnsetPassword.java @@ -8,25 +8,39 @@ private ProtoUserTwoStepVerificationUnsetPassword() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationUnsetPasswordOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationUnsetPassword) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string password = 2; + * string password = 2; + * @return The password. */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); @@ -34,124 +48,190 @@ public interface UserTwoStepVerificationUnsetPasswordOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationUnsetPassword} */ - public static final class UserTwoStepVerificationUnsetPassword extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationUnsetPassword, UserTwoStepVerificationUnsetPassword.Builder> implements + public static final class UserTwoStepVerificationUnsetPassword extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationUnsetPassword) UserTwoStepVerificationUnsetPasswordOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationUnsetPassword.newBuilder() to construct. + private UserTwoStepVerificationUnsetPassword(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationUnsetPassword() { password_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationUnsetPassword(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationUnsetPassword( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; + private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ + @java.lang.Override public java.lang.String getPassword() { - return password_; + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); - } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - - password_ = getDefaultInstance().getPassword(); + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!password_.isEmpty()) { - output.writeString(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,378 +239,710 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!password_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPassword() + .equals(other.getPassword())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationUnsetPassword} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationUnsetPassword) net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + password_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPassword_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword build() { + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword result = new net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.password_ = password_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ public java.lang.String getPassword() { - return instance.getPassword(); + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { - return instance.getPasswordBytes(); + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @return This builder for chaining. */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + + password_ = getDefaultInstance().getPassword(); + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationUnsetPassword) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword) arg1; - request_ = visitor.visitMessage(request_, other.request_); - password_ = visitor.visitString(!password_.isEmpty(), password_, - !other.password_.isEmpty(), other.password_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationUnsetPassword) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationUnsetPassword) private static final net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationUnsetPassword(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword(); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationUnsetPassword parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationUnsetPassword(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPassword getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationUnsetPasswordResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationUnsetPasswordResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationUnsetPasswordResponse} */ - public static final class UserTwoStepVerificationUnsetPasswordResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationUnsetPasswordResponse, UserTwoStepVerificationUnsetPasswordResponse.Builder> implements + public static final class UserTwoStepVerificationUnsetPasswordResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationUnsetPasswordResponse) UserTwoStepVerificationUnsetPasswordResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationUnsetPasswordResponse.newBuilder() to construct. + private UserTwoStepVerificationUnsetPasswordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationUnsetPasswordResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationUnsetPasswordResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationUnsetPasswordResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -538,244 +950,511 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationUnsetPasswordResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationUnsetPasswordResponse) net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationUnsetPasswordResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationUnsetPasswordResponse) + } // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationUnsetPasswordResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationUnsetPasswordResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationUnsetPasswordResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationUnsetPasswordResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationUnsetPassword.UserTwoStepVerificationUnsetPasswordResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationUnsetPassword_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationUnsetPassword_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n*UserTwoStepVerificationUnsetPassword.p" + + "roto\022\005proto\032\rRequest.proto\032\016Response.pro" + + "to\"Y\n$UserTwoStepVerificationUnsetPasswo" + + "rd\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\020\n\010p" + + "assword\030\002 \001(\t\"Q\n,UserTwoStepVerification" + + "UnsetPasswordResponse\022!\n\010response\030\001 \001(\0132" + + "\017.proto.ResponseB;\n\016net.iGap.protoB)Prot" + + "oUserTwoStepVerificationUnsetPasswordb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationUnsetPassword_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationUnsetPassword_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationUnsetPassword_descriptor, + new java.lang.String[] { "Request", "Password", }); + internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationUnsetPasswordResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyPassword.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyPassword.java index 6283b73..5bf2dd1 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyPassword.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyPassword.java @@ -8,25 +8,39 @@ private ProtoUserTwoStepVerificationVerifyPassword() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationVerifyPasswordOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationVerifyPassword) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string password = 2; + * string password = 2; + * @return The password. */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); @@ -34,124 +48,190 @@ public interface UserTwoStepVerificationVerifyPasswordOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyPassword} */ - public static final class UserTwoStepVerificationVerifyPassword extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationVerifyPassword, UserTwoStepVerificationVerifyPassword.Builder> implements + public static final class UserTwoStepVerificationVerifyPassword extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationVerifyPassword) UserTwoStepVerificationVerifyPasswordOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationVerifyPassword.newBuilder() to construct. + private UserTwoStepVerificationVerifyPassword(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationVerifyPassword() { password_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationVerifyPassword(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationVerifyPassword( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; + private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ + @java.lang.Override public java.lang.String getPassword() { - return password_; + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); - } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - - password_ = getDefaultInstance().getPassword(); + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!password_.isEmpty()) { - output.writeString(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,313 +239,579 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!password_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getPassword() + .equals(other.getPassword())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyPassword} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationVerifyPassword) net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + password_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPassword_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword build() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword result = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.password_ = password_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; + * @return The password. */ public java.lang.String getPassword() { - return instance.getPassword(); + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { - return instance.getPasswordBytes(); + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string password = 2; + * string password = 2; + * @param value The password to set. + * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @return This builder for chaining. */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + + password_ = getDefaultInstance().getPassword(); + onChanged(); return this; } /** - * optional string password = 2; + * string password = 2; + * @param value The bytes for password to set. + * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyPassword) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword) arg1; - request_ = visitor.visitMessage(request_, other.request_); - password_ = visitor.visitString(!password_.isEmpty(), password_, - !other.password_.isEmpty(), other.password_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyPassword) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationVerifyPassword) private static final net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationVerifyPassword(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword(); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationVerifyPassword parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationVerifyPassword(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPassword getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserTwoStepVerificationVerifyPasswordResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationVerifyPasswordResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -473,124 +819,190 @@ public interface UserTwoStepVerificationVerifyPasswordResponseOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyPasswordResponse} */ - public static final class UserTwoStepVerificationVerifyPasswordResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationVerifyPasswordResponse, UserTwoStepVerificationVerifyPasswordResponse.Builder> implements + public static final class UserTwoStepVerificationVerifyPasswordResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationVerifyPasswordResponse) UserTwoStepVerificationVerifyPasswordResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationVerifyPasswordResponse.newBuilder() to construct. + private UserTwoStepVerificationVerifyPasswordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationVerifyPasswordResponse() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationVerifyPasswordResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationVerifyPasswordResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -598,296 +1010,601 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyPasswordResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationVerifyPasswordResponse) net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyPasswordResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyPasswordResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationVerifyPasswordResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationVerifyPasswordResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationVerifyPasswordResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationVerifyPasswordResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyPassword.UserTwoStepVerificationVerifyPasswordResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationVerifyPassword_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationVerifyPassword_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n+UserTwoStepVerificationVerifyPassword." + + "proto\022\005proto\032\rRequest.proto\032\016Response.pr" + + "oto\"Z\n%UserTwoStepVerificationVerifyPass" + + "word\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\020\n" + + "\010password\030\002 \001(\t\"a\n-UserTwoStepVerificati" + + "onVerifyPasswordResponse\022!\n\010response\030\001 \001" + + "(\0132\017.proto.Response\022\r\n\005token\030\002 \001(\tB<\n\016ne" + + "t.iGap.protoB*ProtoUserTwoStepVerificati" + + "onVerifyPasswordb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationVerifyPassword_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationVerifyPassword_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationVerifyPassword_descriptor, + new java.lang.String[] { "Request", "Password", }); + internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationVerifyPasswordResponse_descriptor, + new java.lang.String[] { "Response", "Token", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyRecoveryEmail.java b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyRecoveryEmail.java index 17d72b1..b50caf0 100644 --- a/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyRecoveryEmail.java +++ b/src/main/java/net/iGap/proto/ProtoUserTwoStepVerificationVerifyRecoveryEmail.java @@ -8,25 +8,39 @@ private ProtoUserTwoStepVerificationVerifyRecoveryEmail() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserTwoStepVerificationVerifyRecoveryEmailOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationVerifyRecoveryEmail) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -34,124 +48,190 @@ public interface UserTwoStepVerificationVerifyRecoveryEmailOrBuilder extends /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyRecoveryEmail} */ - public static final class UserTwoStepVerificationVerifyRecoveryEmail extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationVerifyRecoveryEmail, UserTwoStepVerificationVerifyRecoveryEmail.Builder> implements + public static final class UserTwoStepVerificationVerifyRecoveryEmail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationVerifyRecoveryEmail) UserTwoStepVerificationVerifyRecoveryEmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationVerifyRecoveryEmail.newBuilder() to construct. + private UserTwoStepVerificationVerifyRecoveryEmail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationVerifyRecoveryEmail() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationVerifyRecoveryEmail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationVerifyRecoveryEmail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,378 +239,710 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyRecoveryEmail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationVerifyRecoveryEmail) net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail build() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail result = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyRecoveryEmail) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyRecoveryEmail) + } + // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationVerifyRecoveryEmail) private static final net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationVerifyRecoveryEmail(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail(); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationVerifyRecoveryEmail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationVerifyRecoveryEmail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserTwoStepVerificationVerifyRecoveryEmailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserTwoStepVerificationVerifyRecoveryEmailResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyRecoveryEmailResponse} */ - public static final class UserTwoStepVerificationVerifyRecoveryEmailResponse extends - com.google.protobuf.GeneratedMessageLite< - UserTwoStepVerificationVerifyRecoveryEmailResponse, UserTwoStepVerificationVerifyRecoveryEmailResponse.Builder> implements + public static final class UserTwoStepVerificationVerifyRecoveryEmailResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserTwoStepVerificationVerifyRecoveryEmailResponse) UserTwoStepVerificationVerifyRecoveryEmailResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserTwoStepVerificationVerifyRecoveryEmailResponse.newBuilder() to construct. + private UserTwoStepVerificationVerifyRecoveryEmailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserTwoStepVerificationVerifyRecoveryEmailResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserTwoStepVerificationVerifyRecoveryEmailResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserTwoStepVerificationVerifyRecoveryEmailResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -538,244 +950,511 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserTwoStepVerificationVerifyRecoveryEmailResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserTwoStepVerificationVerifyRecoveryEmailResponse) net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.class, net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse build() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse buildPartial() { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse result = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse) { + return mergeFrom((net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse other) { + if (other == net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyRecoveryEmailResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse other = (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.UserTwoStepVerificationVerifyRecoveryEmailResponse) + } // @@protoc_insertion_point(class_scope:proto.UserTwoStepVerificationVerifyRecoveryEmailResponse) private static final net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserTwoStepVerificationVerifyRecoveryEmailResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse(); } public static net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserTwoStepVerificationVerifyRecoveryEmailResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserTwoStepVerificationVerifyRecoveryEmailResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserTwoStepVerificationVerifyRecoveryEmail.UserTwoStepVerificationVerifyRecoveryEmailResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n0UserTwoStepVerificationVerifyRecoveryE" + + "mail.proto\022\005proto\032\rRequest.proto\032\016Respon" + + "se.proto\"\\\n*UserTwoStepVerificationVerif" + + "yRecoveryEmail\022\037\n\007request\030\001 \001(\0132\016.proto." + + "Request\022\r\n\005token\030\002 \001(\t\"W\n2UserTwoStepVer" + + "ificationVerifyRecoveryEmailResponse\022!\n\010" + + "response\030\001 \001(\0132\017.proto.ResponseBA\n\016net.i" + + "Gap.protoB/ProtoUserTwoStepVerificationV" + + "erifyRecoveryEmailb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmail_descriptor, + new java.lang.String[] { "Request", "Token", }); + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserTwoStepVerificationVerifyRecoveryEmailResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserUpdateStatus.java b/src/main/java/net/iGap/proto/ProtoUserUpdateStatus.java index 350e2e8..1a42cf4 100644 --- a/src/main/java/net/iGap/proto/ProtoUserUpdateStatus.java +++ b/src/main/java/net/iGap/proto/ProtoUserUpdateStatus.java @@ -8,43 +8,144 @@ private ProtoUserUpdateStatus() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserUpdateStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserUpdateStatus) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus(); } /** * Protobuf type {@code proto.UserUpdateStatus} */ - public static final class UserUpdateStatus extends - com.google.protobuf.GeneratedMessageLite< - UserUpdateStatus, UserUpdateStatus.Builder> implements + public static final class UserUpdateStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserUpdateStatus) UserUpdateStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserUpdateStatus.newBuilder() to construct. + private UserUpdateStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserUpdateStatus() { + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserUpdateStatus(); } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserUpdateStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.class, net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Builder.class); + } + /** * Protobuf enum {@code proto.UserUpdateStatus.Status} */ public enum Status - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * ONLINE = 0; */ @@ -67,10 +168,16 @@ public enum Status public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -78,6 +185,10 @@ public static Status valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Status forNumber(int value) { switch (value) { case 0: return ONLINE; @@ -98,6 +209,37 @@ public Status findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private Status(int value) { @@ -110,94 +252,60 @@ private Status(int value) { public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus() { - net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status result = net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status result = net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.UNRECOGNIZED : result; } - /** - * optional .proto.UserUpdateStatus.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.UserUpdateStatus.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.UserUpdateStatus.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -206,10 +314,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.ONLINE.getNumber()) { output.writeEnum(2, status_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -221,437 +331,731 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus other = (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (status_ != other.status_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserUpdateStatus} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserUpdateStatus) net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.class, net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + status_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatus_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus build() { + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus buildPartial() { + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus result = new net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus) { + return mergeFrom((net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus other) { + if (other == net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int status_ = 0; /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status result = net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.UNRECOGNIZED : result; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserUpdateStatus) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus other = (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus) arg1; - request_ = visitor.visitMessage(request_, other.request_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserUpdateStatus) + } + // @@protoc_insertion_point(class_scope:proto.UserUpdateStatus) private static final net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserUpdateStatus(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus(); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserUpdateStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserUpdateStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserUpdateStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserUpdateStatusResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The status. */ net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus(); /** - * optional uint64 user_id = 8; + * uint64 user_id = 8; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserUpdateStatusResponse} */ - public static final class UserUpdateStatusResponse extends - com.google.protobuf.GeneratedMessageLite< - UserUpdateStatusResponse, UserUpdateStatusResponse.Builder> implements + public static final class UserUpdateStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserUpdateStatusResponse) UserUpdateStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserUpdateStatusResponse.newBuilder() to construct. + private UserUpdateStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserUpdateStatusResponse() { + status_ = 0; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserUpdateStatusResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserUpdateStatusResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 64: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.class, net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The status. */ - public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus() { - net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status result = net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.forNumber(status_); + @java.lang.Override public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status result = net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.valueOf(status_); return result == null ? net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.UNRECOGNIZED : result; } - /** - * optional .proto.UserUpdateStatus.Status status = 2; - */ - private void setStatusValue(int value) { - status_ = value; - } - /** - * optional .proto.UserUpdateStatus.Status status = 2; - */ - private void setStatus(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - } - /** - * optional .proto.UserUpdateStatus.Status status = 2; - */ - private void clearStatus() { - - status_ = 0; - } public static final int USER_ID_FIELD_NUMBER = 8; private long userId_; /** - * optional uint64 user_id = 8; + * uint64 user_id = 8; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 8; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 8; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -663,10 +1067,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(8, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -682,318 +1088,617 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse other = (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (status_ != other.status_) return false; + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserUpdateStatusResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserUpdateStatusResponse) net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.class, net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + status_ = 0; + + userId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserUpdateStatus.internal_static_proto_UserUpdateStatusResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse build() { + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse buildPartial() { + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse result = new net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.status_ = status_; + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse) { + return mergeFrom((net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse other) { + if (other == net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int status_ = 0; /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public int getStatusValue() { - return instance.getStatusValue(); + @java.lang.Override public int getStatusValue() { + return status_; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ public Builder setStatusValue(int value) { - copyOnWrite(); - instance.setStatusValue(value); + + status_ = value; + onChanged(); return this; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return The status. */ + @java.lang.Override public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status getStatus() { - return instance.getStatus(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status result = net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.valueOf(status_); + return result == null ? net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status.UNRECOGNIZED : result; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatus.Status value) { - copyOnWrite(); - instance.setStatus(value); + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.UserUpdateStatus.Status status = 2; + * .proto.UserUpdateStatus.Status status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { - copyOnWrite(); - instance.clearStatus(); + + status_ = 0; + onChanged(); return this; } + private long userId_ ; /** - * optional uint64 user_id = 8; + * uint64 user_id = 8; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 8; + * uint64 user_id = 8; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 8; + * uint64 user_id = 8; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserUpdateStatusResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse other = (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 64: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserUpdateStatusResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserUpdateStatusResponse) private static final net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserUpdateStatusResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse(); } public static net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserUpdateStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserUpdateStatusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserUpdateStatus.UserUpdateStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserUpdateStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserUpdateStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserUpdateStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserUpdateStatusResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026UserUpdateStatus.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"\206\001\n\020UserUpdateSta" + + "tus\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022.\n\006" + + "status\030\002 \001(\0162\036.proto.UserUpdateStatus.St" + + "atus\"!\n\006Status\022\n\n\006ONLINE\020\000\022\013\n\007OFFLINE\020\001\"" + + "~\n\030UserUpdateStatusResponse\022!\n\010response\030" + + "\001 \001(\0132\017.proto.Response\022.\n\006status\030\002 \001(\0162\036" + + ".proto.UserUpdateStatus.Status\022\017\n\007user_i" + + "d\030\010 \001(\004B\'\n\016net.iGap.protoB\025ProtoUserUpda" + + "teStatusb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserUpdateStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserUpdateStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserUpdateStatus_descriptor, + new java.lang.String[] { "Request", "Status", }); + internal_static_proto_UserUpdateStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserUpdateStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserUpdateStatusResponse_descriptor, + new java.lang.String[] { "Response", "Status", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserUsernameToId.java b/src/main/java/net/iGap/proto/ProtoUserUsernameToId.java index 6f7fac7..18eac11 100644 --- a/src/main/java/net/iGap/proto/ProtoUserUsernameToId.java +++ b/src/main/java/net/iGap/proto/ProtoUserUsernameToId.java @@ -8,25 +8,39 @@ private ProtoUserUsernameToId() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserUsernameToIdOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserUsernameToId) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string username = 2; + * string username = 2; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -34,124 +48,190 @@ public interface UserUsernameToIdOrBuilder extends /** * Protobuf type {@code proto.UserUsernameToId} */ - public static final class UserUsernameToId extends - com.google.protobuf.GeneratedMessageLite< - UserUsernameToId, UserUsernameToId.Builder> implements + public static final class UserUsernameToId extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserUsernameToId) UserUsernameToIdOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserUsernameToId.newBuilder() to construct. + private UserUsernameToId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserUsernameToId() { username_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserUsernameToId(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserUsernameToId( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.class, net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int USERNAME_FIELD_NUMBER = 2; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 2; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 2; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string username = 2; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!username_.isEmpty()) { - output.writeString(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,397 +239,721 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId other = (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getUsername() + .equals(other.getUsername())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserUsernameToId} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserUsernameToId) net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.class, net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToId_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId build() { + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId buildPartial() { + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId result = new net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.username_ = username_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId) { + return mergeFrom((net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId other) { + if (other == net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object username_ = ""; /** - * optional string username = 2; + * string username = 2; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 2; + * string username = 2; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 2; + * string username = 2; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserUsernameToId) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId other = (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId) arg1; - request_ = visitor.visitMessage(request_, other.request_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserUsernameToId) + } + // @@protoc_insertion_point(class_scope:proto.UserUsernameToId) private static final net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserUsernameToId(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId(); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserUsernameToId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserUsernameToId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserUsernameToIdResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserUsernameToIdResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.UserUsernameToIdResponse} */ - public static final class UserUsernameToIdResponse extends - com.google.protobuf.GeneratedMessageLite< - UserUsernameToIdResponse, UserUsernameToIdResponse.Builder> implements + public static final class UserUsernameToIdResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserUsernameToIdResponse) UserUsernameToIdResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserUsernameToIdResponse.newBuilder() to construct. + private UserUsernameToIdResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserUsernameToIdResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserUsernameToIdResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserUsernameToIdResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToIdResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToIdResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.class, net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USER_ID_FIELD_NUMBER = 3; private long userId_; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 3; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 3; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -558,10 +962,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(3, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -573,274 +979,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse other = (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserUsernameToIdResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserUsernameToIdResponse) net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToIdResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToIdResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.class, net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + userId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserUsernameToId.internal_static_proto_UserUsernameToIdResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse build() { + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse buildPartial() { + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse result = new net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse) { + return mergeFrom((net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse other) { + if (other == net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 3; + * uint64 user_id = 3; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserUsernameToIdResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse other = (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserUsernameToIdResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserUsernameToIdResponse) private static final net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserUsernameToIdResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse(); } public static net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserUsernameToIdResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserUsernameToIdResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoUserUsernameToId.UserUsernameToIdResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserUsernameToId_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserUsernameToId_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserUsernameToIdResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserUsernameToIdResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\026UserUsernameToId.proto\022\005proto\032\rRequest" + + ".proto\032\016Response.proto\"E\n\020UserUsernameTo" + + "Id\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\020\n\010u" + + "sername\030\002 \001(\t\"N\n\030UserUsernameToIdRespons" + + "e\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007" + + "user_id\030\003 \001(\004B\'\n\016net.iGap.protoB\025ProtoUs" + + "erUsernameToIdb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserUsernameToId_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserUsernameToId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserUsernameToId_descriptor, + new java.lang.String[] { "Request", "Username", }); + internal_static_proto_UserUsernameToIdResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserUsernameToIdResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserUsernameToIdResponse_descriptor, + new java.lang.String[] { "Response", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserVerify.java b/src/main/java/net/iGap/proto/ProtoUserVerify.java index 5b561e9..e737252 100644 --- a/src/main/java/net/iGap/proto/ProtoUserVerify.java +++ b/src/main/java/net/iGap/proto/ProtoUserVerify.java @@ -8,40 +8,57 @@ private ProtoUserVerify() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserVerifyOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserVerify) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional uint32 code = 2; + * uint32 code = 2; + * @return The code. */ int getCode(); /** - * optional string username = 3; + * string username = 3; + * @return The username. */ java.lang.String getUsername(); /** - * optional string username = 3; + * string username = 3; + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @return The phoneHash. */ java.lang.String getPhoneHash(); /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @return The bytes for phoneHash. */ com.google.protobuf.ByteString getPhoneHashBytes(); @@ -49,182 +66,237 @@ public interface UserVerifyOrBuilder extends /** * Protobuf type {@code proto.UserVerify} */ - public static final class UserVerify extends - com.google.protobuf.GeneratedMessageLite< - UserVerify, UserVerify.Builder> implements + public static final class UserVerify extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserVerify) UserVerifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserVerify.newBuilder() to construct. + private UserVerify(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserVerify() { username_ = ""; phoneHash_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserVerify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserVerify( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + code_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + phoneHash_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerify.UserVerify.class, net.iGap.proto.ProtoUserVerify.UserVerify.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int CODE_FIELD_NUMBER = 2; private int code_; /** - * optional uint32 code = 2; + * uint32 code = 2; + * @return The code. */ + @java.lang.Override public int getCode() { return code_; } - /** - * optional uint32 code = 2; - */ - private void setCode(int value) { - - code_ = value; - } - /** - * optional uint32 code = 2; - */ - private void clearCode() { - - code_ = 0; - } public static final int USERNAME_FIELD_NUMBER = 3; - private java.lang.String username_; + private volatile java.lang.Object username_; /** - * optional string username = 3; + * string username = 3; + * @return The username. */ + @java.lang.Override public java.lang.String getUsername() { - return username_; + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } } /** - * optional string username = 3; + * string username = 3; + * @return The bytes for username. */ + @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(username_); - } - /** - * optional string username = 3; - */ - private void setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - } - /** - * optional string username = 3; - */ - private void clearUsername() { - - username_ = getDefaultInstance().getUsername(); - } - /** - * optional string username = 3; - */ - private void setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value.toStringUtf8(); + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PHONE_HASH_FIELD_NUMBER = 4; - private java.lang.String phoneHash_; + private volatile java.lang.Object phoneHash_; /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @return The phoneHash. */ + @java.lang.Override public java.lang.String getPhoneHash() { - return phoneHash_; + java.lang.Object ref = phoneHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneHash_ = s; + return s; + } } /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @return The bytes for phoneHash. */ + @java.lang.Override public com.google.protobuf.ByteString getPhoneHashBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(phoneHash_); - } - /** - * optional string phone_hash = 4; - */ - private void setPhoneHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phoneHash_ = value; - } - /** - * optional string phone_hash = 4; - */ - private void clearPhoneHash() { - - phoneHash_ = getDefaultInstance().getPhoneHash(); + java.lang.Object ref = phoneHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string phone_hash = 4; - */ - private void setPhoneHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phoneHash_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -233,16 +305,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (code_ != 0) { output.writeUInt32(2, code_); } - if (!username_.isEmpty()) { - output.writeString(3, getUsername()); + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); } - if (!phoneHash_.isEmpty()) { - output.writeString(4, getPhoneHash()); + if (!getPhoneHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phoneHash_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -254,551 +328,926 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, code_); } - if (!username_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getUsername()); + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); } - if (!phoneHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getPhoneHash()); + if (!getPhoneHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phoneHash_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserVerify.UserVerify)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserVerify.UserVerify other = (net.iGap.proto.ProtoUserVerify.UserVerify) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getCode() + != other.getCode()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPhoneHash() + .equals(other.getPhoneHash())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PHONE_HASH_FIELD_NUMBER; + hash = (53 * hash) + getPhoneHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerify.UserVerify parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserVerify.UserVerify prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserVerify} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserVerify.UserVerify, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserVerify) net.iGap.proto.ProtoUserVerify.UserVerifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerify.UserVerify.class, net.iGap.proto.ProtoUserVerify.UserVerify.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserVerify.UserVerify.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + code_ = 0; + + username_ = ""; + + phoneHash_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerify_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerify getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserVerify.UserVerify.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerify build() { + net.iGap.proto.ProtoUserVerify.UserVerify result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerify buildPartial() { + net.iGap.proto.ProtoUserVerify.UserVerify result = new net.iGap.proto.ProtoUserVerify.UserVerify(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.code_ = code_; + result.username_ = username_; + result.phoneHash_ = phoneHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserVerify.UserVerify) { + return mergeFrom((net.iGap.proto.ProtoUserVerify.UserVerify)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserVerify.UserVerify other) { + if (other == net.iGap.proto.ProtoUserVerify.UserVerify.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getCode() != 0) { + setCode(other.getCode()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPhoneHash().isEmpty()) { + phoneHash_ = other.phoneHash_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserVerify.UserVerify parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserVerify.UserVerify) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int code_ ; /** - * optional uint32 code = 2; + * uint32 code = 2; + * @return The code. */ + @java.lang.Override public int getCode() { - return instance.getCode(); + return code_; } /** - * optional uint32 code = 2; + * uint32 code = 2; + * @param value The code to set. + * @return This builder for chaining. */ public Builder setCode(int value) { - copyOnWrite(); - instance.setCode(value); + + code_ = value; + onChanged(); return this; } /** - * optional uint32 code = 2; + * uint32 code = 2; + * @return This builder for chaining. */ public Builder clearCode() { - copyOnWrite(); - instance.clearCode(); + + code_ = 0; + onChanged(); return this; } + private java.lang.Object username_ = ""; /** - * optional string username = 3; + * string username = 3; + * @return The username. */ public java.lang.String getUsername() { - return instance.getUsername(); + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string username = 3; + * string username = 3; + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { - return instance.getUsernameBytes(); + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string username = 3; + * string username = 3; + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { - copyOnWrite(); - instance.setUsername(value); + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); return this; } /** - * optional string username = 3; + * string username = 3; + * @return This builder for chaining. */ public Builder clearUsername() { - copyOnWrite(); - instance.clearUsername(); + + username_ = getDefaultInstance().getUsername(); + onChanged(); return this; } /** - * optional string username = 3; + * string username = 3; + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setUsernameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); return this; } + private java.lang.Object phoneHash_ = ""; /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @return The phoneHash. */ public java.lang.String getPhoneHash() { - return instance.getPhoneHash(); + java.lang.Object ref = phoneHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @return The bytes for phoneHash. */ public com.google.protobuf.ByteString getPhoneHashBytes() { - return instance.getPhoneHashBytes(); + java.lang.Object ref = phoneHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @param value The phoneHash to set. + * @return This builder for chaining. */ public Builder setPhoneHash( java.lang.String value) { - copyOnWrite(); - instance.setPhoneHash(value); + if (value == null) { + throw new NullPointerException(); + } + + phoneHash_ = value; + onChanged(); return this; } /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @return This builder for chaining. */ public Builder clearPhoneHash() { - copyOnWrite(); - instance.clearPhoneHash(); + + phoneHash_ = getDefaultInstance().getPhoneHash(); + onChanged(); return this; } /** - * optional string phone_hash = 4; + * string phone_hash = 4; + * @param value The bytes for phoneHash to set. + * @return This builder for chaining. */ public Builder setPhoneHashBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPhoneHashBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phoneHash_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserVerify) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserVerify.UserVerify(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserVerify.UserVerify other = (net.iGap.proto.ProtoUserVerify.UserVerify) arg1; - request_ = visitor.visitMessage(request_, other.request_); - code_ = visitor.visitInt(code_ != 0, code_, - other.code_ != 0, other.code_); - username_ = visitor.visitString(!username_.isEmpty(), username_, - !other.username_.isEmpty(), other.username_); - phoneHash_ = visitor.visitString(!phoneHash_.isEmpty(), phoneHash_, - !other.phoneHash_.isEmpty(), other.phoneHash_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - code_ = input.readUInt32(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - phoneHash_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserVerify.UserVerify.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserVerify) + } + // @@protoc_insertion_point(class_scope:proto.UserVerify) private static final net.iGap.proto.ProtoUserVerify.UserVerify DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserVerify(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserVerify.UserVerify(); } public static net.iGap.proto.ProtoUserVerify.UserVerify getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserVerify parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserVerify(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerify getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface UserVerifyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserVerifyResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional bool new_user = 3; + * bool new_user = 3; + * @return The newUser. */ boolean getNewUser(); } /** * Protobuf type {@code proto.UserVerifyResponse} */ - public static final class UserVerifyResponse extends - com.google.protobuf.GeneratedMessageLite< - UserVerifyResponse, UserVerifyResponse.Builder> implements + public static final class UserVerifyResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserVerifyResponse) UserVerifyResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserVerifyResponse.newBuilder() to construct. + private UserVerifyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserVerifyResponse() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserVerifyResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserVerifyResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + + newUser_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerifyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerifyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerify.UserVerifyResponse.class, net.iGap.proto.ProtoUserVerify.UserVerifyResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int NEW_USER_FIELD_NUMBER = 3; private boolean newUser_; /** - * optional bool new_user = 3; + * bool new_user = 3; + * @return The newUser. */ + @java.lang.Override public boolean getNewUser() { return newUser_; } - /** - * optional bool new_user = 3; - */ - private void setNewUser(boolean value) { - - newUser_ = value; - } - /** - * optional bool new_user = 3; - */ - private void clearNewUser() { - - newUser_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } if (newUser_ != false) { output.writeBool(3, newUser_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -806,330 +1255,646 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } if (newUser_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, newUser_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserVerify.UserVerifyResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserVerify.UserVerifyResponse other = (net.iGap.proto.ProtoUserVerify.UserVerifyResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (getNewUser() + != other.getNewUser()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + NEW_USER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNewUser()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserVerify.UserVerifyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserVerifyResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserVerify.UserVerifyResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserVerifyResponse) net.iGap.proto.ProtoUserVerify.UserVerifyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerifyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerifyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerify.UserVerifyResponse.class, net.iGap.proto.ProtoUserVerify.UserVerifyResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserVerify.UserVerifyResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + + newUser_ = false; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserVerify.internal_static_proto_UserVerifyResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerifyResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserVerify.UserVerifyResponse.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerifyResponse build() { + net.iGap.proto.ProtoUserVerify.UserVerifyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerifyResponse buildPartial() { + net.iGap.proto.ProtoUserVerify.UserVerifyResponse result = new net.iGap.proto.ProtoUserVerify.UserVerifyResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + result.newUser_ = newUser_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserVerify.UserVerifyResponse) { + return mergeFrom((net.iGap.proto.ProtoUserVerify.UserVerifyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserVerify.UserVerifyResponse other) { + if (other == net.iGap.proto.ProtoUserVerify.UserVerifyResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getNewUser() != false) { + setNewUser(other.getNewUser()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserVerify.UserVerifyResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserVerify.UserVerifyResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private boolean newUser_ ; /** - * optional bool new_user = 3; + * bool new_user = 3; + * @return The newUser. */ + @java.lang.Override public boolean getNewUser() { - return instance.getNewUser(); + return newUser_; } /** - * optional bool new_user = 3; + * bool new_user = 3; + * @param value The newUser to set. + * @return This builder for chaining. */ public Builder setNewUser(boolean value) { - copyOnWrite(); - instance.setNewUser(value); + + newUser_ = value; + onChanged(); return this; } /** - * optional bool new_user = 3; + * bool new_user = 3; + * @return This builder for chaining. */ public Builder clearNewUser() { - copyOnWrite(); - instance.clearNewUser(); + + newUser_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserVerifyResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserVerify.UserVerifyResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserVerify.UserVerifyResponse other = (net.iGap.proto.ProtoUserVerify.UserVerifyResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - newUser_ = visitor.visitBoolean(newUser_ != false, newUser_, - other.newUser_ != false, other.newUser_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 24: { - - newUser_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserVerify.UserVerifyResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserVerifyResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserVerifyResponse) private static final net.iGap.proto.ProtoUserVerify.UserVerifyResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserVerifyResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserVerify.UserVerifyResponse(); } public static net.iGap.proto.ProtoUserVerify.UserVerifyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserVerifyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserVerifyResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerify.UserVerifyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserVerify_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserVerify_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserVerifyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserVerifyResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\020UserVerify.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\"a\n\nUserVerify\022\037\n\007reques" + + "t\030\001 \001(\0132\016.proto.Request\022\014\n\004code\030\002 \001(\r\022\020\n" + + "\010username\030\003 \001(\t\022\022\n\nphone_hash\030\004 \001(\t\"X\n\022U" + + "serVerifyResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\r\n\005token\030\002 \001(\t\022\020\n\010new_user\030" + + "\003 \001(\010B!\n\016net.iGap.protoB\017ProtoUserVerify" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_UserVerify_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserVerify_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserVerify_descriptor, + new java.lang.String[] { "Request", "Code", "Username", "PhoneHash", }); + internal_static_proto_UserVerifyResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserVerifyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserVerifyResponse_descriptor, + new java.lang.String[] { "Response", "Token", "NewUser", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoUserVerifyNewDevice.java b/src/main/java/net/iGap/proto/ProtoUserVerifyNewDevice.java index 36b3f69..7eced1f 100644 --- a/src/main/java/net/iGap/proto/ProtoUserVerifyNewDevice.java +++ b/src/main/java/net/iGap/proto/ProtoUserVerifyNewDevice.java @@ -8,25 +8,39 @@ private ProtoUserVerifyNewDevice() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface UserVerifyNewDeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserVerifyNewDevice) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -34,124 +48,190 @@ public interface UserVerifyNewDeviceOrBuilder extends /** * Protobuf type {@code proto.UserVerifyNewDevice} */ - public static final class UserVerifyNewDevice extends - com.google.protobuf.GeneratedMessageLite< - UserVerifyNewDevice, UserVerifyNewDevice.Builder> implements + public static final class UserVerifyNewDevice extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserVerifyNewDevice) UserVerifyNewDeviceOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserVerifyNewDevice.newBuilder() to construct. + private UserVerifyNewDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserVerifyNewDevice() { token_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserVerifyNewDevice(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserVerifyNewDevice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.class, net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,784 +239,1074 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice other = (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserVerifyNewDevice} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserVerifyNewDevice) net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.class, net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDevice_descriptor; } + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice build() { + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice buildPartial() { + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice result = new net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice) { + return mergeFrom((net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice other) { + if (other == net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserVerifyNewDevice) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice other = (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice) arg1; - request_ = visitor.visitMessage(request_, other.request_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserVerifyNewDevice) + } + // @@protoc_insertion_point(class_scope:proto.UserVerifyNewDevice) private static final net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserVerifyNewDevice(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice(); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserVerifyNewDevice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserVerifyNewDevice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDevice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface UserVerifyNewDeviceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.UserVerifyNewDeviceResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ java.lang.String getAppName(); /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ com.google.protobuf.ByteString getAppNameBytes(); /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ int getAppId(); /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ int getAppBuildVersion(); /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ java.lang.String getAppVersion(); /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ com.google.protobuf.ByteString getAppVersionBytes(); /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ int getPlatformValue(); /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ net.iGap.proto.ProtoGlobal.Platform getPlatform(); /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ java.lang.String getPlatformVersion(); /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ com.google.protobuf.ByteString getPlatformVersionBytes(); /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ int getDeviceValue(); /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ net.iGap.proto.ProtoGlobal.Device getDevice(); /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ java.lang.String getDeviceName(); /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** - * optional bool two_step_verification = 10; + * bool two_step_verification = 10; + * @return The twoStepVerification. */ boolean getTwoStepVerification(); } /** * Protobuf type {@code proto.UserVerifyNewDeviceResponse} */ - public static final class UserVerifyNewDeviceResponse extends - com.google.protobuf.GeneratedMessageLite< - UserVerifyNewDeviceResponse, UserVerifyNewDeviceResponse.Builder> implements + public static final class UserVerifyNewDeviceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.UserVerifyNewDeviceResponse) UserVerifyNewDeviceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserVerifyNewDeviceResponse.newBuilder() to construct. + private UserVerifyNewDeviceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private UserVerifyNewDeviceResponse() { appName_ = ""; appVersion_ = ""; + platform_ = 0; platformVersion_ = ""; + device_ = 0; deviceName_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserVerifyNewDeviceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserVerifyNewDeviceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + appName_ = s; + break; + } + case 24: { + + appId_ = input.readUInt32(); + break; + } + case 32: { + + appBuildVersion_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + appVersion_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + platform_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + platformVersion_ = s; + break; + } + case 64: { + int rawValue = input.readEnum(); + + device_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + deviceName_ = s; + break; + } + case 80: { + + twoStepVerification_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.class, net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int APP_NAME_FIELD_NUMBER = 2; - private java.lang.String appName_; + private volatile java.lang.Object appName_; /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ + @java.lang.Override public java.lang.String getAppName() { - return appName_; + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ + @java.lang.Override public com.google.protobuf.ByteString getAppNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appName_); - } - /** - * optional string app_name = 2; - */ - private void setAppName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appName_ = value; - } - /** - * optional string app_name = 2; - */ - private void clearAppName() { - - appName_ = getDefaultInstance().getAppName(); - } - /** - * optional string app_name = 2; - */ - private void setAppNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appName_ = value.toStringUtf8(); + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int APP_ID_FIELD_NUMBER = 3; private int appId_; /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ + @java.lang.Override public int getAppId() { return appId_; } - /** - * optional uint32 app_id = 3; - */ - private void setAppId(int value) { - - appId_ = value; - } - /** - * optional uint32 app_id = 3; - */ - private void clearAppId() { - - appId_ = 0; - } public static final int APP_BUILD_VERSION_FIELD_NUMBER = 4; private int appBuildVersion_; /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { return appBuildVersion_; } - /** - * optional uint32 app_build_version = 4; - */ - private void setAppBuildVersion(int value) { - - appBuildVersion_ = value; - } - /** - * optional uint32 app_build_version = 4; - */ - private void clearAppBuildVersion() { - - appBuildVersion_ = 0; - } public static final int APP_VERSION_FIELD_NUMBER = 5; - private java.lang.String appVersion_; + private volatile java.lang.Object appVersion_; /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ + @java.lang.Override public java.lang.String getAppVersion() { - return appVersion_; + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getAppVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(appVersion_); - } - /** - * optional string app_version = 5; - */ - private void setAppVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appVersion_ = value; - } - /** - * optional string app_version = 5; - */ - private void clearAppVersion() { - - appVersion_ = getDefaultInstance().getAppVersion(); - } - /** - * optional string app_version = 5; - */ - private void setAppVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appVersion_ = value.toStringUtf8(); + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PLATFORM_FIELD_NUMBER = 6; private int platform_; /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { + @java.lang.Override public int getPlatformValue() { return platform_; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ - public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.forNumber(platform_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } - /** - * optional .proto.Platform platform = 6; - */ - private void setPlatformValue(int value) { - platform_ = value; - } - /** - * optional .proto.Platform platform = 6; - */ - private void setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - if (value == null) { - throw new NullPointerException(); - } - - platform_ = value.getNumber(); - } - /** - * optional .proto.Platform platform = 6; - */ - private void clearPlatform() { - - platform_ = 0; - } public static final int PLATFORM_VERSION_FIELD_NUMBER = 7; - private java.lang.String platformVersion_; + private volatile java.lang.Object platformVersion_; /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ + @java.lang.Override public java.lang.String getPlatformVersion() { - return platformVersion_; + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getPlatformVersionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(platformVersion_); - } - /** - * optional string platform_version = 7; - */ - private void setPlatformVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - platformVersion_ = value; - } - /** - * optional string platform_version = 7; - */ - private void clearPlatformVersion() { - - platformVersion_ = getDefaultInstance().getPlatformVersion(); - } - /** - * optional string platform_version = 7; - */ - private void setPlatformVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - platformVersion_ = value.toStringUtf8(); + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DEVICE_FIELD_NUMBER = 8; private int device_; /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { + @java.lang.Override public int getDeviceValue() { return device_; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ - public net.iGap.proto.ProtoGlobal.Device getDevice() { - net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.forNumber(device_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } - /** - * optional .proto.Device device = 8; - */ - private void setDeviceValue(int value) { - device_ = value; - } - /** - * optional .proto.Device device = 8; - */ - private void setDevice(net.iGap.proto.ProtoGlobal.Device value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value.getNumber(); - } - /** - * optional .proto.Device device = 8; - */ - private void clearDevice() { - - device_ = 0; - } public static final int DEVICE_NAME_FIELD_NUMBER = 9; - private java.lang.String deviceName_; + private volatile java.lang.Object deviceName_; /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ + @java.lang.Override public java.lang.String getDeviceName() { - return deviceName_; + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(deviceName_); - } - /** - * optional string device_name = 9; - */ - private void setDeviceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceName_ = value; - } - /** - * optional string device_name = 9; - */ - private void clearDeviceName() { - - deviceName_ = getDefaultInstance().getDeviceName(); - } - /** - * optional string device_name = 9; - */ - private void setDeviceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceName_ = value.toStringUtf8(); + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TWO_STEP_VERIFICATION_FIELD_NUMBER = 10; private boolean twoStepVerification_; /** - * optional bool two_step_verification = 10; + * bool two_step_verification = 10; + * @return The twoStepVerification. */ + @java.lang.Override public boolean getTwoStepVerification() { return twoStepVerification_; } - /** - * optional bool two_step_verification = 10; - */ - private void setTwoStepVerification(boolean value) { - - twoStepVerification_ = value; - } - /** - * optional bool two_step_verification = 10; - */ - private void clearTwoStepVerification() { - - twoStepVerification_ = false; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!appName_.isEmpty()) { - output.writeString(2, getAppName()); + if (!getAppNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appName_); } if (appId_ != 0) { output.writeUInt32(3, appId_); @@ -944,28 +1314,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (appBuildVersion_ != 0) { output.writeUInt32(4, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - output.writeString(5, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { output.writeEnum(6, platform_); } - if (!platformVersion_.isEmpty()) { - output.writeString(7, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { output.writeEnum(8, device_); } - if (!deviceName_.isEmpty()) { - output.writeString(9, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, deviceName_); } if (twoStepVerification_ != false) { output.writeBool(10, twoStepVerification_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -973,9 +1345,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!appName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getAppName()); + if (!getAppNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appName_); } if (appId_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -985,638 +1356,1136 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, appBuildVersion_); } - if (!appVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getAppVersion()); + if (!getAppVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, appVersion_); } if (platform_ != net.iGap.proto.ProtoGlobal.Platform.UNKNOWN_PLATFORM.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, platform_); } - if (!platformVersion_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getPlatformVersion()); + if (!getPlatformVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, platformVersion_); } if (device_ != net.iGap.proto.ProtoGlobal.Device.UNKNOWN_DEVICE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, device_); } - if (!deviceName_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(9, getDeviceName()); + if (!getDeviceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, deviceName_); } if (twoStepVerification_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, twoStepVerification_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse other = (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getAppName() + .equals(other.getAppName())) return false; + if (getAppId() + != other.getAppId()) return false; + if (getAppBuildVersion() + != other.getAppBuildVersion()) return false; + if (!getAppVersion() + .equals(other.getAppVersion())) return false; + if (platform_ != other.platform_) return false; + if (!getPlatformVersion() + .equals(other.getPlatformVersion())) return false; + if (device_ != other.device_) return false; + if (!getDeviceName() + .equals(other.getDeviceName())) return false; + if (getTwoStepVerification() + != other.getTwoStepVerification()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + APP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAppName().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId(); + hash = (37 * hash) + APP_BUILD_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppBuildVersion(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + platform_; + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + device_; + hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceName().hashCode(); + hash = (37 * hash) + TWO_STEP_VERIFICATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTwoStepVerification()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.UserVerifyNewDeviceResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.UserVerifyNewDeviceResponse) net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.class, net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + appName_ = ""; + + appId_ = 0; + + appBuildVersion_ = 0; + + appVersion_ = ""; + + platform_ = 0; + + platformVersion_ = ""; + + device_ = 0; + deviceName_ = ""; + twoStepVerification_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoUserVerifyNewDevice.internal_static_proto_UserVerifyNewDeviceResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse build() { + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse buildPartial() { + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse result = new net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.appName_ = appName_; + result.appId_ = appId_; + result.appBuildVersion_ = appBuildVersion_; + result.appVersion_ = appVersion_; + result.platform_ = platform_; + result.platformVersion_ = platformVersion_; + result.device_ = device_; + result.deviceName_ = deviceName_; + result.twoStepVerification_ = twoStepVerification_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse) { + return mergeFrom((net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse other) { + if (other == net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getAppName().isEmpty()) { + appName_ = other.appName_; + onChanged(); + } + if (other.getAppId() != 0) { + setAppId(other.getAppId()); + } + if (other.getAppBuildVersion() != 0) { + setAppBuildVersion(other.getAppBuildVersion()); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + onChanged(); + } + if (other.platform_ != 0) { + setPlatformValue(other.getPlatformValue()); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + onChanged(); + } + if (other.device_ != 0) { + setDeviceValue(other.getDeviceValue()); + } + if (!other.getDeviceName().isEmpty()) { + deviceName_ = other.deviceName_; + onChanged(); + } + if (other.getTwoStepVerification() != false) { + setTwoStepVerification(other.getTwoStepVerification()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object appName_ = ""; /** - * optional string app_name = 2; + * string app_name = 2; + * @return The appName. */ public java.lang.String getAppName() { - return instance.getAppName(); + java.lang.Object ref = appName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @return The bytes for appName. */ public com.google.protobuf.ByteString getAppNameBytes() { - return instance.getAppNameBytes(); + java.lang.Object ref = appName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_name = 2; + * string app_name = 2; + * @param value The appName to set. + * @return This builder for chaining. */ public Builder setAppName( java.lang.String value) { - copyOnWrite(); - instance.setAppName(value); + if (value == null) { + throw new NullPointerException(); + } + + appName_ = value; + onChanged(); return this; } /** - * optional string app_name = 2; + * string app_name = 2; + * @return This builder for chaining. */ public Builder clearAppName() { - copyOnWrite(); - instance.clearAppName(); + + appName_ = getDefaultInstance().getAppName(); + onChanged(); return this; } /** - * optional string app_name = 2; + * string app_name = 2; + * @param value The bytes for appName to set. + * @return This builder for chaining. */ public Builder setAppNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appName_ = value; + onChanged(); return this; } + private int appId_ ; /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return The appId. */ + @java.lang.Override public int getAppId() { - return instance.getAppId(); + return appId_; } /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @param value The appId to set. + * @return This builder for chaining. */ public Builder setAppId(int value) { - copyOnWrite(); - instance.setAppId(value); + + appId_ = value; + onChanged(); return this; } /** - * optional uint32 app_id = 3; + * uint32 app_id = 3; + * @return This builder for chaining. */ public Builder clearAppId() { - copyOnWrite(); - instance.clearAppId(); + + appId_ = 0; + onChanged(); return this; } + private int appBuildVersion_ ; /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return The appBuildVersion. */ + @java.lang.Override public int getAppBuildVersion() { - return instance.getAppBuildVersion(); + return appBuildVersion_; } /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @param value The appBuildVersion to set. + * @return This builder for chaining. */ public Builder setAppBuildVersion(int value) { - copyOnWrite(); - instance.setAppBuildVersion(value); + + appBuildVersion_ = value; + onChanged(); return this; } /** - * optional uint32 app_build_version = 4; + * uint32 app_build_version = 4; + * @return This builder for chaining. */ public Builder clearAppBuildVersion() { - copyOnWrite(); - instance.clearAppBuildVersion(); + + appBuildVersion_ = 0; + onChanged(); return this; } + private java.lang.Object appVersion_ = ""; /** - * optional string app_version = 5; + * string app_version = 5; + * @return The appVersion. */ public java.lang.String getAppVersion() { - return instance.getAppVersion(); + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @return The bytes for appVersion. */ public com.google.protobuf.ByteString getAppVersionBytes() { - return instance.getAppVersionBytes(); + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string app_version = 5; + * string app_version = 5; + * @param value The appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersion( java.lang.String value) { - copyOnWrite(); - instance.setAppVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + appVersion_ = value; + onChanged(); return this; } /** - * optional string app_version = 5; + * string app_version = 5; + * @return This builder for chaining. */ public Builder clearAppVersion() { - copyOnWrite(); - instance.clearAppVersion(); + + appVersion_ = getDefaultInstance().getAppVersion(); + onChanged(); return this; } /** - * optional string app_version = 5; + * string app_version = 5; + * @param value The bytes for appVersion to set. + * @return This builder for chaining. */ public Builder setAppVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAppVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appVersion_ = value; + onChanged(); return this; } + private int platform_ = 0; /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The enum numeric value on the wire for platform. */ - public int getPlatformValue() { - return instance.getPlatformValue(); + @java.lang.Override public int getPlatformValue() { + return platform_; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @param value The enum numeric value on the wire for platform to set. + * @return This builder for chaining. */ public Builder setPlatformValue(int value) { - copyOnWrite(); - instance.setPlatformValue(value); + + platform_ = value; + onChanged(); return this; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return The platform. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Platform getPlatform() { - return instance.getPlatform(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Platform result = net.iGap.proto.ProtoGlobal.Platform.valueOf(platform_); + return result == null ? net.iGap.proto.ProtoGlobal.Platform.UNRECOGNIZED : result; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @param value The platform to set. + * @return This builder for chaining. */ public Builder setPlatform(net.iGap.proto.ProtoGlobal.Platform value) { - copyOnWrite(); - instance.setPlatform(value); + if (value == null) { + throw new NullPointerException(); + } + + platform_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Platform platform = 6; + * .proto.Platform platform = 6; + * @return This builder for chaining. */ public Builder clearPlatform() { - copyOnWrite(); - instance.clearPlatform(); + + platform_ = 0; + onChanged(); return this; } + private java.lang.Object platformVersion_ = ""; /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The platformVersion. */ public java.lang.String getPlatformVersion() { - return instance.getPlatformVersion(); + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return The bytes for platformVersion. */ public com.google.protobuf.ByteString getPlatformVersionBytes() { - return instance.getPlatformVersionBytes(); + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @param value The platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersion( java.lang.String value) { - copyOnWrite(); - instance.setPlatformVersion(value); + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); return this; } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @return This builder for chaining. */ public Builder clearPlatformVersion() { - copyOnWrite(); - instance.clearPlatformVersion(); + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); return this; } /** - * optional string platform_version = 7; + * string platform_version = 7; + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. */ public Builder setPlatformVersionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPlatformVersionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); return this; } + private int device_ = 0; /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The enum numeric value on the wire for device. */ - public int getDeviceValue() { - return instance.getDeviceValue(); + @java.lang.Override public int getDeviceValue() { + return device_; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @param value The enum numeric value on the wire for device to set. + * @return This builder for chaining. */ public Builder setDeviceValue(int value) { - copyOnWrite(); - instance.setDeviceValue(value); + + device_ = value; + onChanged(); return this; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return The device. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Device getDevice() { - return instance.getDevice(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Device result = net.iGap.proto.ProtoGlobal.Device.valueOf(device_); + return result == null ? net.iGap.proto.ProtoGlobal.Device.UNRECOGNIZED : result; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @param value The device to set. + * @return This builder for chaining. */ public Builder setDevice(net.iGap.proto.ProtoGlobal.Device value) { - copyOnWrite(); - instance.setDevice(value); + if (value == null) { + throw new NullPointerException(); + } + + device_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Device device = 8; + * .proto.Device device = 8; + * @return This builder for chaining. */ public Builder clearDevice() { - copyOnWrite(); - instance.clearDevice(); + + device_ = 0; + onChanged(); return this; } + private java.lang.Object deviceName_ = ""; /** - * optional string device_name = 9; + * string device_name = 9; + * @return The deviceName. */ public java.lang.String getDeviceName() { - return instance.getDeviceName(); + java.lang.Object ref = deviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { - return instance.getDeviceNameBytes(); + java.lang.Object ref = deviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string device_name = 9; + * string device_name = 9; + * @param value The deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { - copyOnWrite(); - instance.setDeviceName(value); + if (value == null) { + throw new NullPointerException(); + } + + deviceName_ = value; + onChanged(); return this; } /** - * optional string device_name = 9; + * string device_name = 9; + * @return This builder for chaining. */ public Builder clearDeviceName() { - copyOnWrite(); - instance.clearDeviceName(); + + deviceName_ = getDefaultInstance().getDeviceName(); + onChanged(); return this; } /** - * optional string device_name = 9; + * string device_name = 9; + * @param value The bytes for deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDeviceNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceName_ = value; + onChanged(); return this; } + private boolean twoStepVerification_ ; /** - * optional bool two_step_verification = 10; + * bool two_step_verification = 10; + * @return The twoStepVerification. */ + @java.lang.Override public boolean getTwoStepVerification() { - return instance.getTwoStepVerification(); + return twoStepVerification_; } /** - * optional bool two_step_verification = 10; + * bool two_step_verification = 10; + * @param value The twoStepVerification to set. + * @return This builder for chaining. */ public Builder setTwoStepVerification(boolean value) { - copyOnWrite(); - instance.setTwoStepVerification(value); + + twoStepVerification_ = value; + onChanged(); return this; } /** - * optional bool two_step_verification = 10; + * bool two_step_verification = 10; + * @return This builder for chaining. */ public Builder clearTwoStepVerification() { - copyOnWrite(); - instance.clearTwoStepVerification(); + + twoStepVerification_ = false; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.UserVerifyNewDeviceResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse other = (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - appName_ = visitor.visitString(!appName_.isEmpty(), appName_, - !other.appName_.isEmpty(), other.appName_); - appId_ = visitor.visitInt(appId_ != 0, appId_, - other.appId_ != 0, other.appId_); - appBuildVersion_ = visitor.visitInt(appBuildVersion_ != 0, appBuildVersion_, - other.appBuildVersion_ != 0, other.appBuildVersion_); - appVersion_ = visitor.visitString(!appVersion_.isEmpty(), appVersion_, - !other.appVersion_.isEmpty(), other.appVersion_); - platform_ = visitor.visitInt(platform_ != 0, platform_, other.platform_ != 0, other.platform_); - platformVersion_ = visitor.visitString(!platformVersion_.isEmpty(), platformVersion_, - !other.platformVersion_.isEmpty(), other.platformVersion_); - device_ = visitor.visitInt(device_ != 0, device_, other.device_ != 0, other.device_); - deviceName_ = visitor.visitString(!deviceName_.isEmpty(), deviceName_, - !other.deviceName_.isEmpty(), other.deviceName_); - twoStepVerification_ = visitor.visitBoolean(twoStepVerification_ != false, twoStepVerification_, - other.twoStepVerification_ != false, other.twoStepVerification_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - appName_ = s; - break; - } - case 24: { - - appId_ = input.readUInt32(); - break; - } - case 32: { - - appBuildVersion_ = input.readUInt32(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - appVersion_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - - platform_ = rawValue; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - platformVersion_ = s; - break; - } - case 64: { - int rawValue = input.readEnum(); - - device_ = rawValue; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - deviceName_ = s; - break; - } - case 80: { - - twoStepVerification_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.UserVerifyNewDeviceResponse) + } + // @@protoc_insertion_point(class_scope:proto.UserVerifyNewDeviceResponse) private static final net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new UserVerifyNewDeviceResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse(); } public static net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserVerifyNewDeviceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserVerifyNewDeviceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoUserVerifyNewDevice.UserVerifyNewDeviceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserVerifyNewDevice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserVerifyNewDevice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_UserVerifyNewDeviceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_UserVerifyNewDeviceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\031UserVerifyNewDevice.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\032\014Global.proto\"" + + "E\n\023UserVerifyNewDevice\022\037\n\007request\030\001 \001(\0132" + + "\016.proto.Request\022\r\n\005token\030\002 \001(\t\"\242\002\n\033UserV" + + "erifyNewDeviceResponse\022!\n\010response\030\001 \001(\013" + + "2\017.proto.Response\022\020\n\010app_name\030\002 \001(\t\022\016\n\006a" + + "pp_id\030\003 \001(\r\022\031\n\021app_build_version\030\004 \001(\r\022\023" + + "\n\013app_version\030\005 \001(\t\022!\n\010platform\030\006 \001(\0162\017." + + "proto.Platform\022\030\n\020platform_version\030\007 \001(\t" + + "\022\035\n\006device\030\010 \001(\0162\r.proto.Device\022\023\n\013devic" + + "e_name\030\t \001(\t\022\035\n\025two_step_verification\030\n " + + "\001(\010B*\n\016net.iGap.protoB\030ProtoUserVerifyNe" + + "wDeviceb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_UserVerifyNewDevice_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_UserVerifyNewDevice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserVerifyNewDevice_descriptor, + new java.lang.String[] { "Request", "Token", }); + internal_static_proto_UserVerifyNewDeviceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_UserVerifyNewDeviceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_UserVerifyNewDeviceResponse_descriptor, + new java.lang.String[] { "Response", "AppName", "AppId", "AppBuildVersion", "AppVersion", "Platform", "PlatformVersion", "Device", "DeviceName", "TwoStepVerification", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoVerifyNewPhoneNumber.java b/src/main/java/net/iGap/proto/ProtoVerifyNewPhoneNumber.java index 5e18915..31daa23 100644 --- a/src/main/java/net/iGap/proto/ProtoVerifyNewPhoneNumber.java +++ b/src/main/java/net/iGap/proto/ProtoVerifyNewPhoneNumber.java @@ -8,25 +8,39 @@ private ProtoVerifyNewPhoneNumber() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface VerifyNewPhoneNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.VerifyNewPhoneNumber) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string verify_code = 2; + * string verify_code = 2; + * @return The verifyCode. */ java.lang.String getVerifyCode(); /** - * optional string verify_code = 2; + * string verify_code = 2; + * @return The bytes for verifyCode. */ com.google.protobuf.ByteString getVerifyCodeBytes(); @@ -34,124 +48,190 @@ public interface VerifyNewPhoneNumberOrBuilder extends /** * Protobuf type {@code proto.VerifyNewPhoneNumber} */ - public static final class VerifyNewPhoneNumber extends - com.google.protobuf.GeneratedMessageLite< - VerifyNewPhoneNumber, VerifyNewPhoneNumber.Builder> implements + public static final class VerifyNewPhoneNumber extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.VerifyNewPhoneNumber) VerifyNewPhoneNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use VerifyNewPhoneNumber.newBuilder() to construct. + private VerifyNewPhoneNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private VerifyNewPhoneNumber() { verifyCode_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyNewPhoneNumber(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VerifyNewPhoneNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + verifyCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumber_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.class, net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int VERIFY_CODE_FIELD_NUMBER = 2; - private java.lang.String verifyCode_; + private volatile java.lang.Object verifyCode_; /** - * optional string verify_code = 2; + * string verify_code = 2; + * @return The verifyCode. */ + @java.lang.Override public java.lang.String getVerifyCode() { - return verifyCode_; + java.lang.Object ref = verifyCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verifyCode_ = s; + return s; + } } /** - * optional string verify_code = 2; + * string verify_code = 2; + * @return The bytes for verifyCode. */ + @java.lang.Override public com.google.protobuf.ByteString getVerifyCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(verifyCode_); - } - /** - * optional string verify_code = 2; - */ - private void setVerifyCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verifyCode_ = value; - } - /** - * optional string verify_code = 2; - */ - private void clearVerifyCode() { - - verifyCode_ = getDefaultInstance().getVerifyCode(); + java.lang.Object ref = verifyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verifyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string verify_code = 2; - */ - private void setVerifyCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verifyCode_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!verifyCode_.isEmpty()) { - output.writeString(2, getVerifyCode()); + if (!getVerifyCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, verifyCode_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,378 +239,710 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!verifyCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getVerifyCode()); + if (!getVerifyCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, verifyCode_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber)) { + return super.equals(obj); + } + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber other = (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getVerifyCode() + .equals(other.getVerifyCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + VERIFY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getVerifyCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.VerifyNewPhoneNumber} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.VerifyNewPhoneNumber) net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumber_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.class, net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.Builder.class); + } + // Construct using net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + verifyCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumber_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber getDefaultInstanceForType() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber build() { + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber buildPartial() { + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber result = new net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.verifyCode_ = verifyCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber) { + return mergeFrom((net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber other) { + if (other == net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getVerifyCode().isEmpty()) { + verifyCode_ = other.verifyCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object verifyCode_ = ""; /** - * optional string verify_code = 2; + * string verify_code = 2; + * @return The verifyCode. */ public java.lang.String getVerifyCode() { - return instance.getVerifyCode(); + java.lang.Object ref = verifyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verifyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string verify_code = 2; + * string verify_code = 2; + * @return The bytes for verifyCode. */ public com.google.protobuf.ByteString getVerifyCodeBytes() { - return instance.getVerifyCodeBytes(); + java.lang.Object ref = verifyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verifyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string verify_code = 2; + * string verify_code = 2; + * @param value The verifyCode to set. + * @return This builder for chaining. */ public Builder setVerifyCode( java.lang.String value) { - copyOnWrite(); - instance.setVerifyCode(value); + if (value == null) { + throw new NullPointerException(); + } + + verifyCode_ = value; + onChanged(); return this; } /** - * optional string verify_code = 2; + * string verify_code = 2; + * @return This builder for chaining. */ public Builder clearVerifyCode() { - copyOnWrite(); - instance.clearVerifyCode(); + + verifyCode_ = getDefaultInstance().getVerifyCode(); + onChanged(); return this; } /** - * optional string verify_code = 2; + * string verify_code = 2; + * @param value The bytes for verifyCode to set. + * @return This builder for chaining. */ public Builder setVerifyCodeBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setVerifyCodeBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + verifyCode_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.VerifyNewPhoneNumber) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber other = (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber) arg1; - request_ = visitor.visitMessage(request_, other.request_); - verifyCode_ = visitor.visitString(!verifyCode_.isEmpty(), verifyCode_, - !other.verifyCode_.isEmpty(), other.verifyCode_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - verifyCode_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.VerifyNewPhoneNumber) + } + // @@protoc_insertion_point(class_scope:proto.VerifyNewPhoneNumber) private static final net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new VerifyNewPhoneNumber(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber(); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyNewPhoneNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyNewPhoneNumber(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface VerifyNewPhoneNumberResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.VerifyNewPhoneNumberResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.VerifyNewPhoneNumberResponse} */ - public static final class VerifyNewPhoneNumberResponse extends - com.google.protobuf.GeneratedMessageLite< - VerifyNewPhoneNumberResponse, VerifyNewPhoneNumberResponse.Builder> implements + public static final class VerifyNewPhoneNumberResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.VerifyNewPhoneNumberResponse) VerifyNewPhoneNumberResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use VerifyNewPhoneNumberResponse.newBuilder() to construct. + private VerifyNewPhoneNumberResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private VerifyNewPhoneNumberResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyNewPhoneNumberResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VerifyNewPhoneNumberResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.class, net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -538,244 +950,509 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse other = (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.VerifyNewPhoneNumberResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.VerifyNewPhoneNumberResponse) net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.class, net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.internal_static_proto_VerifyNewPhoneNumberResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse build() { + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse buildPartial() { + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse result = new net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse) { + return mergeFrom((net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse other) { + if (other == net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.VerifyNewPhoneNumberResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse other = (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.VerifyNewPhoneNumberResponse) + } // @@protoc_insertion_point(class_scope:proto.VerifyNewPhoneNumberResponse) private static final net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new VerifyNewPhoneNumberResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse(); } public static net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyNewPhoneNumberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyNewPhoneNumberResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoVerifyNewPhoneNumber.VerifyNewPhoneNumberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_VerifyNewPhoneNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_VerifyNewPhoneNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_VerifyNewPhoneNumberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_VerifyNewPhoneNumberResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032VerifyNewPhoneNumber.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"L\n\024VerifyNewP" + + "honeNumber\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\023\n\013verify_code\030\002 \001(\t\"A\n\034VerifyNewPho" + + "neNumberResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.ResponseB+\n\016net.iGap.protoB\031ProtoVeri" + + "fyNewPhoneNumberb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_VerifyNewPhoneNumber_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_VerifyNewPhoneNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_VerifyNewPhoneNumber_descriptor, + new java.lang.String[] { "Request", "VerifyCode", }); + internal_static_proto_VerifyNewPhoneNumberResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_VerifyNewPhoneNumberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_VerifyNewPhoneNumberResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoWalletGetAccessToken.java b/src/main/java/net/iGap/proto/ProtoWalletGetAccessToken.java index fb9bfda..b81dd21 100644 --- a/src/main/java/net/iGap/proto/ProtoWalletGetAccessToken.java +++ b/src/main/java/net/iGap/proto/ProtoWalletGetAccessToken.java @@ -8,90 +8,170 @@ private ProtoWalletGetAccessToken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface WalletGetAccessTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletGetAccessToken) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.WalletGetAccessToken} */ - public static final class WalletGetAccessToken extends - com.google.protobuf.GeneratedMessageLite< - WalletGetAccessToken, WalletGetAccessToken.Builder> implements + public static final class WalletGetAccessToken extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletGetAccessToken) WalletGetAccessTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletGetAccessToken.newBuilder() to construct. + private WalletGetAccessToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletGetAccessToken() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletGetAccessToken(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletGetAccessToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.class, net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,295 +179,624 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken other = (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletGetAccessToken} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletGetAccessToken) net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.class, net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessToken_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken build() { + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken buildPartial() { + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken result = new net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken) { + return mergeFrom((net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken other) { + if (other == net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.WalletGetAccessToken) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken other = (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.WalletGetAccessToken) + } // @@protoc_insertion_point(class_scope:proto.WalletGetAccessToken) private static final net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletGetAccessToken(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken(); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletGetAccessToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletGetAccessToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface WalletGetAccessTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletGetAccessTokenResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @return The enum numeric value on the wire for tokenType. */ int getTokenTypeValue(); /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @return The tokenType. */ net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType getTokenType(); /** - * optional string access_token = 3; + * string access_token = 3; + * @return The accessToken. */ java.lang.String getAccessToken(); /** - * optional string access_token = 3; + * string access_token = 3; + * @return The bytes for accessToken. */ com.google.protobuf.ByteString getAccessTokenBytes(); /** - * optional uint32 expires_in = 4; + * uint32 expires_in = 4; + * @return The expiresIn. */ int getExpiresIn(); } /** * Protobuf type {@code proto.WalletGetAccessTokenResponse} */ - public static final class WalletGetAccessTokenResponse extends - com.google.protobuf.GeneratedMessageLite< - WalletGetAccessTokenResponse, WalletGetAccessTokenResponse.Builder> implements + public static final class WalletGetAccessTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletGetAccessTokenResponse) WalletGetAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletGetAccessTokenResponse.newBuilder() to construct. + private WalletGetAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletGetAccessTokenResponse() { + tokenType_ = 0; accessToken_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletGetAccessTokenResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletGetAccessTokenResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + tokenType_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + accessToken_ = s; + break; + } + case 32: { + + expiresIn_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.class, net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.Builder.class); + } + /** * Protobuf enum {@code proto.WalletGetAccessTokenResponse.TokenType} */ public enum TokenType - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.ProtocolMessageEnum { /** * BEARER = 0; */ @@ -402,10 +811,16 @@ public enum TokenType public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } return value; } /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -413,6 +828,10 @@ public static TokenType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static TokenType forNumber(int value) { switch (value) { case 0: return BEARER; @@ -432,6 +851,37 @@ public TokenType findValueByNumber(int number) { } }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final TokenType[] VALUES = values(); + + public static TokenType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; private TokenType(int value) { @@ -444,163 +894,109 @@ private TokenType(int value) { public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_TYPE_FIELD_NUMBER = 2; private int tokenType_; /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @return The enum numeric value on the wire for tokenType. */ - public int getTokenTypeValue() { + @java.lang.Override public int getTokenTypeValue() { return tokenType_; } /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @return The tokenType. */ - public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType getTokenType() { - net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType result = net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType.forNumber(tokenType_); + @java.lang.Override public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType getTokenType() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType result = net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType.valueOf(tokenType_); return result == null ? net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType.UNRECOGNIZED : result; } - /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; - */ - private void setTokenTypeValue(int value) { - tokenType_ = value; - } - /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; - */ - private void setTokenType(net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType value) { - if (value == null) { - throw new NullPointerException(); - } - - tokenType_ = value.getNumber(); - } - /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; - */ - private void clearTokenType() { - - tokenType_ = 0; - } public static final int ACCESS_TOKEN_FIELD_NUMBER = 3; - private java.lang.String accessToken_; + private volatile java.lang.Object accessToken_; /** - * optional string access_token = 3; + * string access_token = 3; + * @return The accessToken. */ + @java.lang.Override public java.lang.String getAccessToken() { - return accessToken_; + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } } /** - * optional string access_token = 3; + * string access_token = 3; + * @return The bytes for accessToken. */ + @java.lang.Override public com.google.protobuf.ByteString getAccessTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(accessToken_); - } - /** - * optional string access_token = 3; - */ - private void setAccessToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accessToken_ = value; - } - /** - * optional string access_token = 3; - */ - private void clearAccessToken() { - - accessToken_ = getDefaultInstance().getAccessToken(); - } - /** - * optional string access_token = 3; - */ - private void setAccessTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accessToken_ = value.toStringUtf8(); + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXPIRES_IN_FIELD_NUMBER = 4; private int expiresIn_; /** - * optional uint32 expires_in = 4; + * uint32 expires_in = 4; + * @return The expiresIn. */ + @java.lang.Override public int getExpiresIn() { return expiresIn_; } - /** - * optional uint32 expires_in = 4; - */ - private void setExpiresIn(int value) { - - expiresIn_ = value; - } - /** - * optional uint32 expires_in = 4; - */ - private void clearExpiresIn() { - - expiresIn_ = 0; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -609,16 +1005,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tokenType_ != net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType.BEARER.getNumber()) { output.writeEnum(2, tokenType_); } - if (!accessToken_.isEmpty()) { - output.writeString(3, getAccessToken()); + if (!getAccessTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, accessToken_); } if (expiresIn_ != 0) { output.writeUInt32(4, expiresIn_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -630,374 +1028,710 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, tokenType_); } - if (!accessToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getAccessToken()); + if (!getAccessTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, accessToken_); } if (expiresIn_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, expiresIn_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse other = (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (tokenType_ != other.tokenType_) return false; + if (!getAccessToken() + .equals(other.getAccessToken())) return false; + if (getExpiresIn() + != other.getExpiresIn()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_TYPE_FIELD_NUMBER; + hash = (53 * hash) + tokenType_; + hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAccessToken().hashCode(); + hash = (37 * hash) + EXPIRES_IN_FIELD_NUMBER; + hash = (53 * hash) + getExpiresIn(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletGetAccessTokenResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletGetAccessTokenResponse) net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.class, net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + tokenType_ = 0; + + accessToken_ = ""; + + expiresIn_ = 0; + + return this; } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletGetAccessToken.internal_static_proto_WalletGetAccessTokenResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse build() { + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse buildPartial() { + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse result = new net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.tokenType_ = tokenType_; + result.accessToken_ = accessToken_; + result.expiresIn_ = expiresIn_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse) { + return mergeFrom((net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse other) { + if (other == net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.tokenType_ != 0) { + setTokenTypeValue(other.getTokenTypeValue()); + } + if (!other.getAccessToken().isEmpty()) { + accessToken_ = other.accessToken_; + onChanged(); + } + if (other.getExpiresIn() != 0) { + setExpiresIn(other.getExpiresIn()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private int tokenType_ = 0; /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @return The enum numeric value on the wire for tokenType. */ - public int getTokenTypeValue() { - return instance.getTokenTypeValue(); + @java.lang.Override public int getTokenTypeValue() { + return tokenType_; } /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @param value The enum numeric value on the wire for tokenType to set. + * @return This builder for chaining. */ public Builder setTokenTypeValue(int value) { - copyOnWrite(); - instance.setTokenTypeValue(value); + + tokenType_ = value; + onChanged(); return this; } /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @return The tokenType. */ + @java.lang.Override public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType getTokenType() { - return instance.getTokenType(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType result = net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType.valueOf(tokenType_); + return result == null ? net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType.UNRECOGNIZED : result; } /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @param value The tokenType to set. + * @return This builder for chaining. */ public Builder setTokenType(net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.TokenType value) { - copyOnWrite(); - instance.setTokenType(value); + if (value == null) { + throw new NullPointerException(); + } + + tokenType_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * .proto.WalletGetAccessTokenResponse.TokenType token_type = 2; + * @return This builder for chaining. */ public Builder clearTokenType() { - copyOnWrite(); - instance.clearTokenType(); + + tokenType_ = 0; + onChanged(); return this; } + private java.lang.Object accessToken_ = ""; /** - * optional string access_token = 3; + * string access_token = 3; + * @return The accessToken. */ public java.lang.String getAccessToken() { - return instance.getAccessToken(); + java.lang.Object ref = accessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string access_token = 3; + * string access_token = 3; + * @return The bytes for accessToken. */ public com.google.protobuf.ByteString getAccessTokenBytes() { - return instance.getAccessTokenBytes(); + java.lang.Object ref = accessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string access_token = 3; + * string access_token = 3; + * @param value The accessToken to set. + * @return This builder for chaining. */ public Builder setAccessToken( java.lang.String value) { - copyOnWrite(); - instance.setAccessToken(value); + if (value == null) { + throw new NullPointerException(); + } + + accessToken_ = value; + onChanged(); return this; } /** - * optional string access_token = 3; + * string access_token = 3; + * @return This builder for chaining. */ public Builder clearAccessToken() { - copyOnWrite(); - instance.clearAccessToken(); + + accessToken_ = getDefaultInstance().getAccessToken(); + onChanged(); return this; } /** - * optional string access_token = 3; + * string access_token = 3; + * @param value The bytes for accessToken to set. + * @return This builder for chaining. */ public Builder setAccessTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAccessTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + accessToken_ = value; + onChanged(); return this; } + private int expiresIn_ ; /** - * optional uint32 expires_in = 4; + * uint32 expires_in = 4; + * @return The expiresIn. */ + @java.lang.Override public int getExpiresIn() { - return instance.getExpiresIn(); + return expiresIn_; } /** - * optional uint32 expires_in = 4; + * uint32 expires_in = 4; + * @param value The expiresIn to set. + * @return This builder for chaining. */ public Builder setExpiresIn(int value) { - copyOnWrite(); - instance.setExpiresIn(value); + + expiresIn_ = value; + onChanged(); return this; } /** - * optional uint32 expires_in = 4; + * uint32 expires_in = 4; + * @return This builder for chaining. */ public Builder clearExpiresIn() { - copyOnWrite(); - instance.clearExpiresIn(); + + expiresIn_ = 0; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.WalletGetAccessTokenResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse other = (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - tokenType_ = visitor.visitInt(tokenType_ != 0, tokenType_, other.tokenType_ != 0, other.tokenType_); - accessToken_ = visitor.visitString(!accessToken_.isEmpty(), accessToken_, - !other.accessToken_.isEmpty(), other.accessToken_); - expiresIn_ = visitor.visitInt(expiresIn_ != 0, expiresIn_, - other.expiresIn_ != 0, other.expiresIn_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - tokenType_ = rawValue; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - accessToken_ = s; - break; - } - case 32: { - - expiresIn_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.WalletGetAccessTokenResponse) + } + // @@protoc_insertion_point(class_scope:proto.WalletGetAccessTokenResponse) private static final net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletGetAccessTokenResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse(); } public static net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletGetAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletGetAccessTokenResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoWalletGetAccessToken.WalletGetAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletGetAccessToken_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletGetAccessToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletGetAccessTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletGetAccessTokenResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\032WalletGetAccessToken.proto\022\005proto\032\rReq" + + "uest.proto\032\016Response.proto\"7\n\024WalletGetA" + + "ccessToken\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\"\307\001\n\034WalletGetAccessTokenResponse\022!\n\010" + + "response\030\001 \001(\0132\017.proto.Response\022A\n\ntoken" + + "_type\030\002 \001(\0162-.proto.WalletGetAccessToken" + + "Response.TokenType\022\024\n\014access_token\030\003 \001(\t" + + "\022\022\n\nexpires_in\030\004 \001(\r\"\027\n\tTokenType\022\n\n\006BEA" + + "RER\020\000B+\n\016net.iGap.protoB\031ProtoWalletGetA" + + "ccessTokenb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_WalletGetAccessToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_WalletGetAccessToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletGetAccessToken_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_WalletGetAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_WalletGetAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletGetAccessTokenResponse_descriptor, + new java.lang.String[] { "Response", "TokenType", "AccessToken", "ExpiresIn", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoWalletIdMapping.java b/src/main/java/net/iGap/proto/ProtoWalletIdMapping.java index 305facf..2144e2d 100644 --- a/src/main/java/net/iGap/proto/ProtoWalletIdMapping.java +++ b/src/main/java/net/iGap/proto/ProtoWalletIdMapping.java @@ -8,25 +8,39 @@ private ProtoWalletIdMapping() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface WalletIdMappingOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletIdMapping) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @return The walletId. */ java.lang.String getWalletId(); /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @return The bytes for walletId. */ com.google.protobuf.ByteString getWalletIdBytes(); @@ -34,124 +48,190 @@ public interface WalletIdMappingOrBuilder extends /** * Protobuf type {@code proto.WalletIdMapping} */ - public static final class WalletIdMapping extends - com.google.protobuf.GeneratedMessageLite< - WalletIdMapping, WalletIdMapping.Builder> implements + public static final class WalletIdMapping extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletIdMapping) WalletIdMappingOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletIdMapping.newBuilder() to construct. + private WalletIdMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletIdMapping() { walletId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletIdMapping(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletIdMapping( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + walletId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.class, net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int WALLET_ID_FIELD_NUMBER = 2; - private java.lang.String walletId_; + private volatile java.lang.Object walletId_; /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @return The walletId. */ + @java.lang.Override public java.lang.String getWalletId() { - return walletId_; + java.lang.Object ref = walletId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + walletId_ = s; + return s; + } } /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @return The bytes for walletId. */ + @java.lang.Override public com.google.protobuf.ByteString getWalletIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(walletId_); - } - /** - * optional string wallet_id = 2; - */ - private void setWalletId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - walletId_ = value; - } - /** - * optional string wallet_id = 2; - */ - private void clearWalletId() { - - walletId_ = getDefaultInstance().getWalletId(); + java.lang.Object ref = walletId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + walletId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string wallet_id = 2; - */ - private void setWalletIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - walletId_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } - if (!walletId_.isEmpty()) { - output.writeString(2, getWalletId()); + if (!getWalletIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, walletId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -159,397 +239,721 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - if (!walletId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getWalletId()); + if (!getWalletIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, walletId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping other = (net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getWalletId() + .equals(other.getWalletId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + WALLET_ID_FIELD_NUMBER; + hash = (53 * hash) + getWalletId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletIdMapping} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletIdMapping) net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.class, net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + walletId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMapping_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.getDefaultInstance(); + } + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping build() { + net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping buildPartial() { + net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping result = new net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.walletId_ = walletId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping) { + return mergeFrom((net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping other) { + if (other == net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getWalletId().isEmpty()) { + walletId_ = other.walletId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private java.lang.Object walletId_ = ""; /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @return The walletId. */ public java.lang.String getWalletId() { - return instance.getWalletId(); + java.lang.Object ref = walletId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + walletId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @return The bytes for walletId. */ public com.google.protobuf.ByteString getWalletIdBytes() { - return instance.getWalletIdBytes(); + java.lang.Object ref = walletId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + walletId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @param value The walletId to set. + * @return This builder for chaining. */ public Builder setWalletId( java.lang.String value) { - copyOnWrite(); - instance.setWalletId(value); + if (value == null) { + throw new NullPointerException(); + } + + walletId_ = value; + onChanged(); return this; } /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @return This builder for chaining. */ public Builder clearWalletId() { - copyOnWrite(); - instance.clearWalletId(); + + walletId_ = getDefaultInstance().getWalletId(); + onChanged(); return this; } /** - * optional string wallet_id = 2; + * string wallet_id = 2; + * @param value The bytes for walletId to set. + * @return This builder for chaining. */ public Builder setWalletIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setWalletIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + walletId_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.WalletIdMapping) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping other = (net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping) arg1; - request_ = visitor.visitMessage(request_, other.request_); - walletId_ = visitor.visitString(!walletId_.isEmpty(), walletId_, - !other.walletId_.isEmpty(), other.walletId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - walletId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.WalletIdMapping) + } + // @@protoc_insertion_point(class_scope:proto.WalletIdMapping) private static final net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletIdMapping(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping(); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletIdMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletIdMapping(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface WalletIdMappingResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletIdMappingResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ long getUserId(); } /** * Protobuf type {@code proto.WalletIdMappingResponse} */ - public static final class WalletIdMappingResponse extends - com.google.protobuf.GeneratedMessageLite< - WalletIdMappingResponse, WalletIdMappingResponse.Builder> implements + public static final class WalletIdMappingResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletIdMappingResponse) WalletIdMappingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletIdMappingResponse.newBuilder() to construct. + private WalletIdMappingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletIdMappingResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletIdMappingResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletIdMappingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + userId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMappingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMappingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.class, net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int USER_ID_FIELD_NUMBER = 2; private long userId_; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { return userId_; } - /** - * optional uint64 user_id = 2; - */ - private void setUserId(long value) { - - userId_ = value; - } - /** - * optional uint64 user_id = 2; - */ - private void clearUserId() { - - userId_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -558,10 +962,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userId_ != 0L) { output.writeUInt64(2, userId_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -573,274 +979,551 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, userId_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse other = (net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (getUserId() + != other.getUserId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletIdMappingResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletIdMappingResponse) net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMappingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMappingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.class, net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + userId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletIdMapping.internal_static_proto_WalletIdMappingResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse build() { + net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse buildPartial() { + net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse result = new net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.userId_ = userId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse) { + return mergeFrom((net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse other) { + if (other == net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private long userId_ ; /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return The userId. */ + @java.lang.Override public long getUserId() { - return instance.getUserId(); + return userId_; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @param value The userId to set. + * @return This builder for chaining. */ public Builder setUserId(long value) { - copyOnWrite(); - instance.setUserId(value); + + userId_ = value; + onChanged(); return this; } /** - * optional uint64 user_id = 2; + * uint64 user_id = 2; + * @return This builder for chaining. */ public Builder clearUserId() { - copyOnWrite(); - instance.clearUserId(); + + userId_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.WalletIdMappingResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse other = (net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - userId_ = visitor.visitLong(userId_ != 0L, userId_, - other.userId_ != 0L, other.userId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - userId_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.WalletIdMappingResponse) + } + // @@protoc_insertion_point(class_scope:proto.WalletIdMappingResponse) private static final net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletIdMappingResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse(); } public static net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletIdMappingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletIdMappingResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.ProtoWalletIdMapping.WalletIdMappingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletIdMapping_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletIdMapping_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletIdMappingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletIdMappingResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\025WalletIdMapping.proto\022\005proto\032\rRequest." + + "proto\032\016Response.proto\"E\n\017WalletIdMapping" + + "\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\021\n\twal" + + "let_id\030\002 \001(\t\"M\n\027WalletIdMappingResponse\022" + + "!\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007us" + + "er_id\030\002 \001(\004B&\n\016net.iGap.protoB\024ProtoWall" + + "etIdMappingb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_WalletIdMapping_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_WalletIdMapping_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletIdMapping_descriptor, + new java.lang.String[] { "Request", "WalletId", }); + internal_static_proto_WalletIdMappingResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_WalletIdMappingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletIdMappingResponse_descriptor, + new java.lang.String[] { "Response", "UserId", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoWalletPaymentInit.java b/src/main/java/net/iGap/proto/ProtoWalletPaymentInit.java index a44d4de..a9a7b16 100644 --- a/src/main/java/net/iGap/proto/ProtoWalletPaymentInit.java +++ b/src/main/java/net/iGap/proto/ProtoWalletPaymentInit.java @@ -8,54 +8,74 @@ private ProtoWalletPaymentInit() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface WalletPaymentInitOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletPaymentInit) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @return The enum numeric value on the wire for language. */ int getLanguageValue(); /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @return The language. */ net.iGap.proto.ProtoGlobal.Language getLanguage(); /** - * optional string jwt = 3; + * string jwt = 3; + * @return The jwt. */ java.lang.String getJwt(); /** - * optional string jwt = 3; + * string jwt = 3; + * @return The bytes for jwt. */ com.google.protobuf.ByteString getJwtBytes(); /** - * optional uint64 to_user_id = 4; + * uint64 to_user_id = 4; + * @return The toUserId. */ long getToUserId(); /** - * optional uint64 amount = 5; + * uint64 amount = 5; + * @return The amount. */ long getAmount(); /** - * optional string description = 6; + * string description = 6; + * @return The description. */ java.lang.String getDescription(); /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -63,244 +83,279 @@ public interface WalletPaymentInitOrBuilder extends /** * Protobuf type {@code proto.WalletPaymentInit} */ - public static final class WalletPaymentInit extends - com.google.protobuf.GeneratedMessageLite< - WalletPaymentInit, WalletPaymentInit.Builder> implements + public static final class WalletPaymentInit extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletPaymentInit) WalletPaymentInitOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletPaymentInit.newBuilder() to construct. + private WalletPaymentInit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletPaymentInit() { + language_ = 0; jwt_ = ""; description_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletPaymentInit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletPaymentInit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + language_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + jwt_ = s; + break; + } + case 32: { + + toUserId_ = input.readUInt64(); + break; + } + case 40: { + + amount_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; - */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - - } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void clearRequest() { request_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } public static final int LANGUAGE_FIELD_NUMBER = 2; private int language_; /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @return The enum numeric value on the wire for language. */ - public int getLanguageValue() { + @java.lang.Override public int getLanguageValue() { return language_; } /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @return The language. */ - public net.iGap.proto.ProtoGlobal.Language getLanguage() { - net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.forNumber(language_); + @java.lang.Override public net.iGap.proto.ProtoGlobal.Language getLanguage() { + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; } - /** - * optional .proto.Language language = 2; - */ - private void setLanguageValue(int value) { - language_ = value; - } - /** - * optional .proto.Language language = 2; - */ - private void setLanguage(net.iGap.proto.ProtoGlobal.Language value) { - if (value == null) { - throw new NullPointerException(); - } - - language_ = value.getNumber(); - } - /** - * optional .proto.Language language = 2; - */ - private void clearLanguage() { - - language_ = 0; - } public static final int JWT_FIELD_NUMBER = 3; - private java.lang.String jwt_; + private volatile java.lang.Object jwt_; /** - * optional string jwt = 3; + * string jwt = 3; + * @return The jwt. */ + @java.lang.Override public java.lang.String getJwt() { - return jwt_; + java.lang.Object ref = jwt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwt_ = s; + return s; + } } /** - * optional string jwt = 3; + * string jwt = 3; + * @return The bytes for jwt. */ + @java.lang.Override public com.google.protobuf.ByteString getJwtBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(jwt_); - } - /** - * optional string jwt = 3; - */ - private void setJwt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jwt_ = value; - } - /** - * optional string jwt = 3; - */ - private void clearJwt() { - - jwt_ = getDefaultInstance().getJwt(); - } - /** - * optional string jwt = 3; - */ - private void setJwtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jwt_ = value.toStringUtf8(); + java.lang.Object ref = jwt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TO_USER_ID_FIELD_NUMBER = 4; private long toUserId_; /** - * optional uint64 to_user_id = 4; + * uint64 to_user_id = 4; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { return toUserId_; } - /** - * optional uint64 to_user_id = 4; - */ - private void setToUserId(long value) { - - toUserId_ = value; - } - /** - * optional uint64 to_user_id = 4; - */ - private void clearToUserId() { - - toUserId_ = 0L; - } public static final int AMOUNT_FIELD_NUMBER = 5; private long amount_; /** - * optional uint64 amount = 5; + * uint64 amount = 5; + * @return The amount. */ + @java.lang.Override public long getAmount() { return amount_; } - /** - * optional uint64 amount = 5; - */ - private void setAmount(long value) { - - amount_ = value; - } - /** - * optional uint64 amount = 5; - */ - private void clearAmount() { - - amount_ = 0L; - } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private java.lang.String description_; + private volatile java.lang.Object description_; /** - * optional string description = 6; + * string description = 6; + * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { - return description_; + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } } /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(description_); - } - /** - * optional string description = 6; - */ - private void setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - } - /** - * optional string description = 6; - */ - private void clearDescription() { - - description_ = getDefaultInstance().getDescription(); + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string description = 6; - */ - private void setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { @@ -309,8 +364,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (language_ != net.iGap.proto.ProtoGlobal.Language.EN_US.getNumber()) { output.writeEnum(2, language_); } - if (!jwt_.isEmpty()) { - output.writeString(3, getJwt()); + if (!getJwtBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jwt_); } if (toUserId_ != 0L) { output.writeUInt64(4, toUserId_); @@ -318,13 +373,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (amount_ != 0L) { output.writeUInt64(5, amount_); } - if (!description_.isEmpty()) { - output.writeString(6, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -336,9 +393,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, language_); } - if (!jwt_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getJwt()); + if (!getJwtBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jwt_); } if (toUserId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -348,475 +404,825 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, amount_); } - if (!description_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getDescription()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit other = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (language_ != other.language_) return false; + if (!getJwt() + .equals(other.getJwt())) return false; + if (getToUserId() + != other.getToUserId()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + hash = (37 * hash) + JWT_FIELD_NUMBER; + hash = (53 * hash) + getJwt().hashCode(); + hash = (37 * hash) + TO_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToUserId()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletPaymentInit} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletPaymentInit) net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + language_ = 0; + + jwt_ = ""; + + toUserId_ = 0L; + + amount_ = 0L; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit build() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit buildPartial() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit result = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.language_ = language_; + result.jwt_ = jwt_; + result.toUserId_ = toUserId_; + result.amount_ = amount_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit) { + return mergeFrom((net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit)other); + } else { + super.mergeFrom(other); + return this; + } } + public Builder mergeFrom(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit other) { + if (other == net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.language_ != 0) { + setLanguageValue(other.getLanguageValue()); + } + if (!other.getJwt().isEmpty()) { + jwt_ = other.jwt_; + onChanged(); + } + if (other.getToUserId() != 0L) { + setToUserId(other.getToUserId()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + private int language_ = 0; /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @return The enum numeric value on the wire for language. */ - public int getLanguageValue() { - return instance.getLanguageValue(); + @java.lang.Override public int getLanguageValue() { + return language_; } /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @param value The enum numeric value on the wire for language to set. + * @return This builder for chaining. */ public Builder setLanguageValue(int value) { - copyOnWrite(); - instance.setLanguageValue(value); + + language_ = value; + onChanged(); return this; } /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @return The language. */ + @java.lang.Override public net.iGap.proto.ProtoGlobal.Language getLanguage() { - return instance.getLanguage(); + @SuppressWarnings("deprecation") + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); + return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; } /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @param value The language to set. + * @return This builder for chaining. */ public Builder setLanguage(net.iGap.proto.ProtoGlobal.Language value) { - copyOnWrite(); - instance.setLanguage(value); + if (value == null) { + throw new NullPointerException(); + } + + language_ = value.getNumber(); + onChanged(); return this; } /** - * optional .proto.Language language = 2; + * .proto.Language language = 2; + * @return This builder for chaining. */ public Builder clearLanguage() { - copyOnWrite(); - instance.clearLanguage(); + + language_ = 0; + onChanged(); return this; } + private java.lang.Object jwt_ = ""; /** - * optional string jwt = 3; + * string jwt = 3; + * @return The jwt. */ public java.lang.String getJwt() { - return instance.getJwt(); + java.lang.Object ref = jwt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwt_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string jwt = 3; + * string jwt = 3; + * @return The bytes for jwt. */ public com.google.protobuf.ByteString getJwtBytes() { - return instance.getJwtBytes(); + java.lang.Object ref = jwt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string jwt = 3; + * string jwt = 3; + * @param value The jwt to set. + * @return This builder for chaining. */ public Builder setJwt( java.lang.String value) { - copyOnWrite(); - instance.setJwt(value); + if (value == null) { + throw new NullPointerException(); + } + + jwt_ = value; + onChanged(); return this; } /** - * optional string jwt = 3; + * string jwt = 3; + * @return This builder for chaining. */ public Builder clearJwt() { - copyOnWrite(); - instance.clearJwt(); + + jwt_ = getDefaultInstance().getJwt(); + onChanged(); return this; } /** - * optional string jwt = 3; + * string jwt = 3; + * @param value The bytes for jwt to set. + * @return This builder for chaining. */ public Builder setJwtBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setJwtBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jwt_ = value; + onChanged(); return this; } + private long toUserId_ ; /** - * optional uint64 to_user_id = 4; + * uint64 to_user_id = 4; + * @return The toUserId. */ + @java.lang.Override public long getToUserId() { - return instance.getToUserId(); + return toUserId_; } /** - * optional uint64 to_user_id = 4; + * uint64 to_user_id = 4; + * @param value The toUserId to set. + * @return This builder for chaining. */ public Builder setToUserId(long value) { - copyOnWrite(); - instance.setToUserId(value); + + toUserId_ = value; + onChanged(); return this; } /** - * optional uint64 to_user_id = 4; + * uint64 to_user_id = 4; + * @return This builder for chaining. */ public Builder clearToUserId() { - copyOnWrite(); - instance.clearToUserId(); + + toUserId_ = 0L; + onChanged(); return this; } + private long amount_ ; /** - * optional uint64 amount = 5; + * uint64 amount = 5; + * @return The amount. */ + @java.lang.Override public long getAmount() { - return instance.getAmount(); + return amount_; } /** - * optional uint64 amount = 5; + * uint64 amount = 5; + * @param value The amount to set. + * @return This builder for chaining. */ public Builder setAmount(long value) { - copyOnWrite(); - instance.setAmount(value); + + amount_ = value; + onChanged(); return this; } /** - * optional uint64 amount = 5; + * uint64 amount = 5; + * @return This builder for chaining. */ public Builder clearAmount() { - copyOnWrite(); - instance.clearAmount(); + + amount_ = 0L; + onChanged(); return this; } + private java.lang.Object description_ = ""; /** - * optional string description = 6; + * string description = 6; + * @return The description. */ public java.lang.String getDescription() { - return instance.getDescription(); + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string description = 6; + * string description = 6; + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { - return instance.getDescriptionBytes(); + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string description = 6; + * string description = 6; + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { - copyOnWrite(); - instance.setDescription(value); + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); return this; } /** - * optional string description = 6; + * string description = 6; + * @return This builder for chaining. */ public Builder clearDescription() { - copyOnWrite(); - instance.clearDescription(); + + description_ = getDefaultInstance().getDescription(); + onChanged(); return this; } /** - * optional string description = 6; + * string description = 6; + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setDescriptionBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.WalletPaymentInit) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit other = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit) arg1; - request_ = visitor.visitMessage(request_, other.request_); - language_ = visitor.visitInt(language_ != 0, language_, other.language_ != 0, other.language_); - jwt_ = visitor.visitString(!jwt_.isEmpty(), jwt_, - !other.jwt_.isEmpty(), other.jwt_); - toUserId_ = visitor.visitLong(toUserId_ != 0L, toUserId_, - other.toUserId_ != 0L, other.toUserId_); - amount_ = visitor.visitLong(amount_ != 0L, amount_, - other.amount_ != 0L, other.amount_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - language_ = rawValue; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - jwt_ = s; - break; - } - case 32: { - - toUserId_ = input.readUInt64(); - break; - } - case 40: { - - amount_ = input.readUInt64(); - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.WalletPaymentInit) + } + // @@protoc_insertion_point(class_scope:proto.WalletPaymentInit) private static final net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletPaymentInit(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit(); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletPaymentInit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletPaymentInit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface WalletPaymentInitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletPaymentInitResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional string token = 2; + * string token = 2; + * @return The token. */ java.lang.String getToken(); /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** - * optional string public_key = 3; + * string public_key = 3; + * @return The publicKey. */ java.lang.String getPublicKey(); /** - * optional string public_key = 3; + * string public_key = 3; + * @return The bytes for publicKey. */ com.google.protobuf.ByteString getPublicKeyBytes(); @@ -824,174 +1230,238 @@ public interface WalletPaymentInitResponseOrBuilder extends /** * Protobuf type {@code proto.WalletPaymentInitResponse} */ - public static final class WalletPaymentInitResponse extends - com.google.protobuf.GeneratedMessageLite< - WalletPaymentInitResponse, WalletPaymentInitResponse.Builder> implements + public static final class WalletPaymentInitResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletPaymentInitResponse) WalletPaymentInitResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletPaymentInitResponse.newBuilder() to construct. + private WalletPaymentInitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletPaymentInitResponse() { token_ = ""; publicKey_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletPaymentInitResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletPaymentInitResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + publicKey_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; - */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - - } - /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void clearResponse() { response_ = null; - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } public static final int TOKEN_FIELD_NUMBER = 2; - private java.lang.String token_; + private volatile java.lang.Object token_; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { - return token_; + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(token_); - } - /** - * optional string token = 2; - */ - private void setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - } - /** - * optional string token = 2; - */ - private void clearToken() { - - token_ = getDefaultInstance().getToken(); - } - /** - * optional string token = 2; - */ - private void setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value.toStringUtf8(); + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PUBLIC_KEY_FIELD_NUMBER = 3; - private java.lang.String publicKey_; + private volatile java.lang.Object publicKey_; /** - * optional string public_key = 3; + * string public_key = 3; + * @return The publicKey. */ + @java.lang.Override public java.lang.String getPublicKey() { - return publicKey_; + java.lang.Object ref = publicKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicKey_ = s; + return s; + } } /** - * optional string public_key = 3; + * string public_key = 3; + * @return The bytes for publicKey. */ + @java.lang.Override public com.google.protobuf.ByteString getPublicKeyBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(publicKey_); - } - /** - * optional string public_key = 3; - */ - private void setPublicKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicKey_ = value; - } - /** - * optional string public_key = 3; - */ - private void clearPublicKey() { - - publicKey_ = getDefaultInstance().getPublicKey(); + java.lang.Object ref = publicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string public_key = 3; - */ - private void setPublicKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicKey_ = value.toStringUtf8(); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } - if (!token_.isEmpty()) { - output.writeString(2, getToken()); + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } - if (!publicKey_.isEmpty()) { - output.writeString(3, getPublicKey()); + if (!getPublicKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publicKey_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -999,348 +1469,694 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (!token_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getToken()); + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } - if (!publicKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getPublicKey()); + if (!getPublicKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicKey_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse other = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (!getPublicKey() + .equals(other.getPublicKey())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPublicKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletPaymentInitResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletPaymentInitResponse) net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + + publicKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse build() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse buildPartial() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse result = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + result.publicKey_ = publicKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse) { + return mergeFrom((net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse other) { + if (other == net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getPublicKey().isEmpty()) { + publicKey_ = other.publicKey_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + private java.lang.Object token_ = ""; /** - * optional string token = 2; + * string token = 2; + * @return The token. */ public java.lang.String getToken() { - return instance.getToken(); + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { - return instance.getTokenBytes(); + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string token = 2; + * string token = 2; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - copyOnWrite(); - instance.setToken(value); + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @return This builder for chaining. */ public Builder clearToken() { - copyOnWrite(); - instance.clearToken(); + + token_ = getDefaultInstance().getToken(); + onChanged(); return this; } /** - * optional string token = 2; + * string token = 2; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setTokenBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); return this; } + private java.lang.Object publicKey_ = ""; /** - * optional string public_key = 3; + * string public_key = 3; + * @return The publicKey. */ public java.lang.String getPublicKey() { - return instance.getPublicKey(); + java.lang.Object ref = publicKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string public_key = 3; + * string public_key = 3; + * @return The bytes for publicKey. */ public com.google.protobuf.ByteString getPublicKeyBytes() { - return instance.getPublicKeyBytes(); + java.lang.Object ref = publicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string public_key = 3; + * string public_key = 3; + * @param value The publicKey to set. + * @return This builder for chaining. */ public Builder setPublicKey( java.lang.String value) { - copyOnWrite(); - instance.setPublicKey(value); + if (value == null) { + throw new NullPointerException(); + } + + publicKey_ = value; + onChanged(); return this; } /** - * optional string public_key = 3; + * string public_key = 3; + * @return This builder for chaining. */ public Builder clearPublicKey() { - copyOnWrite(); - instance.clearPublicKey(); + + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); return this; } /** - * optional string public_key = 3; + * string public_key = 3; + * @param value The bytes for publicKey to set. + * @return This builder for chaining. */ public Builder setPublicKeyBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPublicKeyBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicKey_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.WalletPaymentInitResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse other = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - token_ = visitor.visitString(!token_.isEmpty(), token_, - !other.token_.isEmpty(), other.token_); - publicKey_ = visitor.visitString(!publicKey_.isEmpty(), publicKey_, - !other.publicKey_.isEmpty(), other.publicKey_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - publicKey_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.WalletPaymentInitResponse) + } + // @@protoc_insertion_point(class_scope:proto.WalletPaymentInitResponse) private static final net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletPaymentInitResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse(); } public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletPaymentInitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletPaymentInitResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletPaymentInit_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletPaymentInit_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletPaymentInitResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\027WalletPaymentInit.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\032\014Global.proto\"\235\001" + + "\n\021WalletPaymentInit\022\037\n\007request\030\001 \001(\0132\016.p" + + "roto.Request\022!\n\010language\030\002 \001(\0162\017.proto.L" + + "anguage\022\013\n\003jwt\030\003 \001(\t\022\022\n\nto_user_id\030\004 \001(\004" + + "\022\016\n\006amount\030\005 \001(\004\022\023\n\013description\030\006 \001(\t\"a\n" + + "\031WalletPaymentInitResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\r\n\005token\030\002 \001(\t\022\022\n\n" + + "public_key\030\003 \001(\tB(\n\016net.iGap.protoB\026Prot" + + "oWalletPaymentInitb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }); + internal_static_proto_WalletPaymentInit_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_WalletPaymentInit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletPaymentInit_descriptor, + new java.lang.String[] { "Request", "Language", "Jwt", "ToUserId", "Amount", "Description", }); + internal_static_proto_WalletPaymentInitResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletPaymentInitResponse_descriptor, + new java.lang.String[] { "Response", "Token", "PublicKey", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoWalletRegister.java b/src/main/java/net/iGap/proto/ProtoWalletRegister.java index ac48cc7..ed995eb 100644 --- a/src/main/java/net/iGap/proto/ProtoWalletRegister.java +++ b/src/main/java/net/iGap/proto/ProtoWalletRegister.java @@ -8,90 +8,170 @@ private ProtoWalletRegister() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface WalletRegisterOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletRegister) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ boolean hasRequest(); /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); } /** * Protobuf type {@code proto.WalletRegister} */ - public static final class WalletRegister extends - com.google.protobuf.GeneratedMessageLite< - WalletRegister, WalletRegister.Builder> implements + public static final class WalletRegister extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletRegister) WalletRegisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletRegister.newBuilder() to construct. + private WalletRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletRegister() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletRegister(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletRegister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegister_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletRegister.WalletRegister.class, net.iGap.proto.ProtoWalletRegister.WalletRegister.Builder.class); + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ + @java.lang.Override public boolean hasRequest() { return request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ + @java.lang.Override public net.iGap.proto.ProtoRequest.Request getRequest() { return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - private void setRequest(net.iGap.proto.ProtoRequest.Request value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - - } - /** - * optional .proto.Request request = 1; - */ - private void setRequest( - net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - request_ = builderForValue.build(); - + @java.lang.Override + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); } - /** - * optional .proto.Request request = 1; - */ - private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - if (request_ != null && - request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { - request_ = - net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - - } - /** - * optional .proto.Request request = 1; - */ - private void clearRequest() { request_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -99,326 +179,620 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletRegister.WalletRegister)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletRegister.WalletRegister other = (net.iGap.proto.ProtoWalletRegister.WalletRegister) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletRegister.WalletRegister prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletRegister} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletRegister.WalletRegister, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletRegister) net.iGap.proto.ProtoWalletRegister.WalletRegisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegister_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletRegister.WalletRegister.class, net.iGap.proto.ProtoWalletRegister.WalletRegister.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletRegister.WalletRegister.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegister_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegister getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletRegister.WalletRegister.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegister build() { + net.iGap.proto.ProtoWalletRegister.WalletRegister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegister buildPartial() { + net.iGap.proto.ProtoWalletRegister.WalletRegister result = new net.iGap.proto.ProtoWalletRegister.WalletRegister(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletRegister.WalletRegister) { + return mergeFrom((net.iGap.proto.ProtoWalletRegister.WalletRegister)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletRegister.WalletRegister other) { + if (other == net.iGap.proto.ProtoWalletRegister.WalletRegister.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletRegister.WalletRegister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletRegister.WalletRegister) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return Whether the request field is set. */ public boolean hasRequest() { - return instance.hasRequest(); + return requestBuilder_ != null || request_ != null; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; + * @return The request. */ public net.iGap.proto.ProtoRequest.Request getRequest() { - return instance.getRequest(); + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.setRequest(value); - return this; + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder setRequest( net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { - copyOnWrite(); - instance.setRequest(builderForValue); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { - copyOnWrite(); - instance.mergeRequest(value); + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Request request = 1; + * .proto.Request request = 1; */ - public Builder clearRequest() { copyOnWrite(); - instance.clearRequest(); + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.WalletRegister) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletRegister.WalletRegister(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletRegister.WalletRegister other = (net.iGap.proto.ProtoWalletRegister.WalletRegister) arg1; - request_ = visitor.visitMessage(request_, other.request_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletRegister.WalletRegister.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; } + return requestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.WalletRegister) + } + // @@protoc_insertion_point(class_scope:proto.WalletRegister) private static final net.iGap.proto.ProtoWalletRegister.WalletRegister DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletRegister(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletRegister.WalletRegister(); } public static net.iGap.proto.ProtoWalletRegister.WalletRegister getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletRegister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletRegister(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } public interface WalletRegisterResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.WalletRegisterResponse) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ boolean hasResponse(); /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); } /** * Protobuf type {@code proto.WalletRegisterResponse} */ - public static final class WalletRegisterResponse extends - com.google.protobuf.GeneratedMessageLite< - WalletRegisterResponse, WalletRegisterResponse.Builder> implements + public static final class WalletRegisterResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.WalletRegisterResponse) WalletRegisterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WalletRegisterResponse.newBuilder() to construct. + private WalletRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private WalletRegisterResponse() { } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WalletRegisterResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WalletRegisterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.class, net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.Builder.class); + } + public static final int RESPONSE_FIELD_NUMBER = 1; private net.iGap.proto.ProtoResponse.Response response_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ + @java.lang.Override public boolean hasResponse() { return response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ + @java.lang.Override public net.iGap.proto.ProtoResponse.Response getResponse() { return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - private void setResponse(net.iGap.proto.ProtoResponse.Response value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - - } - /** - * optional .proto.Response response = 1; - */ - private void setResponse( - net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - response_ = builderForValue.build(); - - } - /** - * optional .proto.Response response = 1; - */ - private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - if (response_ != null && - response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { - response_ = - net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - + @java.lang.Override + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); } - /** - * optional .proto.Response response = 1; - */ - private void clearResponse() { response_ = null; - + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { output.writeMessage(1, getResponse()); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -426,244 +800,508 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse other = (net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse() + .equals(other.getResponse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.WalletRegisterResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.WalletRegisterResponse) net.iGap.proto.ProtoWalletRegister.WalletRegisterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.class, net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.Builder.class); + } + // Construct using net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletRegister.internal_static_proto_WalletRegisterResponse_descriptor; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse build() { + net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse buildPartial() { + net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse result = new net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse) { + return mergeFrom((net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse other) { + if (other == net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return Whether the response field is set. */ public boolean hasResponse() { - return instance.hasResponse(); + return responseBuilder_ != null || response_ != null; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; + * @return The response. */ public net.iGap.proto.ProtoResponse.Response getResponse() { - return instance.getResponse(); + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.setResponse(value); - return this; + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); } + + return this; + } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder setResponse( net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { - copyOnWrite(); - instance.setResponse(builderForValue); + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { - copyOnWrite(); - instance.mergeResponse(value); + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + return this; } /** - * optional .proto.Response response = 1; + * .proto.Response response = 1; */ - public Builder clearResponse() { copyOnWrite(); - instance.clearResponse(); + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + return this; } - - // @@protoc_insertion_point(builder_scope:proto.WalletRegisterResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse other = (net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse) arg1; - response_ = visitor.visitMessage(response_, other.response_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; + } + /** + * .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; } + return responseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:proto.WalletRegisterResponse) + } // @@protoc_insertion_point(class_scope:proto.WalletRegisterResponse) private static final net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new WalletRegisterResponse(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse(); } public static net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletRegisterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletRegisterResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.ProtoWalletRegister.WalletRegisterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletRegister_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletRegister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletRegisterResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletRegisterResponse_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024WalletRegister.proto\022\005proto\032\rRequest.p" + + "roto\032\016Response.proto\"1\n\016WalletRegister\022\037" + + "\n\007request\030\001 \001(\0132\016.proto.Request\";\n\026Walle" + + "tRegisterResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.ResponseB%\n\016net.iGap.protoB\023ProtoWal" + + "letRegisterb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }); + internal_static_proto_WalletRegister_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_WalletRegister_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletRegister_descriptor, + new java.lang.String[] { "Request", }); + internal_static_proto_WalletRegisterResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_WalletRegisterResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletRegisterResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdate.java b/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdate.java index 924c30f..389df08 100644 --- a/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdate.java +++ b/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdate.java @@ -8,88 +8,114 @@ private ProtoInternalUpdate() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InternalUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.InternalUpdate) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return The senderUserId. */ long getSenderUserId(); /** * repeated uint64 affected_user_ids = 2; + * @return A list containing the affectedUserIds. */ java.util.List getAffectedUserIdsList(); /** * repeated uint64 affected_user_ids = 2; + * @return The count of affectedUserIds. */ int getAffectedUserIdsCount(); /** * repeated uint64 affected_user_ids = 2; + * @param index The index of the element to return. + * @return The affectedUserIds at the given index. */ long getAffectedUserIds(int index); /** - * optional string class_name = 3; + * string class_name = 3; + * @return The className. */ java.lang.String getClassName(); /** - * optional string class_name = 3; + * string class_name = 3; + * @return The bytes for className. */ com.google.protobuf.ByteString getClassNameBytes(); /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return The actionId. */ long getActionId(); /** - * optional string request_id = 5; + * string request_id = 5; + * @return The requestId. */ java.lang.String getRequestId(); /** - * optional string request_id = 5; + * string request_id = 5; + * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return The wrappedProto. */ com.google.protobuf.ByteString getWrappedProto(); /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The senderSessionId. */ java.lang.String getSenderSessionId(); /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The bytes for senderSessionId. */ com.google.protobuf.ByteString getSenderSessionIdBytes(); /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return The expirationTime. */ long getExpirationTime(); /** * repeated string receiver_session_id = 9; + * @return A list containing the receiverSessionId. */ - java.util.List + java.util.List getReceiverSessionIdList(); /** * repeated string receiver_session_id = 9; + * @return The count of receiverSessionId. */ int getReceiverSessionIdCount(); /** * repeated string receiver_session_id = 9; + * @param index The index of the element to return. + * @return The receiverSessionId at the given index. */ java.lang.String getReceiverSessionId(int index); /** * repeated string receiver_session_id = 9; + * @param index The index of the value to return. + * @return The bytes of the receiverSessionId at the given index. */ com.google.protobuf.ByteString getReceiverSessionIdBytes(int index); @@ -97,429 +123,434 @@ public interface InternalUpdateOrBuilder extends /** * Protobuf type {@code proto.updatequeue.InternalUpdate} */ - public static final class InternalUpdate extends - com.google.protobuf.GeneratedMessageLite< - InternalUpdate, InternalUpdate.Builder> implements + public static final class InternalUpdate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.InternalUpdate) InternalUpdateOrBuilder { + private static final long serialVersionUID = 0L; + // Use InternalUpdate.newBuilder() to construct. + private InternalUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InternalUpdate() { affectedUserIds_ = emptyLongList(); className_ = ""; requestId_ = ""; wrappedProto_ = com.google.protobuf.ByteString.EMPTY; senderSessionId_ = ""; - receiverSessionId_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + receiverSessionId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InternalUpdate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InternalUpdate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + senderUserId_ = input.readUInt64(); + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + affectedUserIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + affectedUserIds_.addLong(input.readUInt64()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + affectedUserIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + affectedUserIds_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + className_ = s; + break; + } + case 32: { + + actionId_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 50: { + + wrappedProto_ = input.readBytes(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + senderSessionId_ = s; + break; + } + case 64: { + + expirationTime_ = input.readUInt64(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + receiverSessionId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + receiverSessionId_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + affectedUserIds_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + receiverSessionId_ = receiverSessionId_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - private int bitField0_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdate.internal_static_proto_updatequeue_InternalUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdate.internal_static_proto_updatequeue_InternalUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.class, net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.Builder.class); + } + public static final int SENDER_USER_ID_FIELD_NUMBER = 1; private long senderUserId_; /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return The senderUserId. */ + @java.lang.Override public long getSenderUserId() { return senderUserId_; } - /** - * optional uint64 sender_user_id = 1; - */ - private void setSenderUserId(long value) { - - senderUserId_ = value; - } - /** - * optional uint64 sender_user_id = 1; - */ - private void clearSenderUserId() { - - senderUserId_ = 0L; - } public static final int AFFECTED_USER_IDS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.LongList affectedUserIds_; /** * repeated uint64 affected_user_ids = 2; + * @return A list containing the affectedUserIds. */ + @java.lang.Override public java.util.List getAffectedUserIdsList() { return affectedUserIds_; } /** * repeated uint64 affected_user_ids = 2; + * @return The count of affectedUserIds. */ public int getAffectedUserIdsCount() { return affectedUserIds_.size(); } /** * repeated uint64 affected_user_ids = 2; + * @param index The index of the element to return. + * @return The affectedUserIds at the given index. */ public long getAffectedUserIds(int index) { return affectedUserIds_.getLong(index); } - private void ensureAffectedUserIdsIsMutable() { - if (!affectedUserIds_.isModifiable()) { - affectedUserIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(affectedUserIds_); - } - } - /** - * repeated uint64 affected_user_ids = 2; - */ - private void setAffectedUserIds( - int index, long value) { - ensureAffectedUserIdsIsMutable(); - affectedUserIds_.setLong(index, value); - } - /** - * repeated uint64 affected_user_ids = 2; - */ - private void addAffectedUserIds(long value) { - ensureAffectedUserIdsIsMutable(); - affectedUserIds_.addLong(value); - } - /** - * repeated uint64 affected_user_ids = 2; - */ - private void addAllAffectedUserIds( - java.lang.Iterable values) { - ensureAffectedUserIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, affectedUserIds_); - } - /** - * repeated uint64 affected_user_ids = 2; - */ - private void clearAffectedUserIds() { - affectedUserIds_ = emptyLongList(); - } + private int affectedUserIdsMemoizedSerializedSize = -1; public static final int CLASS_NAME_FIELD_NUMBER = 3; - private java.lang.String className_; + private volatile java.lang.Object className_; /** - * optional string class_name = 3; + * string class_name = 3; + * @return The className. */ + @java.lang.Override public java.lang.String getClassName() { - return className_; + java.lang.Object ref = className_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + className_ = s; + return s; + } } /** - * optional string class_name = 3; + * string class_name = 3; + * @return The bytes for className. */ + @java.lang.Override public com.google.protobuf.ByteString getClassNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(className_); - } - /** - * optional string class_name = 3; - */ - private void setClassName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - className_ = value; - } - /** - * optional string class_name = 3; - */ - private void clearClassName() { - - className_ = getDefaultInstance().getClassName(); - } - /** - * optional string class_name = 3; - */ - private void setClassNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - className_ = value.toStringUtf8(); + java.lang.Object ref = className_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ACTION_ID_FIELD_NUMBER = 4; private long actionId_; /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return The actionId. */ + @java.lang.Override public long getActionId() { return actionId_; } - /** - * optional uint64 action_id = 4; - */ - private void setActionId(long value) { - - actionId_ = value; - } - /** - * optional uint64 action_id = 4; - */ - private void clearActionId() { - - actionId_ = 0L; - } public static final int REQUEST_ID_FIELD_NUMBER = 5; - private java.lang.String requestId_; + private volatile java.lang.Object requestId_; /** - * optional string request_id = 5; + * string request_id = 5; + * @return The requestId. */ + @java.lang.Override public java.lang.String getRequestId() { - return requestId_; + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } } /** - * optional string request_id = 5; + * string request_id = 5; + * @return The bytes for requestId. */ + @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(requestId_); - } - /** - * optional string request_id = 5; - */ - private void setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - } - /** - * optional string request_id = 5; - */ - private void clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - } - /** - * optional string request_id = 5; - */ - private void setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value.toStringUtf8(); + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int WRAPPED_PROTO_FIELD_NUMBER = 6; private com.google.protobuf.ByteString wrappedProto_; /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { return wrappedProto_; } - /** - * optional bytes wrapped_proto = 6; - */ - private void setWrappedProto(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - wrappedProto_ = value; - } - /** - * optional bytes wrapped_proto = 6; - */ - private void clearWrappedProto() { - - wrappedProto_ = getDefaultInstance().getWrappedProto(); - } public static final int SENDER_SESSION_ID_FIELD_NUMBER = 7; - private java.lang.String senderSessionId_; + private volatile java.lang.Object senderSessionId_; /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The senderSessionId. */ + @java.lang.Override public java.lang.String getSenderSessionId() { - return senderSessionId_; + java.lang.Object ref = senderSessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderSessionId_ = s; + return s; + } } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The bytes for senderSessionId. */ + @java.lang.Override public com.google.protobuf.ByteString getSenderSessionIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(senderSessionId_); - } - /** - * optional string sender_session_id = 7; - */ - private void setSenderSessionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - senderSessionId_ = value; - } - /** - * optional string sender_session_id = 7; - */ - private void clearSenderSessionId() { - - senderSessionId_ = getDefaultInstance().getSenderSessionId(); - } - /** - * optional string sender_session_id = 7; - */ - private void setSenderSessionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - senderSessionId_ = value.toStringUtf8(); + java.lang.Object ref = senderSessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXPIRATION_TIME_FIELD_NUMBER = 8; private long expirationTime_; /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return The expirationTime. */ + @java.lang.Override public long getExpirationTime() { return expirationTime_; } - /** - * optional uint64 expiration_time = 8; - */ - private void setExpirationTime(long value) { - - expirationTime_ = value; - } - /** - * optional uint64 expiration_time = 8; - */ - private void clearExpirationTime() { - - expirationTime_ = 0L; - } public static final int RECEIVER_SESSION_ID_FIELD_NUMBER = 9; - private com.google.protobuf.Internal.ProtobufList receiverSessionId_; + private com.google.protobuf.LazyStringList receiverSessionId_; /** * repeated string receiver_session_id = 9; + * @return A list containing the receiverSessionId. */ - public java.util.List getReceiverSessionIdList() { + public com.google.protobuf.ProtocolStringList + getReceiverSessionIdList() { return receiverSessionId_; } /** * repeated string receiver_session_id = 9; + * @return The count of receiverSessionId. */ public int getReceiverSessionIdCount() { return receiverSessionId_.size(); } /** * repeated string receiver_session_id = 9; + * @param index The index of the element to return. + * @return The receiverSessionId at the given index. */ public java.lang.String getReceiverSessionId(int index) { return receiverSessionId_.get(index); } /** * repeated string receiver_session_id = 9; + * @param index The index of the value to return. + * @return The bytes of the receiverSessionId at the given index. */ public com.google.protobuf.ByteString getReceiverSessionIdBytes(int index) { - return com.google.protobuf.ByteString.copyFromUtf8( - receiverSessionId_.get(index)); - } - private void ensureReceiverSessionIdIsMutable() { - if (!receiverSessionId_.isModifiable()) { - receiverSessionId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(receiverSessionId_); - } - } - /** - * repeated string receiver_session_id = 9; - */ - private void setReceiverSessionId( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiverSessionIdIsMutable(); - receiverSessionId_.set(index, value); - } - /** - * repeated string receiver_session_id = 9; - */ - private void addReceiverSessionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiverSessionIdIsMutable(); - receiverSessionId_.add(value); - } - /** - * repeated string receiver_session_id = 9; - */ - private void addAllReceiverSessionId( - java.lang.Iterable values) { - ensureReceiverSessionIdIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, receiverSessionId_); - } - /** - * repeated string receiver_session_id = 9; - */ - private void clearReceiverSessionId() { - receiverSessionId_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + return receiverSessionId_.getByteString(index); } - /** - * repeated string receiver_session_id = 9; - */ - private void addReceiverSessionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureReceiverSessionIdIsMutable(); - receiverSessionId_.add(value.toStringUtf8()); + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (senderUserId_ != 0L) { output.writeUInt64(1, senderUserId_); } + if (getAffectedUserIdsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(affectedUserIdsMemoizedSerializedSize); + } for (int i = 0; i < affectedUserIds_.size(); i++) { - output.writeUInt64(2, affectedUserIds_.getLong(i)); + output.writeUInt64NoTag(affectedUserIds_.getLong(i)); } - if (!className_.isEmpty()) { - output.writeString(3, getClassName()); + if (!getClassNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, className_); } if (actionId_ != 0L) { output.writeUInt64(4, actionId_); } - if (!requestId_.isEmpty()) { - output.writeString(5, getRequestId()); + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } if (!wrappedProto_.isEmpty()) { output.writeBytes(6, wrappedProto_); } - if (!senderSessionId_.isEmpty()) { - output.writeString(7, getSenderSessionId()); + if (!getSenderSessionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, senderSessionId_); } if (expirationTime_ != 0L) { output.writeUInt64(8, expirationTime_); } for (int i = 0; i < receiverSessionId_.size(); i++) { - output.writeString(9, receiverSessionId_.get(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, receiverSessionId_.getRaw(i)); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -534,27 +565,29 @@ public int getSerializedSize() { .computeUInt64SizeNoTag(affectedUserIds_.getLong(i)); } size += dataSize; - size += 1 * getAffectedUserIdsList().size(); + if (!getAffectedUserIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + affectedUserIdsMemoizedSerializedSize = dataSize; } - if (!className_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getClassName()); + if (!getClassNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, className_); } if (actionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, actionId_); } - if (!requestId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getRequestId()); + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } if (!wrappedProto_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, wrappedProto_); } - if (!senderSessionId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getSenderSessionId()); + if (!getSenderSessionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, senderSessionId_); } if (expirationTime_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -563,617 +596,1027 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < receiverSessionId_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(receiverSessionId_.get(i)); + dataSize += computeStringSizeNoTag(receiverSessionId_.getRaw(i)); } size += dataSize; size += 1 * getReceiverSessionIdList().size(); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate)) { + return super.equals(obj); + } + net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate other = (net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate) obj; + + if (getSenderUserId() + != other.getSenderUserId()) return false; + if (!getAffectedUserIdsList() + .equals(other.getAffectedUserIdsList())) return false; + if (!getClassName() + .equals(other.getClassName())) return false; + if (getActionId() + != other.getActionId()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!getWrappedProto() + .equals(other.getWrappedProto())) return false; + if (!getSenderSessionId() + .equals(other.getSenderSessionId())) return false; + if (getExpirationTime() + != other.getExpirationTime()) return false; + if (!getReceiverSessionIdList() + .equals(other.getReceiverSessionIdList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SENDER_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSenderUserId()); + if (getAffectedUserIdsCount() > 0) { + hash = (37 * hash) + AFFECTED_USER_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedUserIdsList().hashCode(); + } + hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClassName().hashCode(); + hash = (37 * hash) + ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getActionId()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + WRAPPED_PROTO_FIELD_NUMBER; + hash = (53 * hash) + getWrappedProto().hashCode(); + hash = (37 * hash) + SENDER_SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSenderSessionId().hashCode(); + hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExpirationTime()); + if (getReceiverSessionIdCount() > 0) { + hash = (37 * hash) + RECEIVER_SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getReceiverSessionIdList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.InternalUpdate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.InternalUpdate) net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdate.internal_static_proto_updatequeue_InternalUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdate.internal_static_proto_updatequeue_InternalUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.class, net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.Builder.class); + } + // Construct using net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } + @java.lang.Override + public Builder clear() { + super.clear(); + senderUserId_ = 0L; + + affectedUserIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + className_ = ""; + + actionId_ = 0L; + + requestId_ = ""; + + wrappedProto_ = com.google.protobuf.ByteString.EMPTY; + + senderSessionId_ = ""; + expirationTime_ = 0L; + + receiverSessionId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdate.internal_static_proto_updatequeue_InternalUpdate_descriptor; + } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate getDefaultInstanceForType() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate build() { + net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate buildPartial() { + net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate result = new net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate(this); + int from_bitField0_ = bitField0_; + result.senderUserId_ = senderUserId_; + if (((bitField0_ & 0x00000001) != 0)) { + affectedUserIds_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.affectedUserIds_ = affectedUserIds_; + result.className_ = className_; + result.actionId_ = actionId_; + result.requestId_ = requestId_; + result.wrappedProto_ = wrappedProto_; + result.senderSessionId_ = senderSessionId_; + result.expirationTime_ = expirationTime_; + if (((bitField0_ & 0x00000002) != 0)) { + receiverSessionId_ = receiverSessionId_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.receiverSessionId_ = receiverSessionId_; + onBuilt(); + return result; + } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate) { + return mergeFrom((net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate other) { + if (other == net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.getDefaultInstance()) return this; + if (other.getSenderUserId() != 0L) { + setSenderUserId(other.getSenderUserId()); + } + if (!other.affectedUserIds_.isEmpty()) { + if (affectedUserIds_.isEmpty()) { + affectedUserIds_ = other.affectedUserIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAffectedUserIdsIsMutable(); + affectedUserIds_.addAll(other.affectedUserIds_); + } + onChanged(); + } + if (!other.getClassName().isEmpty()) { + className_ = other.className_; + onChanged(); + } + if (other.getActionId() != 0L) { + setActionId(other.getActionId()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getWrappedProto() != com.google.protobuf.ByteString.EMPTY) { + setWrappedProto(other.getWrappedProto()); + } + if (!other.getSenderSessionId().isEmpty()) { + senderSessionId_ = other.senderSessionId_; + onChanged(); + } + if (other.getExpirationTime() != 0L) { + setExpirationTime(other.getExpirationTime()); + } + if (!other.receiverSessionId_.isEmpty()) { + if (receiverSessionId_.isEmpty()) { + receiverSessionId_ = other.receiverSessionId_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReceiverSessionIdIsMutable(); + receiverSessionId_.addAll(other.receiverSessionId_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long senderUserId_ ; /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return The senderUserId. */ + @java.lang.Override public long getSenderUserId() { - return instance.getSenderUserId(); + return senderUserId_; } /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @param value The senderUserId to set. + * @return This builder for chaining. */ public Builder setSenderUserId(long value) { - copyOnWrite(); - instance.setSenderUserId(value); + + senderUserId_ = value; + onChanged(); return this; } /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return This builder for chaining. */ public Builder clearSenderUserId() { - copyOnWrite(); - instance.clearSenderUserId(); + + senderUserId_ = 0L; + onChanged(); return this; } + private com.google.protobuf.Internal.LongList affectedUserIds_ = emptyLongList(); + private void ensureAffectedUserIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + affectedUserIds_ = mutableCopy(affectedUserIds_); + bitField0_ |= 0x00000001; + } + } /** * repeated uint64 affected_user_ids = 2; + * @return A list containing the affectedUserIds. */ public java.util.List getAffectedUserIdsList() { - return java.util.Collections.unmodifiableList( - instance.getAffectedUserIdsList()); + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(affectedUserIds_) : affectedUserIds_; } /** * repeated uint64 affected_user_ids = 2; + * @return The count of affectedUserIds. */ public int getAffectedUserIdsCount() { - return instance.getAffectedUserIdsCount(); + return affectedUserIds_.size(); } /** * repeated uint64 affected_user_ids = 2; + * @param index The index of the element to return. + * @return The affectedUserIds at the given index. */ public long getAffectedUserIds(int index) { - return instance.getAffectedUserIds(index); + return affectedUserIds_.getLong(index); } /** * repeated uint64 affected_user_ids = 2; + * @param index The index to set the value at. + * @param value The affectedUserIds to set. + * @return This builder for chaining. */ public Builder setAffectedUserIds( int index, long value) { - copyOnWrite(); - instance.setAffectedUserIds(index, value); + ensureAffectedUserIdsIsMutable(); + affectedUserIds_.setLong(index, value); + onChanged(); return this; } /** * repeated uint64 affected_user_ids = 2; + * @param value The affectedUserIds to add. + * @return This builder for chaining. */ public Builder addAffectedUserIds(long value) { - copyOnWrite(); - instance.addAffectedUserIds(value); + ensureAffectedUserIdsIsMutable(); + affectedUserIds_.addLong(value); + onChanged(); return this; } /** * repeated uint64 affected_user_ids = 2; + * @param values The affectedUserIds to add. + * @return This builder for chaining. */ public Builder addAllAffectedUserIds( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllAffectedUserIds(values); + ensureAffectedUserIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, affectedUserIds_); + onChanged(); return this; } /** * repeated uint64 affected_user_ids = 2; + * @return This builder for chaining. */ public Builder clearAffectedUserIds() { - copyOnWrite(); - instance.clearAffectedUserIds(); + affectedUserIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + private java.lang.Object className_ = ""; /** - * optional string class_name = 3; + * string class_name = 3; + * @return The className. */ public java.lang.String getClassName() { - return instance.getClassName(); + java.lang.Object ref = className_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + className_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string class_name = 3; + * string class_name = 3; + * @return The bytes for className. */ public com.google.protobuf.ByteString getClassNameBytes() { - return instance.getClassNameBytes(); + java.lang.Object ref = className_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string class_name = 3; + * string class_name = 3; + * @param value The className to set. + * @return This builder for chaining. */ public Builder setClassName( java.lang.String value) { - copyOnWrite(); - instance.setClassName(value); + if (value == null) { + throw new NullPointerException(); + } + + className_ = value; + onChanged(); return this; } /** - * optional string class_name = 3; + * string class_name = 3; + * @return This builder for chaining. */ public Builder clearClassName() { - copyOnWrite(); - instance.clearClassName(); + + className_ = getDefaultInstance().getClassName(); + onChanged(); return this; } /** - * optional string class_name = 3; + * string class_name = 3; + * @param value The bytes for className to set. + * @return This builder for chaining. */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClassNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + className_ = value; + onChanged(); return this; } + private long actionId_ ; /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return The actionId. */ + @java.lang.Override public long getActionId() { - return instance.getActionId(); + return actionId_; } /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @param value The actionId to set. + * @return This builder for chaining. */ public Builder setActionId(long value) { - copyOnWrite(); - instance.setActionId(value); + + actionId_ = value; + onChanged(); return this; } /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return This builder for chaining. */ public Builder clearActionId() { - copyOnWrite(); - instance.clearActionId(); + + actionId_ = 0L; + onChanged(); return this; } + private java.lang.Object requestId_ = ""; /** - * optional string request_id = 5; + * string request_id = 5; + * @return The requestId. */ public java.lang.String getRequestId() { - return instance.getRequestId(); + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string request_id = 5; + * string request_id = 5; + * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { - return instance.getRequestIdBytes(); + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string request_id = 5; + * string request_id = 5; + * @param value The requestId to set. + * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { - copyOnWrite(); - instance.setRequestId(value); + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); return this; } /** - * optional string request_id = 5; + * string request_id = 5; + * @return This builder for chaining. */ public Builder clearRequestId() { - copyOnWrite(); - instance.clearRequestId(); + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); return this; } /** - * optional string request_id = 5; + * string request_id = 5; + * @param value The bytes for requestId to set. + * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setRequestIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); return this; } + private com.google.protobuf.ByteString wrappedProto_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { - return instance.getWrappedProto(); + return wrappedProto_; } /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @param value The wrappedProto to set. + * @return This builder for chaining. */ public Builder setWrappedProto(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setWrappedProto(value); + if (value == null) { + throw new NullPointerException(); + } + + wrappedProto_ = value; + onChanged(); return this; } /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return This builder for chaining. */ public Builder clearWrappedProto() { - copyOnWrite(); - instance.clearWrappedProto(); + + wrappedProto_ = getDefaultInstance().getWrappedProto(); + onChanged(); return this; } + private java.lang.Object senderSessionId_ = ""; /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The senderSessionId. */ public java.lang.String getSenderSessionId() { - return instance.getSenderSessionId(); + java.lang.Object ref = senderSessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderSessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The bytes for senderSessionId. */ public com.google.protobuf.ByteString getSenderSessionIdBytes() { - return instance.getSenderSessionIdBytes(); + java.lang.Object ref = senderSessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @param value The senderSessionId to set. + * @return This builder for chaining. */ public Builder setSenderSessionId( java.lang.String value) { - copyOnWrite(); - instance.setSenderSessionId(value); + if (value == null) { + throw new NullPointerException(); + } + + senderSessionId_ = value; + onChanged(); return this; } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return This builder for chaining. */ public Builder clearSenderSessionId() { - copyOnWrite(); - instance.clearSenderSessionId(); + + senderSessionId_ = getDefaultInstance().getSenderSessionId(); + onChanged(); return this; } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @param value The bytes for senderSessionId to set. + * @return This builder for chaining. */ public Builder setSenderSessionIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSenderSessionIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + senderSessionId_ = value; + onChanged(); return this; } + private long expirationTime_ ; /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return The expirationTime. */ + @java.lang.Override public long getExpirationTime() { - return instance.getExpirationTime(); + return expirationTime_; } /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @param value The expirationTime to set. + * @return This builder for chaining. */ public Builder setExpirationTime(long value) { - copyOnWrite(); - instance.setExpirationTime(value); + + expirationTime_ = value; + onChanged(); return this; } /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return This builder for chaining. */ public Builder clearExpirationTime() { - copyOnWrite(); - instance.clearExpirationTime(); + + expirationTime_ = 0L; + onChanged(); return this; } + private com.google.protobuf.LazyStringList receiverSessionId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureReceiverSessionIdIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + receiverSessionId_ = new com.google.protobuf.LazyStringArrayList(receiverSessionId_); + bitField0_ |= 0x00000002; + } + } /** * repeated string receiver_session_id = 9; + * @return A list containing the receiverSessionId. */ - public java.util.List + public com.google.protobuf.ProtocolStringList getReceiverSessionIdList() { - return java.util.Collections.unmodifiableList( - instance.getReceiverSessionIdList()); + return receiverSessionId_.getUnmodifiableView(); } /** * repeated string receiver_session_id = 9; + * @return The count of receiverSessionId. */ public int getReceiverSessionIdCount() { - return instance.getReceiverSessionIdCount(); + return receiverSessionId_.size(); } /** * repeated string receiver_session_id = 9; + * @param index The index of the element to return. + * @return The receiverSessionId at the given index. */ public java.lang.String getReceiverSessionId(int index) { - return instance.getReceiverSessionId(index); + return receiverSessionId_.get(index); } /** * repeated string receiver_session_id = 9; + * @param index The index of the value to return. + * @return The bytes of the receiverSessionId at the given index. */ public com.google.protobuf.ByteString getReceiverSessionIdBytes(int index) { - return instance.getReceiverSessionIdBytes(index); + return receiverSessionId_.getByteString(index); } /** * repeated string receiver_session_id = 9; + * @param index The index to set the value at. + * @param value The receiverSessionId to set. + * @return This builder for chaining. */ public Builder setReceiverSessionId( int index, java.lang.String value) { - copyOnWrite(); - instance.setReceiverSessionId(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureReceiverSessionIdIsMutable(); + receiverSessionId_.set(index, value); + onChanged(); return this; } /** * repeated string receiver_session_id = 9; + * @param value The receiverSessionId to add. + * @return This builder for chaining. */ public Builder addReceiverSessionId( java.lang.String value) { - copyOnWrite(); - instance.addReceiverSessionId(value); + if (value == null) { + throw new NullPointerException(); + } + ensureReceiverSessionIdIsMutable(); + receiverSessionId_.add(value); + onChanged(); return this; } /** * repeated string receiver_session_id = 9; + * @param values The receiverSessionId to add. + * @return This builder for chaining. */ public Builder addAllReceiverSessionId( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllReceiverSessionId(values); + ensureReceiverSessionIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, receiverSessionId_); + onChanged(); return this; } /** * repeated string receiver_session_id = 9; + * @return This builder for chaining. */ public Builder clearReceiverSessionId() { - copyOnWrite(); - instance.clearReceiverSessionId(); + receiverSessionId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); return this; } /** * repeated string receiver_session_id = 9; + * @param value The bytes of the receiverSessionId to add. + * @return This builder for chaining. */ public Builder addReceiverSessionIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.addReceiverSessionIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReceiverSessionIdIsMutable(); + receiverSessionId_.add(value); + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.updatequeue.InternalUpdate) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - affectedUserIds_.makeImmutable(); - receiverSessionId_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate other = (net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate) arg1; - senderUserId_ = visitor.visitLong(senderUserId_ != 0L, senderUserId_, - other.senderUserId_ != 0L, other.senderUserId_); - affectedUserIds_= visitor.visitLongList(affectedUserIds_, other.affectedUserIds_); - className_ = visitor.visitString(!className_.isEmpty(), className_, - !other.className_.isEmpty(), other.className_); - actionId_ = visitor.visitLong(actionId_ != 0L, actionId_, - other.actionId_ != 0L, other.actionId_); - requestId_ = visitor.visitString(!requestId_.isEmpty(), requestId_, - !other.requestId_.isEmpty(), other.requestId_); - wrappedProto_ = visitor.visitByteString(wrappedProto_ != com.google.protobuf.ByteString.EMPTY, wrappedProto_, - other.wrappedProto_ != com.google.protobuf.ByteString.EMPTY, other.wrappedProto_); - senderSessionId_ = visitor.visitString(!senderSessionId_.isEmpty(), senderSessionId_, - !other.senderSessionId_.isEmpty(), other.senderSessionId_); - expirationTime_ = visitor.visitLong(expirationTime_ != 0L, expirationTime_, - other.expirationTime_ != 0L, other.expirationTime_); - receiverSessionId_= visitor.visitList(receiverSessionId_, other.receiverSessionId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - senderUserId_ = input.readUInt64(); - break; - } - case 16: { - if (!affectedUserIds_.isModifiable()) { - affectedUserIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(affectedUserIds_); - } - affectedUserIds_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!affectedUserIds_.isModifiable() && input.getBytesUntilLimit() > 0) { - affectedUserIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(affectedUserIds_); - } - while (input.getBytesUntilLimit() > 0) { - affectedUserIds_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - className_ = s; - break; - } - case 32: { - - actionId_ = input.readUInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 50: { - - wrappedProto_ = input.readBytes(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - senderSessionId_ = s; - break; - } - case 64: { - - expirationTime_ = input.readUInt64(); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - if (!receiverSessionId_.isModifiable()) { - receiverSessionId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(receiverSessionId_); - } - receiverSessionId_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.InternalUpdate) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.InternalUpdate) private static final net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InternalUpdate(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate(); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InternalUpdate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdate.InternalUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_InternalUpdate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_InternalUpdate_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\024InternalUpdate.proto\022\021proto.updatequeu" + + "e\"\346\001\n\016InternalUpdate\022\026\n\016sender_user_id\030\001" + + " \001(\004\022\031\n\021affected_user_ids\030\002 \003(\004\022\022\n\nclass" + + "_name\030\003 \001(\t\022\021\n\taction_id\030\004 \001(\004\022\022\n\nreques" + + "t_id\030\005 \001(\t\022\025\n\rwrapped_proto\030\006 \001(\014\022\031\n\021sen" + + "der_session_id\030\007 \001(\t\022\027\n\017expiration_time\030" + + "\010 \001(\004\022\033\n\023receiver_session_id\030\t \003(\tB6\n\037ne" + + "t.iGap.proto.updateQueue.coreB\023ProtoInte" + + "rnalUpdateb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_proto_updatequeue_InternalUpdate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_updatequeue_InternalUpdate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_InternalUpdate_descriptor, + new java.lang.String[] { "SenderUserId", "AffectedUserIds", "ClassName", "ActionId", "RequestId", "WrappedProto", "SenderSessionId", "ExpirationTime", "ReceiverSessionId", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdateRoom.java b/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdateRoom.java index 4709d16..97d2821 100644 --- a/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdateRoom.java +++ b/src/main/java/net/iGap/proto/updateQueue/core/ProtoInternalUpdateRoom.java @@ -8,335 +8,387 @@ private ProtoInternalUpdateRoom() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } public interface InternalUpdateRoomOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.updatequeue.InternalUpdateRoom) - com.google.protobuf.MessageLiteOrBuilder { + com.google.protobuf.MessageOrBuilder { /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return The senderUserId. */ long getSenderUserId(); /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ long getRoomId(); /** - * optional string class_name = 3; + * string class_name = 3; + * @return The className. */ java.lang.String getClassName(); /** - * optional string class_name = 3; + * string class_name = 3; + * @return The bytes for className. */ com.google.protobuf.ByteString getClassNameBytes(); /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return The actionId. */ long getActionId(); /** - * optional string request_id = 5; + * string request_id = 5; + * @return The requestId. */ java.lang.String getRequestId(); /** - * optional string request_id = 5; + * string request_id = 5; + * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return The wrappedProto. */ com.google.protobuf.ByteString getWrappedProto(); /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The senderSessionId. */ java.lang.String getSenderSessionId(); /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The bytes for senderSessionId. */ com.google.protobuf.ByteString getSenderSessionIdBytes(); /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return The expirationTime. */ long getExpirationTime(); } /** * Protobuf type {@code proto.updatequeue.InternalUpdateRoom} */ - public static final class InternalUpdateRoom extends - com.google.protobuf.GeneratedMessageLite< - InternalUpdateRoom, InternalUpdateRoom.Builder> implements + public static final class InternalUpdateRoom extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.updatequeue.InternalUpdateRoom) InternalUpdateRoomOrBuilder { + private static final long serialVersionUID = 0L; + // Use InternalUpdateRoom.newBuilder() to construct. + private InternalUpdateRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } private InternalUpdateRoom() { className_ = ""; requestId_ = ""; wrappedProto_ = com.google.protobuf.ByteString.EMPTY; senderSessionId_ = ""; } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InternalUpdateRoom(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InternalUpdateRoom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + senderUserId_ = input.readUInt64(); + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + className_ = s; + break; + } + case 32: { + + actionId_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 50: { + + wrappedProto_ = input.readBytes(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + senderSessionId_ = s; + break; + } + case 64: { + + expirationTime_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.internal_static_proto_updatequeue_InternalUpdateRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.internal_static_proto_updatequeue_InternalUpdateRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.class, net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.Builder.class); + } + public static final int SENDER_USER_ID_FIELD_NUMBER = 1; private long senderUserId_; /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return The senderUserId. */ + @java.lang.Override public long getSenderUserId() { return senderUserId_; } - /** - * optional uint64 sender_user_id = 1; - */ - private void setSenderUserId(long value) { - - senderUserId_ = value; - } - /** - * optional uint64 sender_user_id = 1; - */ - private void clearSenderUserId() { - - senderUserId_ = 0L; - } public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { return roomId_; } - /** - * optional uint64 room_id = 2; - */ - private void setRoomId(long value) { - - roomId_ = value; - } - /** - * optional uint64 room_id = 2; - */ - private void clearRoomId() { - - roomId_ = 0L; - } public static final int CLASS_NAME_FIELD_NUMBER = 3; - private java.lang.String className_; + private volatile java.lang.Object className_; /** - * optional string class_name = 3; + * string class_name = 3; + * @return The className. */ + @java.lang.Override public java.lang.String getClassName() { - return className_; + java.lang.Object ref = className_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + className_ = s; + return s; + } } /** - * optional string class_name = 3; + * string class_name = 3; + * @return The bytes for className. */ + @java.lang.Override public com.google.protobuf.ByteString getClassNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(className_); - } - /** - * optional string class_name = 3; - */ - private void setClassName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - className_ = value; - } - /** - * optional string class_name = 3; - */ - private void clearClassName() { - - className_ = getDefaultInstance().getClassName(); - } - /** - * optional string class_name = 3; - */ - private void setClassNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - className_ = value.toStringUtf8(); + java.lang.Object ref = className_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ACTION_ID_FIELD_NUMBER = 4; private long actionId_; /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return The actionId. */ + @java.lang.Override public long getActionId() { return actionId_; } - /** - * optional uint64 action_id = 4; - */ - private void setActionId(long value) { - - actionId_ = value; - } - /** - * optional uint64 action_id = 4; - */ - private void clearActionId() { - - actionId_ = 0L; - } public static final int REQUEST_ID_FIELD_NUMBER = 5; - private java.lang.String requestId_; + private volatile java.lang.Object requestId_; /** - * optional string request_id = 5; + * string request_id = 5; + * @return The requestId. */ + @java.lang.Override public java.lang.String getRequestId() { - return requestId_; + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } } /** - * optional string request_id = 5; + * string request_id = 5; + * @return The bytes for requestId. */ + @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(requestId_); - } - /** - * optional string request_id = 5; - */ - private void setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - } - /** - * optional string request_id = 5; - */ - private void clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - } - /** - * optional string request_id = 5; - */ - private void setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value.toStringUtf8(); + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int WRAPPED_PROTO_FIELD_NUMBER = 6; private com.google.protobuf.ByteString wrappedProto_; /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { return wrappedProto_; } - /** - * optional bytes wrapped_proto = 6; - */ - private void setWrappedProto(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - wrappedProto_ = value; - } - /** - * optional bytes wrapped_proto = 6; - */ - private void clearWrappedProto() { - - wrappedProto_ = getDefaultInstance().getWrappedProto(); - } public static final int SENDER_SESSION_ID_FIELD_NUMBER = 7; - private java.lang.String senderSessionId_; + private volatile java.lang.Object senderSessionId_; /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The senderSessionId. */ + @java.lang.Override public java.lang.String getSenderSessionId() { - return senderSessionId_; + java.lang.Object ref = senderSessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderSessionId_ = s; + return s; + } } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The bytes for senderSessionId. */ + @java.lang.Override public com.google.protobuf.ByteString getSenderSessionIdBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(senderSessionId_); - } - /** - * optional string sender_session_id = 7; - */ - private void setSenderSessionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - senderSessionId_ = value; - } - /** - * optional string sender_session_id = 7; - */ - private void clearSenderSessionId() { - - senderSessionId_ = getDefaultInstance().getSenderSessionId(); - } - /** - * optional string sender_session_id = 7; - */ - private void setSenderSessionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - senderSessionId_ = value.toStringUtf8(); + java.lang.Object ref = senderSessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int EXPIRATION_TIME_FIELD_NUMBER = 8; private long expirationTime_; /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return The expirationTime. */ + @java.lang.Override public long getExpirationTime() { return expirationTime_; } - /** - * optional uint64 expiration_time = 8; - */ - private void setExpirationTime(long value) { - - expirationTime_ = value; - } - /** - * optional uint64 expiration_time = 8; - */ - private void clearExpirationTime() { - - expirationTime_ = 0L; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (senderUserId_ != 0L) { @@ -345,28 +397,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (!className_.isEmpty()) { - output.writeString(3, getClassName()); + if (!getClassNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, className_); } if (actionId_ != 0L) { output.writeUInt64(4, actionId_); } - if (!requestId_.isEmpty()) { - output.writeString(5, getRequestId()); + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } if (!wrappedProto_.isEmpty()) { output.writeBytes(6, wrappedProto_); } - if (!senderSessionId_.isEmpty()) { - output.writeString(7, getSenderSessionId()); + if (!getSenderSessionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, senderSessionId_); } if (expirationTime_ != 0L) { output.writeUInt64(8, expirationTime_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -378,503 +432,847 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (!className_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getClassName()); + if (!getClassNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, className_); } if (actionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, actionId_); } - if (!requestId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getRequestId()); + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } if (!wrappedProto_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, wrappedProto_); } - if (!senderSessionId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getSenderSessionId()); + if (!getSenderSessionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, senderSessionId_); } if (expirationTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, expirationTime_); } - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = size; return size; } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom)) { + return super.equals(obj); + } + net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom other = (net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom) obj; + + if (getSenderUserId() + != other.getSenderUserId()) return false; + if (getRoomId() + != other.getRoomId()) return false; + if (!getClassName() + .equals(other.getClassName())) return false; + if (getActionId() + != other.getActionId()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!getWrappedProto() + .equals(other.getWrappedProto())) return false; + if (!getSenderSessionId() + .equals(other.getSenderSessionId())) return false; + if (getExpirationTime() + != other.getExpirationTime()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SENDER_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSenderUserId()); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClassName().hashCode(); + hash = (37 * hash) + ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getActionId()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + WRAPPED_PROTO_FIELD_NUMBER; + hash = (53 * hash) + getWrappedProto().hashCode(); + hash = (37 * hash) + SENDER_SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSenderSessionId().hashCode(); + hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExpirationTime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return PARSER.parseFrom(data); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return PARSER.parseFrom(data, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * Protobuf type {@code proto.updatequeue.InternalUpdateRoom} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom, Builder> implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.updatequeue.InternalUpdateRoom) net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.internal_static_proto_updatequeue_InternalUpdateRoom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.internal_static_proto_updatequeue_InternalUpdateRoom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.class, net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.Builder.class); + } + // Construct using net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + senderUserId_ = 0L; + + roomId_ = 0L; + + className_ = ""; + + actionId_ = 0L; + + requestId_ = ""; + + wrappedProto_ = com.google.protobuf.ByteString.EMPTY; + + senderSessionId_ = ""; + + expirationTime_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.internal_static_proto_updatequeue_InternalUpdateRoom_descriptor; + } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom getDefaultInstanceForType() { + return net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.getDefaultInstance(); + } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom build() { + net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom buildPartial() { + net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom result = new net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom(this); + result.senderUserId_ = senderUserId_; + result.roomId_ = roomId_; + result.className_ = className_; + result.actionId_ = actionId_; + result.requestId_ = requestId_; + result.wrappedProto_ = wrappedProto_; + result.senderSessionId_ = senderSessionId_; + result.expirationTime_ = expirationTime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom) { + return mergeFrom((net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom other) { + if (other == net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.getDefaultInstance()) return this; + if (other.getSenderUserId() != 0L) { + setSenderUserId(other.getSenderUserId()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (!other.getClassName().isEmpty()) { + className_ = other.className_; + onChanged(); + } + if (other.getActionId() != 0L) { + setActionId(other.getActionId()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getWrappedProto() != com.google.protobuf.ByteString.EMPTY) { + setWrappedProto(other.getWrappedProto()); + } + if (!other.getSenderSessionId().isEmpty()) { + senderSessionId_ = other.senderSessionId_; + onChanged(); + } + if (other.getExpirationTime() != 0L) { + setExpirationTime(other.getExpirationTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long senderUserId_ ; /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return The senderUserId. */ + @java.lang.Override public long getSenderUserId() { - return instance.getSenderUserId(); + return senderUserId_; } /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @param value The senderUserId to set. + * @return This builder for chaining. */ public Builder setSenderUserId(long value) { - copyOnWrite(); - instance.setSenderUserId(value); + + senderUserId_ = value; + onChanged(); return this; } /** - * optional uint64 sender_user_id = 1; + * uint64 sender_user_id = 1; + * @return This builder for chaining. */ public Builder clearSenderUserId() { - copyOnWrite(); - instance.clearSenderUserId(); + + senderUserId_ = 0L; + onChanged(); return this; } + private long roomId_ ; /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return The roomId. */ + @java.lang.Override public long getRoomId() { - return instance.getRoomId(); + return roomId_; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @param value The roomId to set. + * @return This builder for chaining. */ public Builder setRoomId(long value) { - copyOnWrite(); - instance.setRoomId(value); + + roomId_ = value; + onChanged(); return this; } /** - * optional uint64 room_id = 2; + * uint64 room_id = 2; + * @return This builder for chaining. */ public Builder clearRoomId() { - copyOnWrite(); - instance.clearRoomId(); + + roomId_ = 0L; + onChanged(); return this; } + private java.lang.Object className_ = ""; /** - * optional string class_name = 3; + * string class_name = 3; + * @return The className. */ public java.lang.String getClassName() { - return instance.getClassName(); + java.lang.Object ref = className_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + className_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string class_name = 3; + * string class_name = 3; + * @return The bytes for className. */ public com.google.protobuf.ByteString getClassNameBytes() { - return instance.getClassNameBytes(); + java.lang.Object ref = className_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string class_name = 3; + * string class_name = 3; + * @param value The className to set. + * @return This builder for chaining. */ public Builder setClassName( java.lang.String value) { - copyOnWrite(); - instance.setClassName(value); + if (value == null) { + throw new NullPointerException(); + } + + className_ = value; + onChanged(); return this; } /** - * optional string class_name = 3; + * string class_name = 3; + * @return This builder for chaining. */ public Builder clearClassName() { - copyOnWrite(); - instance.clearClassName(); + + className_ = getDefaultInstance().getClassName(); + onChanged(); return this; } /** - * optional string class_name = 3; + * string class_name = 3; + * @param value The bytes for className to set. + * @return This builder for chaining. */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClassNameBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + className_ = value; + onChanged(); return this; } + private long actionId_ ; /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return The actionId. */ + @java.lang.Override public long getActionId() { - return instance.getActionId(); + return actionId_; } /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @param value The actionId to set. + * @return This builder for chaining. */ public Builder setActionId(long value) { - copyOnWrite(); - instance.setActionId(value); + + actionId_ = value; + onChanged(); return this; } /** - * optional uint64 action_id = 4; + * uint64 action_id = 4; + * @return This builder for chaining. */ public Builder clearActionId() { - copyOnWrite(); - instance.clearActionId(); + + actionId_ = 0L; + onChanged(); return this; } + private java.lang.Object requestId_ = ""; /** - * optional string request_id = 5; + * string request_id = 5; + * @return The requestId. */ public java.lang.String getRequestId() { - return instance.getRequestId(); + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string request_id = 5; + * string request_id = 5; + * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { - return instance.getRequestIdBytes(); + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string request_id = 5; + * string request_id = 5; + * @param value The requestId to set. + * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { - copyOnWrite(); - instance.setRequestId(value); + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); return this; } /** - * optional string request_id = 5; + * string request_id = 5; + * @return This builder for chaining. */ public Builder clearRequestId() { - copyOnWrite(); - instance.clearRequestId(); + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); return this; } /** - * optional string request_id = 5; + * string request_id = 5; + * @param value The bytes for requestId to set. + * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setRequestIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); return this; } + private com.google.protobuf.ByteString wrappedProto_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return The wrappedProto. */ + @java.lang.Override public com.google.protobuf.ByteString getWrappedProto() { - return instance.getWrappedProto(); + return wrappedProto_; } /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @param value The wrappedProto to set. + * @return This builder for chaining. */ public Builder setWrappedProto(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setWrappedProto(value); + if (value == null) { + throw new NullPointerException(); + } + + wrappedProto_ = value; + onChanged(); return this; } /** - * optional bytes wrapped_proto = 6; + * bytes wrapped_proto = 6; + * @return This builder for chaining. */ public Builder clearWrappedProto() { - copyOnWrite(); - instance.clearWrappedProto(); + + wrappedProto_ = getDefaultInstance().getWrappedProto(); + onChanged(); return this; } + private java.lang.Object senderSessionId_ = ""; /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The senderSessionId. */ public java.lang.String getSenderSessionId() { - return instance.getSenderSessionId(); + java.lang.Object ref = senderSessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderSessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return The bytes for senderSessionId. */ public com.google.protobuf.ByteString getSenderSessionIdBytes() { - return instance.getSenderSessionIdBytes(); + java.lang.Object ref = senderSessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @param value The senderSessionId to set. + * @return This builder for chaining. */ public Builder setSenderSessionId( java.lang.String value) { - copyOnWrite(); - instance.setSenderSessionId(value); + if (value == null) { + throw new NullPointerException(); + } + + senderSessionId_ = value; + onChanged(); return this; } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @return This builder for chaining. */ public Builder clearSenderSessionId() { - copyOnWrite(); - instance.clearSenderSessionId(); + + senderSessionId_ = getDefaultInstance().getSenderSessionId(); + onChanged(); return this; } /** - * optional string sender_session_id = 7; + * string sender_session_id = 7; + * @param value The bytes for senderSessionId to set. + * @return This builder for chaining. */ public Builder setSenderSessionIdBytes( com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSenderSessionIdBytes(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + senderSessionId_ = value; + onChanged(); return this; } + private long expirationTime_ ; /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return The expirationTime. */ + @java.lang.Override public long getExpirationTime() { - return instance.getExpirationTime(); + return expirationTime_; } /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @param value The expirationTime to set. + * @return This builder for chaining. */ public Builder setExpirationTime(long value) { - copyOnWrite(); - instance.setExpirationTime(value); + + expirationTime_ = value; + onChanged(); return this; } /** - * optional uint64 expiration_time = 8; + * uint64 expiration_time = 8; + * @return This builder for chaining. */ public Builder clearExpirationTime() { - copyOnWrite(); - instance.clearExpirationTime(); + + expirationTime_ = 0L; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:proto.updatequeue.InternalUpdateRoom) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom other = (net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom) arg1; - senderUserId_ = visitor.visitLong(senderUserId_ != 0L, senderUserId_, - other.senderUserId_ != 0L, other.senderUserId_); - roomId_ = visitor.visitLong(roomId_ != 0L, roomId_, - other.roomId_ != 0L, other.roomId_); - className_ = visitor.visitString(!className_.isEmpty(), className_, - !other.className_.isEmpty(), other.className_); - actionId_ = visitor.visitLong(actionId_ != 0L, actionId_, - other.actionId_ != 0L, other.actionId_); - requestId_ = visitor.visitString(!requestId_.isEmpty(), requestId_, - !other.requestId_.isEmpty(), other.requestId_); - wrappedProto_ = visitor.visitByteString(wrappedProto_ != com.google.protobuf.ByteString.EMPTY, wrappedProto_, - other.wrappedProto_ != com.google.protobuf.ByteString.EMPTY, other.wrappedProto_); - senderSessionId_ = visitor.visitString(!senderSessionId_.isEmpty(), senderSessionId_, - !other.senderSessionId_.isEmpty(), other.senderSessionId_); - expirationTime_ = visitor.visitLong(expirationTime_ != 0L, expirationTime_, - other.expirationTime_ != 0L, other.expirationTime_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - senderUserId_ = input.readUInt64(); - break; - } - case 16: { - - roomId_ = input.readUInt64(); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - className_ = s; - break; - } - case 32: { - - actionId_ = input.readUInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 50: { - - wrappedProto_ = input.readBytes(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - senderSessionId_ = s; - break; - } - case 64: { - - expirationTime_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - throw new UnsupportedOperationException(); - } + // @@protoc_insertion_point(builder_scope:proto.updatequeue.InternalUpdateRoom) + } + // @@protoc_insertion_point(class_scope:proto.updatequeue.InternalUpdateRoom) private static final net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new InternalUpdateRoom(); - DEFAULT_INSTANCE.makeImmutable(); + DEFAULT_INSTANCE = new net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom(); } public static net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static volatile com.google.protobuf.Parser PARSER; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalUpdateRoom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InternalUpdateRoom(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + return PARSER; } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public net.iGap.proto.updateQueue.core.ProtoInternalUpdateRoom.InternalUpdateRoom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_updatequeue_InternalUpdateRoom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_updatequeue_InternalUpdateRoom_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { + java.lang.String[] descriptorData = { + "\n\030InternalUpdateRoom.proto\022\021proto.update" + + "queue\"\303\001\n\022InternalUpdateRoom\022\026\n\016sender_u" + + "ser_id\030\001 \001(\004\022\017\n\007room_id\030\002 \001(\004\022\022\n\nclass_n" + + "ame\030\003 \001(\t\022\021\n\taction_id\030\004 \001(\004\022\022\n\nrequest_" + + "id\030\005 \001(\t\022\025\n\rwrapped_proto\030\006 \001(\014\022\031\n\021sende" + + "r_session_id\030\007 \001(\t\022\027\n\017expiration_time\030\010 " + + "\001(\004B:\n\037net.iGap.proto.updateQueue.coreB\027" + + "ProtoInternalUpdateRoomb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_proto_updatequeue_InternalUpdateRoom_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_updatequeue_InternalUpdateRoom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_updatequeue_InternalUpdateRoom_descriptor, + new java.lang.String[] { "SenderUserId", "RoomId", "ClassName", "ActionId", "RequestId", "WrappedProto", "SenderSessionId", "ExpirationTime", }); } // @@protoc_insertion_point(outer_class_scope)